All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
IsoLepTrainingProcessor.h
Go to the documentation of this file.
1 #ifndef IsoLepTrainingProcessor_h
2 #define IsoLepTrainingProcessor_h 1
3 
4 #include "marlin/Processor.h"
5 #include "lcio.h"
6 #include <string>
7 //#include <iostream>
8 #include <sstream>
9 
10 /** Example processor for marlin.
11  *
12  * If compiled with MARLIN_USE_AIDA
13  * it creates a histogram (cloud) of the MCParticle energies.
14  *
15  * <h4>Input - Prerequisites</h4>
16  * Needs the collection of MCParticles.
17  *
18  * <h4>Output</h4>
19  * A histogram.
20  *
21  * @param CollectionName Name of the MCParticle collection
22  *
23  * @author F. Gaede, DESY
24  * @version $Id: IsoLepTrainingProcessor.h,v 1.4 2005-10-11 12:57:39 gaede Exp $
25  */
26 
27 class IsoLepTrainingProcessor : public marlin::Processor {
28 
29  public:
30 
31  virtual Processor* newProcessor() { return new IsoLepTrainingProcessor ; }
32 
33 
35 
36  /** Called at the begin of the job before anything is read.
37  * Use to initialize the processor, e.g. book histograms.
38  */
39  virtual void init() ;
40 
41  /** Called for every run.
42  */
43  virtual void processRunHeader( LCRunHeader* run ) ;
44 
45  /** Called for every event - the working horse.
46  */
47  virtual void processEvent( LCEvent * evt ) ;
48 
49 
50  virtual void check( LCEvent * evt ) ;
51 
52 
53  /** Called after data processing for clean up.
54  */
55  virtual void end() ;
56 
57 
58  protected:
59 
60  /** Input collection name.
61  */
62  std::string _colMCP{} ;
63  std::string _colMCTL{} ;
64  std::string _colPFOs{} ;
65  std::string _colPVtx{} ;
66 
67  bool _mcdebug{};
68 
69  bool _is_lep_tune{};
70  bool _is_for_sig{};
71 
72  int _nRun{} ;
73  int _nEvt{} ;
74 
76 } ;
77 
78 #endif
Example processor for marlin.
std::string _colMCP
Input collection name.
virtual Processor * newProcessor()
virtual void processEvent(LCEvent *evt)
Called for every event - the working horse.
virtual void init()
Called at the begin of the job before anything is read.
virtual void check(LCEvent *evt)
virtual void end()
Called after data processing for clean up.
virtual void processRunHeader(LCRunHeader *run)
Called for every run.