All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Sphere.h
Go to the documentation of this file.
1 #ifndef MyProcessor_h
2 #define MyProcessor_h 1
3 
4 #include "marlin/Processor.h"
5 #include "lcio.h"
6 #include <string>
7 
8 
9 using namespace lcio ;
10 using namespace marlin ;
11 
12 
13 /** Processor that calculates sphericity,aplanarity, C and D event parametres
14  * for detail explanation look
15  * <li> <a href="www.desy.de/~aplin/KP_spher.pdf">documentation</a></li>
16  * @author P.K , DESY
17  */
18 class Sphere: public Processor {
19 
20  public:
21 
22  virtual Processor* newProcessor() { return new Sphere ; }
23 
24 
25  Sphere() ;
26 
27  /** Called at the begin of the job before anything is read.
28  * Use to initialize the processor, e.g. book histograms.
29  */
30  virtual void init() ;
31 
32  /** Called for every run.
33  */
34  virtual void processRunHeader( LCRunHeader* run ) ;
35 
36  /** Called for every event - the working horse.
37  */
38  virtual void processEvent( LCEvent * evt ) ;
39 
40 
41  virtual void check( LCEvent * evt ) ;
42 
43 
44  /** Called after data processing for clean up.
45  */
46  virtual void end() ;
47 
48 
49  protected:
50 
51  /** Input collection name.
52  */
53  std::string _colName{};
54  /** Name of the parameter to store egenvalues of sphericity tensor
55  */
56  std::string _dumpobjectname{};
57  float _r{};
58  int _nRun{};
59  int _nEvt{};
60 } ;
61 
62 #endif
63 
64 
65 
virtual Processor * newProcessor()
Definition: Sphere.h:22
Processor that calculates sphericity,aplanarity, C and D event parametres for detail explanation look...
Definition: Sphere.h:18