14 TH1F* h_h_p, TH1F* h_s_p, TH1F* h_c_p,
15 TH1F* h_h_l, TH1F* h_s_l, TH1F* h_c_l,
16 TH1F* h_h_t, TH1F* h_s_t, TH1F* h_c_t,
37 for(
size_t i_opdet=0; i_opdet<geom.
NOpDets(); i_opdet++){
46 const unsigned int event,
47 std::vector<sim::MCTrack>
const& mctrackVec,
48 std::vector<sim::SimPhotons>
const& simPhotonsVec,
56 for(
auto const& mctrack : mctrackVec){
57 if(mctrack.size()==0)
continue;
58 std::vector<float> dEdxVector(mctrack.size()-1,
fdEdx);
void InitializeCounters(geo::GeometryCore const &, opdet::OpDigiProperties const &)
FlashHypothesisCollection GetFlashHypothesisCollection(recob::Track const &track, std::vector< float > const &dEdxVector, Providers_t providers, phot::PhotonVisibilityService const &pvs, opdet::OpDigiProperties const &opdigip, float XOffset=0)
void SetOutputTree(TTree *, bool fill=true)
void RunComparison(const unsigned int run, const unsigned int event, std::vector< sim::MCTrack > const &, std::vector< sim::SimPhotons > const &, Providers_t providers, opdet::OpDigiProperties const &opdigip, phot::PhotonVisibilityService const &pvs)
std::vector< float > fOpDetPositions_Y
void FillTree(unsigned int, unsigned int, const std::vector< sim::MCTrack > &)
Provider const * get() const
Returns the provider with the specified type.
void GetCenter(double *xyz, double localz=0.0) const
FlashHypothesisCreator fFHCreator
SimPhotonCounter const & GetSimPhotonCounter(size_t)
std::vector< float > fOpDetPositions_Z
void AddSimPhotonsVector(std::vector< sim::SimPhotons > const &)
void SetOutputObjects(TTree *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, geo::Geometry const &)
const OpDetGeo & OpDet(unsigned int iopdet) const
Return the iopdet'th optical detector in the cryostat.
CryostatGeo const & Cryostat(geo::CryostatID const &cryoid) const
Returns the specified cryostat.
The geometry of one entire detector, as served by art.
Description of geometry of one entire detector.
FlashHypothesisComparison fFHCompare
void SetOutputObjects(TTree *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, TH1F *, const unsigned int, bool fill=true)
SimPhotonCounterAlg fSPCAlg
unsigned int NOpDets() const
Number of OpDets in the whole detector.
unsigned int fCounterIndex
sim::MCTrackCollectionAnaAlg fMCTAlg
Container for a list of pointers to providers.
void RunComparison(const unsigned int, const unsigned int, const FlashHypothesisCollection &, const SimPhotonCounter &, const std::vector< float > &, const std::vector< float > &)
void FillOpDetPositions(geo::Geometry const &)
Event finding and building.