Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCustomAction_ee_ShowerEoverP_cut.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DCustomAction_ee_ShowerEoverP_cut.h
4 // Created: Mon Mar 9 18:27:49 EDT 2015
5 // Creator: sdobbs (on Linux ifarm1401 2.6.32-431.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _DCustomAction_ee_ShowerEoverP_cut_
9 #define _DCustomAction_ee_ShowerEoverP_cut_
10 
11 #include <string>
12 #include <iostream>
13 
14 #include "JANA/JEventLoop.h"
15 #include "JANA/JApplication.h"
16 
18 #include "ANALYSIS/DReaction.h"
21 
22 #include "TH1D.h"
23 #include "TH2D.h"
24 
25 using namespace std;
26 using namespace jana;
27 
29 {
30  public:
31 
32  DCustomAction_ee_ShowerEoverP_cut(const DReaction* locReaction, bool locUseKinFitResultsFlag,
33  double in_BCAL_EP_min=0., double in_BCAL_EP_max=100.,
34  double in_FCAL_EP_min=0., double in_FCAL_EP_max=100., string locActionUniqueString = ""):
35  DAnalysisAction(locReaction, "CustomAction_ShowerEoverP_cut", locUseKinFitResultsFlag, locActionUniqueString),
36  dBCAL_EP_min(in_BCAL_EP_min),dBCAL_EP_max(in_BCAL_EP_max),dFCAL_EP_min(in_FCAL_EP_min),dFCAL_EP_max(in_FCAL_EP_max) {}
37 
38 
39  void Initialize(JEventLoop* locEventLoop);
40 
41  private:
42 
43  bool Perform_Action(JEventLoop* locEventLoop, const DParticleCombo* locParticleCombo);
44 
45  double dBCAL_EP_min, dBCAL_EP_max;
46  double dFCAL_EP_min, dFCAL_EP_max;
47 };
48 
49 #endif // _DCustomAction_ee_ShowerEoverP_cut_
50 
DCustomAction_ee_ShowerEoverP_cut(const DReaction *locReaction, bool locUseKinFitResultsFlag, double in_BCAL_EP_min=0., double in_BCAL_EP_max=100., double in_FCAL_EP_min=0., double in_FCAL_EP_max=100., string locActionUniqueString="")