Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCustomAction_p2gamma_unusedHists.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DCustomAction_p2gamma_unusedHists.h
4 // Created: Thu Jan 22 08:06:18 EST 2015
5 // Creator: jrsteven (on Linux ifarm1401 2.6.32-431.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _DCustomAction_p2gamma_unusedHists_
9 #define _DCustomAction_p2gamma_unusedHists_
10 
11 #include <map>
12 #include <string>
13 #include <iostream>
14 
15 #include "JANA/JEventLoop.h"
16 #include "JANA/JApplication.h"
17 
19 #include "ANALYSIS/DReaction.h"
22 
23 #include <FCAL/DFCALCluster.h>
24 #include <FCAL/DFCALHit.h>
25 #include <BCAL/DBCALCluster.h>
26 #include <BCAL/DBCALPoint.h>
27 
28 using namespace std;
29 using namespace jana;
30 
32 {
33  public:
34 
35  DCustomAction_p2gamma_unusedHists(const DReaction* locReaction, bool locUseKinFitResultsFlag, string locActionUniqueString = "") :
36  DAnalysisAction(locReaction, "Custom_p2gamma_unusedHists", locUseKinFitResultsFlag, locActionUniqueString){}
37 
38  void Initialize(JEventLoop* locEventLoop);
39 
40  private:
41 
42  bool Perform_Action(JEventLoop* locEventLoop, const DParticleCombo* locParticleCombo);
43  void FillTrack(const DChargedTrack* locChargedTrack, bool locMatch);
44  void FillShower(const DNeutralShower* locNeutralShower, bool locMatch, double locBeamPhotonTime, double locFlightTime);
45 
46  // Optional: Useful utility functions.
47  // const DAnalysisUtilities* dAnalysisUtilities;
48 
49  // need PID algos for SC matching
51 
52  //Store any histograms as member variables here
53 // TH2I *dMatch_E_DeltaT_All;
54 
55  // maps of histograms by track charge and match flag
56  map<bool, map<int, TH2I*> > dHistMap_TrackNhits_Theta;
57  map<bool, map<int, TH2I*> > dHistMap_TrackChiSq_Theta;
58  map<bool, map<int, TH2I*> > dHistMap_TrackFOM_Theta;
59  map<bool, map<int, TH2I*> > dHistMap_TrackP_Theta;
60  map<bool, map<int, TH2I*> > dHistMap_TrackPOCAXY;
61  map<bool, map<int, TH1I*> > dHistMap_TrackPOCAZ;
62  //map<bool, map<int, TH2I*> > dHistMap_TrackNposs_Theta;
63  //map<bool, map<int, TH2I*> > dHistMap_TrackHitFrac_Theta;
64 
65  // maps of histograms by detector system and match flag
67  map<bool, map<DetectorSystem_t, TH2I*> > dHistMap_ShowerEnergy_Theta;
68  map<bool, map<DetectorSystem_t, TH2I*> > dHistMap_ShowerPhi_Theta;
69  map<bool, map<DetectorSystem_t, TH1I*> > dHistMap_ShowerNclusters;
70  map<bool, map<DetectorSystem_t, TH1I*> > dHistMap_ShowerNhits;
71  map<bool, map<DetectorSystem_t, TH2I*> > dHistMap_ShowerMaxEnergy_Nhits;
72  map<bool, map<DetectorSystem_t, TH2I*> > dHistMap_ShowerDeltaT_Nhits;
73  map<bool, map<DetectorSystem_t, TH2I*> > dHistMap_ShowerDeltaT_E;
74  map<bool, map<DetectorSystem_t, TH2I*> > dHistMap_ShowerE_Theta;
75  map<bool, TH2I*> dHistMap_Layer1Energy_Theta;
76  map<bool, TH2I*> dHistMap_Layer2Energy_Theta;
77  map<bool, TH2I*> dHistMap_Layer3Energy_Theta;
78  map<bool, TH2I*> dHistMap_Layer4Energy_Theta;
79  map<bool, TH1I*> dHistMap_BCALShowerNcell;
80 
81 };
82 
83 #endif // _DCustomAction_p2gamma_unusedHists_
84 
map< bool, map< DetectorSystem_t, TH1I * > > dHistMap_ShowerNhits
map< bool, map< DetectorSystem_t, TH2I * > > dHistMap_ShowerDeltaT_Nhits
map< bool, map< DetectorSystem_t, TH1I * > > dHistMap_ShowerNclusters
map< bool, map< int, TH2I * > > dHistMap_TrackChiSq_Theta
map< bool, map< int, TH1I * > > dHistMap_TrackPOCAZ
map< bool, map< int, TH2I * > > dHistMap_TrackFOM_Theta
map< bool, map< int, TH2I * > > dHistMap_TrackNhits_Theta
map< bool, map< int, TH2I * > > dHistMap_TrackP_Theta
map< bool, map< DetectorSystem_t, TH2I * > > dHistMap_ShowerE_Theta
map< bool, map< DetectorSystem_t, TH2I * > > dHistMap_ShowerDeltaT_E
map< bool, map< DetectorSystem_t, TH2I * > > dHistMap_ShowerEnergy_Theta
map< bool, map< int, TH2I * > > dHistMap_TrackPOCAXY
map< bool, map< DetectorSystem_t, TH2I * > > dHistMap_ShowerMaxEnergy_Nhits
DCustomAction_p2gamma_unusedHists(const DReaction *locReaction, bool locUseKinFitResultsFlag, string locActionUniqueString="")
map< bool, map< DetectorSystem_t, TH2I * > > dHistMap_ShowerPhi_Theta