6 #ifndef _JEventProcessor_BCAL_Hadronic_Eff_
7 #define _JEventProcessor_BCAL_Hadronic_Eff_
9 #include <JANA/JEventProcessor.h>
10 #include <JANA/JApplication.h>
44 const char*
className(
void){
return "JEventProcessor_BCAL_Hadronic_Eff";}
48 jerror_t brun(jana::JEventLoop* locEventLoop,
int locRunNumber);
49 jerror_t evnt(jana::JEventLoop* locEventLoop, uint64_t locEventNumber);
53 double Calc_AverageSector(
const map<
int, set<const DBCALPoint*> >& locBCALPoints);
54 double Calc_ProjectedSector(
int locLayer,
const map<
int, map<
int, set<const DBCALPoint*> > >& locSortedPoints);
56 pair<const DBCALPoint*, double> Find_NearestPoint(
double locProjectedSector,
const map<
int, set<const DBCALPoint*> >& locLayerBCALPoints,
const DBCALCluster* locBCALCluster,
double locTimeCut = -1.0);
57 pair<const DBCALUnifiedHit*, double> Find_NearestHit(
double locProjectedSector,
const map<
int, set<const DBCALUnifiedHit*> >& locLayerUnifiedHits,
const DBCALCluster* locBCALCluster,
const DBCALGeometry *locBCALGeom,
double locTimeCut = -1.0);
59 const DBCALPoint* Find_ClosestTimePoint(
const set<const DBCALPoint*>& locPoints,
const DBCALCluster* locBCALCluster,
double locTimeCut);
62 template <
typename DType> DType Calc_DeltaSector(DType locHitSector, DType locProjectedSector)
const;
94 double locDeltaSector = double(locHitSector) - locProjectedSector;
95 if(locDeltaSector > DType(96))
96 locDeltaSector -= DType(192);
97 if(locDeltaSector < -DType(96))
98 locDeltaSector += DType(192);
99 return locDeltaSector;
102 #endif // _JEventProcessor_BCAL_Hadronic_Eff_
DTreeInterface * dTreeInterface
int dMinHitRingsPerCDCSuperlayer
JEventProcessor_BCAL_Hadronic_Eff()
vector< double > effective_velocities
DType Calc_DeltaSector(DType locHitSector, DType locProjectedSector) const
map< int, map< bool, TH1I * > > dHistMap_HitTotal
~JEventProcessor_BCAL_Hadronic_Eff()
unsigned int dMinNumTrackHits
DCutAction_TrackHitPattern * dCutAction_TrackHitPattern
static thread_local DTreeFillData dTreeFillData
const char * className(void)
int dHistFoundDeltaSector