Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
Validation.h File Reference
#include <limits>
Include dependency graph for Validation.h:
This graph shows which files directly or indirectly include this file:

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< SimpleThreeVectorSimpleThreeVectorList
 
typedef std::vector< SimpleMCPrimarySimpleMCPrimaryList
 
typedef std::vector< SimpleMCTargetSimpleMCTargetList
 
typedef std::vector< SimpleMCEventSimpleMCEventList
 
typedef std::map< ExpectedPrimary, CountingDetailsCountingMap
 
typedef std::map< InteractionType, CountingMapInteractionCountingMap
 
typedef std::map< ExpectedPrimary, PrimaryResultPrimaryResultMap
 
typedef std::vector< TargetResultTargetResultList
 
typedef std::map< InteractionType, TargetResultListInteractionTargetResultMap
 
typedef std::map< InteractionType, TargetHistogramCollectionInteractionTargetHistogramMap
 
typedef std::map< ExpectedPrimary, PrimaryHistogramCollectionPrimaryHistogramMap
 
typedef std::map< InteractionType, PrimaryHistogramMapInteractionPrimaryHistogramMap
 

Enumerations

enum  ExpectedPrimary : int {
  MUON , ELECTRON , PROTON1 , PROTON2 ,
  PROTON3 , PROTON4 , PROTON5 , PIPLUS ,
  PIMINUS , NEUTRON , PHOTON1 , PHOTON2 ,
  OTHER_PRIMARY
}
 ExpectedPrimary enum. More...
 
