#include <BeamFlashTrackMatchTaggerAlg.h>
Classes | |
struct | FlashComparisonProperties |
Public Types | |
using | Providers_t = lar::ProviderPack< geo::GeometryCore, detinfo::LArProperties > |
Pack of provider-interface supporting services we need. More... | |
Public Member Functions | |
BeamFlashTrackMatchTaggerAlg (fhicl::ParameterSet const &p) | |
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 &) |
void | SetHypothesisComparisonTree (TTree *, TH1F *, TH1F *) |
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 &) |
void | RunHypothesisComparison (unsigned int const, unsigned int const, std::vector< recob::OpFlash > const &, std::vector< simb::MCParticle > const &, Providers_t, phot::PhotonVisibilityService const &, opdet::OpDigiProperties const &) |
Private Types | |
enum | CompatibilityResultType { kCompatible = 0, kSingleChannelCut, kCumulativeChannelCut, kIntegralCut } |
typedef struct cosmic::BeamFlashTrackMatchTaggerAlg::FlashComparisonProperties | FlashComparisonProperties_t |
typedef enum cosmic::BeamFlashTrackMatchTaggerAlg::CompatibilityResultType | CompatibilityResultType |
Private Member Functions | |
std::vector< float > | GetMIPHypotheses (recob::Track const &track, Providers_t providers, phot::PhotonVisibilityService const &pvs, opdet::OpDigiProperties const &, float XOffset=0) |
std::vector< float > | GetMIPHypotheses (simb::MCParticle const &particle, size_t start_i, size_t end_i, Providers_t providers, phot::PhotonVisibilityService const &pvs, opdet::OpDigiProperties const &, float XOffset=0) |
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) |
void | NormalizeLightHypothesis (std::vector< float > &lightHypothesis, float const &totalHypothesisPE, geo::GeometryCore const &geom) |
CompatibilityResultType | CheckCompatibility (std::vector< float > const &lightHypothesis, const recob::OpFlash *flashPointer, geo::GeometryCore const &geom) |
bool | InDetector (TVector3 const &, geo::GeometryCore const &) |
bool | InDriftWindow (double, double, geo::GeometryCore const &) |
void | FillFlashProperties (std::vector< float > const &opdetVector, float &, float &, float &, float &, float &, geo::GeometryCore const &geom) |
float | CalculateChi2 (std::vector< float > const &, std::vector< float > const &) |
void | PrintTrackProperties (recob::Track const &, std::ostream *output=&std::cout) |
void | PrintFlashProperties (recob::OpFlash const &, std::ostream *output=&std::cout) |
void | PrintHypothesisFlashComparison (std::vector< float > const &, const recob::OpFlash *, geo::GeometryCore const &geom, CompatibilityResultType, std::ostream *output=&std::cout) |
Private Attributes | |
const anab::CosmicTagID_t | COSMIC_TYPE_FLASHMATCH |
const anab::CosmicTagID_t | COSMIC_TYPE_OUTSIDEDRIFT |
const bool | DEBUG_FLAG |
float | fMinTrackLength |
float | fMinOpHitPE |
float | fMIPdQdx |
float | fOpDetSaturation |
float | fSingleChannelCut |
float | fCumulativeChannelThreshold |
unsigned int | fCumulativeChannelCut |
float | fIntegralCut |
bool | fMakeOutsideDriftTags |
bool | fNormalizeHypothesisToFlash |
TTree * | cTree |
FlashComparisonProperties_t | cFlashComparison_p |
std::vector< float > | cOpDetVector_flash |
std::vector< float > | cOpDetVector_hyp |
TH1F * | cOpDetHist_flash |
TH1F * | cOpDetHist_hyp |
Definition at line 39 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
|
private |
using cosmic::BeamFlashTrackMatchTaggerAlg::Providers_t = lar::ProviderPack<geo::GeometryCore, detinfo::LArProperties> |
Pack of provider-interface supporting services we need.
Definition at line 43 of file BeamFlashTrackMatchTaggerAlg.h.
Enumerator | |
---|---|
kCompatible | |
kSingleChannelCut | |
kCumulativeChannelCut | |
kIntegralCut |
Definition at line 137 of file BeamFlashTrackMatchTaggerAlg.h.
cosmic::BeamFlashTrackMatchTaggerAlg::BeamFlashTrackMatchTaggerAlg | ( | fhicl::ParameterSet const & | p | ) |
Title: Beam Flash<–>Track Match Algorithim Class Author: Wes Ketchum (wketc), based on code from Ben Jones hum@ lanl. gov
Description: Algorithm that compares all tracks to the flash during the beam gate, and determines if that track is consistent with having produced that flash. Input: recob::OpFlash, recob::Track Output: anab::CosmicTag (and Assn<anab::CosmicTag,recob::Track>)
Definition at line 31 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 355 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 510 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 465 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 315 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 400 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 430 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 342 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 349 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 391 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 545 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 561 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 528 of file BeamFlashTrackMatchTaggerAlg.cxx.
void cosmic::BeamFlashTrackMatchTaggerAlg::RunCompatibilityCheck | ( | std::vector< recob::OpFlash > const & | flashVector, |
std::vector< recob::Track > const & | trackVector, | ||
std::vector< anab::CosmicTag > & | cosmicTagVector, | ||
std::vector< size_t > & | assnTrackTagVector, | ||
Providers_t | providers, | ||
phot::PhotonVisibilityService const & | pvs, | ||
opdet::OpDigiProperties const & | opdigip | ||
) |
Definition at line 64 of file BeamFlashTrackMatchTaggerAlg.cxx.
void cosmic::BeamFlashTrackMatchTaggerAlg::RunHypothesisComparison | ( | unsigned int const | run, |
unsigned int const | event, | ||
std::vector< recob::OpFlash > const & | flashVector, | ||
std::vector< recob::Track > const & | trackVector, | ||
Providers_t | providers, | ||
phot::PhotonVisibilityService const & | pvs, | ||
opdet::OpDigiProperties const & | opdigip | ||
) |
Definition at line 130 of file BeamFlashTrackMatchTaggerAlg.cxx.
void cosmic::BeamFlashTrackMatchTaggerAlg::RunHypothesisComparison | ( | unsigned int const | run, |
unsigned int const | event, | ||
std::vector< recob::OpFlash > const & | flashVector, | ||
std::vector< simb::MCParticle > const & | mcParticleVector, | ||
Providers_t | providers, | ||
phot::PhotonVisibilityService const & | pvs, | ||
opdet::OpDigiProperties const & | opdigip | ||
) |
Definition at line 212 of file BeamFlashTrackMatchTaggerAlg.cxx.
void cosmic::BeamFlashTrackMatchTaggerAlg::SetHypothesisComparisonTree | ( | TTree * | tree, |
TH1F * | hist_flash, | ||
TH1F * | hist_hyp | ||
) |
Definition at line 47 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 130 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 133 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 134 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 131 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 132 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 76 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 77 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 93 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 78 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 86 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 85 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 87 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 89 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 81 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 80 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 82 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 90 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 83 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 84 of file BeamFlashTrackMatchTaggerAlg.h.