BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/McTestAlg/McTestAlg/McTestAlg.h
Go to the documentation of this file.
1#ifndef McTestAlg_h
2#define McTestAlg_h 1
3
4
5#include "GaudiKernel/Algorithm.h"
6#include "GaudiKernel/NTuple.h"
7
8class IDataProviderSvc;
9
10class McTestAlg:public Algorithm
11{
12 public:
13
14 McTestAlg (const std::string& name, ISvcLocator* pSvcLocator);
15 StatusCode initialize();
16 StatusCode execute();
17 StatusCode finalize();
18
19 void RetrieveMcParticle();
20 void RetrieveMdc();
21 void MdcInit();
22 void RetrieveTof();
23 void TofInit();
24 void RetrieveEmc();
25 void RetrieveMuc();
26
27 private:
28 IDataProviderSvc* m_evtSvc;
29
30 bool m_particleRootFlag;
31 NTuple::Tuple* tupleParticle;
32 NTuple::Item<double> me;
33
34 bool m_mdcRootFlag;
35 NTuple::Tuple* tupleMdc1; // MdcTruth
36 NTuple::Tuple* tupleMdc2; // MdcDigit
37
38 NTuple::Item<long> truthMdcIndex;
39 NTuple::Item<long> truthMdcParId;
40 NTuple::Item<long> truthMdcLayer;
41 NTuple::Item<long> truthMdcWire;
42 NTuple::Item<double> truthMdcEdep;
43 NTuple::Item<double> truthMdcDriftD;
44 NTuple::Item<double> truthMdcX;
45 NTuple::Item<double> truthMdcY;
46 NTuple::Item<double> truthMdcZ;
47 NTuple::Item<double> ntruthMdc;
48 NTuple::Item<double> m_layer;
49 NTuple::Item<double> m_cell;
50 NTuple::Item<double> m_charge;
51 NTuple::Item<double> m_time;
52
53 bool m_tofRootFlag;
54 NTuple::Tuple* tupleTof;
55 NTuple::Item<double> truthIndex;
56 NTuple::Item<double> truthPartId;
57 NTuple::Item<double> truthLayer;
58 NTuple::Item<double> truthScinNb;
59 NTuple::Item<double> truthX;
60 NTuple::Item<double> truthY;
61 NTuple::Item<double> truthZ;
62 NTuple::Item<double> ntruth;
63 NTuple::Item<double> tleft;
64 NTuple::Item<double> tright;
65 NTuple::Item<double> qleft;
66 NTuple::Item<double> qright;
67
68};
69
70#endif
void MdcInit()
Definition: McTestAlg.cxx:213
void RetrieveEmc()
Definition: McTestAlg.cxx:414
void RetrieveMuc()
Definition: McTestAlg.cxx:463
StatusCode execute()
Definition: McTestAlg.cxx:148
void RetrieveMcParticle()
Definition: McTestAlg.cxx:173
void RetrieveMdc()
Definition: McTestAlg.cxx:232
void RetrieveTof()
Definition: McTestAlg.cxx:319
void TofInit()
Definition: McTestAlg.cxx:302
StatusCode initialize()
Definition: McTestAlg.cxx:51
StatusCode finalize()
Definition: McTestAlg.cxx:138