Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCustomAction_CutNoDetectorHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DCustomAction_CutNoDetectorHit.h
4 // Created: Mon Feb 20 16:01:16 EST 2017
5 // Creator: pmatt (on Linux pmattdesktop.jlab.org 2.6.32-642.13.1.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _DCustomAction_CutNoDetectorHit_
9 #define _DCustomAction_CutNoDetectorHit_
10 
11 #include <string>
12 #include <iostream>
13 
14 #include "TH2I.h"
15 
16 #include "JANA/JEventLoop.h"
17 #include "JANA/JApplication.h"
18 
19 #include "BCAL/DBCALShower.h"
20 #include "FCAL/DFCALShower.h"
21 #include "TOF/DTOFPoint.h"
22 #include "START_COUNTER/DSCHit.h"
24 #include "PID/DParticleID.h"
25 
27 #include "ANALYSIS/DReaction.h"
30 
31 using namespace std;
32 using namespace jana;
33 
35 {
36  public:
37 
38  DCustomAction_CutNoDetectorHit(const DReaction* locReaction, string locActionUniqueString = "") :
39  DAnalysisAction(locReaction, "Custom_CutDetectorHit", false, locActionUniqueString),
40  dNum2DPBins(250), dNum2DThetaBins(280), dNum2DDeltaPhiBins(360), dNum2DTrackDOCABins(1000), dNum2DDeltaZBins(300), dNum2DSCZBins(240),
41  dNum2DBCALZBins(450), dMinP(0.0), dMaxP(10.0), dMinTheta(0.0), dMaxTheta(140.0), dMinDeltaPhi(-60.0), dMaxDeltaPhi(60.0),
42  dSCMatchMinDeltaPhi(-180.0), dSCMatchMaxDeltaPhi(180.0), dMinTrackDOCA(0.0), dMaxTrackMatchDOCA(200.0), dMinDeltaZ(-60.0), dMaxDeltaZ(60.0) {}
43 
44  void Initialize(JEventLoop* locEventLoop);
45  void Reset_NewEvent(void){}; //RESET HISTOGRAM DUPLICATE-CHECK TRACKING HERE!!
46 
47  private:
48 
49  bool Perform_Action(JEventLoop* locEventLoop, const DParticleCombo* locParticleCombo);
50 
51  unsigned int dNum2DPBins, dNum2DThetaBins, dNum2DDeltaPhiBins, dNum2DTrackDOCABins, dNum2DDeltaZBins, dNum2DSCZBins, dNum2DBCALZBins;
52  float dMinP, dMaxP, dMinTheta, dMaxTheta, dMinDeltaPhi, dMaxDeltaPhi, dSCMatchMinDeltaPhi, dSCMatchMaxDeltaPhi;
53  float dMinTrackDOCA, dMaxTrackMatchDOCA, dMinDeltaZ, dMaxDeltaZ;
54 
55  //Store any histograms as member variables here
59 
60  //SC MATCHING
64 
65  //TOF MATCHING
68 
69  //FCAL MATCHING
72 
73  //BCAL MATCHING
79 };
80 
81 #endif // _DCustomAction_CutNoDetectorHit_
82 
DCustomAction_CutNoDetectorHit(const DReaction *locReaction, string locActionUniqueString="")
Particle_t
Definition: particleType.h:12