1 #ifndef BEAMFLASHTRACKMATCHTAGGERALG_H 2 #define BEAMFLASHTRACKMATCHTAGGERALG_H 35 class BeamFlashTrackMatchTaggerAlg;
50 std::vector<recob::Track>
const&,
51 std::vector<anab::CosmicTag>&,
61 std::vector<recob::OpFlash>
const&,
62 std::vector<recob::Track>
const&,
69 std::vector<recob::OpFlash>
const&,
70 std::vector<simb::MCParticle>
const&,
127 leaf_structure(
"run/i:event/i:flash_index/i:flash_totalPE/F:flash_y/F:flash_sigmay/F:flash_z/F:flash_sigmaz/F:flash_nOpDet/i:hyp_index/i:hyp_totalPE/F:hyp_y/F:hyp_sigmay/F:hyp_z/F:hyp_sigmaz/F:trk_startx/F:trk_starty/F:trk_startz/F:trk_endx/F:trk_endy/F:trk_endz/F:chi2/F"){}
162 std::vector<float> & lightHypothesis,
163 float & totalHypothesisPE,
166 float const& PromptMIPScintYield,
170 float const& totalHypothesisPE,
186 float CalculateChi2(std::vector<float>
const&,std::vector<float>
const&);
194 CompatibilityResultType,
195 std::ostream* output=&std::cout);
CompatibilityResultType CheckCompatibility(std::vector< float > const &lightHypothesis, const recob::OpFlash *flashPointer, geo::GeometryCore const &geom)
void reconfigure(fhicl::ParameterSet const &p)
BeamFlashTrackMatchTaggerAlg(fhicl::ParameterSet const &p)
FlashComparisonProperties()
float fCumulativeChannelThreshold
enum anab::cosmic_tag_id CosmicTagID_t
bool fNormalizeHypothesisToFlash
void RunHypothesisComparison(unsigned int const, unsigned int const, std::vector< recob::OpFlash > const &, std::vector< recob::Track > const &, Providers_t, phot::PhotonVisibilityService const &, opdet::OpDigiProperties const &)
float CalculateChi2(std::vector< float > const &, std::vector< float > const &)
struct cosmic::BeamFlashTrackMatchTaggerAlg::FlashComparisonProperties FlashComparisonProperties_t
void RunCompatibilityCheck(std::vector< recob::OpFlash > const &, std::vector< recob::Track > const &, std::vector< anab::CosmicTag > &, std::vector< size_t > &, Providers_t, phot::PhotonVisibilityService const &, opdet::OpDigiProperties const &)
std::vector< float > GetMIPHypotheses(recob::Track const &track, Providers_t providers, phot::PhotonVisibilityService const &pvs, opdet::OpDigiProperties const &, float XOffset=0)
const anab::CosmicTagID_t COSMIC_TYPE_OUTSIDEDRIFT
std::vector< float > cOpDetVector_flash
Provides recob::Track data product.
void NormalizeLightHypothesis(std::vector< float > &lightHypothesis, float const &totalHypothesisPE, geo::GeometryCore const &geom)
void AddLightFromSegment(TVector3 const &pt1, TVector3 const &pt2, std::vector< float > &lightHypothesis, float &totalHypothesisPE, geo::GeometryCore const &geom, phot::PhotonVisibilityService const &pvs, float const &PromptMIPScintYield, float XOffset)
FlashComparisonProperties_t cFlashComparison_p
bool fMakeOutsideDriftTags
void PrintTrackProperties(recob::Track const &, std::ostream *output=&std::cout)
unsigned int flash_nOpDet
Description of geometry of one entire detector.
std::string leaf_structure
void SetHypothesisComparisonTree(TTree *, TH1F *, TH1F *)
unsigned int fCumulativeChannelCut
std::vector< float > cOpDetVector_hyp
void PrintHypothesisFlashComparison(std::vector< float > const &, const recob::OpFlash *, geo::GeometryCore const &geom, CompatibilityResultType, std::ostream *output=&std::cout)
Container for a list of pointers to providers.
bool InDriftWindow(double, double, geo::GeometryCore const &)
void FillFlashProperties(std::vector< float > const &opdetVector, float &, float &, float &, float &, float &, geo::GeometryCore const &geom)
const anab::CosmicTagID_t COSMIC_TYPE_FLASHMATCH
Data structure containing constant pointers to classes.
bool InDetector(TVector3 const &, geo::GeometryCore const &)
art framework interface to geometry description
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track:
void PrintFlashProperties(recob::OpFlash const &, std::ostream *output=&std::cout)