All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
photonCorrectionProcessor.h
Go to the documentation of this file.
1 #ifndef photonCorrectionProcessor_h
2 #define photonCorrectionProcessor_h 1
3 #include "marlin/Processor.h"
4 
5 #include "photonCorrector.h"
6 #include "TFile.h"
7 #include "TH2F.h"
8 
9 //using namespace marlin ;
10 
11 class photonCorrectionProcessor : public marlin::Processor {
12 
13  public:
14 
15  virtual Processor* newProcessor() { return new photonCorrectionProcessor ; }
16 
18 
19  /** Called at the begin of the job before anything is read.
20  * Use to initialize the processor, e.g. book histograms.
21  */
22  virtual void init() ;
23 
24  /** Called for every run.
25  */
26  virtual void processRunHeader( LCRunHeader* run ) ;
27 
28  /** Called for every event - the working horse.
29  */
30  virtual void processEvent( LCEvent * evt ) ;
31 
32  virtual void check( LCEvent * evt ) ;
33 
34  /** Called after data processing for clean up.
35  */
36  virtual void end() ;
37 
40 
41  protected:
42 
44 
47 
49  float _nominalEnergy{};
50 
51  std::string _inputCollection{};
52 
55  float _assumed_endZ{};
56 
57  std::vector <float> _energyCorr_linearise{};
58  std::vector <float> _energyCorr_barrelPhi{};
59  std::vector <float> _energyCorr_costheta{};
60  std::vector <float> _energyCorr_endcap{};
61  std::vector <float> _phiCorr_barrel{};
62  std::vector <float> _thetaCorr_barrel{};
63  std::vector <float> _thetaCorr_endcap{};
64 
65 };
66 
67 
68 #endif
69 
70 
71 
virtual void processRunHeader(LCRunHeader *run)
Called for every run.
virtual void end()
Called after data processing for clean up.
std::vector< float > _phiCorr_barrel
virtual void processEvent(LCEvent *evt)
Called for every event - the working horse.
virtual Processor * newProcessor()
photonCorrectionProcessor & operator=(const photonCorrectionProcessor &)=delete
std::vector< float > _energyCorr_linearise
virtual void init()
Called at the begin of the job before anything is read.
std::vector< float > _thetaCorr_endcap
std::vector< float > _thetaCorr_barrel
std::vector< float > _energyCorr_endcap
virtual void check(LCEvent *evt)
std::vector< float > _energyCorr_costheta
std::vector< float > _energyCorr_barrelPhi