All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
TrackToRecoParticleConverter.h
Go to the documentation of this file.
1 #ifndef TrackToRecoParticleConverter_h
2 #define TrackToRecoParticleConverter_h 1
3 
4 #include "marlin/Processor.h"
5 #include <string>
6 
7 using namespace marlin ;
8 
9 /**
10  * Simple creation of ReconstructedParticle collection encapsulating tracks
11  *
12  * @author Tomohiko Tanabe, ICEPP, The University of Tokyo
13  * @author Taikan Suehara, Dept. of Physics, Kyushu University
14  * @version $Id$
15  */
16 
17 class TrackToRecoParticleConverter : public Processor
18 {
19 
20  public:
21 
22  virtual Processor* newProcessor() { return new TrackToRecoParticleConverter ; }
23 
25  virtual ~TrackToRecoParticleConverter() ;
26 
27  /** Called at the begin of the job before anything is read.
28  */
29  virtual void init() ;
30 
31  /** Called for every run.
32  */
33  virtual void processRunHeader( LCRunHeader* run ) ;
34 
35  /** Called for every event - the working horse.
36  */
37  virtual void processEvent( LCEvent * evt ) ;
38 
39 
40  virtual void check( LCEvent * evt ) ;
41 
42 
43  /** Called after data processing for clean up.
44  */
45  virtual void end() ;
46 
47  private:
48 
49  /** Input collection name.
50  */
51  std::string _inputTrackCollectionName{};
52  std::string _outputPFOCollectionName{};
53 } ;
54 
55 #endif
56 
57 
58 
Simple creation of ReconstructedParticle collection encapsulating tracks.