All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
icarus::trigger::details::EventInfo_t Struct Reference

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 hasGenerated() returns true. Otherwise, the return value of all the members in this group is undefined.

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 hasDepEnergy() returns true. Otherwise, the return value of all the members in this group is undefined.

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_tfVertices
 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 }
 

Detailed Description

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.

Member Typedef Documentation

Definition at line 49 of file EventInfo_t.h.

Definition at line 50 of file EventInfo_t.h.

Constructor & Destructor Documentation

icarus::trigger::details::EventInfo_t::EventInfo_t ( )
inline

Constructor. As if nobody noticed.

Definition at line 54 of file EventInfo_t.h.

54 { fInteractions.fill(0U); }
std::array< unsigned int, NInteractionTypes > fInteractions
Definition: EventInfo_t.h:256

Member Function Documentation

void icarus::trigger::details::EventInfo_t::AddVertex ( geo::Point_t const &  vertex)
inline

Adds a point to the list of interaction vertices in the event.

Definition at line 205 of file EventInfo_t.h.

206  { setGen(); fVertices.push_back(vertex); }
process_name vertex
Definition: cheaterreco.fcl:51
std::vector< geo::Point_t > fVertices
Position of all vertices.
Definition: EventInfo_t.h:273
void setGen()
Declares that this object has generator information.
Definition: EventInfo_t.h:294
void icarus::trigger::details::EventInfo_t::AddWeakChargedCurrentInteractions ( unsigned int  n = 1U)
inline

Marks this event as including n more weak charged current interactions.

Definition at line 173 of file EventInfo_t.h.

174  { setGen(); fInteractions[itWCC] += n; }
std::array< unsigned int, NInteractionTypes > fInteractions
Definition: EventInfo_t.h:256
void setGen()
Declares that this object has generator information.
Definition: EventInfo_t.h:294
static constexpr std::size_t itWCC
Charged weak current.
Definition: EventInfo_t.h:246
void icarus::trigger::details::EventInfo_t::AddWeakNeutralCurrentInteractions ( unsigned int  n = 1U)
inline

Marks this event as including n more weak neutral current interactions.

Definition at line 177 of file EventInfo_t.h.

178  { setGen(); fInteractions[itWNC] += n; }
std::array< unsigned int, NInteractionTypes > fInteractions
Definition: EventInfo_t.h:256
void setGen()
Declares that this object has generator information.
Definition: EventInfo_t.h:294
static constexpr std::size_t itWNC
Neutral weak current.
Definition: EventInfo_t.h:247
GeV icarus::trigger::details::EventInfo_t::DepositedEnergy ( ) const
inline

Returns the total energy deposited in the detector during the event [GeV].

Definition at line 143 of file EventInfo_t.h.

143 { return fEnergyDepTotal; }
GeV fEnergyDepTotal
Total deposited energy.
Definition: EventInfo_t.h:281
GeV icarus::trigger::details::EventInfo_t::DepositedEnergyInActiveVolume ( ) const
inline

Returns the energy deposited in the active volume during the event [GeV].

Definition at line 153 of file EventInfo_t.h.

GeV icarus::trigger::details::EventInfo_t::DepositedEnergyInPreSpill ( ) const
inline

Returns the total energy deposited in the detector in the pre-spill window [GeV]

Definition at line 150 of file EventInfo_t.h.

150 { return fEnergyDepPreSpill; }
GeV fEnergyDepPreSpill
Energy deposited in pre-spill.
Definition: EventInfo_t.h:283
GeV icarus::trigger::details::EventInfo_t::DepositedEnergyInPreSpillInActiveVolume ( ) const
inline

Returns the energy deposited in the active volume during the pre-spill window [GeV]

Definition at line 161 of file EventInfo_t.h.

162  { return fEnergyDepPreSpillActive; }
GeV fEnergyDepPreSpillActive
Energy deposited in active volume in pre-spill window.
Definition: EventInfo_t.h:288
GeV icarus::trigger::details::EventInfo_t::DepositedEnergyInSpill ( ) const
inline

Returns the total energy deposited in the detector during beam [GeV].

Definition at line 146 of file EventInfo_t.h.