enum  InteractionType : int {
  CCQEL_MU , CCQEL_MU_P , CCQEL_MU_P_P , CCQEL_MU_P_P_P ,
  CCQEL_MU_P_P_P_P , CCQEL_MU_P_P_P_P_P , CCQEL_E , CCQEL_E_P ,
  CCQEL_E_P_P , CCQEL_E_P_P_P , CCQEL_E_P_P_P_P , CCQEL_E_P_P_P_P_P ,
  NCQEL_P , NCQEL_P_P , NCQEL_P_P_P , NCQEL_P_P_P_P ,
  NCQEL_P_P_P_P_P , CCRES_MU , CCRES_MU_P , CCRES_MU_P_P ,
  CCRES_MU_P_P_P , CCRES_MU_P_P_P_P , CCRES_MU_P_P_P_P_P , CCRES_MU_PIPLUS ,
  CCRES_MU_P_PIPLUS , CCRES_MU_P_P_PIPLUS , CCRES_MU_P_P_P_PIPLUS , CCRES_MU_P_P_P_P_PIPLUS ,
  CCRES_MU_P_P_P_P_P_PIPLUS , CCRES_MU_PHOTON , CCRES_MU_P_PHOTON , CCRES_MU_P_P_PHOTON ,
  CCRES_MU_P_P_P_PHOTON , CCRES_MU_P_P_P_P_PHOTON , CCRES_MU_P_P_P_P_P_PHOTON , CCRES_MU_PIZERO ,
  CCRES_MU_P_PIZERO , CCRES_MU_P_P_PIZERO , CCRES_MU_P_P_P_PIZERO , CCRES_MU_P_P_P_P_PIZERO ,
  CCRES_MU_P_P_P_P_P_PIZERO , CCRES_E , CCRES_E_P , CCRES_E_P_P ,
  CCRES_E_P_P_P , CCRES_E_P_P_P_P , CCRES_E_P_P_P_P_P , CCRES_E_PIPLUS ,
  CCRES_E_P_PIPLUS , CCRES_E_P_P_PIPLUS , CCRES_E_P_P_P_PIPLUS , CCRES_E_P_P_P_P_PIPLUS ,
  CCRES_E_P_P_P_P_P_PIPLUS , CCRES_E_PHOTON , CCRES_E_P_PHOTON , CCRES_E_P_P_PHOTON ,
  CCRES_E_P_P_P_PHOTON , CCRES_E_P_P_P_P_PHOTON , CCRES_E_P_P_P_P_P_PHOTON , CCRES_E_PIZERO ,
  CCRES_E_P_PIZERO , CCRES_E_P_P_PIZERO , CCRES_E_P_P_P_PIZERO , CCRES_E_P_P_P_P_PIZERO ,
  CCRES_E_P_P_P_P_P_PIZERO , NCRES_P , NCRES_P_P , NCRES_P_P_P ,
  NCRES_P_P_P_P , NCRES_P_P_P_P_P , NCRES_PIPLUS , NCRES_P_PIPLUS ,
  NCRES_P_P_PIPLUS , NCRES_P_P_P_PIPLUS , NCRES_P_P_P_P_PIPLUS , NCRES_P_P_P_P_P_PIPLUS ,
  NCRES_PIMINUS , NCRES_P_PIMINUS , NCRES_P_P_PIMINUS , NCRES_P_P_P_PIMINUS ,
  NCRES_P_P_P_P_PIMINUS , NCRES_P_P_P_P_P_PIMINUS , NCRES_PHOTON , NCRES_P_PHOTON ,
  NCRES_P_P_PHOTON , NCRES_P_P_P_PHOTON , NCRES_P_P_P_P_PHOTON , NCRES_P_P_P_P_P_PHOTON ,
  NCRES_PIZERO , NCRES_P_PIZERO , NCRES_P_P_PIZERO , NCRES_P_P_P_PIZERO ,
  NCRES_P_P_P_P_PIZERO , NCRES_P_P_P_P_P_PIZERO , CCDIS_MU , CCDIS_MU_P ,
  CCDIS_MU_P_P , CCDIS_MU_P_P_P , CCDIS_MU_P_P_P_P , CCDIS_MU_P_P_P_P_P ,
  CCDIS_MU_PIPLUS , CCDIS_MU_P_PIPLUS , CCDIS_MU_P_P_PIPLUS , CCDIS_MU_P_P_P_PIPLUS ,
  CCDIS_MU_P_P_P_P_PIPLUS , CCDIS_MU_P_P_P_P_P_PIPLUS , CCDIS_MU_PHOTON , CCDIS_MU_P_PHOTON ,
  CCDIS_MU_P_P_PHOTON , CCDIS_MU_P_P_P_PHOTON , CCDIS_MU_P_P_P_P_PHOTON , CCDIS_MU_P_P_P_P_P_PHOTON ,
  CCDIS_MU_PIZERO , CCDIS_MU_P_PIZERO , CCDIS_MU_P_P_PIZERO , CCDIS_MU_P_P_P_PIZERO ,
  CCDIS_MU_P_P_P_P_PIZERO , CCDIS_MU_P_P_P_P_P_PIZERO , NCDIS_P , NCDIS_P_P ,
  NCDIS_P_P_P , NCDIS_P_P_P_P , NCDIS_P_P_P_P_P , NCDIS_PIPLUS ,
  NCDIS_P_PIPLUS , NCDIS_P_P_PIPLUS , NCDIS_P_P_P_PIPLUS , NCDIS_P_P_P_P_PIPLUS ,
  NCDIS_P_P_P_P_P_PIPLUS , NCDIS_PIMINUS , NCDIS_P_PIMINUS , NCDIS_P_P_PIMINUS ,
  NCDIS_P_P_P_PIMINUS , NCDIS_P_P_P_P_PIMINUS , NCDIS_P_P_P_P_P_PIMINUS , NCDIS_PHOTON ,
  NCDIS_P_PHOTON , NCDIS_P_P_PHOTON , NCDIS_P_P_P_PHOTON , NCDIS_P_P_P_P_PHOTON ,
  NCDIS_P_P_P_P_P_PHOTON , NCDIS_PIZERO , NCDIS_P_PIZERO , NCDIS_P_P_PIZERO ,
  NCDIS_P_P_P_PIZERO , NCDIS_P_P_P_P_PIZERO , NCDIS_P_P_P_P_P_PIZERO , CCCOH ,
  NCCOH , COSMIC_RAY_MU , COSMIC_RAY_P , COSMIC_RAY_E ,
  COSMIC_RAY_PHOTON , COSMIC_RAY_OTHER , BEAM_PARTICLE_MU , BEAM_PARTICLE_P ,
  BEAM_PARTICLE_E , BEAM_PARTICLE_PHOTON , BEAM_PARTICLE_PI_PLUS , BEAM_PARTICLE_PI_MINUS ,
  BEAM_PARTICLE_KAON_PLUS , BEAM_PARTICLE_KAON_MINUS , BEAM_PARTICLE_OTHER , OTHER_INTERACTION ,
  ALL_INTERACTIONS
}
 InteractionType enum. More...
 

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 &parameters=Parameters())
 Validation - Main entry point for analysis.
 
int ReadNextEvent (TChain *const pTChain, const int iEntry, SimpleMCEvent &simpleMCEvent, const Parameters &parameters)
 Read the next event from the chain.
 
void DisplaySimpleMCEventMatches (const SimpleMCEvent &simpleMCEvent, const Parameters &parameters)
 Print matching details to screen for a simple mc event.
 
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.
 
bool PassFiducialCut (const SimpleMCTarget &simpleMCTarget, const Parameters &parameters)
 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 &parameters)
 Print details to screen for a provided interaction type to counting map.
 
void AnalyseInteractionTargetResultMap (const InteractionTargetResultMap &interactionTargetResultMap, const Parameters &parameters)
 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 &parameters, 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 Documentation

