Selected information about the event. More...
#include <EventInfo_t.h>
Public Types | |
Local type aliases | |
using | GeV = util::quantities::gigaelectronvolt |
using | simulation_time = detinfo::timescales::simulation_time |
Public Member Functions | |
EventInfo_t () | |
Constructor. As if nobody noticed. More... | |
void | dump (std::ostream &out) const |
Prints the content of the object into a stream. More... | |
Generation information | |
The information is available only if | |
bool | hasGenerated () const |
Returns whether generator information is available. More... | |
unsigned int | nWeakChargedCurrentInteractions () const |
Returns the number of weak charged current interactions in the event. More... | |
unsigned int | nWeakNeutralCurrentInteractions () const |
Returns the number of weak neutral current interactions in the event. More... | |
unsigned int | nWeakCurrentInteractions () const |
Returns the number of weak current interactions in the event. More... | |
bool | isWeakChargedCurrent () const |
Returns whether the event is generated as a neutrino CC interaction. More... | |
bool | isWeakNeutralCurrent () const |
Returns whether the event is generated as a neutrino NC interaction. More... | |
bool | isNeutrino () const |
Returns whether the event is generated as a neutrino interaction. More... | |
bool | isNu_mu () const |
Returns which neutrino flavor is present in an event. More... | |
bool | isNu_e () const |
int | NeutrinoPDG () const |
Returns the neutrino PDG code. More... | |
GeV | NeutrinoEnergy () const |
Returns the neutrino energy [GeV]. More... | |
GeV | LeptonEnergy () const |
Returns the lepton energy [GeV]. More... | |
int | InteractionType () const |
Returns the interaction type. More... | |
simulation_time | InteractionTime () const |
Returns the time of the first interaction, in simulation time scale [ns]. More... | |
bool | hasVertex () const |
Returns whether this type of event has a known vertex. More... | |
unsigned int | nVertices () const |
Returns the number of known interaction vertices. More... | |
std::vector< geo::Point_t > const & | Vertices () const |
Returns the list of a known interaction vertex. More... | |
bool | isInActiveVolume () const |
Returns whether there is an interaction within the active volume. More... | |
Deposited energy information | |
The information is available only if | |
bool | hasDepEnergy () const |
Returns whether generator information is available. More... | |
GeV | DepositedEnergy () const |
Returns the total energy deposited in the detector during the event [GeV]. More... | |
GeV | DepositedEnergyInSpill () const |
Returns the total energy deposited in the detector during beam [GeV]. More... | |
GeV | DepositedEnergyInPreSpill () const |
GeV | DepositedEnergyInActiveVolume () const |
Returns the energy deposited in the active volume during the event [GeV]. More... | |
GeV | DepositedEnergyInSpillInActiveVolume () const |
Returns the energy deposited in the active volume during the beam [GeV]. More... | |
GeV | DepositedEnergyInPreSpillInActiveVolume () const |
Set interface | |
void | AddWeakChargedCurrentInteractions (unsigned int n=1U) |
Marks this event as including n more weak charged current interactions. More... | |
void | AddWeakNeutralCurrentInteractions (unsigned int n=1U) |
Marks this event as including n more weak neutral current interactions. More... | |
void | SetNu_mu (bool numu) |
Marks the flavor of the neutrino in the first interaction. More... | |
void | SetNu_e (bool nue) |
void | SetNeutrinoPDG (int NU) |
Marks the neutrino type of the first interaction in the event. More... | |
void | SetNeutrinoEnergy (GeV eNu) |
Sets the neutrino energy. More... | |
void | SetLeptonEnergy (GeV eL) |
Sets the lepton energy. More... | |
void | SetInteractionType (int type) |
Sets the interaction type. More... | |
void | SetInteractionTime (simulation_time time) |
Sets the time of the first interaction. More... | |
void | SetInActiveVolume (bool active=true) |
Set whether the event has relevant activity in the active volume. More... | |
void | AddVertex (geo::Point_t const &vertex) |
Adds a point to the list of interaction vertices in the event. More... | |
void | InsertVertex (geo::Point_t const &vertex, std::size_t beforeIndex) |
void | SetDepositedEnergy (GeV e) |
Sets the total deposited energy of the event [GeV]. More... | |
void | SetDepositedEnergyInSpill (GeV e) |
Sets the energy of the event deposited during beam gate [GeV]. More... | |
void | SetDepositedEnergyInPreSpill (GeV e) |
Sets the energy of the event deposited during pre-spill window [GeV]. More... | |
void | SetDepositedEnergyInActiveVolume (GeV e) |
Sets the total deposited energy of the event in active volume [GeV]. More... | |
void | SetDepositedEnergyInSpillInActiveVolume (GeV e) |
void | SetDepositedEnergyInPreSpillInActiveVolume (GeV e) |
Private Member Functions | |
void | setGen () |
Declares that this object has generator information. More... | |
void | setDep () |
Declares that this object has deposited energy information. More... | |
Private Attributes | |
bool | fHasGenerated = false |
Whether generation information is available. More... | |
std::array< unsigned int, NInteractionTypes > | fInteractions |
int | fNeutrinoPDG { 0 } |
int | fInteractionType { 0 } |
simulation_time | fInteractionTime |
Time of the first interaction [ns]. More... | |
GeV | fNeutrinoEnergy { 0.0 } |
GeV | fLeptonEnergy { 0.0 } |
bool | nu_mu { false } |
bool | nu_e { false } |
bool | fInActiveVolume { false } |
Whether the event has activity inside the active volume. More... | |
std::vector< geo::Point_t > | fVertices |
Position of all vertices. More... | |
bool | fHasDepEnergy = false |
Whether deposited energy info is available. More... | |
GeV | fEnergyDepTotal { 0.0 } |
Total deposited energy. More... | |
GeV | fEnergyDepSpill { 0.0 } |
Energy deposited in spill. More... | |
GeV | fEnergyDepPreSpill { 0.0 } |
Energy deposited in pre-spill. More... | |
GeV | fEnergyDepActive { 0.0 } |
GeV | fEnergyDepSpillActive { 0.0 } |
Energy deposited in active volume in spill. More... | |
GeV | fEnergyDepPreSpillActive { 0.0 } |
Energy deposited in active volume in pre-spill window. More... | |
Static Private Attributes | |
static constexpr std::size_t | itWCC { 0U } |
Charged weak current. More... | |
static constexpr std::size_t | itWNC { 1U } |
Neutral weak current. More... | |
static constexpr std::size_t | NInteractionTypes { 2U } |
Selected information about the event.
This is intended as a record for transferring relevant event information between object.
The exact definition of the quantities is deferred to the user (e.g. when and how long the beam and pre-spill windows are, the definition of active volume, etc.).
Definition at line 45 of file EventInfo_t.h.
Definition at line 49 of file EventInfo_t.h.
Definition at line 50 of file EventInfo_t.h.
|
inline |
Constructor. As if nobody noticed.
Definition at line 54 of file EventInfo_t.h.
|
inline |
Adds a point to the list of interaction vertices in the event.
Definition at line 205 of file EventInfo_t.h.
|
inline |
Marks this event as including n more weak charged current interactions.
Definition at line 173 of file EventInfo_t.h.
|
inline |
Marks this event as including n more weak neutral current interactions.
Definition at line 177 of file EventInfo_t.h.
|
inline |
Returns the total energy deposited in the detector during the event [GeV].
Definition at line 143 of file EventInfo_t.h.
|
inline |
Returns the energy deposited in the active volume during the event [GeV].
Definition at line 153 of file EventInfo_t.h.
|
inline |
Returns the total energy deposited in the detector in the pre-spill window [GeV]
Definition at line 150 of file EventInfo_t.h.
|
inline |
Returns the energy deposited in the active volume during the pre-spill window [GeV]
Definition at line 161 of file EventInfo_t.h.
|
inline |
Returns the total energy deposited in the detector during beam [GeV].
Definition at line 146 of file EventInfo_t.h.
|
inline |
Returns the energy deposited in the active volume during the beam [GeV].
Definition at line 156 of file EventInfo_t.h.
void EventInfo_t::dump | ( | std::ostream & | out | ) | const |
Prints the content of the object into a stream.
Definition at line 21 of file EventInfo_t.cxx.
|
inline |
Returns whether generator information is available.
Definition at line 140 of file EventInfo_t.h.
|
inline |
Returns whether generator information is available.
Definition at line 66 of file EventInfo_t.h.
|
inline |
Returns whether this type of event has a known vertex.
Definition at line 115 of file EventInfo_t.h.
|
inline |
Inserts a point in the specified position of the list of interaction vertices in the event.
Definition at line 210 of file EventInfo_t.h.
|
inline |
Returns the time of the first interaction, in simulation time scale [ns].
Definition at line 112 of file EventInfo_t.h.
|
inline |
Returns the interaction type.
Definition at line 109 of file EventInfo_t.h.
|
inline |
Returns whether there is an interaction within the active volume.
Definition at line 124 of file EventInfo_t.h.
|
inline |
Returns whether the event is generated as a neutrino interaction.
Definition at line 92 of file EventInfo_t.h.
|
inline |
Definition at line 97 of file EventInfo_t.h.
|
inline |
|
inline |
Returns whether the event is generated as a neutrino CC interaction.
Definition at line 84 of file EventInfo_t.h.
|
inline |
Returns whether the event is generated as a neutrino NC interaction.
Definition at line 88 of file EventInfo_t.h.
|
inline |
|
inline |
Returns the neutrino energy [GeV].
Definition at line 103 of file EventInfo_t.h.
|
inline |
|
inline |
Returns the number of known interaction vertices.
Definition at line 118 of file EventInfo_t.h.
|
inline |
Returns the number of weak charged current interactions in the event.
Definition at line 69 of file EventInfo_t.h.
|
inline |
Returns the number of weak current interactions in the event.
Definition at line 77 of file EventInfo_t.h.
|
inline |
Returns the number of weak neutral current interactions in the event.
Definition at line 73 of file EventInfo_t.h.
|
inlineprivate |
Declares that this object has deposited energy information.
Definition at line 297 of file EventInfo_t.h.
|
inline |
Sets the total deposited energy of the event [GeV].
Definition at line 214 of file EventInfo_t.h.
|
inline |
Sets the total deposited energy of the event in active volume [GeV].
Definition at line 223 of file EventInfo_t.h.
|
inline |
Sets the energy of the event deposited during pre-spill window [GeV].
Definition at line 220 of file EventInfo_t.h.
|
inline |
Sets the energy of the event deposited during pre-spill window in active volume [GeV]
Definition at line 233 of file EventInfo_t.h.
|
inline |
Sets the energy of the event deposited during beam gate [GeV].
Definition at line 217 of file EventInfo_t.h.
|
inline |
Sets the energy of the event deposited during beam gate in active volume [GeV]
Definition at line 228 of file EventInfo_t.h.
|
inlineprivate |
Declares that this object has generator information.
Definition at line 294 of file EventInfo_t.h.
|
inline |
Set whether the event has relevant activity in the active volume.
Definition at line 201 of file EventInfo_t.h.
|
inline |
Sets the time of the first interaction.
Definition at line 197 of file EventInfo_t.h.
|
inline |
Sets the interaction type.
Definition at line 194 of file EventInfo_t.h.
|
inline |
Sets the lepton energy.
Definition at line 191 of file EventInfo_t.h.
|
inline |
Sets the neutrino energy.
Definition at line 188 of file EventInfo_t.h.
|
inline |
Marks the neutrino type of the first interaction in the event.
Definition at line 185 of file EventInfo_t.h.
|
inline |
Definition at line 182 of file EventInfo_t.h.
|
inline |
Marks the flavor of the neutrino in the first interaction.
Definition at line 181 of file EventInfo_t.h.
|
inline |
Returns the list of a known interaction vertex.
Definition at line 121 of file EventInfo_t.h.
|
private |
Energy deposited in active volume.
Definition at line 284 of file EventInfo_t.h.
|
private |
Energy deposited in pre-spill.
Definition at line 283 of file EventInfo_t.h.
|
private |
Energy deposited in active volume in pre-spill window.
Definition at line 288 of file EventInfo_t.h.
|
private |
Energy deposited in spill.
Definition at line 282 of file EventInfo_t.h.
|
private |
Energy deposited in active volume in spill.
Definition at line 286 of file EventInfo_t.h.
|
private |
Total deposited energy.
Definition at line 281 of file EventInfo_t.h.
|
private |
Whether deposited energy info is available.
Definition at line 279 of file EventInfo_t.h.
|
private |
Whether generation information is available.
Definition at line 254 of file EventInfo_t.h.
|
private |
Whether the event has activity inside the active volume.
Definition at line 271 of file EventInfo_t.h.
|
private |
Definition at line 256 of file EventInfo_t.h.
|
private |
Time of the first interaction [ns].
Definition at line 261 of file EventInfo_t.h.
|
private |
Definition at line 259 of file EventInfo_t.h.
|
private |
Definition at line 264 of file EventInfo_t.h.
|
private |
Definition at line 263 of file EventInfo_t.h.
|
private |
Definition at line 258 of file EventInfo_t.h.
|
private |
Position of all vertices.
Definition at line 273 of file EventInfo_t.h.
|
staticprivate |
Charged weak current.
Definition at line 246 of file EventInfo_t.h.
|
staticprivate |
Neutral weak current.
Definition at line 247 of file EventInfo_t.h.
|
staticprivate |
Definition at line 248 of file EventInfo_t.h.
|
private |
Definition at line 268 of file EventInfo_t.h.
|
private |
Definition at line 267 of file EventInfo_t.h.