GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TTdrDetectorInformation.h
Go to the documentation of this file.
1#ifndef TTDRDETECTORINFORMATION_H
2#define TTDRDETECTORINFORMATION_H
3
4/** \addtogroup Sorting
5 * @{
6 */
7
8/////////////////////////////////////////////////////////////////
9///
10/// \class TTdrDetectorInformation
11///
12/// This Class is designed to store setup dependent
13/// information. It is used to store existence of
14/// detector systems, etc.
15///
16/////////////////////////////////////////////////////////////////
17
18#include "Globals.h"
19
21#include "TChannel.h"
22
24public:
27
29
30 void Print(Option_t* opt = "") const override;
31 void Clear(Option_t* = "") override;
32 void Set() override;
33
34 inline void SetTdrClover(bool flag = true) { fTdrClover = flag; }
35 inline void SetTdrTigress(bool flag = true) { fTdrTigress = flag; }
36 inline void SetTdrSiLi(bool flag = true) { fTdrSiLi = flag; }
37 inline void SetTdrPlastic(bool flag = true) { fTdrPlastic = flag; }
38
39 inline bool TdrClover() const { return fTdrClover; }
40 inline bool TdrTigress() const { return fTdrTigress; }
41 inline bool TdrSiLi() const { return fTdrSiLi; }
42 inline bool TdrPlastic() const { return fTdrPlastic; }
43
44private:
45 // detector types to switch over in Set()
46
47 bool fTdrClover{false}; // flag for TdrClover on/off
48 bool fTdrTigress{false}; // flag for TdrTigress on/off
49 bool fTdrSiLi{false}; // flag for TdrSiLi on/off
50 bool fTdrPlastic{false}; // flag for TdrPlastic on/off
51
52 /// \cond CLASSIMP
53 ClassDefOverride(TTdrDetectorInformation, 1); // Contains the run-dependent information.
54 /// \endcond
55};
56/*! @} */
57#endif
void Clear(Option_t *="") override
void SetTdrSiLi(bool flag=true)
void SetTdrClover(bool flag=true)
void Print(Option_t *opt="") const override
TEventBuildingLoop::EBuildMode BuildMode() const override
Set the detector information based on the available TChannels.
void SetTdrTigress(bool flag=true)
void SetTdrPlastic(bool flag=true)
~TTdrDetectorInformation() override