GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TILLMnemonic.h
Go to the documentation of this file.
1#ifndef TILLMNEMONIC_H
2#define TILLMNEMONIC_H
3
4#include <string>
5#include "TMnemonic.h"
6#include "Globals.h"
7#include "TClass.h"
8
9enum class EDigitizer : char { kDefault, kV1724, kV1725, kV1730, kV1751 };
10
11class TILLMnemonic : public TMnemonic {
12public:
14 TILLMnemonic(const char* name) : TILLMnemonic() { TMnemonic::Parse(name); }
15 ~TILLMnemonic() override = default;
16
17 // standard C++ makes these enumerations global to the class. ie, the name of the enumeration
18 // EMnemonic or ESystem has no effect on the clashing of enumerated variable names.
19 // These separations exist only to easily see the difference when looking at the code here.
20 enum class ESystem {
21 kFipps, //0
22 kFippsBgo, //1
23 kFippsLaBr, //2
24 kFippsLaBrBgo, //3
25 kFippsTAC, //4
26 kFippsPulser, //5
27 kIfin, //6
28 kIfinBgo, //7
29 kClear //8
30 };
31
32 ESystem System() const { return fSystem; }
33
34 void Parse(std::string* name) override;
35
36 void EnumerateDigitizer(TPriorityValue<std::string>& digitizerName, TPriorityValue<EDigitizer>& digitizerType, TPriorityValue<int>& timeStampUnit) override;
37
38 TClass* GetClassType() const override;
39
40 double GetTime(Long64_t timestamp, Float_t cfd, double energy, const TChannel* channel) const override;
41
42 void Print(Option_t* opt = "") const override;
43 void Clear(Option_t* opt = "") override;
44
45private:
47
48 void EnumerateSystem();
49
50 /// \cond CLASSIMP
51 ClassDefOverride(TILLMnemonic, 1)
52 /// \endcond
53};
54
55#endif
EDigitizer
Definition TILLMnemonic.h:9
double GetTime(Long64_t timestamp, Float_t cfd, double energy, const TChannel *channel) const override
void EnumerateSystem()
~TILLMnemonic() override=default
void Print(Option_t *opt="") const override
ESystem fSystem
void Parse(std::string *name) override
void Clear(Option_t *opt="") override
TILLMnemonic(const char *name)
TClass * GetClassType() const override
ESystem System() const
void EnumerateDigitizer(TPriorityValue< std::string > &digitizerName, TPriorityValue< EDigitizer > &digitizerType, TPriorityValue< int > &timeStampUnit) override
virtual void Parse(std::string *name)
Definition TMnemonic.cxx:57