21 (TTree& tree,
bool fillGen ,
bool fillEDep )
22 :
TreeHolder(tree), fDoGen(fillGen), fDoEDep(fillEDep)
25 this->tree().Branch(
"CC", &fCC);
26 this->tree().Branch(
"NC", &fNC);
27 this->tree().Branch(
"IntType", &fIntType);
28 this->tree().Branch(
"Time", &fTime);
29 this->tree().Branch(
"NuE", &fNuE);
30 this->tree().Branch(
"OutLeptE", &fOutLeptE);
34 this->tree().Branch(
"TotE", &fTotE);
35 this->tree().Branch(
"SpillE", &fSpillE);
36 this->tree().Branch(
"PreSpillE", &fPreSpillE);
37 this->tree().Branch(
"ActiveE", &fActiveE);
38 this->tree().Branch(
"SpillActiveE", &fSpillActiveE);
39 this->tree().Branch(
"PreSpillActiveE", &fPreSpillActiveE);
43 this->tree().Branch(
"InActive", &fInActive);
44 this->tree().Branch(
"Vertices", &fVertices);
bool isInActiveVolume() const
Returns whether there is an interaction within the active volume.
void assignEvent(EventInfo_t const &info)
Fills the information of the specified event.
GeV NeutrinoEnergy() const
Returns the neutrino energy [GeV].
GeV LeptonEnergy() const
Returns the lepton energy [GeV].
GeV DepositedEnergyInPreSpill() const
EventInfoTree(TTree &tree, bool fillGen=true, bool fillEDep=true)
Creates the required branches and assigns addresses to them.
unsigned int nWeakChargedCurrentInteractions() const
Returns the number of weak charged current interactions in the event.
Simple class holding a tree.
GeV DepositedEnergyInSpill() const
Returns the total energy deposited in the detector during beam [GeV].
simulation_time InteractionTime() const
Returns the time of the first interaction, in simulation time scale [ns].
GeV DepositedEnergyInSpillInActiveVolume() const
Returns the energy deposited in the active volume during the beam [GeV].
Class writing event information into a ROOT tree.
GeV DepositedEnergyInPreSpillInActiveVolume() const
GeV DepositedEnergy() const
Returns the total energy deposited in the detector during the event [GeV].
GeV DepositedEnergyInActiveVolume() const
Returns the energy deposited in the active volume during the event [GeV].
Selected information about the event.
unsigned int nWeakNeutralCurrentInteractions() const
Returns the number of weak neutral current interactions in the event.
std::vector< geo::Point_t > const & Vertices() const
Returns the list of a known interaction vertex.
int InteractionType() const
Returns the interaction type.