MarlinUtil  1.12.1
ConvertToMIPScale.h
1 #ifndef CONVERTTOMIPSCALE_H
2 #define CONVERTTOMIPSCALE_H 1
3 
4 #include <iostream>
5 #include <string>
6 #include <vector>
7 #include "marlin/Processor.h"
8 #include "lcio.h"
9 #include <EVENT/LCCollection.h>
10 #include <EVENT/CalorimeterHit.h>
11 #include <IMPL/CalorimeterHitImpl.h>
12 #include <IMPL/LCCollectionVec.h>
13 #include <IMPL/LCFlagImpl.h>
14 
15 
16 using namespace lcio;
17 using namespace marlin;
18 
19 
20 
21 class ConvertToMIPScale : public Processor {
22 
23  public:
24 
25  virtual Processor* newProcessor() { return new ConvertToMIPScale; }
26 
27 
29 
30  virtual void init();
31 
32  virtual void processRunHeader( LCRunHeader* run );
33 
34  virtual void processEvent( LCEvent * evt );
35 
36 
37  virtual void check( LCEvent * evt );
38 
39 
40  virtual void end();
41 
42 
43  protected:
44 
45  int _nRun;
46  int _nEvt;
47 
48  std::string _inputEcalCollection;
49  std::string _inputHcalCollection;
50 
51  std::string _outputEcalCollection;
52  std::string _outputHcalCollection;
53 
54 
55  float _cutEcal;
56  float _cutHcal;
57 
58  std::vector<float> _mipCoeffEcal;
59  std::vector<float> _mipCoeffHcal;
60 
61 };
62 
63 #endif
Definition: ConvertToMIPScale.h:21