NAIA
|
Container class for RTI info. More...
#include <Containers/RTIInfo.h>
Public Member Functions | |
void | Clear () |
Clear container content. More... | |
void | Dump () const |
Dump on screen container content. More... | |
unsigned int | Year () |
Get the current year. More... | |
unsigned int | Month () |
Get the current month [1-12]. More... | |
unsigned int | DayOfMonth () |
Get the current day of the month [1-31]. More... | |
unsigned int | DayOfYear () |
Get the current day of the year [1-366]. More... | |
unsigned int | Hour () |
Get the current hour [0-23]. More... | |
unsigned int | Minute () |
Get the current minute [0-59]. More... | |
unsigned int | Second () |
Get the current second [0-59]. More... | |
bool | IsInSAA () const |
Check if the ISS is in the SAA for this second. More... | |
Public Attributes | |
unsigned int | Run = 0 |
Run number. More... | |
unsigned int | RunTag = 0 |
Run tag. More... | |
unsigned int | FirstEvNo = 0 |
First event nnumber in this second. More... | |
unsigned int | LastEvNo = 0 |
Last event no in this second. More... | |
float | LivetimeFraction |
Livetime fraction during this second. More... | |
std::array< std::array< float, 2 >, 4 > | MaxStoermerCutoff |
Max Stoermer cutoff within a 25,30,35,40 degrees field of view (for both negative and positive particles) More... | |
std::array< std::array< float, 2 >, 4 > | MaxIGRFCutoff |
Max IGRF cutoff within a 25,30,35,40 degrees field of view (for both negative and positive particles) More... | |
std::array< std::array< float, 2 >, 2 > | MinIGRFCutoff |
Min IGRF cutoff within a 25,30,35,40 degrees field of view (for both negative and positive particles) More... | |
float | MostProbableHeRig |
Most probable He rigidity for this second;. More... | |
float | Theta |
Theta (gtod coordinate system) (rad) More... | |
float | Phi |
Phi (gtod coordinate system) (rad) More... | |
float | Altitude |
Altitude (gtod coordinate system) (cm) More... | |
float | Zenith |
AMS zenith angle (degrees) More... | |
float | GalacticLat |
Galactic latitude of AMS pointing direction (degrees) More... | |
float | GalacticLong |
Galactic longitude of AMS pointing direction (degrees) More... | |
float | nEvent |
Total number of events in this second. More... | |
float | nError |
Number of missing events due to errors. More... | |
float | nTrigger |
Number of events with trigger in this second. More... | |
float | nHWError |
Number of events with HW error (from JINJStatus) More... | |
float | nEventParticle |
Number of events with tof+trd+tracker+ecal data. More... | |
std::array< std::array< float, 2 >, 2 > | nEventInnerL1L9 |
Number of events with a track with layer 1 and layer 9 XY hit. More... | |
std::array< std::array< float, 3 >, 2 > | MeanAlignDiffExtLayer |
mean difference(um) bewteen PG ad CIEMAT alignment of L1 and L9(XYZ) More... | |
float | nTRDHitAvg |
Average number of TRD raw hits for one event. More... | |
float | nTrClusterAvg |
Average number of Tracker raw clusters for one event. More... | |
int | good |
0 if good (Thanks, Qi. Very descriptive) More... | |
unsigned int | UTCTime |
JMDC unix time (seconds since 1 Jan 1970) More... | |
bool | DSPError |
Has a DSP error occurred in this second? More... | |
bool | DSPErrorJINJ |
Has a DSP error occurred in JINJ in this second? More... | |
bool | DSPErrorJINF |
Has a DSP error occurred in JINF in this second? More... | |
bool | DSPErrorJLV1 |
Has a DSP error occurred in JLV1 in this second? More... | |
float | MagThetaSphCoo |
Magnetic coordinates theta. More... | |
float | MagPhiSphCoo |
Magnetic coordinates phi. More... | |
float | MagAltSphCoo |
Magnetic coordinates altitude. More... | |
float | LShell |
L shell. More... | |
float | nTRDTrack |
Average number of TrdTrack objects. More... | |
float | nTRDHits |
Average number of total TrdRawHit. More... | |
std::array< float, 20 > | nTRDLayerHits |
Average number of TRD hits in each layer. More... | |
float | nEcalShower |
Average number of EcalShower objects. More... | |
float | nEcalHits |
Average number of EcalHit objects. More... | |
float | nTrClusterX |
Average number of TrRawCluster on x side. More... | |
float | nTrClusterY |
Average number of TrRawCluster on y side. More... | |
float | nTrClusterL1X |
Average number of TrRawCluster on x side of L1. More... | |
float | nTrClusterL1Y |
Average number of TrRawCluster on y side of L1. More... | |
float | nTofClusterH |
Average number of TofClusterH objects. More... | |
float | nParticle |
Average number of ParticleR objects. More... | |
float | nGoodParticle |
Average number of "good" ParticleR objects. More... | |
float | nPartTrkInn |
Average number of ParticleR with InnerTracker track. More... | |
float | nPartTrk |
Average number of ParticleR with Tracker track. More... | |
std::array< std::array< float, nrigbins+1 >, nqbins+1 > | nPartRate |
Average number of ParticleR object divided by charge and rigidity. More... | |
std::array< std::array< float, nbetabins+1 >, nqbins+1 > | nPartBetaRate |
Average number of ParticleR object divided by charge and beta. More... | |
std::array< std::array< float, nrigbins+1 >, nqbins+1 > | nPartInnRate |
Average number of ParticleR object divided by charge and rigidity (inner tracker fit) More... | |
std::array< float, nqbins+1 > | nPartAboveCutoff |
Average number of ParticleR objects above cutoff. More... | |
std::array< float, nqbins+1 > | nPartBelowCutoff |
Average number of ParticleR objects below cutoff. More... | |
float | nTrk |
Average number of TrTrackR objects with default fit. More... | |
float | nTrkInn |
Average number of TrTrackR objects with inner fit. More... | |
std::array< std::array< float, nrigbins+1 >, nqbins+1 > | nTrkRate |
Average number of TrTrackR object divided by charge and rigidity. More... | |
std::array< std::array< float, nrigbins+1 >, nqbins+1 > | nTrkInnRate |
Average number of TrTrackR object divided by charge and rigidity (inner tracker fit) More... | |
std::array< float, 8 > | TrigPhysBPatt |
Average fraction of each trigger pattern. More... | |
std::array< float, 16 > | TrigJMembPatt |
Average fraction of each trigger pattern. More... | |
std::array< float, 19 > | TrigRates |
Average value of trigger rates. More... | |
float | nACC |
Average number of ACC sectors. More... | |
std::array< float, 16 > | TofFlags |
Average value of TofFlags. More... | |
float | TofRaw_nstdc |
Low Threshold history. More... | |
float | TofRaw_nftdc |
Fast Trigger history. More... | |
float | TofRaw_nsumh |
High Threshold history. More... | |
float | TofRaw_nsumsh |
Super-High Threshold history. More... | |
float | AntiRaw_ntdct |
Low Threshold history. More... | |
float | AntiRaw_nftdc |
Fast Trigger history. More... | |
float | nRoomError |
Average number of room errors. More... | |
Static Public Attributes | |
static constexpr unsigned int | nrigbins = 20 |
static constexpr unsigned int | nbetabins = 9 |
static constexpr unsigned int | nqbins = 9 |
static const std::array< float, nrigbins+1 > | rigbins |
Bin edges for rigidity-binned variables. More... | |
static const std::array< float, nbetabins+1 > | betabins |
Bin edges for beta-binned variables. More... | |
static const std::map < unsigned int, std::pair < float, float > > | qbins |
Bin edges for charge-binned variables, depending on particle species. More... | |
Private Member Functions | |
void | UpdateTM () |
ClassDef (RTIInfo, 1) | |
Private Attributes | |
tm | m_humanTime |
unsigned long long | m_processedEvents = 0 |
Static Private Attributes | |
static TGraph | m_saaEdge = TGraph() |
Container class for RTI info.
This class holds info about RTI seconds as derived from the gbatch RTI database. It also holds time-averaged values (over the span of a second) for some quick space-weather analyses
|
private |
void NAIA::RTIInfo::Clear | ( | ) |
Clear container content.
Definition at line 135 of file RTIInfo.cpp.
References Altitude, AntiRaw_nftdc, AntiRaw_ntdct, DSPError, DSPErrorJINF, DSPErrorJINJ, DSPErrorJLV1, FirstEvNo, GalacticLat, GalacticLong, good, LastEvNo, LivetimeFraction, LShell, MagAltSphCoo, MagPhiSphCoo, MagThetaSphCoo, MaxIGRFCutoff, MaxStoermerCutoff, MeanAlignDiffExtLayer, MinIGRFCutoff, MostProbableHeRig, nACC, nEcalHits, nEcalShower, nError, nEvent, nEventInnerL1L9, nEventParticle, nGoodParticle, nHWError, nPartAboveCutoff, nPartBelowCutoff, nPartBetaRate, nParticle, nPartInnRate, nPartRate, nPartTrk, nPartTrkInn, nRoomError, nTofClusterH, nTrClusterAvg, nTrClusterL1X, nTrClusterL1Y, nTrClusterX, nTrClusterY, nTRDHitAvg, nTRDHits, nTRDLayerHits, nTRDTrack, nTrigger, nTrk, nTrkInn, nTrkInnRate, nTrkRate, Phi, Run, RunTag, Theta, TofFlags, TofRaw_nftdc, TofRaw_nstdc, TofRaw_nsumh, TofRaw_nsumsh, TrigJMembPatt, TrigPhysBPatt, TrigRates, UTCTime, and Zenith.
unsigned int NAIA::RTIInfo::DayOfMonth | ( | ) |
Get the current day of the month [1-31].
Definition at line 41 of file RTIInfo.cpp.
References m_humanTime, and UpdateTM().
unsigned int NAIA::RTIInfo::DayOfYear | ( | ) |
Get the current day of the year [1-366].
Definition at line 46 of file RTIInfo.cpp.
References m_humanTime, and UpdateTM().
void NAIA::RTIInfo::Dump | ( | ) | const |
unsigned int NAIA::RTIInfo::Hour | ( | ) |
Get the current hour [0-23].
Definition at line 51 of file RTIInfo.cpp.
References m_humanTime, and UpdateTM().
bool NAIA::RTIInfo::IsInSAA | ( | ) | const |
Check if the ISS is in the SAA for this second.
Definition at line 66 of file RTIInfo.cpp.
unsigned int NAIA::RTIInfo::Minute | ( | ) |
Get the current minute [0-59].
Definition at line 56 of file RTIInfo.cpp.
References m_humanTime, and UpdateTM().
unsigned int NAIA::RTIInfo::Month | ( | ) |
Get the current month [1-12].
Definition at line 36 of file RTIInfo.cpp.
References m_humanTime, and UpdateTM().
unsigned int NAIA::RTIInfo::Second | ( | ) |
Get the current second [0-59].
Definition at line 61 of file RTIInfo.cpp.
References m_humanTime, and UpdateTM().
|
private |
Definition at line 21 of file RTIInfo.cpp.
References m_humanTime, and UTCTime.
Referenced by DayOfMonth(), DayOfYear(), Hour(), Minute(), Month(), Second(), and Year().
unsigned int NAIA::RTIInfo::Year | ( | ) |
Get the current year.
Definition at line 31 of file RTIInfo.cpp.
References m_humanTime, and UpdateTM().
float NAIA::RTIInfo::Altitude |
float NAIA::RTIInfo::AntiRaw_nftdc |
float NAIA::RTIInfo::AntiRaw_ntdct |
|
static |
bool NAIA::RTIInfo::DSPError |
bool NAIA::RTIInfo::DSPErrorJINF |
bool NAIA::RTIInfo::DSPErrorJINJ |
bool NAIA::RTIInfo::DSPErrorJLV1 |
unsigned int NAIA::RTIInfo::FirstEvNo = 0 |
float NAIA::RTIInfo::GalacticLat |
float NAIA::RTIInfo::GalacticLong |
int NAIA::RTIInfo::good |
unsigned int NAIA::RTIInfo::LastEvNo = 0 |
float NAIA::RTIInfo::LivetimeFraction |
float NAIA::RTIInfo::LShell |
|
private |
Definition at line 169 of file RTIInfo.h.
Referenced by DayOfMonth(), DayOfYear(), Hour(), Minute(), Month(), Second(), UpdateTM(), and Year().
|
private |
|
staticprivate |
float NAIA::RTIInfo::MagAltSphCoo |
float NAIA::RTIInfo::MagPhiSphCoo |
float NAIA::RTIInfo::MagThetaSphCoo |
std::array<std::array<float, 2>, 4> NAIA::RTIInfo::MaxIGRFCutoff |
std::array<std::array<float, 2>, 4> NAIA::RTIInfo::MaxStoermerCutoff |
std::array<std::array<float, 3>, 2> NAIA::RTIInfo::MeanAlignDiffExtLayer |
std::array<std::array<float, 2>, 2> NAIA::RTIInfo::MinIGRFCutoff |
float NAIA::RTIInfo::MostProbableHeRig |
float NAIA::RTIInfo::nACC |
float NAIA::RTIInfo::nEcalHits |
float NAIA::RTIInfo::nEcalShower |
float NAIA::RTIInfo::nError |
float NAIA::RTIInfo::nEvent |
std::array<std::array<float, 2>, 2> NAIA::RTIInfo::nEventInnerL1L9 |
float NAIA::RTIInfo::nEventParticle |
float NAIA::RTIInfo::nGoodParticle |
float NAIA::RTIInfo::nHWError |
std::array<float, nqbins + 1> NAIA::RTIInfo::nPartAboveCutoff |
std::array<float, nqbins + 1> NAIA::RTIInfo::nPartBelowCutoff |
float NAIA::RTIInfo::nParticle |
float NAIA::RTIInfo::nPartTrk |
float NAIA::RTIInfo::nPartTrkInn |
float NAIA::RTIInfo::nRoomError |
float NAIA::RTIInfo::nTofClusterH |
float NAIA::RTIInfo::nTrClusterAvg |
float NAIA::RTIInfo::nTrClusterL1X |
float NAIA::RTIInfo::nTrClusterL1Y |
float NAIA::RTIInfo::nTrClusterX |
float NAIA::RTIInfo::nTrClusterY |
float NAIA::RTIInfo::nTRDHitAvg |
float NAIA::RTIInfo::nTRDHits |
std::array<float, 20> NAIA::RTIInfo::nTRDLayerHits |
float NAIA::RTIInfo::nTRDTrack |
float NAIA::RTIInfo::nTrigger |
float NAIA::RTIInfo::nTrk |
float NAIA::RTIInfo::nTrkInn |
float NAIA::RTIInfo::Phi |
|
static |
|
static |
unsigned int NAIA::RTIInfo::Run = 0 |
unsigned int NAIA::RTIInfo::RunTag = 0 |
float NAIA::RTIInfo::Theta |
std::array<float, 16> NAIA::RTIInfo::TofFlags |
float NAIA::RTIInfo::TofRaw_nftdc |
float NAIA::RTIInfo::TofRaw_nstdc |
float NAIA::RTIInfo::TofRaw_nsumh |
float NAIA::RTIInfo::TofRaw_nsumsh |
std::array<float, 16> NAIA::RTIInfo::TrigJMembPatt |
std::array<float, 8> NAIA::RTIInfo::TrigPhysBPatt |
std::array<float, 19> NAIA::RTIInfo::TrigRates |
unsigned int NAIA::RTIInfo::UTCTime |
JMDC unix time (seconds since 1 Jan 1970)
Definition at line 92 of file RTIInfo.h.
Referenced by Clear(), Dump(), and UpdateTM().
float NAIA::RTIInfo::Zenith |