Pandora
Pandora source code navigator
|
#include <limits>
Go to the source code of this file.
Classes | |
class | Parameters |
Parameters class. More... | |
class | SimpleThreeVector |
SimpleThreeVector class. More... | |
class | SimpleMCPrimary |
SimpleMCPrimary class. More... | |
class | SimpleMCTarget |
SimpleMCTarget class. More... | |
class | SimpleMCEvent |
SimpleMCEvent class. More... | |
class | CountingDetails |
CountingDetails class. More... | |
class | PrimaryResult |
PrimaryResult class. More... | |
class | TargetResult |
TargetResult class. More... | |
class | TargetHistogramCollection |
TargetHistogramCollection class. More... | |
class | PrimaryHistogramCollection |
PrimaryHistogramCollection class. More... | |
Typedefs | |
typedef std::vector< int > | IntVector |
typedef std::vector< float > | FloatVector |
typedef std::vector< SimpleThreeVector > | SimpleThreeVectorList |
typedef std::vector< SimpleMCPrimary > | SimpleMCPrimaryList |
typedef std::vector< SimpleMCTarget > | SimpleMCTargetList |
typedef std::vector< SimpleMCEvent > | SimpleMCEventList |
typedef std::map< ExpectedPrimary, CountingDetails > | CountingMap |
typedef std::map< InteractionType, CountingMap > | InteractionCountingMap |
typedef std::map< ExpectedPrimary, PrimaryResult > | PrimaryResultMap |
typedef std::vector< TargetResult > | TargetResultList |
typedef std::map< InteractionType, TargetResultList > | InteractionTargetResultMap |
typedef std::map< InteractionType, TargetHistogramCollection > | InteractionTargetHistogramMap |
typedef std::map< ExpectedPrimary, PrimaryHistogramCollection > | PrimaryHistogramMap |
typedef std::map< InteractionType, PrimaryHistogramMap > | InteractionPrimaryHistogramMap |
Functions | |
SimpleThreeVector | operator- (const SimpleThreeVector &lhs, const SimpleThreeVector &rhs) |
Simple three vector subtraction operator. | |
SimpleThreeVector | operator+ (const SimpleThreeVector &lhs, const SimpleThreeVector &rhs) |
Simple three vector addition operator. | |
std::string | ToString (const ExpectedPrimary expectedPrimary) |
Get a string representation of an interaction type. | |
std::string | ToString (const InteractionType interactionType) |
Get a string representation of an interaction type. | |
void | Validation (const std::string &inputFiles, const Parameters ¶meters=Parameters()) |
Validation - Main entry point for analysis. | |
int | ReadNextEvent (TChain *const pTChain, const int iEntry, SimpleMCEvent &simpleMCEvent, const Parameters ¶meters) |
Read the next event from the chain. | |
void | DisplaySimpleMCEventMatches (const SimpleMCEvent &simpleMCEvent, const Parameters ¶meters) |
Print matching details to screen for a simple mc event. | |
void | CountPfoMatches (const SimpleMCEvent &simpleMCEvent, const Parameters ¶meters, InteractionCountingMap &interactionCountingMap, InteractionTargetResultMap &interactionTargetResultMap) |
CountPfoMatches Relies on fact that primary list is sorted by number of true good hits. | |
bool | PassFiducialCut (const SimpleMCTarget &simpleMCTarget, const Parameters ¶meters) |
Whether a simple mc event passes the relevant fiducial cut, applied to target vertices. | |
bool | PassUbooneFiducialCut (const SimpleMCTarget &simpleMCTarget) |
Whether a simple mc event passes uboone fiducial cut, applied to target vertices. | |
bool | PassSBNDFiducialCut (const SimpleMCTarget &simpleMCTarget) |
Whether a simple mc event passes sbnd fiducial cut, applied to target vertices. | |
ExpectedPrimary | GetExpectedPrimary (const SimpleMCPrimary &simpleMCPrimary, const SimpleMCPrimaryList &simpleMCPrimaryList) |
Work out which of the primary particles (expected for a given interaction types) corresponds to the provided primary id ATTN: Relies on fact that primary list is sorted by number of true hits. | |
bool | IsGoodParticleIdMatch (const SimpleMCPrimary &simpleMCPrimary, const int bestMatchPfoPdgCode) |
Whether a provided mc primary and best matched pfo are deemed to have a good particle id match. | |
void | DisplayInteractionCountingMap (const InteractionCountingMap &interactionCountingMap, const Parameters ¶meters) |
Print details to screen for a provided interaction type to counting map. | |
void | AnalyseInteractionTargetResultMap (const InteractionTargetResultMap &interactionTargetResultMap, const Parameters ¶meters) |
Opportunity to fill histograms, perform post-processing of information collected in main loop over ntuple, etc. | |
void | FillTargetHistogramCollection (const std::string &histPrefix, const TargetResult &targetResult, TargetHistogramCollection &targetHistogramCollection) |
Fill histograms in the provided target histogram collection, using information in the provided target result. | |
void | FillPrimaryHistogramCollection (const std::string &histPrefix, const Parameters ¶meters, const PrimaryResult &primaryResult, PrimaryHistogramCollection &primaryHistogramCollection) |
Fill histograms in the provided histogram collection, using information in the provided primary result. | |
void | ProcessHistogramCollections (const InteractionPrimaryHistogramMap &interactionPrimaryHistogramMap) |
Process histograms stored in the provided map e.g. calculating final efficiencies, normalising, etc. | |
typedef std::map<ExpectedPrimary, CountingDetails> CountingMap |
Definition at line 432 of file Validation.h.
typedef std::vector<float> FloatVector |
Definition at line 14 of file Validation.h.
typedef std::map<InteractionType, CountingMap> InteractionCountingMap |
Definition at line 433 of file Validation.h.
typedef std::map<InteractionType, PrimaryHistogramMap> InteractionPrimaryHistogramMap |
Definition at line 529 of file Validation.h.
typedef std::map<InteractionType, TargetHistogramCollection> InteractionTargetHistogramMap |
Definition at line 505 of file Validation.h.
typedef std::map<InteractionType, TargetResultList> InteractionTargetResultMap |
Definition at line 482 of file Validation.h.
typedef std::vector<int> IntVector |
Definition at line 13 of file Validation.h.
typedef std::map<ExpectedPrimary, PrimaryHistogramCollection> PrimaryHistogramMap |
Definition at line 528 of file Validation.h.
typedef std::map<ExpectedPrimary, PrimaryResult> PrimaryResultMap |
Definition at line 458 of file Validation.h.
typedef std::vector<SimpleMCEvent> SimpleMCEventList |
Definition at line 195 of file Validation.h.
typedef std::vector<SimpleMCPrimary> SimpleMCPrimaryList |
Definition at line 129 of file Validation.h.
typedef std::vector<SimpleMCTarget> SimpleMCTargetList |
Definition at line 173 of file Validation.h.
typedef std::vector<SimpleThreeVector> SimpleThreeVectorList |
Definition at line 69 of file Validation.h.
typedef std::vector<TargetResult> TargetResultList |
Definition at line 481 of file Validation.h.
enum ExpectedPrimary : int |
ExpectedPrimary enum.
Enumerator | |
---|---|
MUON | |
ELECTRON | |
PROTON1 | |
PROTON2 | |
PROTON3 | |
PROTON4 | |
PROTON5 | |
PIPLUS | |
PIMINUS | |
NEUTRON | |
PHOTON1 | |
PHOTON2 | |
OTHER_PRIMARY |
Definition at line 202 of file Validation.h.
enum InteractionType : int |
InteractionType enum.
Definition at line 233 of file Validation.h.
void AnalyseInteractionTargetResultMap | ( | const InteractionTargetResultMap & | interactionTargetResultMap, |
const Parameters & | parameters | ||
) |
Opportunity to fill histograms, perform post-processing of information collected in main loop over ntuple, etc.
interactionTargetResultMap | the interaction target result map |
parameters | the parameters |
Definition at line 533 of file Validation.C.
void CountPfoMatches | ( | const SimpleMCEvent & | simpleMCEvent, |
const Parameters & | parameters, | ||
InteractionCountingMap & | interactionCountingMap, | ||
InteractionTargetResultMap & | interactionTargetResultMap | ||
) |
CountPfoMatches Relies on fact that primary list is sorted by number of true good hits.
simpleMCEvent | the simple mc event |
parameters | the parameters |
interactionCountingMap | the interaction counting map, to be populated |
interactionTargetResultMap | the interaction target outcome map, to be populated |
Definition at line 311 of file Validation.C.
void DisplayInteractionCountingMap | ( | const InteractionCountingMap & | interactionCountingMap, |
const Parameters & | parameters | ||
) |
Print details to screen for a provided interaction type to counting map.
interactionCountingMap | the interaction counting map |
parameters | the parameters |
Definition at line 484 of file Validation.C.
void DisplaySimpleMCEventMatches | ( | const SimpleMCEvent & | simpleMCEvent, |
const Parameters & | parameters | ||
) |
Print matching details to screen for a simple mc event.
simpleMCEvent | the simple mc event |
parameters | the parameters |
Definition at line 212 of file Validation.C.
void FillPrimaryHistogramCollection | ( | const std::string & | histPrefix, |
const Parameters & | parameters, | ||
const PrimaryResult & | primaryResult, | ||
PrimaryHistogramCollection & | primaryHistogramCollection | ||
) |
Fill histograms in the provided histogram collection, using information in the provided primary result.
histPrefix | the histogram prefix |
parameters | the parameters |
primaryResult | the primary result |
primaryHistogramCollection | the primary histogram collection |
Definition at line 655 of file Validation.C.
void FillTargetHistogramCollection | ( | const std::string & | histPrefix, |
const TargetResult & | targetResult, | ||
TargetHistogramCollection & | targetHistogramCollection | ||
) |
Fill histograms in the provided target histogram collection, using information in the provided target result.
histPrefix | the histogram prefix |
targetResult | the target result |
targetHistogramCollection | the target histogram collection |
Definition at line 613 of file Validation.C.
ExpectedPrimary GetExpectedPrimary | ( | const SimpleMCPrimary & | simpleMCPrimary, |
const SimpleMCPrimaryList & | simpleMCPrimaryList | ||
) |
Work out which of the primary particles (expected for a given interaction types) corresponds to the provided primary id ATTN: Relies on fact that primary list is sorted by number of true hits.
simpleMCPrimary | the simple mc primary |
simpleMCPrimaryList | the simple mc primary list |
Definition at line 433 of file Validation.C.
bool IsGoodParticleIdMatch | ( | const SimpleMCPrimary & | simpleMCPrimary, |
const int | bestMatchPfoPdgCode | ||
) |
Whether a provided mc primary and best matched pfo are deemed to have a good particle id match.
simpleMCPrimary | the simple mc primary |
bestMatchPfoPdgCode | the best matched pfo pdg code |
Definition at line 469 of file Validation.C.
SimpleThreeVector operator+ | ( | const SimpleThreeVector & | lhs, |
const SimpleThreeVector & | rhs | ||
) |
Simple three vector addition operator.
lhs | first vector, from which the second is added |
rhs | second vector, which is added to the first |
Definition at line 708 of file Validation.h.
SimpleThreeVector operator- | ( | const SimpleThreeVector & | lhs, |
const SimpleThreeVector & | rhs | ||
) |
Simple three vector subtraction operator.
lhs | first vector, from which the second is subtracted |
rhs | second vector, which is subtracted from the first |
Definition at line 701 of file Validation.h.
bool PassFiducialCut | ( | const SimpleMCTarget & | simpleMCTarget, |
const Parameters & | parameters | ||
) |
Whether a simple mc event passes the relevant fiducial cut, applied to target vertices.
simpleMCTarget | the simple mc target |
parameters | the parameters |
Definition at line 382 of file Validation.C.
bool PassSBNDFiducialCut | ( | const SimpleMCTarget & | simpleMCTarget | ) |
Whether a simple mc event passes sbnd fiducial cut, applied to target vertices.
simpleMCTarget | the simple mc target |
Definition at line 415 of file Validation.C.
bool PassUbooneFiducialCut | ( | const SimpleMCTarget & | simpleMCTarget | ) |
Whether a simple mc event passes uboone fiducial cut, applied to target vertices.
simpleMCTarget | the simple mc target |
Definition at line 398 of file Validation.C.
void ProcessHistogramCollections | ( | const InteractionPrimaryHistogramMap & | interactionPrimaryHistogramMap | ) |
Process histograms stored in the provided map e.g. calculating final efficiencies, normalising, etc.
interactionPrimaryHistogramMap | the interaction primary histogram map |
Definition at line 729 of file Validation.C.
int ReadNextEvent | ( | TChain *const | pTChain, |
const int | iEntry, | ||
SimpleMCEvent & | simpleMCEvent, | ||
const Parameters & | parameters | ||
) |
Read the next event from the chain.
pTChain | the address of the chain |
iEntry | the first chain entry to read |
simpleMCEvent | the event to be populated |
parameters | the parameters |
Definition at line 55 of file Validation.C.
std::string ToString | ( | const ExpectedPrimary | expectedPrimary | ) |
Get a string representation of an interaction type.
interactionType | the interaction type |
Definition at line 769 of file Validation.C.
std::string ToString | ( | const InteractionType | interactionType | ) |
Get a string representation of an interaction type.
interactionType | the interaction type |
Definition at line 792 of file Validation.C.
void Validation | ( | const std::string & | inputFiles, |
const Parameters & | parameters = Parameters() |
||
) |
Validation - Main entry point for analysis.
inputFiles | the regex identifying the input root files |
parameters | the parameters |
Definition at line 18 of file Validation.C.