All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
AbsCalibr.h
Go to the documentation of this file.
1 #ifndef AbsCalibr_h
2 #define AbsCalibr_h 1
3 
4 #include <vector>
5 
6 #include "marlin/Processor.h"
7 #include "lcio.h"
8 
9 using namespace lcio ;
10 using namespace marlin ;
11 using namespace std ;
12 
13 namespace marlin {
14 
15 
16 /**
17 
18 \addtogroup Calibration Calibration
19 @{
20 Processor for absolute energy calibration.
21 === AbsCalibr ==== <br>
22  * Processor makes:<br>
23  *
24  * Output file for Absolute Energy Calibration <br>
25  * Create collection of energies of calorimeters <br>
26  *
27  * @author V. L. Morgunov, A Zhelezov (DESY/ITEP)<br>
28  *
29  *
30  */
31 
32  class AbsCalibr : public Processor {
33 
34  public:
35 
36  virtual Processor* newProcessor() { return new AbsCalibr ; }
37  AbsCalibr() ;
38  //-----------------------------------------------------------------------
39  virtual void init() ;
40  virtual void processRunHeader( LCRunHeader* run ) ;
41  virtual void processEvent( LCEvent * evt ) ;
42  virtual void check( LCEvent * evt ) ;
43  virtual void end() ;
44  //-----------------------------------------------------------------------
45 
46  protected:
47 
48  int _nRun{};
49  int _nEvt{};
50 
51  enum {
52  ECAL1=0,
54  HCAL
55  };
56 
57  vector<int> _nlayer{};
58  vector<float> _coeff{};
59  vector<float> _cuts{};
60  } ;
61 } //namespace marlin
62 
63 /** @} */
64 
65 
66 #endif
virtual Processor * newProcessor()
Definition: AbsCalibr.h:36