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