All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
GammaGammaCandidateFinder.h
Go to the documentation of this file.
1 #include "marlin/Processor.h"
2 #include "EVENT/ReconstructedParticle.h"
3 #include "lcio.h"
4 #include <vector>
5 #include "IMPL/LCCollectionVec.h"
6 
7 using namespace lcio ;
8 
9 
10 /** GammaGammaCandidateFinder:<br>
11  *
12  * (modelled after ZFinder processor)
13  *
14  * @author Graham W. Wilson, University of Kansas
15  */
16 
17 class GammaGammaCandidateFinder : public marlin::Processor {
18 
19  public:
20 
21  virtual marlin::Processor* newProcessor() { return new GammaGammaCandidateFinder ; }
22 
24 
25  /** Called at the beginning 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  /** Called after data processing for clean up.
40  */
41  virtual void end() ;
42 
43  bool FindPFOs( LCEvent* evt );
44  void FindGammaGammaCandidates( LCCollectionVec *);
45 
46 private:
47 
48  std::vector<ReconstructedParticle*>_pfovec{};
49  int _printing{};
50  std::string _inputParticleCollectionName{};
51  std::string _outputParticleCollectionName{};
52  std::string _ggResonanceName{};
53  float _gammaMomentumCut{};
54  float _ggResonanceMass{};
55  float _dmggcut{};
56  double _fitProbabilityCut{};
57  int _ifitter{};
58 
59 protected:
60 
61 } ;
virtual marlin::Processor * newProcessor()
GammaGammaCandidateFinder:
std::vector< LCCollection * > LCCollectionVec
Definition: SiStripClus.h:55