GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
THILMnemonic.h
Go to the documentation of this file.
1#ifndef THILMNEMONIC_H
2#define THILMNEMONIC_H
3
4#include <string>
5#include "TMnemonic.h"
6#include "Globals.h"
7#include "TClass.h"
8
9enum class EDigitizer : char { kDefault };
10
11class THILMnemonic : public TMnemonic {
12public:
14 THILMnemonic(const char* name) : THILMnemonic() { TMnemonic::Parse(name); }
15 ~THILMnemonic() 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 kEagle, //0
22 kEaglePulser, //1
23 kPinDiode, //2
24 kClear //3
25 };
26
27 ESystem System() const { return fSystem; }
28
29 void Parse(std::string* name) override;
30
31 void EnumerateDigitizer(TPriorityValue<std::string>& digitizerName, TPriorityValue<EDigitizer>& digitizerType, TPriorityValue<int>& timeStampUnit) override;
32
33 TClass* GetClassType() const override;
34
35 double GetTime(Long64_t timestamp, Float_t cfd, double energy, const TChannel* channel) const override;
36
37 void Print(Option_t* opt = "") const override;
38 void Clear(Option_t* opt = "") override;
39
40private:
42
43 void EnumerateSystem();
44
45 /// \cond CLASSIMP
46 ClassDefOverride(THILMnemonic, 1)
47 /// \endcond
48};
49
50#endif
EDigitizer
Definition THILMnemonic.h:9
TClass * GetClassType() const override
void Clear(Option_t *opt="") override
void Parse(std::string *name) override
ESystem fSystem
void EnumerateDigitizer(TPriorityValue< std::string > &digitizerName, TPriorityValue< EDigitizer > &digitizerType, TPriorityValue< int > &timeStampUnit) override
void Print(Option_t *opt="") const override
THILMnemonic(const char *name)
double GetTime(Long64_t timestamp, Float_t cfd, double energy, const TChannel *channel) const override
ESystem System() const
void EnumerateSystem()
~THILMnemonic() override=default
virtual void Parse(std::string *name)
Definition TMnemonic.cxx:57