BOSS 8.0.0
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
4#include "GaudiKernel/NTuple.h"
5#include "GaudiKernel/PropertyMgr.h"
6#include "TofRecEvent/RecTofTrack.h"
7#include <string>
8#include <vector>
9
10using namespace std;
11class Identifier;
12class TofData;
13
14class TofShower {
15public:
16 TofShower();
17 ~TofShower() { ; }
18
19public:
20 // Get Neighbors of a scintillator
21 vector<Identifier> getNeighbors( const Identifier& id );
22 vector<Identifier> getNextNeighbors( const Identifier& id );
23
24 void energyCalib( vector<TofData*>& tofDataVec, RecTofTrackCol* recTofTrackCol );
25 void findSeed( vector<TofData*>& tofDataVec );
26 void findShower( vector<TofData*>& tofDataVec, RecTofTrackCol* recTofTrackCol, double );
27 void BookNtuple( NTuple::Tuple*& tuple, NTuple::Tuple*& tuple1, NTuple::Tuple*& tuple2 );
28
29public:
30 void readCalibPar();
31 double ecalib( const int nsci ) const;
32 void setEcalib( const int nsci, const double ecalib );
33
34 double calib( const int n, const int m ) const;
35 void setCalib( const int n, const int m, const double ecalib );
36
37 inline double calibConst() const { return m_calibConst; }
38 inline void setCalibConst( const double cal ) { m_calibConst = cal; }
39
40 inline bool isData() const { return m_isData; }
41 inline void setIsData( const bool isData ) { m_isData = isData; }
42
43private:
44 vector<Identifier> m_seedVec;
45 double m_ecalib[176];
46 double m_calib[176][4];
47 double m_calibConst;
48 bool m_isData;
49
50private:
51 bool m_output;
52 NTuple::Tuple* m_tuple;
53 NTuple::Item<long> m_part;
54 NTuple::Item<long> m_layer;
55 NTuple::Item<long> m_im;
56 NTuple::Item<long> m_end;
57 NTuple::Item<double> m_zpos;
58 NTuple::Item<double> m_adc1;
59 NTuple::Item<double> m_adc2;
60 NTuple::Item<double> m_tdc1;
61 NTuple::Item<double> m_tdc2;
62 NTuple::Item<double> m_energy;
63
64 NTuple::Tuple* m_tuple1;
65 NTuple::Item<long> m_shower_part;
66 NTuple::Item<long> m_shower_layer;
67 NTuple::Item<long> m_shower_im;
68 NTuple::Item<double> m_shower_zpos;
69 NTuple::Item<double> m_shower_energy;
70
71 NTuple::Tuple* m_tuple2;
72 NTuple::Item<double> m_seed_dist;
73};
74#endif
std::string cal
const Int_t n
NTuple::Tuple * m_tuple1
NTuple::Array< double > m_layer
void setCalibConst(const double cal)
Definition TofShower.h:38
double calib(const int n, const int m) const
double ecalib(const int nsci) const
void readCalibPar()
void findSeed(vector< TofData * > &tofDataVec)
void BookNtuple(NTuple::Tuple *&tuple, NTuple::Tuple *&tuple1, NTuple::Tuple *&tuple2)
Definition TofShower.cxx:31
void setEcalib(const int nsci, const double ecalib)
void setIsData(const bool isData)
Definition TofShower.h:41
void energyCalib(vector< TofData * > &tofDataVec, RecTofTrackCol *recTofTrackCol)
Definition TofShower.cxx:66
double calibConst() const
Definition TofShower.h:37
vector< Identifier > getNextNeighbors(const Identifier &id)
bool isData() const
Definition TofShower.h:40
void setCalib(const int n, const int m, const double ecalib)
vector< Identifier > getNeighbors(const Identifier &id)
void findShower(vector< TofData * > &tofDataVec, RecTofTrackCol *recTofTrackCol, double)