Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventProcessor_coherent_peak_skim.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DEventProcessor_coherent_peak_skim.h
4 // Created: Tue Mar 28 10:57:49 EDT 2017
5 // Creator: pmatt (on Linux pmattdesktop.jlab.org 2.6.32-696.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _DEventProcessor_coherent_peak_skim_
9 #define _DEventProcessor_coherent_peak_skim_
10 
11 #include <map>
12 
13 #include <JANA/JEventProcessor.h>
14 #include <JANA/JApplication.h>
15 
17 #include <HDDM/DEventWriterREST.h>
19 
20 #include "PID/DChargedTrack.h"
21 #include "PID/DBeamPhoton.h"
22 #include "PID/DEventRFBunch.h"
23 #include "GlueX.h"
24 
25 using namespace jana;
26 using namespace std;
27 
28 class DEventProcessor_coherent_peak_skim : public jana::JEventProcessor
29 {
30  public:
31  const char* className(void){return "DEventProcessor_coherent_peak_skim";}
32 
33  private:
34  jerror_t init(void); ///< Called once at program start.
35  jerror_t brun(jana::JEventLoop* locEventLoop, int32_t locRunNumber); ///< Called every time a new run number is detected.
36  jerror_t evnt(jana::JEventLoop* locEventLoop, uint64_t locEventNumber); ///< Called every event.
37 
38  bool Cut_ShowerEOverP(const DChargedTrackHypothesis* locChargedHypo) const;
39  double Step_TimeToNearInputTime(double locTimeToStep, double locTimeToStepTo) const;
40 
44  pair<double, double> dCoherentPeakRange;
45  map<Particle_t, map<DetectorSystem_t, double> > dTimingCutMap;
46 
47 };
48 
49 #endif // _DEventProcessor_coherent_peak_skim_
50 
map< Particle_t, map< DetectorSystem_t, double > > dTimingCutMap