All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
GammaGammaCandidateTruthFilter.h
Go to the documentation of this file.
1 #include <marlin/Processor.h>
2 
3 #include <EVENT/LCCollection.h>
4 #include <EVENT/Track.h>
5 #include <EVENT/LCRelation.h>
6 #include <EVENT/MCParticle.h>
7 #include <IMPL/LCCollectionVec.h>
8 #include "UTIL/LCRelationNavigator.h"
9 #include "UTIL/LCIterator.h"
10 #include "UTIL/Operators.h"
11 #include <UTIL/BitField64.h>
12 #include "UTIL/LCTrackerConf.h"
13 #include <UTIL/BitSet32.h>
14 
15 // STUFF needed for GEAR
16 #include <marlin/Global.h>
17 #include <gear/GEAR.h>
18 #include <gear/VXDParameters.h>
19 #include <gear/VXDLayerLayout.h>
20 #include "gear/BField.h"
21 
22 #include <iomanip>
23 
24 using namespace lcio ;
25 using namespace marlin ;
26 using namespace std ;
27 
28 /** GammaGammaCandidateTruthFilter processor
29  * Checks which GammaGammaCandidates are correct
30  * author: Graham Wilson (based on ILDPerformance/pi0)
31 */
32 
33 class GammaGammaCandidateTruthFilter : public Processor {
34 
35  public:
36 
37 
38  virtual Processor* newProcessor() { return new GammaGammaCandidateTruthFilter ; }
39 
40 
42 
43  /** Called at the begin of the job before anything is read.
44  * Use to initialize the processor, e.g. book histograms.
45  */
46  virtual void init();
47 
48  /** Called for every run.
49  */
50  virtual void processRunHeader( LCRunHeader* run ) ;
51 
52  /** Called for every event - the working horse.
53  */
54  virtual void processEvent( LCEvent * evt ) ;
55 
56 
57  virtual void check( LCEvent * evt ) ;
58 
59 
60  /** Called after data processing for clean up.
61  */
62  virtual void end() ;
63 
64  protected:
65 
66  int nEvt{};
67 
68 // float _bField ;
69 
70  private:
71 
72 
73  std::string _trueToReco{};
74  std::string _recoToTrue{};
75  std::string _mcParticleCollectionName{};
76  std::string _gammaGammaParticleCollectionName{};
77  std::string _ggResonanceName{};
78 
79  std::vector<ReconstructedParticle*>_pfovec{};
80  int _printing{};
81  std::string _outputParticleCollectionName{};
82 
83 } ;
84 
85 
GammaGammaCandidateTruthFilter processor Checks which GammaGammaCandidates are correct author: Graham...