HerdSoftware  0.3.2
GGSMCGenReader.h
Go to the documentation of this file.
1 /*
2  * GGSMCGenReader.h
3  *
4  * Created on: 26 May 2021
5  * Author: Valerio Formato
6  */
7 
10 #ifndef HERD_GGSMCGENREADER_H_
11 #define HERD_GGSMCGENREADER_H_
12 
13 #ifndef GGSSMARTLOG_H_
14 #define HERD_GGSMCGENREADER_H_UNDEF_LOGGING
15 #endif
16 
17 // GGS headers
18 #include "montecarlo/readers/GGSTRootReader.h"
19 
20 #ifdef HERD_GGSMCGENREADER_H_UNDEF_LOGGING
21 // Remove the definitions of GGS output macros (would conflict with the same macros defined in EventAnalysis)
22 // We only do this if GGSSmartLog.h is being parsed in this TU, otherwise there would be nothing to undef
23 // (or we could even be undefining the EA macros)
24 #undef COUT
25 #undef CCOUT
26 #undef ENDL
27 #endif
28 
29 // EA headers
30 #include "core/ObjectWrapper.h"
31 #include "core/RetrievalResult.h"
32 #include "utils/Memory.h"
33 
34 // HerdSoftware headers
35 #include "common/DefaultValues.h"
37 
38 // c++ headers
39 #include <string>
40 
41 using namespace EA;
42 
43 namespace Herd {
44 
45 // TODO: write doxygen doc
46 
47 namespace Readers {
48 // clang-format off
54 // clang-format on
56 public:
57  GGSMCGenReader(std::shared_ptr<GGSTRootReader> ggsReader) : m_ggsReader{ggsReader} {};
58 
59  bool IsGGSMCGenAvailable();
60  RetrievalResult GetGGSMCGen(ObjectWrapper &wrapper);
61 
62 private:
63  std::shared_ptr<GGSTRootReader> m_ggsReader;
64 
66 
67  bool m_mcGenRead = false;
68 };
69 } // namespace Readers
70 } // namespace Herd
71 
72 #endif
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:24
GGSMCGenReader(std::shared_ptr< GGSTRootReader > ggsReader)
Definition: GGSMCGenReader.h:57
std::shared_ptr< GGSTRootReader > m_ggsReader
Definition: GGSMCGenReader.h:63
FitGeoParams reader class.
Definition: GGSMCGenReader.h:55
MCGenerationInfo m_mcGenInfo
Definition: GGSMCGenReader.h:65
Information about particle generation in MC simulation.
Definition: MCGenerationInfo.h:27