All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
JetPFOsProcessor.h
Go to the documentation of this file.
1 #ifndef JetPFOsProcessor_h
2 #define JetPFOsProcessor_h 1
3 
4 #include "marlin/Processor.h"
5 #include <string>
6 
7 /** A simple processor for to save particles from jets to a PFO collection
8  *
9  * @author J. Tian, Junping
10  */
11 
12 class JetPFOsProcessor : public marlin::Processor {
13 
14  public:
15 
16  virtual marlin::Processor* newProcessor() { return new JetPFOsProcessor ; }
17 
18 
20 
21  /** Called at the begin of the job before anything is read.
22  * Use to initialize the processor, e.g. book histograms.
23  */
24  virtual void init() ;
25 
26  /** Called for every run.
27  */
28  virtual void processRunHeader( LCRunHeader* run ) ;
29 
30  /** Called for every event - the working horse.
31  */
32  virtual void processEvent( LCEvent * evt ) ;
33 
34 
35  virtual void check( LCEvent * evt ) ;
36 
37  /** Called after data processing for clean up.
38  */
39  virtual void end() ;
40 
41  protected:
42 
43  /** Input collection name.
44  */
45  std::string _colJet{};
46 
47  /** Output collection name.
48  */
49  std::string _colPFOsFromJet{};
50 
51 } ;
52 
53 #endif
54 
55 
56 
std::string _colJet
Input collection name.
virtual void check(LCEvent *evt)
virtual marlin::Processor * newProcessor()
std::string _colPFOsFromJet
Output collection name.
virtual void end()
Called after data processing for clean up.
A simple processor for to save particles from jets to a PFO collection.
virtual void processEvent(LCEvent *evt)
Called for every event - the working horse.
virtual void processRunHeader(LCRunHeader *run)
Called for every run.
virtual void init()
Called at the begin of the job before anything is read.