146 { return fEnergyDepSpill; }
GeV fEnergyDepSpill
Energy deposited in spill.
Definition: EventInfo_t.h:282
GeV icarus::trigger::details::EventInfo_t::DepositedEnergyInSpillInActiveVolume ( ) const
inline

Returns the energy deposited in the active volume during the beam [GeV].

Definition at line 156 of file EventInfo_t.h.

157  { return fEnergyDepSpillActive; }
GeV fEnergyDepSpillActive
Energy deposited in active volume in spill.
Definition: EventInfo_t.h:286
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.

21  {
22  if (hasGenerated()) {
23  out << "Event contains:";
24  if (isNeutrino()) {
26  out << " " << nWeakChargedCurrentInteractions() << " CC";
28  out << " " << nWeakNeutralCurrentInteractions() << " NC";
29  if (isNu_mu()) out << " nu_mu";
30  if (isNu_e()) out << " nu_e";
31  out << "\nThe first neutrino has E=" << NeutrinoEnergy()
32  << " and becomes a lepton with E=" << LeptonEnergy()
34  << " interaction at " << InteractionTime()
35  ;
36  }
37  else {
38  out << " no neutrino interaction";
39  }
40  }
41  else {
42  out << "No generation information is available.";
43  }
44  if (hasDepEnergy()) {
45  out << "\nTotal deposited energy: " << DepositedEnergy()
46  << ", of which in spill/pre-spill " << DepositedEnergyInSpill()
47  << " / " << DepositedEnergyInPreSpill()
48  << ", in active volume " << DepositedEnergyInActiveVolume()
49  << ", in active volume and in spill/pre-spill "
52  }
53  else {
54  out << "\nNo energy deposition information is available.";
55  }
56  if (hasGenerated()) {
57  if (fVertices.empty()) {
58  out << "\nNo interaction vertex found.";
59  }
60  else {
61  auto iVertex = fVertices.begin();
62  auto const vend = fVertices.end();
63  out
64  << "\n" << fVertices.size() << " interaction vertices: " << *iVertex;
65  while (++iVertex != vend) out << "; " << *iVertex;
66  out << ".";
67  }
68  out << "\nThe event is" << (isInActiveVolume()? "": " NOT")
69  << " marked as in the active volume of the detector.";
70  }
71  out << "\n";
72  out.flush();
73 } // icarus::trigger::details::EventInfo_t::dump()
bool isInActiveVolume() const
Returns whether there is an interaction within the active volume.
Definition: EventInfo_t.h:124
std::vector< geo::Point_t > fVertices
Position of all vertices.
Definition: EventInfo_t.h:273
std::string TruthInteractionTypeName(int type)
GeV NeutrinoEnergy() const
Returns the neutrino energy [GeV].
Definition: EventInfo_t.h:103
GeV LeptonEnergy() const
Returns the lepton energy [GeV].
Definition: EventInfo_t.h:106
bool hasDepEnergy() const
Returns whether generator information is available.
Definition: EventInfo_t.h:140
unsigned int nWeakChargedCurrentInteractions() const
Returns the number of weak charged current interactions in the event.
Definition: EventInfo_t.h:69
bool isNu_mu() const
Returns which neutrino flavor is present in an event.
Definition: EventInfo_t.h:96
GeV DepositedEnergyInSpill() const
Returns the total energy deposited in the detector during beam [GeV].
Definition: EventInfo_t.h:146
simulation_time InteractionTime() const
Returns the time of the first interaction, in simulation time scale [ns].
Definition: EventInfo_t.h:112
GeV DepositedEnergyInSpillInActiveVolume() const
Returns the energy deposited in the active volume during the beam [GeV].
Definition: EventInfo_t.h:156
bool hasGenerated() const
Returns whether generator information is available.
Definition: EventInfo_t.h:66
GeV DepositedEnergyInPreSpillInActiveVolume() const
Definition: EventInfo_t.h:161
bool isNeutrino() const
Returns whether the event is generated as a neutrino interaction.
Definition: EventInfo_t.h:92
GeV DepositedEnergy() const
Returns the total energy deposited in the detector during the event [GeV].
Definition: EventInfo_t.h:143
GeV DepositedEnergyInActiveVolume() const
Returns the energy deposited in the active volume during the event [GeV].
Definition: EventInfo_t.h:153
unsigned int nWeakNeutralCurrentInteractions() const
Returns the number of weak neutral current interactions in the event.
Definition: EventInfo_t.h:73
int InteractionType() const
Returns the interaction type.
Definition: EventInfo_t.h:109
bool icarus::trigger::details::EventInfo_t::hasDepEnergy ( ) const
inline

