BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/DQAPi2p2Alg/DQAPi2p2Alg/DQAPi2p2.h
Go to the documentation of this file.
1#ifndef Physics_Analysis_DQAPi2p2_H
2#define Physics_Analysis_DQAPi2p2_H
3
4#include "GaudiKernel/AlgFactory.h"
5#include "GaudiKernel/Algorithm.h"
6#include "GaudiKernel/NTuple.h"
7//#include "VertexFit/ReadBeamParFromDb.h"
8
9
10class DQAPi2p2 : public Algorithm {
11
12public:
13 DQAPi2p2(const std::string& name, ISvcLocator* pSvcLocator);
14 StatusCode initialize();
15 StatusCode execute();
16 StatusCode finalize();
17
18private:
19
20 int Ncut0,Ncut1,Ncut2,Ncut3,Ncut4,Ncut5,Ncut6;
21
22 //ReadBeamParFromDb m_reader;
23 // Declare r0, z0 cut for charged tracks
24 double m_vr0cut;
25 double m_vz0cut;
26
27 //Declare energy, dphi, dthe cuts for fake gamma's
28 double m_energyThreshold;
29 double m_gammaPhiCut;
30 double m_gammaThetaCut;
31 double m_gammaAngleCut;
32
33 //
34 int m_test4C;
35 int m_test5C;
36
37 //
38 int m_checkDedx;
39 int m_checkTof;
40 bool m_saventuple;
41 // define Ntuples here
42
43
44 NTuple::Tuple* m_tuple0;
45 NTuple::Item<long> m_nrun;
46 NTuple::Item<long> m_nrec;
47
48
49 NTuple::Array<double> m_dedxchi_e;
50 NTuple::Array<double> m_dedxchi_mu;
51 NTuple::Array<double> m_dedxchi_pi;
52 NTuple::Array<double> m_dedxchi_kaon;
53 NTuple::Array<double> m_dedxchi_proton;
54
55 NTuple::Array<double> m_tofchi_e;
56 NTuple::Array<double> m_tofchi_mu;
57 NTuple::Array<double> m_tofchi_pi;
58 NTuple::Array<double> m_tofchi_kaon;
59 NTuple::Array<double> m_tofchi_proton;
60
61 NTuple::Array<double> m_trackfitchi;
62 NTuple::Array<double> m_trackfitndof;
63 NTuple::Array<double> m_dedxngoodhit;
64
65 NTuple::Array<long> m_index_pmiss;
66 NTuple::Array<long> m_index_pbmiss;
67 NTuple::Array<long> m_index_pipmiss;
68 NTuple::Array<long> m_index_pimmiss;
69
70
71 NTuple::Item<long> m_nGam;
72 NTuple::Item<long> m_nGood;
73 NTuple::Item<long> m_nCharge;
74 NTuple::Item<long> m_npi;
75 NTuple::Item<long> m_nkaon;
76 NTuple::Item<long> m_nproton;
77
78 NTuple::Item<long> m_istat_pmiss;
79 NTuple::Item<long> m_istat_pbmiss;
80 NTuple::Item<long> m_istat_pipmiss;
81 NTuple::Item<long> m_istat_pimmiss;
82
83
84 NTuple::Array<long> m_ipidch_pmiss;
85 NTuple::Array<long> m_ipidch_pbmiss;
86 NTuple::Array<long> m_ipidch_pipmiss;
87 NTuple::Array<long> m_ipidch_pimmiss;
88
89 NTuple::Item<double> m_mpmiss;
90 NTuple::Item<double> m_mpbmiss;
91 NTuple::Item<double> m_mpipmiss;
92 NTuple::Item<double> m_mpimmiss;
93
94 NTuple::Item<double> m_ppmiss;
95 NTuple::Item<double> m_ppbmiss;
96 NTuple::Item<double> m_ppipmiss;
97 NTuple::Item<double> m_ppimmiss;
98
99 NTuple::Array<double> m_ptrk_pmiss;
100 NTuple::Array<double> m_ptrk_pbmiss;
101 NTuple::Array<double> m_ptrk_pipmiss;
102 NTuple::Array<double> m_ptrk_pimmiss;
103
104
105 NTuple::Array<long> m_id_pmiss;
106 NTuple::Array<long> m_id_pbmiss;
107 NTuple::Array<long> m_id_pipmiss;
108 NTuple::Array<long> m_id_pimmiss;
109
110
111 NTuple::Array<double> m_eop;
112
113};
114
115#endif
StatusCode initialize()
StatusCode execute()
StatusCode finalize()
DQAPi2p2(const std::string &name, ISvcLocator *pSvcLocator)