CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcBbEmcEff.h
Go to the documentation of this file.
1#ifndef MDCBBEMCEFF_H
2#define MDCBBEMCEFF_H
3#include "GaudiKernel/Algorithm.h"
4#include "GaudiKernel/NTuple.h"
6
7class MdcBbEmcEff:public Algorithm {
8public:
9 MdcBbEmcEff (const std::string& name, ISvcLocator* pSvcLocator);
10 StatusCode initialize();
11 StatusCode execute();
12 StatusCode finalize();
13
14private:
15 int bookNTuple();
16 int getEventInfo();
17 int selectBbByEmcShower();
18 int bbEmcMdcTrackingEff();
19
20 int m_evtIndex;
21 bool m_hist;
22 int m_debug;
23
24 //Emc shower Cut
25 double m_emcDangCutLow;
26 double m_emcDangCutHigh;
27 double m_emcEneCutLow;
28 double m_emcEneCutHigh;
29 double m_emcEneCutTot;
30
31 //Mdc track Cut
32 double m_dPhiCut;
33 double m_dCosThetaCut;
34 double m_d0Cut;
35 double m_z0Cut;
36 double m_momCutLow;
37 double m_momCutHigh;
38 double m_dPhiMdcEmcCut;
39
40 //Barrel or endcap cut
41 double m_barrelCut;
42 double m_endcapCutLow;
43 double m_endcapCutHigh;
44 enum TrackPosition{OUT=-1, BARREL=0, ENDCAP=1, GAP=2};
45 TrackPosition m_posFlag;
46
47
48 long t_evtNo;
49 long t_runNo;
50 double t_t0;
51 int t_t0Stat;
52 int t_nTk;
53 double t_emcPhi[2];
54
55 int m_effAllN1;
56 int m_effAllN2;
57 int m_effN1[3];
58 int m_effN2[3];
59
60 NTuple::Tuple* m_tuple1;
61 NTuple::Item<long> m_runNo;
62 NTuple::Item<long> m_evtNo;
63 NTuple::Item<double> m_t0;
64 NTuple::Item<long> m_t0Stat;
65
66 NTuple::Item<long> m_index;
67 NTuple::Array<double> m_emcEne;
68 NTuple::Array<double> m_emcTheta;
69 NTuple::Array<double> m_emcPhi;
70 NTuple::Item<double> m_emcDang;
71
72 NTuple::Item<float> m_dCosTheta;
73 NTuple::Item<float> m_dPhi;
74 NTuple::Item<long> m_nTk;
75 NTuple::Array<double> m_d0;
76 NTuple::Array<double> m_z0;
77 NTuple::Array<double> m_cosTheta;
78 NTuple::Array<double> m_phi;
79 NTuple::Array<double> m_p;
80 NTuple::Array<double> m_pt;
81
82};
83#endif
StatusCode finalize()
StatusCode initialize()
StatusCode execute()
MdcBbEmcEff(const std::string &name, ISvcLocator *pSvcLocator)