HerdSoftware  0.3.2
GGSTGeoReader.h
Go to the documentation of this file.
1 /*
2  * GGSTGeoReader.h
3  *
4  * Created on: 26 May 2021
5  * Author: Valerio Formato
6  */
7 
10 #ifndef HERD_GGSTGEOREADER_H_
11 #define HERD_GGSTGEOREADER_H_
12 
13 #ifndef GGSSMARTLOG_H_
14 #define HERD_GGSTGEOREADER_H_UNDEF_LOGGING
15 #endif
16 
17 // GGS headers
18 #include "montecarlo/readers/GGSTRootReader.h"
19 
20 #ifdef HERD_GGSTGEOREADER_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"
36 
37 // c++ headers
38 #include <string>
39 
40 using namespace EA;
41 
42 namespace Herd {
43 
44 // TODO: write doxygen doc
45 
46 namespace Readers {
47 // clang-format off
53 // clang-format on
55 public:
56  GGSTGeoReader(std::shared_ptr<GGSTRootReader> ggsReader) : m_ggsReader{ggsReader} {};
57 
58  bool IsGGSTGeoAvailable();
59  RetrievalResult GetGGSTGeo(ObjectWrapper &wrapper);
60 
61 private:
62  std::shared_ptr<GGSTRootReader> m_ggsReader;
63 };
64 } // namespace Readers
65 } // namespace Herd
66 
67 #endif
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:24
FitGeoParams reader class.
Definition: GGSTGeoReader.h:54
GGSTGeoReader(std::shared_ptr< GGSTRootReader > ggsReader)
Definition: GGSTGeoReader.h:56
std::shared_ptr< GGSTRootReader > m_ggsReader
Definition: GGSTGeoReader.h:62