#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 38 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 42 of file BeamFlashTrackMatchTaggerAlg.h.
Enumerator | |
---|---|
kCompatible | |
kSingleChannelCut | |
kCumulativeChannelCut | |
kIntegralCut |
Definition at line 136 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 20 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 344 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 499 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 454 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 304 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 389 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 419 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 331 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 338 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 380 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 534 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 550 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 517 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 53 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 119 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 201 of file BeamFlashTrackMatchTaggerAlg.cxx.
void cosmic::BeamFlashTrackMatchTaggerAlg::SetHypothesisComparisonTree | ( | TTree * | tree, |
TH1F * | hist_flash, | ||
TH1F * | hist_hyp | ||
) |
Definition at line 36 of file BeamFlashTrackMatchTaggerAlg.cxx.
|
private |
Definition at line 129 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 132 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 133 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 130 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 131 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 75 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 76 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 92 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 77 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 85 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 84 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 86 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 88 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 80 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 79 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 81 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 89 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 82 of file BeamFlashTrackMatchTaggerAlg.h.
|
private |
Definition at line 83 of file BeamFlashTrackMatchTaggerAlg.h.