All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
IsolatedPhotonTaggingProcessor.h
Go to the documentation of this file.
1 #ifndef IsolatedPhotonTaggingProcessor_h
2 #define IsolatedPhotonTaggingProcessor_h 1
3 
4 #include "marlin/Processor.h"
5 #include "lcio.h"
6 #include <string>
7 //#include <EVENT/LCCollection.h>
8 //#include <EVENT/ReconstructedParticle.h>
9 
10 #include "TMVA/Reader.h"
11 
12 /** processor for isolated photon tagging.
13  * @version $Id: IsolatedPhotonTaggingProcessor.h,v 1.0 2020-07-05 12:50:00 Junping & Shin-ichi Exp $
14  */
15 
16 class IsolatedPhotonTaggingProcessor : public marlin::Processor {
17 
18  public:
19 
20  virtual marlin::Processor* newProcessor() { return new IsolatedPhotonTaggingProcessor ; }
21 
22 
24 
25  /** Called at the begin of the job before anything is read.
26  * Use to initialize the processor, e.g. book histograms.
27  */
28  virtual void init() ;
29 
30  /** Called for every run.
31  */
32  virtual void processRunHeader( LCRunHeader* run ) ;
33 
34  /** Called for every event - the working horse.
35  */
36  virtual void processEvent( LCEvent * evt ) ;
37 
38 
39  virtual void check( LCEvent * evt ) ;
40 
41 
42  /** Called after data processing for clean up.
43  */
44  virtual void end() ;
45 
46 
47  protected:
48 
49  /** Input collection name.
50  */
51  std::string _colPFOs{};
52  std::string _colNewPFOs{};
53  std::string _colPhotons{};
54  std::string _isolated_photon_weights{};
55 
57  float _minE{};
58 
59  float _cosConeSmall{};
60  float _cosConeLarge{};
61 
62  std::vector<TMVA::Reader*> _readers{};
65 
67 } ;
68 
69 #endif
70 
71 
72 
virtual void end()
Called after data processing for clean up.
virtual void processRunHeader(LCRunHeader *run)
Called for every run.
std::vector< TMVA::Reader * > _readers
virtual marlin::Processor * newProcessor()
virtual void init()
Called at the begin of the job before anything is read.
processor for isolated photon tagging.
std::string _colPFOs
Input collection name.
virtual void processEvent(LCEvent *evt)
Called for every event - the working horse.