◆ CountingMap

Definition at line 432 of file Validation.h.

◆ FloatVector

typedef std::vector<float> FloatVector

Definition at line 14 of file Validation.h.

◆ InteractionCountingMap

Definition at line 433 of file Validation.h.

◆ InteractionPrimaryHistogramMap

Definition at line 529 of file Validation.h.

◆ InteractionTargetHistogramMap

◆ InteractionTargetResultMap

Definition at line 482 of file Validation.h.

◆ IntVector

typedef std::vector<int> IntVector

Definition at line 13 of file Validation.h.

◆ PrimaryHistogramMap

Definition at line 528 of file Validation.h.

◆ PrimaryResultMap

Definition at line 458 of file Validation.h.

◆ SimpleMCEventList

typedef std::vector<SimpleMCEvent> SimpleMCEventList

Definition at line 195 of file Validation.h.

◆ SimpleMCPrimaryList

typedef std::vector<SimpleMCPrimary> SimpleMCPrimaryList

Definition at line 129 of file Validation.h.

◆ SimpleMCTargetList

typedef std::vector<SimpleMCTarget> SimpleMCTargetList

Definition at line 173 of file Validation.h.

◆ SimpleThreeVectorList

Definition at line 69 of file Validation.h.

◆ TargetResultList

typedef std::vector<TargetResult> TargetResultList

Definition at line 481 of file Validation.h.

Enumeration Type Documentation

◆ ExpectedPrimary

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.

◆ InteractionType

enum InteractionType : int

InteractionType enum.

Enumerator
CCQEL_MU 
CCQEL_MU_P 
CCQEL_MU_P_P 
CCQEL_MU_P_P_P 
CCQEL_MU_P_P_P_P 
CCQEL_MU_P_P_P_P_P 
CCQEL_E 
CCQEL_E_P 
CCQEL_E_P_P 
CCQEL_E_P_P_P 
CCQEL_E_P_P_P_P 
CCQEL_E_P_P_P_P_P 
NCQEL_P 
NCQ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P_P_P_PIPLUS 
NCDIS_PIMINUS 
NCDIS_P_PIMINUS 
NCDIS_P_P_PIMINUS 
NCDIS_P_P_P_PIMINUS 
NCDIS_P_P_P_P_PIMINUS 
NCDIS_P_P_P_P_P_PIMINUS 
NCDIS_PHOTON 
NCDIS_P_PHOTON 
NCDIS_P_P_PHOTON 
NCDIS_P_P_P_PHOTON 
NCDIS_P_P_P_P_PHOTON 
NCDIS_P_P_P_P_P_PHOTON 
NCDIS_PIZERO 
NCDIS_P_PIZERO 
NCDIS_P_P_PIZERO 
NCDIS_P_P_P_PIZERO 
NCDIS_P_P_P_P_PIZERO 
NCDIS_P_P_P_P_P_PIZERO 
CCCOH 
NCCOH 
COSMIC_RAY_MU 
COSMIC_RAY_P 
COSMIC_RAY_E 
COSMIC_RAY_PHOTON 
COSMIC_RAY_OTHER 
BEAM_PARTICLE_MU 
BEAM_PARTICLE_P 
BEAM_PARTICLE_E 
BEAM_PARTICLE_PHOTON 
BEAM_PARTICLE_PI_PLUS 
BEAM_PARTICLE_PI_MINUS 
BEAM_PARTICLE_KAON_PLUS 
BEAM_PARTICLE_KAON_MINUS 
BEAM_PARTICLE_OTHER 
OTHER_INTERACTION 
ALL_INTERACTIONS 

Definition at line 233 of file Validation.h.

Function Documentation

◆ AnalyseInteractionTargetResultMap()

void AnalyseInteractionTargetResultMap ( const InteractionTargetResultMap interactionTargetResultMap,
const Parameters parameters 
)

Opportunity to fill histograms, perform post-processing of information collected in main loop over ntuple, etc.

Parameters
interactionTargetResultMapthe interaction target result map
parametersthe parameters

Definition at line 533 of file Validation.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CountPfoMatches()

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.

Parameters
simpleMCEventthe simple mc event
parametersthe parameters
interactionCountingMapthe interaction counting map, to be populated
interactionTargetResultMapthe interaction target outcome map, to be populated

Definition at line 311 of file Validation.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DisplayInteractionCountingMap()

void DisplayInteractionCountingMap ( const InteractionCountingMap interactionCountingMap,
const Parameters parameters 
)

Print details to screen for a provided interaction type to counting map.

Parameters
interactionCountingMapthe interaction counting map
parametersthe parameters

Definition at line 484 of file Validation.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DisplaySimpleMCEventMatches()

