All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
PrepareRECParticles.h
Go to the documentation of this file.
1 #ifndef PrepareRECParticles_h
2 #define PrepareRECParticles_h 1
3 
4 #include "marlin/Processor.h"
5 #include "lcio.h"
6 #include <string>
7 #include "TTree.h"
8 #include "TNtuple.h"
9 #include "TH1D.h"
10 #include "TFile.h"
11 #include "TMath.h"
12 #include "TSystem.h"
13 #include <EVENT/MCParticle.h>
14 #include <EVENT/ReconstructedParticle.h>
15 
16 using namespace lcio ;
17 using namespace marlin ;
18 
19 
20 /** PreProcessor for TauFinder to provide necessary information
21  * and create universal input for TauFinder, so that the TauFinder
22  * can run on various input information
23  *
24  * @author A. Muennich, CERN
25  *
26  */
27 
28 class PrepareRECParticles : public Processor {
29 
30  public:
31 
32  virtual Processor* newProcessor() { return new PrepareRECParticles ; }
33 
34 
37  PrepareRECParticles& operator=(const PrepareRECParticles&) = delete;
38 
39  /** Called at the begin of the job before anything is read.
40  * Use to initialize the processor, e.g. book histograms.
41  */
42  virtual void init() ;
43 
44  /** Called for every run.
45  */
46  virtual void processRunHeader( LCRunHeader* run ) ;
47 
48  /** Called for every event - the working horse.
49  */
50  virtual void processEvent( LCEvent * evt ) ;
51 
52 
53  virtual void check( LCEvent * evt ) ;
54 
55 
56  /** Called after data processing for clean up.
57  */
58  virtual void end() ;
59 
60 
61  protected:
62 
63  /** Input collection name.
64  */
65  std::string _colNameMC{}, _colNameTrack{};
66  std::string _colNameMCTruth{}, _colNameTrackTruth{};
67  std::string _outcolMC{}, _outcolTracks{};
68  double _bField=0.0;
69  int _nRun=-1;
70  int _nEvt=-1;
71 
72 
73 } ;
74 
75 #endif
76 
77 
78 
virtual Processor * newProcessor()
PreProcessor for TauFinder to provide necessary information and create universal input for TauFinder...