Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JEventProcessor_pi0fcalskim.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: JEventProcessor_pi0fcalskim.h
4 // Created: Mon Dec 1 14:57:11 EST 2014
5 // Creator: shepherd (on Linux ifarm1101 2.6.32-220.7.1.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _JEventProcessor_pi0fcalskim_
9 #define _JEventProcessor_pi0fcalskim_
10 
11 #include <JANA/JEventProcessor.h>
13 
14 class TTree;
15 class DFCALCluster;
16 
17 #include <vector>
18 
19 class JEventProcessor_pi0fcalskim:public jana::JEventProcessor{
20  public:
21 
22  enum { kMaxHits = 500, kMaxClus = 20 };
23 
26  const char* className(void){return "JEventProcessor_pi0fcalskim";}
27 
28  private:
29  jerror_t init(void); ///< Called once at program start.
30  jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
31  jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
32  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
33  jerror_t fini(void); ///< Called after last event of last event source has been processed.
34 
35  void writeClustersToRoot( const vector< const DFCALCluster* > clusVec );
36 
37  double MIN_MASS;
38  double MAX_MASS;
39  double MIN_E;
40  double MIN_R;
41  double MAX_DT;
42  double MAX_ETOT;
44 
47 
48  TTree* m_tree;
49  int m_nClus;
51  float m_px[kMaxClus];
52  float m_py[kMaxClus];
53  float m_pz[kMaxClus];
54 
55  int m_nHit;
57  float m_e[kMaxHits];
58 
60 };
61 
62 #endif // _JEventProcessor_pi0fcalskim_
63 
jerror_t init(void)
Called once at program start.
jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber)
Called every event.
void writeClustersToRoot(const vector< const DFCALCluster * > clusVec)
jerror_t fini(void)
Called after last event of last event source has been processed.
jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber)
Called everytime a new run number is detected.
jerror_t erun(void)
Called everytime run number changes, provided brun has been called.