NAIA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
NAIA::EventSummaryData Class Reference

Container class for base EventSummary info. More...

#include <Containers/EventSummary.h>

Inheritance diagram for NAIA::EventSummaryData:
NAIA::EventSummary

Public Member Functions

void Clear ()
 Clear container content. More...
 
void Dump () const
 Dump on screen container content. More...
 
bool IsPhysicsTrigger () const
 Checks if the trigger corresponds to any of the AMS physics triggers. More...
 
float TriggerWeight () const
 Returns the weight associated with the trigger for this event (depends on the prescaling factor for each trigger) More...
 
void RestorePhysBPatt (bool force=false)
 Recompute the PhysBPatt variable. More...
 

Public Attributes

unsigned short NAntiCluster = 0
 Number of fired ACC clusters. More...
 
unsigned short NTofCluster = 0
 Total number of Tof clusters in the event. More...
 
unsigned short NTrRecHit = 0
 Total number of Tracker hits in the event. More...
 
unsigned short NTrTrack = 0
 Total number of Tracker tracks in the event. More...
 
unsigned short NRichRing = 0
 Total number of Rich rings in the event. More...
 
unsigned short NEcalShower = 0
 Total number of Ecal showers in the event. More...
 
unsigned short NParticle = 0
 Total number of reconstructed particles in the event. More...
 
short HighestEcalEnergyParticle = -1
 ID of the ParticleR object with the highest ECAL shower energy. More...
 
short HighestInnerChargeParticle = -1
 ID of the ParticleR object with the highest Inner Tracker charge. More...
 
short HighestBetaHChargeParticle = -1
 ID of the ParticleR object with the highest BetaH charge. More...
 
unsigned short PhysBPatt = 0
 same as in gbatch, see https://ams.cern.ch/AMS/Analysis/hpl3itp1/root02_v5/html/development/html/classLevel1R.html#a6b6858ab612fec065ca5809aa3795aee More...
 
unsigned short JMembPatt = 0
 same as in gbatch, see https://ams.cern.ch/AMS/Analysis/hpl3itp1/root02_v5/html/development/html/classLevel1R.html#a2df0cb3fc3ab7d8ee65e5e2336cf39ab More...
 
unsigned short NAcc = 0
 Number of fired ACC counters. More...
 

Private Member Functions

 ClassDef (EventSummaryData, 1)
 

Private Attributes

bool _isMC = false
 

Detailed Description

Container class for base EventSummary info.

This class holds variables useful to get a bird's eye view of the current event.

Definition at line 28 of file EventSummary.h.

Member Function Documentation

NAIA::EventSummaryData::ClassDef ( EventSummaryData  ,
 
)
private
void NAIA::EventSummaryData::Clear ( )
void NAIA::EventSummaryData::Dump ( ) const

Dump on screen container content.

Definition at line 75 of file EventSummary.cpp.

References JMembPatt, NAcc, NAntiCluster, NEcalShower, NParticle, NRichRing, NTofCluster, NTrRecHit, NTrTrack, and PhysBPatt.

bool NAIA::EventSummaryData::IsPhysicsTrigger ( ) const
inline

Checks if the trigger corresponds to any of the AMS physics triggers.

Definition at line 46 of file EventSummary.h.

References PhysBPatt.

Referenced by TriggerWeight().

void NAIA::EventSummaryData::RestorePhysBPatt ( bool  force = false)

Recompute the PhysBPatt variable.

Parameters
forceForce computation even if PhysBPatt is non zero.

Definition at line 36 of file EventSummary.cpp.

References JMembPatt, and PhysBPatt.

float NAIA::EventSummaryData::TriggerWeight ( ) const

Returns the weight associated with the trigger for this event (depends on the prescaling factor for each trigger)

Returns
float The trigger weight (1, 100, 1000)

Definition at line 9 of file EventSummary.cpp.

References IsPhysicsTrigger(), JMembPatt, and PhysBPatt.

Member Data Documentation

bool NAIA::EventSummaryData::_isMC = false
private

Definition at line 90 of file EventSummary.h.

short NAIA::EventSummaryData::HighestBetaHChargeParticle = -1

ID of the ParticleR object with the highest BetaH charge.

Definition at line 73 of file EventSummary.h.

Referenced by Clear().

short NAIA::EventSummaryData::HighestEcalEnergyParticle = -1

ID of the ParticleR object with the highest ECAL shower energy.

Definition at line 71 of file EventSummary.h.

Referenced by Clear().

short NAIA::EventSummaryData::HighestInnerChargeParticle = -1

ID of the ParticleR object with the highest Inner Tracker charge.

Definition at line 72 of file EventSummary.h.

Referenced by Clear().

unsigned short NAIA::EventSummaryData::JMembPatt = 0
unsigned short NAIA::EventSummaryData::NAcc = 0

Number of fired ACC counters.

Definition at line 79 of file EventSummary.h.

Referenced by Clear(), and Dump().

unsigned short NAIA::EventSummaryData::NAntiCluster = 0

Number of fired ACC clusters.

Definition at line 63 of file EventSummary.h.

Referenced by Clear(), and Dump().

unsigned short NAIA::EventSummaryData::NEcalShower = 0

Total number of Ecal showers in the event.

Definition at line 68 of file EventSummary.h.

Referenced by Clear(), and Dump().

unsigned short NAIA::EventSummaryData::NParticle = 0

Total number of reconstructed particles in the event.

Definition at line 69 of file EventSummary.h.

Referenced by Clear(), and Dump().

unsigned short NAIA::EventSummaryData::NRichRing = 0

Total number of Rich rings in the event.

Definition at line 67 of file EventSummary.h.

Referenced by Clear(), and Dump().

unsigned short NAIA::EventSummaryData::NTofCluster = 0

Total number of Tof clusters in the event.

Definition at line 64 of file EventSummary.h.

Referenced by Clear(), and Dump().

unsigned short NAIA::EventSummaryData::NTrRecHit = 0

Total number of Tracker hits in the event.

Definition at line 65 of file EventSummary.h.

Referenced by Clear(), and Dump().

unsigned short NAIA::EventSummaryData::NTrTrack = 0

Total number of Tracker tracks in the event.

Definition at line 66 of file EventSummary.h.

Referenced by Clear(), and Dump().

unsigned short NAIA::EventSummaryData::PhysBPatt = 0

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