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