#include <FlashPredict.hh>
Classes | |
struct | BookKeeping |
struct | ChargeDigest |
struct | ChargeMetrics |
struct | Fits |
struct | FlashMetrics |
struct | SimpleFlash |
Public Types | |
using | ChargeDigestMap = std::map< double, ChargeDigest, std::greater< double >> |
using | OpHitIt = std::vector< recob::OpHit >::iterator |
Public Member Functions | |
FlashPredict (fhicl::ParameterSet const &p) | |
FlashPredict (FlashPredict const &)=delete | |
FlashPredict (FlashPredict &&)=delete | |
FlashPredict & | operator= (FlashPredict const &)=delete |
FlashPredict & | operator= (FlashPredict &&)=delete |
void | produce (art::Event &evt) override |
void | beginJob () override |
void | endJob () override |
Private Types | |
using | sFM = sbn::SimpleFlashMatch |
using | Charge = sbn::SimpleFlashMatch::Charge |
using | Flash = sbn::SimpleFlashMatch::Flash |
using | Score = sbn::SimpleFlashMatch::Score |
Private Member Functions | |
void | initTree (void) |
void | loadMetrics (void) |
double | cheatMCT0 (const std::vector< art::Ptr< recob::Hit >> &hits, const std::vector< art::Ptr< simb::MCParticle >> &mcParticles) |
ChargeMetrics | computeChargeMetrics (const flashmatch::QCluster_t &qClusters) const |
FlashMetrics | computeFlashMetrics (const SimpleFlash &simpleFlash) const |
Score | computeScore (const ChargeMetrics &charge, const FlashMetrics &flash, const std::set< unsigned > &tpcWithHits, const int pdgc) const |
std::tuple< double, double, double, double > | hypoFlashX_fits (double flash_rr, double flash_ratio) const |
std::tuple< double, double, double, double > | hypoFlashX_H2 (double flash_rr, double flash_ratio) const |
std::tuple< double, double > | xEstimateAndRMS (double metric_value, const TH2D *metric_h2) const |
ChargeDigestMap | makeChargeDigest (const art::Event &evt, const art::ValidHandle< std::vector< recob::PFParticle >> &pfps_h) |
void | addDaughters (const std::unordered_map< size_t, size_t > &pfpMap, const art::Ptr< recob::PFParticle > &pfp_ptr, const art::ValidHandle< std::vector< recob::PFParticle >> &pfps_h, std::vector< art::Ptr< recob::PFParticle >> &pfp_v) const |
unsigned | trueNus (art::Event &evt) const |
void | updateChargeMetrics (const ChargeMetrics &chargeMetrics) |
void | updateFlashMetrics (const FlashMetrics &flashMetrics) |
void | updateScore (const Score &score) |
double | scoreTerm (const double m, const double n, const double mean, const double spread) const |
double | scoreTerm (const double m, const double mean, const double spread) const |
bool | pfpNeutrinoOnEvent (const art::ValidHandle< std::vector< recob::PFParticle >> &pfps_h) const |
void | copyOpHitsInBeamWindow (std::vector< recob::OpHit > &opHits, const art::Handle< std::vector< recob::OpHit >> &ophit_h) const |
std::vector< SimpleFlash > | makeSimpleFlashes (std::vector< recob::OpHit > &opHits, std::vector< recob::OpHit > &opHitsRght, std::vector< recob::OpHit > &opHitsLeft) const |
std::vector< SimpleFlash > | makeSimpleFlashes (std::vector< recob::OpHit > &opHits) const |
bool | createOpHitsTimeHist (const std::vector< recob::OpHit > &opHits, std::vector< recob::OpHit > &opHitsRght, std::vector< recob::OpHit > &opHitsLeft, std::unique_ptr< TH1D > &opHitsTimeHist, std::unique_ptr< TH1D > &opHitsTimeHistRght, std::unique_ptr< TH1D > &opHitsTimeHistLeft) const |
unsigned | createOpHitsTimeHist (const std::vector< recob::OpHit > &opHits, std::unique_ptr< TH1D > &opHitsTimeHist) const |
bool | findSimpleFlashes (std::vector< SimpleFlash > &simpleFlashes, std::vector< recob::OpHit > &opHits, const unsigned ophsInVolume, std::unique_ptr< TH1D > &opHitsTimeHist) const |
std::string | detectorName (const std::string detName) const |
bool | isPDInCryo (const int pdChannel) const |
bool | isSBNDPDRelevant (const int pdChannel, const std::set< unsigned > &tpcWithHits) const |
unsigned | sbndPDinTPC (const int pdChannel) const |
unsigned | icarusPDinTPC (const int pdChannel) const |
double | wallXWithMaxPE (const OpHitIt opH_beg, const OpHitIt opH_end) const |
std::list< double > | wiresXGl () const |
double | driftDistance () const |
double | flashXGl (const double hypo_x, const double flash_x) const |
double | foldXGl (const double x_gl) const |
unsigned | driftVolume (const double x) const |
template<typename Stream > | |
void | printBookKeeping (Stream &&out) |
void | updateBookKeeping () |
template<typename Stream > | |
void | printMetrics (const std::string metric, const ChargeMetrics &charge, const FlashMetrics &flash, const int pdgc, const std::set< unsigned > &tpcWithHits, const double term, Stream &&out) const |
Private Attributes | |
const art::InputTag | fPandoraProducer |
const art::InputTag | fSpacePointProducer |
const art::InputTag | fOpHitProducer |
const art::InputTag | fOpHitARAProducer |
detinfo::DetectorClocksData const | fClockData |
const double | fTickPeriod |
const double | fBeamWindowStart |
const double | fBeamWindowEnd |
const double | fFlashStart |
const double | fFlashEnd |
const unsigned | fTimeBins |
const bool | fSelectNeutrino |
const bool | fOnlyCollectionWires |
const bool | fForceConcurrence |
const bool | fUseUncoatedPMT |
const bool | fUseOppVolMetric |
const bool | fUseARAPUCAS |
const bool | fStoreTrueNus |
const bool | fStoreCheatMCT0 |
const std::string | fInputFilename |
const bool | fNoAvailableMetrics |
const bool | fMakeTree |
const double | fChargeToNPhotonsShower |
const double | fChargeToNPhotonsTrack |
const double | fMinHitQ |
const double | fMinSpacePointQ |
const double | fMinParticleQ |
const double | fMinSliceQ |
const unsigned | fMaxFlashes |
const double | fMinOpHPE |
const double | fMinFlashPE |
const art::ServiceHandle < geo::Geometry > | fGeometry |
const std::string | fDetector |
const bool | fSBND |
const bool | fICARUS |
const std::unique_ptr < opdet::PDMapAlg > | fPDMapAlgPtr |
const size_t | fNTPC |
const int | fCryostat |
const std::unique_ptr < geo::CryostatGeo > | fGeoCryo |
const std::list< double > | fWiresX_gl |
const double | fDriftDistance |
const int | fXBins |
const double | fXBinWidth |
const std::string | fRR_TF1_fit |
const std::string | fRatio_TF1_fit |
const unsigned | fYBins |
const unsigned | fZBins |
const double | fYLow |
const double | fYHigh |
const double | fZLow |
const double | fZHigh |
const double | fYBiasSlope |
const double | fZBiasSlope |
unsigned | fDriftVolumes |
unsigned | fTPCPerDriftVolume |
const unsigned | fOpDetNormalizer |
const double | fTermThreshold |
TTree * | _flashmatch_nuslice_tree |
TH2D * | fRRH2 |
TH2D * | fRatioH2 |
std::array< Fits, 3 > | fRRFits |
std::array< Fits, 3 > | fRatioFits |
const std::array< std::string, 3 > | kSuffixes {"l", "h", "m"} |
double | _charge_x_gl |
double | _charge_x |
double | _charge_y |
double | _charge_z |
double | _charge_q |
double | _flash_x |
double | _flash_x_gl |
double | _flash_y |
double | _flash_yb |
double | _flash_z |
double | _flash_zb |
double | _flash_rr |
double | _flash_pe |
double | _flash_unpe |
double | _flash_ratio |
double | _flash_time |
double | _hypo_x |
double | _hypo_x_err |
double | _hypo_x_rr |
double | _hypo_x_ratio |
double | _y_skew |
double | _z_skew |
double | _score |
double | _scr_y |
double | _scr_z |
double | _scr_rr |
double | _scr_ratio |
unsigned | _evt |
unsigned | _run |
unsigned | _sub |
unsigned | _slices = -1 |
unsigned | _true_nus = -1 |
double | _mcT0 = -9999. |
std::vector< double > | fdYMeans |
std::vector< double > | fdZMeans |
std::vector< double > | fRRMeans |
std::vector< double > | fRatioMeans |
std::vector< double > | fdYSpreads |
std::vector< double > | fdZSpreads |
std::vector< double > | fRRSpreads |
std::vector< double > | fRatioSpreads |
BookKeeping | bk |
Static Private Attributes | |
static constexpr unsigned | kRght = 0 |
static constexpr unsigned | kLeft = 1 |
static constexpr unsigned | kActivityInRght = 100 |
static constexpr unsigned | kActivityInLeft = 200 |
static constexpr unsigned | kActivityInBoth = 300 |
static constexpr unsigned | kMinEntriesInProjection = 100 |
static constexpr double | kEps = 1e-4 |
static constexpr bool | kNoScr = false |
static constexpr double | kNoScrTime = -9999. |
static constexpr double | kNoScrQ = -9999. |
static constexpr double | kNoScrPE = -9999. |
static constexpr int | kQNoOpHScr = -1 |
static constexpr int | kNoChrgScr = -2 |
static constexpr int | k0VUVPEScr = -3 |
static constexpr int | kNotANuScr = -4 |
static constexpr int | kNoOpHInEvt = -11 |
static constexpr int | kNoPFPInEvt = -12 |
static constexpr int | kNoSlcInEvt = -13 |
Definition at line 64 of file FlashPredict.hh.
|
private |
Definition at line 199 of file FlashPredict.hh.
using FlashPredict::ChargeDigestMap = std::map<double, ChargeDigest, std::greater<double>> |
Definition at line 106 of file FlashPredict.hh.
|
private |
Definition at line 200 of file FlashPredict.hh.
using FlashPredict::OpHitIt = std::vector<recob::OpHit>::iterator |
Definition at line 108 of file FlashPredict.hh.
|
private |
Definition at line 201 of file FlashPredict.hh.
|
private |
Definition at line 198 of file FlashPredict.hh.
|
explicit |
Definition at line 12 of file FlashPredict_module.cc.
|
delete |
|
delete |
|
private |
Definition at line 1106 of file FlashPredict_module.cc.
|
override |
Definition at line 1636 of file FlashPredict_module.cc.
|
private |
Definition at line 627 of file FlashPredict_module.cc.
|
private |
Definition at line 642 of file FlashPredict_module.cc.
|
private |
Definition at line 665 of file FlashPredict_module.cc.
|
private |
Definition at line 796 of file FlashPredict_module.cc.
|
private |
Definition at line 1199 of file FlashPredict_module.cc.
|
private |
Definition at line 1282 of file FlashPredict_module.cc.
|
private |
Definition at line 1320 of file FlashPredict_module.cc.
|
inlineprivate |
Definition at line 1386 of file FlashPredict_module.cc.
|
private |
Definition at line 1476 of file FlashPredict_module.cc.
|
private |
Definition at line 1520 of file FlashPredict_module.cc.
|
override |
Definition at line 1641 of file FlashPredict_module.cc.
|
private |
Definition at line 1344 of file FlashPredict_module.cc.
|
private |
Definition at line 1485 of file FlashPredict_module.cc.
|
private |
Definition at line 1504 of file FlashPredict_module.cc.
|
private |
Definition at line 841 of file FlashPredict_module.cc.
|
private |
Definition at line 927 of file FlashPredict_module.cc.
|
private |
Definition at line 1409 of file FlashPredict_module.cc.
|
private |
Definition at line 422 of file FlashPredict_module.cc.
|
private |
Definition at line 1394 of file FlashPredict_module.cc.
|
private |
Definition at line 1418 of file FlashPredict_module.cc.
|
private |
Definition at line 462 of file FlashPredict_module.cc.
|
private |
Definition at line 976 of file FlashPredict_module.cc.
|
private |
Definition at line 1220 of file FlashPredict_module.cc.
|
private |
Definition at line 1264 of file FlashPredict_module.cc.
|
delete |
|
delete |
|
inlineprivate |
Definition at line 1184 of file FlashPredict_module.cc.
|
private |
Definition at line 1537 of file FlashPredict_module.cc.
|
private |
Definition at line 1611 of file FlashPredict_module.cc.
|
override |
Definition at line 139 of file FlashPredict_module.cc.
|
private |
Definition at line 1430 of file FlashPredict_module.cc.
|
inlineprivate |
Definition at line 1168 of file FlashPredict_module.cc.
|
inlineprivate |
Definition at line 1176 of file FlashPredict_module.cc.
|
private |
Definition at line 1122 of file FlashPredict_module.cc.
|
private |
Definition at line 1592 of file FlashPredict_module.cc.
|
inlineprivate |
Definition at line 1137 of file FlashPredict_module.cc.
|
inlineprivate |
Definition at line 1146 of file FlashPredict_module.cc.
|
inlineprivate |
Definition at line 1160 of file FlashPredict_module.cc.
Definition at line 1438 of file FlashPredict_module.cc.
|
private |
Definition at line 1464 of file FlashPredict_module.cc.
|
private |
Definition at line 941 of file FlashPredict_module.cc.
|
private |
Definition at line 351 of file FlashPredict.hh.
|
private |
Definition at line 351 of file FlashPredict.hh.
|
private |
Definition at line 351 of file FlashPredict.hh.
|
private |
Definition at line 351 of file FlashPredict.hh.
|
private |
Definition at line 351 of file FlashPredict.hh.
|
private |
Definition at line 358 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 338 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 360 of file FlashPredict.hh.
|
private |
Definition at line 358 of file FlashPredict.hh.
|
private |
Definition at line 357 of file FlashPredict.hh.
|
private |
Definition at line 357 of file FlashPredict.hh.
|
private |
Definition at line 357 of file FlashPredict.hh.
|
private |
Definition at line 357 of file FlashPredict.hh.
|
private |
Definition at line 357 of file FlashPredict.hh.
|
private |
Definition at line 359 of file FlashPredict.hh.
|
private |
Definition at line 358 of file FlashPredict.hh.
|
private |
Definition at line 359 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 353 of file FlashPredict.hh.
|
private |
Definition at line 385 of file FlashPredict.hh.
|
private |
Definition at line 293 of file FlashPredict.hh.
|
private |
Definition at line 293 of file FlashPredict.hh.
|
private |
Definition at line 305 of file FlashPredict.hh.
|
private |
Definition at line 305 of file FlashPredict.hh.
|
private |
Definition at line 291 of file FlashPredict.hh.
|
private |
Definition at line 314 of file FlashPredict.hh.
|
private |
Definition at line 310 of file FlashPredict.hh.
|
private |
Definition at line 318 of file FlashPredict.hh.
|
private |
Definition at line 325 of file FlashPredict.hh.
|
private |
Definition at line 362 of file FlashPredict.hh.
|
private |
Definition at line 363 of file FlashPredict.hh.
|
private |
Definition at line 362 of file FlashPredict.hh.
|
private |
Definition at line 363 of file FlashPredict.hh.
|
private |
Definition at line 294 of file FlashPredict.hh.
|
private |
Definition at line 294 of file FlashPredict.hh.
|
private |
Definition at line 298 of file FlashPredict.hh.
|
private |
Definition at line 316 of file FlashPredict.hh.
|
private |
Definition at line 309 of file FlashPredict.hh.
|
private |
Definition at line 311 of file FlashPredict.hh.
|
private |
Definition at line 303 of file FlashPredict.hh.
|
private |
Definition at line 304 of file FlashPredict.hh.
|
private |
Definition at line 307 of file FlashPredict.hh.
|
private |
Definition at line 308 of file FlashPredict.hh.
|
private |
Definition at line 306 of file FlashPredict.hh.
|
private |
Definition at line 308 of file FlashPredict.hh.
|
private |
Definition at line 306 of file FlashPredict.hh.
|
private |
Definition at line 306 of file FlashPredict.hh.
|
private |
Definition at line 306 of file FlashPredict.hh.
|
private |
Definition at line 304 of file FlashPredict.hh.
|
private |
Definition at line 313 of file FlashPredict.hh.
|
private |
Definition at line 297 of file FlashPredict.hh.
|
private |
Definition at line 327 of file FlashPredict.hh.
|
private |
Definition at line 289 of file FlashPredict.hh.
|
private |
Definition at line 289 of file FlashPredict.hh.
|
private |
Definition at line 289 of file FlashPredict.hh.
|
private |
Definition at line 312 of file FlashPredict.hh.
|
private |
Definition at line 321 of file FlashPredict.hh.
|
private |
Definition at line 346 of file FlashPredict.hh.
|
private |
Definition at line 343 of file FlashPredict.hh.
|
private |
Definition at line 362 of file FlashPredict.hh.
|
private |
Definition at line 363 of file FlashPredict.hh.
|
private |
Definition at line 321 of file FlashPredict.hh.
|
private |
Definition at line 345 of file FlashPredict.hh.
|
private |
Definition at line 343 of file FlashPredict.hh.
|
private |
Definition at line 362 of file FlashPredict.hh.
|
private |
Definition at line 363 of file FlashPredict.hh.
|
private |
Definition at line 311 of file FlashPredict.hh.
|
private |
Definition at line 296 of file FlashPredict.hh.
|
private |
Definition at line 289 of file FlashPredict.hh.
|
private |
Definition at line 302 of file FlashPredict.hh.
|
private |
Definition at line 301 of file FlashPredict.hh.
|
private |
Definition at line 328 of file FlashPredict.hh.
|
private |
Definition at line 292 of file FlashPredict.hh.
|
private |
Definition at line 295 of file FlashPredict.hh.
|
private |
Definition at line 326 of file FlashPredict.hh.
|
private |
Definition at line 300 of file FlashPredict.hh.
|
private |
Definition at line 299 of file FlashPredict.hh.
|
private |
Definition at line 299 of file FlashPredict.hh.
|
private |
Definition at line 317 of file FlashPredict.hh.
|
private |
Definition at line 319 of file FlashPredict.hh.
|
private |
Definition at line 320 of file FlashPredict.hh.
|
private |
Definition at line 324 of file FlashPredict.hh.
|
private |
Definition at line 322 of file FlashPredict.hh.
|
private |
Definition at line 323 of file FlashPredict.hh.
|
private |
Definition at line 323 of file FlashPredict.hh.
|
private |
Definition at line 324 of file FlashPredict.hh.
|
private |
Definition at line 322 of file FlashPredict.hh.
|
private |
Definition at line 323 of file FlashPredict.hh.
|
private |
Definition at line 323 of file FlashPredict.hh.
|
staticprivate |
Definition at line 371 of file FlashPredict.hh.
|
staticprivate |
Definition at line 335 of file FlashPredict.hh.
|
staticprivate |
Definition at line 334 of file FlashPredict.hh.
|
staticprivate |
Definition at line 333 of file FlashPredict.hh.
|
staticprivate |
Definition at line 348 of file FlashPredict.hh.
|
staticprivate |
Definition at line 331 of file FlashPredict.hh.
|
staticprivate |
Definition at line 344 of file FlashPredict.hh.
|
staticprivate |
Definition at line 370 of file FlashPredict.hh.
|
staticprivate |
Definition at line 373 of file FlashPredict.hh.
|
staticprivate |
Definition at line 374 of file FlashPredict.hh.
|
staticprivate |
Definition at line 365 of file FlashPredict.hh.
|
staticprivate |
Definition at line 368 of file FlashPredict.hh.
|
staticprivate |
Definition at line 367 of file FlashPredict.hh.
|
staticprivate |
Definition at line 366 of file FlashPredict.hh.
|
staticprivate |
Definition at line 375 of file FlashPredict.hh.
|
staticprivate |
Definition at line 372 of file FlashPredict.hh.
|
staticprivate |
Definition at line 369 of file FlashPredict.hh.
|
staticprivate |
Definition at line 330 of file FlashPredict.hh.
|
private |
Definition at line 347 of file FlashPredict.hh.