MarlinUtil  1.12.1
SelectEvents.h
1 #ifndef SelectEvents_h
2 #define SelectEvents_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 
24 class SelectEvents : public Processor {
25 
26  public:
27 
28  virtual Processor* newProcessor() { return new SelectEvents ; }
29 
30 
31  SelectEvents() ;
32 
36  virtual void init() ;
37 
40  virtual void processRunHeader( LCRunHeader* run ) ;
41 
44  virtual void processEvent( LCEvent * evt ) ;
45 
46 
47  virtual void check( LCEvent * evt ) ;
48 
49 
52  virtual void end() ;
53 
54 
55  protected:
56 
57  int _nRun ;
58  int _nEvt ;
59 
60  int _firstEvent;
61  int _lastEvent;
62 
63 } ;
64 
65 #endif
66 
67 
68 
Select a range of events by setting the boolean 'SelectEvents' to true for the events processed by th...
Definition: SelectEvents.h:24