Returns whether generator information is available.

Definition at line 140 of file EventInfo_t.h.

140 { return fHasDepEnergy; }
bool fHasDepEnergy
Whether deposited energy info is available.
Definition: EventInfo_t.h:279
bool icarus::trigger::details::EventInfo_t::hasGenerated ( ) const
inline

Returns whether generator information is available.

Definition at line 66 of file EventInfo_t.h.

66 { return fHasGenerated; }
bool fHasGenerated
Whether generation information is available.
Definition: EventInfo_t.h:254
bool icarus::trigger::details::EventInfo_t::hasVertex ( ) const
inline

Returns whether this type of event has a known vertex.

Definition at line 115 of file EventInfo_t.h.

115 { return !fVertices.empty(); }
std::vector< geo::Point_t > fVertices
Position of all vertices.
Definition: EventInfo_t.h:273
void icarus::trigger::details::EventInfo_t::InsertVertex ( geo::Point_t const &  vertex,
std::size_t  beforeIndex 
)
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.

211  { setGen(); fVertices.insert(next(begin(fVertices), beforeIndex), vertex); }
process_name vertex
Definition: cheaterreco.fcl:51
std::vector< geo::Point_t > fVertices
Position of all vertices.
Definition: EventInfo_t.h:273
void setGen()
Declares that this object has generator information.
Definition: EventInfo_t.h:294
auto begin(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:573
simulation_time icarus::trigger::details::EventInfo_t::InteractionTime ( ) const
inline

Returns the time of the first interaction, in simulation time scale [ns].

Definition at line 112 of file EventInfo_t.h.

112 { return fInteractionTime; }
simulation_time fInteractionTime
Time of the first interaction [ns].
Definition: EventInfo_t.h:261
int icarus::trigger::details::EventInfo_t::InteractionType ( ) const
inline

Returns the interaction type.

Definition at line 109 of file EventInfo_t.h.

bool icarus::trigger::details::EventInfo_t::isInActiveVolume ( ) const
inline

Returns whether there is an interaction within the active volume.

Definition at line 124 of file EventInfo_t.h.

124 { return fInActiveVolume; }
bool fInActiveVolume
Whether the event has activity inside the active volume.
Definition: EventInfo_t.h:271
bool icarus::trigger::details::EventInfo_t::isNeutrino ( ) const
inline

Returns whether the event is generated as a neutrino interaction.

Definition at line 92 of file EventInfo_t.h.

bool isWeakChargedCurrent() const
Returns whether the event is generated as a neutrino CC interaction.
Definition: EventInfo_t.h:84
bool isWeakNeutralCurrent() const
Returns whether the event is generated as a neutrino NC interaction.
Definition: EventInfo_t.h:88
bool icarus::trigger::details::EventInfo_t::isNu_e ( ) const
inline

Definition at line 97 of file EventInfo_t.h.

bool icarus::trigger::details::EventInfo_t::isNu_mu ( ) const
inline

Returns which neutrino flavor is present in an event.

Definition at line 96 of file EventInfo_t.h.

bool icarus::trigger::details::EventInfo_t::isWeakChargedCurrent ( ) const
inline

Returns whether the event is generated as a neutrino CC interaction.

Definition at line 84 of file EventInfo_t.h.

85  { return nWeakChargedCurrentInteractions() > 0U; }
unsigned int nWeakChargedCurrentInteractions() const
Returns the number of weak charged current interactions in the event.
Definition: EventInfo_t.h:69
bool icarus::trigger::details::EventInfo_t::isWeakNeutralCurrent ( ) const
inline

Returns whether the event is generated as a neutrino NC interaction.

Definition at line 88 of file EventInfo_t.h.

89  { return nWeakNeutralCurrentInteractions() > 0U; }
unsigned int nWeakNeutralCurrentInteractions() const
Returns the number of weak neutral current interactions in the event.
Definition: EventInfo_t.h:73
GeV icarus::trigger::details::EventInfo_t::LeptonEnergy ( ) const
inline

Returns the lepton energy [GeV].

Definition at line 106 of file EventInfo_t.h.

GeV icarus::trigger::details::EventInfo_t::NeutrinoEnergy ( ) const
inline

Returns the neutrino energy [GeV].

Definition at line 103 of file EventInfo_t.h.

int icarus::trigger::details::EventInfo_t::NeutrinoPDG ( ) const
inline

Returns the neutrino PDG code.

Definition at line 100 of file EventInfo_t.h.

unsigned int icarus::trigger::details::EventInfo_t::nVertices ( ) const
inline

Returns the number of known interaction vertices.

Definition at line 118 of file EventInfo_t.h.

118 { return fVertices.size(); }
std::vector< geo::Point_t > fVertices
Position of all vertices.
Definition: EventInfo_t.h:273
unsigned int icarus::trigger::details::EventInfo_t::nWeakChargedCurrentInteractions ( ) const
inline

Returns the number of weak charged current interactions in the event.

Definition at line 69 of file EventInfo_t.h.

70  { return fInteractions[itWCC]; }
std::array< unsigned int, NInteractionTypes > fInteractions
Definition: EventInfo_t.h:256
static constexpr std::size_t itWCC
Charged weak current.
Definition: EventInfo_t.h:246
unsigned int icarus::trigger::details::EventInfo_t::nWeakCurrentInteractions ( ) const
inline

Returns the number of weak current interactions in the event.

Definition at line 77 of file EventInfo_t.h.

78  {
79  return
81  }
unsigned int nWeakChargedCurrentInteractions() const
Returns the number of weak charged current interactions in the event.
Definition: EventInfo_t.h:69
unsigned int nWeakNeutralCurrentInteractions() const
Returns the number of weak neutral current interactions in the event.
Definition: EventInfo_t.h:73
unsigned int icarus::trigger::details::EventInfo_t::nWeakNeutralCurrentInteractions ( ) const
inline

Returns the number of weak neutral current interactions in the event.

Definition at line 73 of file EventInfo_t.h.

74  { return fInteractions[itWNC]; }
std::array< unsigned int, NInteractionTypes > fInteractions
Definition: EventInfo_t.h:256
static constexpr std::size_t itWNC
Neutral weak current.
Definition: EventInfo_t.h:247
void icarus::trigger::details::EventInfo_t::setDep ( )
inlineprivate

Declares that this object has deposited energy information.

Definition at line 297 of file EventInfo_t.h.

297 { fHasDepEnergy = true; }
bool fHasDepEnergy
Whether deposited energy info is available.
Definition: EventInfo_t.h:279
void icarus::trigger::details::EventInfo_t::SetDepositedEnergy ( GeV  e)
inline

Sets the total deposited energy of the event [GeV].

Definition at line 214 of file EventInfo_t.h.

214 { setDep(); fEnergyDepTotal = e; }
void setDep()
Declares that this object has deposited energy information.
Definition: EventInfo_t.h:297
GeV fEnergyDepTotal
Total deposited energy.
Definition: EventInfo_t.h:281
do i e
void icarus::trigger::details::EventInfo_t::SetDepositedEnergyInActiveVolume ( GeV  e)
inline

Sets the total deposited energy of the event in active volume [GeV].

Definition at line 223 of file EventInfo_t.h.

224  { setDep(); fEnergyDepActive = e; }
void setDep()
Declares that this object has deposited energy information.
Definition: EventInfo_t.h:297
do i e
void icarus::trigger::details::EventInfo_t::SetDepositedEnergyInPreSpill ( GeV  e)
inline

Sets the energy of the event deposited during pre-spill window [GeV].

Definition at line 220 of file EventInfo_t.h.

220 { setDep(); fEnergyDepPreSpill = e; }
void setDep()
Declares that this object has deposited energy information.
Definition: EventInfo_t.h:297
do i e
GeV fEnergyDepPreSpill
Energy deposited in pre-spill.
Definition: EventInfo_t.h:283
void icarus::trigger::details::EventInfo_t::SetDepositedEnergyInPreSpillInActiveVolume ( GeV  e)
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.

GeV fEnergyDepPreSpillActive
Energy deposited in active volume in pre-spill window.
Definition: EventInfo_t.h:288
void setDep()
Declares that this object has deposited energy information.
Definition: EventInfo_t.h:297
do i e
void icarus::trigger::details::EventInfo_t::SetDepositedEnergyInSpill ( GeV  e)
inline

Sets the energy of the event deposited during beam gate [GeV].

Definition at line 217 of file EventInfo_t.h.

217 { setDep(); fEnergyDepSpill = e; }
void setDep()
Declares that this object has deposited energy information.
Definition: EventInfo_t.h:297
do i e
GeV fEnergyDepSpill
Energy deposited in spill.
Definition: EventInfo_t.h:282
void icarus::trigger::details::EventInfo_t::SetDepositedEnergyInSpillInActiveVolume ( GeV  e)
inline

Sets the energy of the event deposited during beam gate in active volume [GeV]

Definition at line 228 of file EventInfo_t.h.

229  { setDep(); fEnergyDepSpillActive = e; }
GeV fEnergyDepSpillActive
Energy deposited in active volume in spill.
Definition: EventInfo_t.h:286
void setDep()
Declares that this object has deposited energy information.
Definition: EventInfo_t.h:297
do i e
void icarus::trigger::details::EventInfo_t::setGen ( )
inlineprivate

Declares that this object has generator information.

Definition at line 294 of file EventInfo_t.h.

294 { fHasGenerated = true; }
bool fHasGenerated
Whether generation information is available.
Definition: EventInfo_t.h:254
void icarus::trigger::details::EventInfo_t::SetInActiveVolume ( bool  active = true)
inline

Set whether the event has relevant activity in the active volume.

Definition at line 201 of file EventInfo_t.h.

202  { setGen(); fInActiveVolume = active; }
void setGen()
Declares that this object has generator information.
Definition: EventInfo_t.h:294
bool fInActiveVolume
Whether the event has activity inside the active volume.
Definition: EventInfo_t.h:271
void icarus::trigger::details::EventInfo_t::SetInteractionTime ( simulation_time  time)
inline

Sets the time of the first interaction.

Definition at line 197 of file EventInfo_t.h.

198  { setGen(); fInteractionTime = time; }
void setGen()
Declares that this object has generator information.
Definition: EventInfo_t.h:294
simulation_time fInteractionTime
Time of the first interaction [ns].
Definition: EventInfo_t.h:261
void icarus::trigger::details::EventInfo_t::SetInteractionType ( int  type)
inline

Sets the interaction type.

Definition at line 194 of file EventInfo_t.h.

194 { setGen(); fInteractionType = type; }
void setGen()
Declares that this object has generator information.
Definition: EventInfo_t.h:294
void icarus::trigger::details::EventInfo_t::SetLeptonEnergy ( GeV  eL)
inline

Sets the lepton energy.

Definition at line 191 of file EventInfo_t.h.

191 { setGen(); fLeptonEnergy = eL; }
void setGen()
Declares that this object has generator information.
Definition: EventInfo_t.h:294
void icarus::trigger::details::EventInfo_t::SetNeutrinoEnergy ( GeV  eNu)
inline

Sets the neutrino energy.

Definition at line 188 of file EventInfo_t.h.

188 { setGen(); fNeutrinoEnergy = eNu; }
void setGen()
Declares that this object has generator information.
Definition: EventInfo_t.h:294
void icarus::trigger::details::EventInfo_t::SetNeutrinoPDG ( int  NU)
inline

Marks the neutrino type of the first interaction in the event.

Definition at line 185 of file EventInfo_t.h.

185 { setGen(); fNeutrinoPDG = NU; }
void setGen()
Declares that this object has generator information.
Definition: EventInfo_t.h:294
void icarus::trigger::details::EventInfo_t::SetNu_e ( bool  nue)
inline

Definition at line 182 of file EventInfo_t.h.

182 { setGen(); nu_e = nue; }
void setGen()
Declares that this object has generator information.
Definition: EventInfo_t.h:294
void icarus::trigger::details::EventInfo_t::SetNu_mu ( bool  numu)
inline

Marks the flavor of the neutrino in the first interaction.

Definition at line 181 of file EventInfo_t.h.

181 { setGen(); nu_mu = numu; }
void setGen()
Declares that this object has generator information.
Definition: EventInfo_t.h:294
std::vector<geo::Point_t> const& icarus::trigger::details::EventInfo_t::Vertices ( ) const
inline

Returns the list of a known interaction vertex.

Definition at line 121 of file EventInfo_t.h.

121 { return fVertices; }
std::vector< geo::Point_t > fVertices
Position of all vertices.
Definition: EventInfo_t.h:273

Member Data Documentation

GeV icarus::trigger::details::EventInfo_t::fEnergyDepActive { 0.0 }
private

Energy deposited in active volume.

Definition at line 284 of file EventInfo_t.h.

GeV icarus::trigger::details::EventInfo_t::fEnergyDepPreSpill { 0.0 }
private

Energy deposited in pre-spill.

Definition at line 283 of file EventInfo_t.h.

GeV icarus::trigger::details::EventInfo_t::fEnergyDepPreSpillActive { 0.0 }
private

Energy deposited in active volume in pre-spill window.

Definition at line 288 of file EventInfo_t.h.

GeV icarus::trigger::details::EventInfo_t::fEnergyDepSpill { 0.0 }
private

Energy deposited in spill.

Definition at line 282 of file EventInfo_t.h.

GeV icarus::trigger::details::EventInfo_t::fEnergyDepSpillActive { 0.0 }
private

Energy deposited in active volume in spill.

Definition at line 286 of file EventInfo_t.h.

GeV icarus::trigger::details::EventInfo_t::fEnergyDepTotal { 0.0 }
private

Total deposited energy.

Definition at line 281 of file EventInfo_t.h.

bool icarus::trigger::details::EventInfo_t::fHasDepEnergy = false
private

Whether deposited energy info is available.

Definition at line 279 of file EventInfo_t.h.

bool icarus::trigger::details::EventInfo_t::fHasGenerated = false
private

Whether generation information is available.

Definition at line 254 of file EventInfo_t.h.

bool icarus::trigger::details::EventInfo_t::fInActiveVolume { false }
private

Whether the event has activity inside the active volume.

Definition at line 271 of file EventInfo_t.h.

std::array<unsigned int, NInteractionTypes> icarus::trigger::details::EventInfo_t::fInteractions
private

Definition at line 256 of file EventInfo_t.h.

simulation_time icarus::trigger::details::EventInfo_t::fInteractionTime
private

Time of the first interaction [ns].

Definition at line 261 of file EventInfo_t.h.

int icarus::trigger::details::EventInfo_t::fInteractionType { 0 }
private

Definition at line 259 of file EventInfo_t.h.

GeV icarus::trigger::details::EventInfo_t::fLeptonEnergy { 0.0 }
private

Definition at line 264 of file EventInfo_t.h.

GeV icarus::trigger::details::EventInfo_t::fNeutrinoEnergy { 0.0 }
private

Definition at line 263 of file EventInfo_t.h.

int icarus::trigger::details::EventInfo_t::fNeutrinoPDG { 0 }
private

Definition at line 258 of file EventInfo_t.h.

std::vector<geo::Point_t> icarus::trigger::details::EventInfo_t::fVertices
private

Position of all vertices.

Definition at line 273 of file EventInfo_t.h.

constexpr std::size_t icarus::trigger::details::EventInfo_t::itWCC { 0U }
staticprivate

Charged weak current.

Definition at line 246 of file EventInfo_t.h.

constexpr std::size_t icarus::trigger::details::EventInfo_t::itWNC { 1U }
staticprivate

Neutral weak current.

Definition at line 247 of file EventInfo_t.h.

constexpr std::size_t icarus::trigger::details::EventInfo_t::NInteractionTypes { 2U }
staticprivate

Definition at line 248 of file EventInfo_t.h.

bool icarus::trigger::details::EventInfo_t::nu_e { false }
private

Definition at line 268 of file EventInfo_t.h.

bool icarus::trigger::details::EventInfo_t::nu_mu { false }
private

Definition at line 267 of file EventInfo_t.h.


The documentation for this struct was generated from the following files: