BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
TofShower.h
Go to the documentation of this file.
1#ifndef TOFSHOWER_H
2#define TOFSHOWER_H
3
5#include "GaudiKernel/NTuple.h"
6#include "GaudiKernel/PropertyMgr.h"
7#include <vector>
8
9#include <string>
10
11
12
13using namespace std;
14class Identifier;
15class TofData;
16
17
18
19
20
21class TofShower {
22 public:
23 TofShower();
25 public:
26 // Get Neighbors of a scintillator
27 vector<Identifier> getNeighbors(const Identifier& id);
28 vector<Identifier> getNextNeighbors(const Identifier& id);
29 vector<Identifier> getMRPC_neighbours(const Identifier& id);
30 int get_mrpc_partid_neighbour(string which,int stripid,int layer);
31 int get_mrpc_stripid_neighbour(string which,int stripid,int layer);
32
33
34
35 void energyCalib(vector<TofData*>& tofDataVec, RecTofTrackCol* recTofTrackCol);
36 void findSeed(vector<TofData*>& tofDataVec);
37 void findShower(vector<TofData*>& tofDataVec, RecTofTrackCol* recTofTrackCol,double);
38 void BookNtuple(NTuple::Tuple*& tuple, NTuple::Tuple*& tuple1, NTuple::Tuple*& tuple2);
39
40
41
42
43 public:
44 void readCalibPar();
45 double ecalib(const int nsci) const;
46 void setEcalib(const int nsci, const double ecalib);
47
48 double calib(const int n, const int m) const;
49 void setCalib(const int n, const int m, const double ecalib);
50
51 inline double calibConst() const { return m_calibConst; }
52 inline void setCalibConst(const double cal) { m_calibConst = cal; }
53
54 inline bool isData() const { return m_isData; }
55 inline void setIsData(const bool isData) { m_isData = isData; }
56
57 private:
58 vector<Identifier> m_seedVec;
59 double m_ecalib[176];
60 double m_calib[176][4];
61 double m_calibConst;
62 bool m_isData;
63
64 private:
65 PropertyMgr m_propMgr;
66 bool m_output;
67 NTuple::Tuple* m_tuple;
68 NTuple::Item<long> m_part;
69 NTuple::Item<long> m_layer;
70 NTuple::Item<long> m_im;
71 NTuple::Item<long> m_end;
72 NTuple::Item<double> m_zpos;
73 NTuple::Item<double> m_adc1;
74 NTuple::Item<double> m_adc2;
75 NTuple::Item<double> m_tdc1;
76 NTuple::Item<double> m_tdc2;
77 NTuple::Item<double> m_energy;
78
79 NTuple::Tuple* m_tuple1;
80 NTuple::Item<long> m_shower_part;
81 NTuple::Item<long> m_shower_layer;
82 NTuple::Item<long> m_shower_im;
83 NTuple::Item<double> m_shower_zpos;
84 NTuple::Item<double> m_shower_energy;
85
86 NTuple::Tuple* m_tuple2;
87 NTuple::Item<double> m_seed_dist;
88};
89#endif
std::string cal
Definition: CalibModel.cxx:41
const Int_t n
ObjectVector< RecTofTrack > RecTofTrackCol
Definition: RecTofTrack.h:33
void setCalibConst(const double cal)
Definition: TofShower.h:52
double calib(const int n, const int m) const
Definition: TofShower.cxx:1103
double ecalib(const int nsci) const
Definition: TofShower.cxx:1087
void readCalibPar()
Definition: TofShower.cxx:1064
void findSeed(vector< TofData * > &tofDataVec)
Definition: TofShower.cxx:626
void BookNtuple(NTuple::Tuple *&tuple, NTuple::Tuple *&tuple1, NTuple::Tuple *&tuple2)
Definition: TofShower.cxx:33
void setEcalib(const int nsci, const double ecalib)
Definition: TofShower.cxx:1096
int get_mrpc_stripid_neighbour(string which, int stripid, int layer)
Definition: TofShower.cxx:1171
vector< Identifier > getMRPC_neighbours(const Identifier &id)
Definition: TofShower.cxx:528
void setIsData(const bool isData)
Definition: TofShower.h:55
void energyCalib(vector< TofData * > &tofDataVec, RecTofTrackCol *recTofTrackCol)
Definition: TofShower.cxx:71
double calibConst() const
Definition: TofShower.h:51
vector< Identifier > getNextNeighbors(const Identifier &id)
Definition: TofShower.cxx:471
bool isData() const
Definition: TofShower.h:54
void setCalib(const int n, const int m, const double ecalib)
Definition: TofShower.cxx:1112
vector< Identifier > getNeighbors(const Identifier &id)
Definition: TofShower.cxx:391
void findShower(vector< TofData * > &tofDataVec, RecTofTrackCol *recTofTrackCol, double)
Definition: TofShower.cxx:745
~TofShower()
Definition: TofShower.h:24
int get_mrpc_partid_neighbour(string which, int stripid, int layer)
Definition: TofShower.cxx:1130