void DisplaySimpleMCEventMatches ( const SimpleMCEvent simpleMCEvent,
const Parameters parameters 
)

Print matching details to screen for a simple mc event.

Parameters
simpleMCEventthe simple mc event
parametersthe parameters

Definition at line 212 of file Validation.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FillPrimaryHistogramCollection()

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.

Parameters
histPrefixthe histogram prefix
parametersthe parameters
primaryResultthe primary result
primaryHistogramCollectionthe primary histogram collection

Definition at line 655 of file Validation.C.

Here is the caller graph for this function:

◆ FillTargetHistogramCollection()

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.

Parameters
histPrefixthe histogram prefix
targetResultthe target result
targetHistogramCollectionthe target histogram collection

Definition at line 613 of file Validation.C.

Here is the caller graph for this function:

◆ GetExpectedPrimary()

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.

Parameters
simpleMCPrimarythe simple mc primary
simpleMCPrimaryListthe simple mc primary list
Returns
the expected primary

Definition at line 433 of file Validation.C.

Here is the caller graph for this function:

◆ IsGoodParticleIdMatch()

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.

Parameters
simpleMCPrimarythe simple mc primary
bestMatchPfoPdgCodethe best matched pfo pdg code
Returns
boolean

Definition at line 469 of file Validation.C.

Here is the caller graph for this function:

◆ operator+()

SimpleThreeVector operator+ ( const SimpleThreeVector lhs,
const SimpleThreeVector rhs 
)

Simple three vector addition operator.

Parameters
lhsfirst vector, from which the second is added
rhssecond vector, which is added to the first

Definition at line 708 of file Validation.h.

◆ operator-()

SimpleThreeVector operator- ( const SimpleThreeVector lhs,
const SimpleThreeVector rhs 
)

Simple three vector subtraction operator.

Parameters
lhsfirst vector, from which the second is subtracted
rhssecond vector, which is subtracted from the first

Definition at line 701 of file Validation.h.

◆ PassFiducialCut()

bool PassFiducialCut ( const SimpleMCTarget simpleMCTarget,
const Parameters parameters 
)

Whether a simple mc event passes the relevant fiducial cut, applied to target vertices.

Parameters
simpleMCTargetthe simple mc target
parametersthe parameters
Returns
boolean

Definition at line 382 of file Validation.C.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PassSBNDFiducialCut()

bool PassSBNDFiducialCut ( const SimpleMCTarget simpleMCTarget)

Whether a simple mc event passes sbnd fiducial cut, applied to target vertices.

Parameters
simpleMCTargetthe simple mc target
Returns
boolean

Definition at line 415 of file Validation.C.

Here is the caller graph for this function:

◆ PassUbooneFiducialCut()

bool PassUbooneFiducialCut ( const SimpleMCTarget simpleMCTarget)

Whether a simple mc event passes uboone fiducial cut, applied to target vertices.

Parameters
simpleMCTargetthe simple mc target
Returns
boolean

Definition at line 398 of file Validation.C.

Here is the caller graph for this function:

◆ ProcessHistogramCollections()

void ProcessHistogramCollections ( const InteractionPrimaryHistogramMap interactionPrimaryHistogramMap)

Process histograms stored in the provided map e.g. calculating final efficiencies, normalising, etc.

Parameters
interactionPrimaryHistogramMapthe interaction primary histogram map

Definition at line 729 of file Validation.C.

Here is the caller graph for this function:

◆ ReadNextEvent()

int ReadNextEvent ( TChain *const  pTChain,
const int  iEntry,
SimpleMCEvent simpleMCEvent,
const Parameters parameters 
)

Read the next event from the chain.

Parameters
pTChainthe address of the chain
iEntrythe first chain entry to read
simpleMCEventthe event to be populated
parametersthe parameters
Returns
the number of chain entries read

Definition at line 55 of file Validation.C.

Here is the caller graph for this function:

◆ ToString() [1/2]

std::string ToString ( const ExpectedPrimary  expectedPrimary)

Get a string representation of an interaction type.

Parameters
interactionTypethe interaction type
Returns
string

Definition at line 769 of file Validation.C.

Here is the caller graph for this function:

◆ ToString() [2/2]

std::string ToString ( const InteractionType  interactionType)

Get a string representation of an interaction type.

Parameters
interactionTypethe interaction type
Returns
string

Definition at line 792 of file Validation.C.

◆ Validation()

void Validation ( const std::string &  inputFiles,
const Parameters parameters = Parameters() 
)

Validation - Main entry point for analysis.

Parameters
inputFilesthe regex identifying the input root files
parametersthe parameters

Definition at line 18 of file Validation.C.

Here is the call graph for this function: