Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCustomAction_dirc_tree.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DCustomAction_dirc_tree.h
4 //
5 
6 #ifndef _DCustomAction_dirc_tree_
7 #define _DCustomAction_dirc_tree_
8 
9 #include <string>
10 #include <iostream>
11 
12 #include "TH1.h"
13 #include "TLorentzRotation.h"
14 
15 #include "JANA/JEventLoop.h"
16 #include "JANA/JApplication.h"
17 
18 #include "DIRC/DDIRCGeometry.h"
19 #include "DIRC/DDIRCLut.h"
21 #include "ANALYSIS/DReaction.h"
24 
25 #include "DrcHit.h"
26 #include "DrcEvent.h"
27 
28 #include <TVector3.h>
29 #include <TROOT.h>
30 #include <TClonesArray.h>
31 
32 using namespace std;
33 using namespace jana;
34 
36 {
37 public:
38 
39  DCustomAction_dirc_tree(const DReaction* locReaction, bool locUseKinFitResultsFlag, Particle_t locPID, int locParticleComboStepIndex, string locActionUniqueString = "") :
40  DAnalysisAction(locReaction, "Custom_dirc_reactions", locUseKinFitResultsFlag, locActionUniqueString), dParticleComboStepIndex(locParticleComboStepIndex), dPID(locPID) {}
41 
42  void Initialize(JEventLoop* locEventLoop);
43 
44 private:
45 
46  bool Perform_Action(JEventLoop* locEventLoop, const DParticleCombo* locParticleCombo);
47 
48  // Optional: Useful utility functions.
50 
51  // need PID algos for DIRC
54  // DDIRCLut for likelihood calculation
56  deque<Particle_t> dFinalStatePIDs;
57 
58  // indices for particles to histogram
59  int dParticleComboStepIndex, dParticleIndex;
61 
62  bool DIRC_TRUTH_BARHIT, DIRC_FILL_BAR_MAP;
63  TClonesArray *fcEvent;
65  TTree *fTree;
66 };
67 
68 #endif // _DCustomAction_dirc_tree_
69 
const DParticleID * dParticleID
const DAnalysisUtilities * dAnalysisUtilities
deque< Particle_t > dFinalStatePIDs
DCustomAction_dirc_tree(const DReaction *locReaction, bool locUseKinFitResultsFlag, Particle_t locPID, int locParticleComboStepIndex, string locActionUniqueString="")
const DDIRCGeometry * dDIRCGeometry
Particle_t
Definition: particleType.h:12