An example selection analysis. More...
#include <ExampleSelection.h>
Public Member Functions | |
| ExampleSelection () | |
| void | Initialize (fhicl::ParameterSet *config=NULL) |
| void | Finalize () |
| bool | ProcessEvent (const gallery::Event &ev, const std::vector< event::Interaction > &truth, std::vector< event::RecoInteraction > &reco) |
Public Member Functions inherited from core::SelectionBase | |
| SelectionBase () | |
| virtual | ~SelectionBase () |
Public Member Functions inherited from core::ProcessorBase | |
| ProcessorBase () | |
| virtual | ~ProcessorBase () |
| virtual void | FillTree () |
| virtual void | FillRecoTree () |
| virtual void | EventCleanup () |
| template<class T > | |
| TBranch * | AddBranch (std::string name, T *obj) |
| template<class T > | |
| TBranch * | AddRecoBranch (std::string name, T *obj) |
Protected Attributes | |
| unsigned | fEventCounter |
| Count processed events. More... | |
| art::InputTag | fTruthTag |
| art tag for MCTruth information More... | |
| int | fMyParam |
| A parameter from the configuration file. More... | |
| int | fNuCount |
| Number of neutrino interactions in the event. More... | |
| int | fMyVar |
| Another variable of interest. More... | |
| TH2D * | fNuVertexXZHist |
| Neutrino vertex XZ projection. More... | |
Protected Attributes inherited from core::ProcessorBase | |
| unsigned long | fEventIndex |
| An incrementing index. More... | |
| Experiment | fExperimentID |
| Experiment identifier. More... | |
| ProviderManager * | fProviderManager |
| Interface for provider access. More... | |
| std::string | fOutputFilename |
| The output filename. More... | |
| std::string | fProviderConfig |
| A custom provider config fcl file. More... | |
| std::vector< geo::BoxBoundedGeo > | fActiveVolumes |
| List of active volumes in configured detector. More... | |
| bool | fWriteTree |
| Enable writing of the main tree. More... | |
| TFile * | fOutputFile |
| The output ROOT file. More... | |
| TTree * | fTree |
| The output ROOT tree. More... | |
| event::Event * | fEvent |
| The standard output event data structure. More... | |
| bool | fWriteRecoTree |
| Enable writing of the reco tree. More... | |
| TTree * | fRecoTree |
| The output reco ROOT tree. More... | |
| event::RecoEvent * | fRecoEvent |
| The standard output reco event data structure. More... | |
| TTree * | fSubRunTree |
| Subrun output tree. More... | |
| SubRun * | fSubRun |
| Standard output subrun structure. More... | |
| TTree * | fFileMetaTree |
| File metadata output tree. More... | |
| FileMeta * | fFileMeta |
| standard output file metadata structure More... | |
| TParameter< int > * | fExperimentParameter |
| Saves value of experiment enum. More... | |
| std::set< std::pair< int, int > > | fSubRunCache |
| Cache stored subruns. More... | |
| art::InputTag | fTruthTag |
| art tag for MCTruth information More... | |
| art::InputTag | fFluxTag |
| art tag for MCFlux information More... | |
| std::vector< art::InputTag > | fWeightTags |
| art tag(s) for MCEventWeight information More... | |
| art::InputTag | fMCTrackTag |
| art tag for MCTrack More... | |
| art::InputTag | fMCShowerTag |
| art tag for MCShower More... | |
| art::InputTag | fMCParticleTag |
| art tag for MCParticle More... | |
| std::string | fGeneratorProcess |
| process_name of process used to run genie. Used to extract subrun/POT information More... | |
Additional Inherited Members | |
Public Attributes inherited from core::ProcessorBase | |
| std::vector < event::RecoInteraction > * | fReco |
| Reco interaction list. More... | |
Protected Member Functions inherited from core::ProcessorBase | |
| virtual void | Initialize (char *config=NULL) |
| virtual void | Setup (char *config=NULL) |
| virtual void | Setup (fhicl::ParameterSet *config=NULL) |
| virtual void | Teardown () |
| void | BuildEventTree (gallery::Event &ev) |
| void | SetupServices (gallery::Event &ev) |
| void | UpdateSubRuns (gallery::Event &ev) |
| void | UpdateFileMeta (gallery::Event &ev) |
An example selection analysis.
This selection analysis doesn't actually select events, it just demonstrates the framework!
Definition at line 38 of file ExampleSelection.h.
| ana::ExampleAnalysis::ExampleSelection::ExampleSelection | ( | ) |
Constructor.
Definition at line 19 of file ExampleSelection.cxx.
|
virtual |
Finalize and write objects to the output file.
Implements core::ProcessorBase.
Definition at line 58 of file ExampleSelection.cxx.
|
virtual |
Initialization.
Here we load configuration parameters, set up histograms for output, and add our own branches to the output tree.
| config | A configuration, as FHiCL ParameterSet object |
Implements core::ProcessorBase.
Definition at line 23 of file ExampleSelection.cxx.
|
virtual |
Process one event.
| ev | A single event, as a gallery::Event |
| reco | Reconstructed interactions |
Implements core::ProcessorBase.
Definition at line 65 of file ExampleSelection.cxx.
|
protected |
Count processed events.
Definition at line 68 of file ExampleSelection.h.
|
protected |
A parameter from the configuration file.
Definition at line 72 of file ExampleSelection.h.
|
protected |
Another variable of interest.
Definition at line 76 of file ExampleSelection.h.
|
protected |
Number of neutrino interactions in the event.
Custom data branches
Definition at line 75 of file ExampleSelection.h.
|
protected |
|
protected |
art tag for MCTruth information
Configuration parameters
Definition at line 71 of file ExampleSelection.h.
1.8.5