BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/McTestAlg/McTestAlg-00-00-10/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
21 void MdcInit();
23 void TofInit();
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
McTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
void MdcInit()
void RetrieveEmc()
void RetrieveMuc()
StatusCode execute()
void RetrieveMcParticle()
void RetrieveMdc()
void RetrieveTof()
void TofInit()
StatusCode initialize()
StatusCode finalize()