Marlin  1.10.0
 All Classes Namespaces Functions Variables Enumerations Friends Pages
SimpleFastMCProcessor.h
1 #ifndef SimpleFastMCProcessor_h
2 #define SimpleFastMCProcessor_h 1
3 
4 #include "marlin/Processor.h"
5 #include "marlin/IRecoParticleFactory.h"
6 
7 #include "lcio.h"
8 #include <string>
9 
10 
11 
12 using namespace lcio ;
13 
14 namespace marlin{
15 
16 
71 
72  public:
73 
75  virtual Processor* newProcessor() { return new SimpleFastMCProcessor ; }
76 
77 
79 
80 
83  virtual void init() ;
84 
87  virtual void processRunHeader( LCRunHeader* run ) ;
88 
91  virtual void processEvent( LCEvent * evt ) ;
92 
95  virtual void check( LCEvent * evt ) ;
96 
99  virtual void end() ;
100 
101 
102  protected:
103 
105  std::string _inputCollectionName ;
106 
109  std::string _mcTruthCollectionName ;
110 
112  float _momentumCut ;
113 
115  FloatVec _initChargedRes ;
116 
118  FloatVec _initPhotonRes ;
119 
122 
125 
126  int _nRun ;
127  int _nEvt ;
128 
129  } ;
130 
131 } // end namespace
132 
133 #endif
134 
135 
FloatVec _initNeutralHadronRes
Resolutions of photons.
Definition: SimpleFastMCProcessor.h:121
FloatVec _initChargedRes
Resolutions of charged particles.
Definition: SimpleFastMCProcessor.h:115
virtual Processor * newProcessor()
Returns a new instance of the processor.
Definition: SimpleFastMCProcessor.h:75
float _momentumCut
Momentum cut in GeV.
Definition: SimpleFastMCProcessor.h:112
IRecoParticleFactory * _factory
The particle factory.
Definition: SimpleFastMCProcessor.h:124
std::string _inputCollectionName
Input collection name.
Definition: SimpleFastMCProcessor.h:105
A simple smearing "Monte Carlo" processor.
Definition: SimpleFastMCProcessor.h:70
std::string _recoParticleCollectionName
Ouput collection names.
Definition: SimpleFastMCProcessor.h:108
FloatVec _initPhotonRes
Resolutions of photons.
Definition: SimpleFastMCProcessor.h:118
Interface for a factory class that creates a ReconstructedParticle from an MCParticle.
Definition: IRecoParticleFactory.h:19
Base class for Marlin processors.
Definition: Processor.h:63