All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
G2CD.hh
Go to the documentation of this file.
1 #ifndef _G2CD_hh_
2 #define _G2CD_hh_
3 
4 #include <string>
5 #include <iostream>
6 #include <fstream>
7 #include <marlin/Processor.h>
8 #include <EVENT/CalorimeterHit.h>
9 #include <TNtuple.h>
10 #include <TObject.h>
11 
12 #include <TTree.h>
13 #include <TFile.h>
14 #include <TF1.h>
15 #include <TH1F.h>
16 class TTree;
17 
18 // namespace CALICE {
19 
20 /**
21 \addtogroup CaloDigi CaloDigi
22 @{
23 
24 \addtogroup G2CD G2CD
25 @{
26 
27 */
28 
29 class G2CD : public marlin::Processor
30 {
31  public:
32 
33  G2CD(const G2CD&) = delete;
34  G2CD& operator=(const G2CD&) = delete;
35 
36  Processor* newProcessor() { return new G2CD ; }
37 
38  G2CD();
39 
40  ~G2CD() {};
41 
42  void init();
43 
44  void processEvent( LCEvent * evtP );
45 
46  void end();
47 
48  protected:
49  std::string _treeFileName{};
50  std::string _treeName{};
51  std::string _colName{};
52  std::vector<std::string> _hcalCollections{};
53  std::vector<std::string> _outputHcalCollections{};
54  std::vector<std::string> _ecalCollections{};
55  std::vector<std::string> _outputEcalCollections{};
56  std::vector<float> _ChargeSpatialDistri{};
57  std::vector<float> _thresholdHcal{};
58  std::vector<float> _calibCoeffEcal{};
59  std::vector<int> _ShowerPositionShiftID{}; //should be of the form deltaI, J, K
60  float _thresholdEcal{};
62  int _overwrite{};
63  int _DigiCellSize{};
67  TTree *_outputTree{};
68  TH1F *_NH1stLayer{}, *_NH8thLayer{};
69  TF1 * _QPolya{};
70 
71  int _Num{};
72  int _eventNr{};
73 
74  int _M{}, _S{}, _I{}, _J{}, _K{}, _Seg{};
75  float _PosX{}, _PosY{}, _PosZ{};
76  float _EDepo{}, _Charge{};
79  int _N1{}, _N2{}, _N3{};
80 
81  std::string _fileName{};
82  std::ostream *_output{};
83 };
84 
85 /** @} @}*/
86 
87 #endif
float _ChanceOfKink
Definition: G2CD.hh:66
Definition: G2CD.hh:29
std::vector< int > _ShowerPositionShiftID
Definition: G2CD.hh:59
int _NEcalThinLayer
Definition: G2CD.hh:61
TTree * _outputTree
Definition: G2CD.hh:67
std::string _treeFileName
Definition: G2CD.hh:49
float _PosZ
Definition: G2CD.hh:75
float _PosY
Definition: G2CD.hh:75
int _I
Definition: G2CD.hh:74
~G2CD()
Definition: G2CD.hh:40
std::vector< float > _thresholdHcal
Definition: G2CD.hh:57
std::vector< float > _calibCoeffEcal
Definition: G2CD.hh:58
TF1 * _QPolya
Definition: G2CD.hh:69
int _TotalMultiHit
Definition: G2CD.hh:78
int _N1
Definition: G2CD.hh:79
std::vector< std::string > _ecalCollections
Definition: G2CD.hh:54
float _PolyaParaC
Definition: G2CD.hh:65
int _NHit1mmCenter
Definition: G2CD.hh:77
TH1F * _NH1stLayer
Definition: G2CD.hh:68
void init()
Definition: G2CD.cc:175
void processEvent(LCEvent *evtP)
Definition: G2CD.cc:336
int _NHit1mmCorner
Definition: G2CD.hh:77
float _Charge
Definition: G2CD.hh:76
float _thresholdEcal
Definition: G2CD.hh:60
int _M
Definition: G2CD.hh:74
int _NHit1mm
Definition: G2CD.hh:77
int _overwrite
Definition: G2CD.hh:62
float _EDepo
Definition: G2CD.hh:76
int _Seg
Definition: G2CD.hh:74
float _KinkHitChargeBoost
Definition: G2CD.hh:66
TH1F * _NH8thLayer
Definition: G2CD.hh:68
int _N3
Definition: G2CD.hh:79
std::vector< float > _ChargeSpatialDistri
Definition: G2CD.hh:56
std::vector< std::string > _hcalCollections
Definition: G2CD.hh:52
int _S
Definition: G2CD.hh:74
float _PolyaParaB
Definition: G2CD.hh:65
std::vector< std::string > _outputHcalCollections
Definition: G2CD.hh:53
int _N2
Definition: G2CD.hh:79
void end()
Definition: G2CD.cc:630
std::string _fileName
Definition: G2CD.hh:81
int _eventNr
Definition: G2CD.hh:72
int _Num
Definition: G2CD.hh:71
int _UsingDefaultDetector
Definition: G2CD.hh:64
int _TotalNHit1mm
Definition: G2CD.hh:78
Processor * newProcessor()
Definition: G2CD.hh:36
int _J
Definition: G2CD.hh:74
float _PolyaParaA
Definition: G2CD.hh:65
G2CD()
Definition: G2CD.cc:56
G2CD & operator=(const G2CD &)=delete
std::string _colName
Definition: G2CD.hh:51
std::vector< std::string > _outputEcalCollections
Definition: G2CD.hh:55
float _PosX
Definition: G2CD.hh:75
int _NHit1mmSide
Definition: G2CD.hh:77
std::string _treeName
Definition: G2CD.hh:50
int _K
Definition: G2CD.hh:74
int _DigiCellSize
Definition: G2CD.hh:63
std::ostream * _output
Definition: G2CD.hh:82
int _TotalNHit
Definition: G2CD.hh:78