NAIA
1.0.2
|
Helper variables and functions to work with containers. More...
Typedefs | |
template<class T > | |
using | NAIA::LayerVariable = std::map< unsigned int, T > |
Functions | |
template<typename T , size_t N, typename Key > | |
std::enable_if < std::is_convertible< Key, size_t >::value, bool >::type | NAIA::ContainsKeys (const std::array< T, N > &container, Key key) |
template<typename T , typename Key , typename Value > | |
std::enable_if < std::is_convertible< T, Key > ::value, bool >::type | NAIA::KeyExists (T key, const std::map< Key, Value > &container) |
template<typename T , typename Value > | |
std::enable_if < std::is_convertible< T, size_t >::value, bool >::type | NAIA::KeyExists (T key, const std::vector< Value > &container) |
template<typename T , typename Key , typename Value > | |
std::enable_if < std::is_convertible< T, Key > ::value, bool >::type | NAIA::ContainsKeys (const std::map< Key, Value > &container, T key) |
template<typename T , typename Key > | |
std::enable_if < std::is_convertible< Key, size_t >::value, bool >::type | NAIA::ContainsKeys (const std::vector< T > &container, Key key) |
template<typename T , typename Key , typename... Keys, typename Value > | |
std::enable_if < std::is_convertible< T, Key > ::value, bool >::type | NAIA::ContainsKeys (const std::map< Key, Value > &container, T key, Keys...keys) |
template<typename T , typename Key , typename... Keys> | |
std::enable_if < std::is_convertible< Key, size_t >::value, bool >::type | NAIA::ContainsKeys (const std::vector< T > &container, Key key, Keys...keys) |
Variables | |
constexpr unsigned int | NAIA::TrTrack::numChargeRecos = 3 |
constexpr std::array < ChargeRecoType, numChargeRecos > | NAIA::TrTrack::recoTypes |
constexpr unsigned int | NAIA::TrTrack::numFitPositionHeights = 16 |
constexpr std::array < FitPositionHeight, numFitPositionHeights > | NAIA::TrTrack::fitPositionHeights |
constexpr std::array< float, numFitPositionHeights > | NAIA::TrTrack::fitPositionHeightZ |
static const std::array < std::string, numFitPositionHeights > | NAIA::TrTrack::fitPositionNames |
constexpr unsigned int | NAIA::TrTrack::numTrLayers = 9 |
constexpr std::array < FitPositionHeight, numTrLayers > | NAIA::TrTrack::layerPositionHeights |
constexpr unsigned int | NAIA::TrTrack::numSpans = 7 |
constexpr std::array< Span, numSpans > | NAIA::TrTrack::spanTypes |
static const std::array < std::string, numSpans > | NAIA::TrTrack::spanNames |
constexpr unsigned int | NAIA::TrTrack::numFits = 4 |
constexpr std::array< Fit, numFits > | NAIA::TrTrack::fitTypes {Fit::Choutko, Fit::Kalman, Fit::GBL, Fit::KalmanElectron} |
static const std::array < std::string, numFits > | NAIA::TrTrack::fitNames {"Choutko", "Kalman", "GBL", "KalmanElectron"} |
constexpr unsigned int | NAIA::TrTrack::numTrGeos = 4 |
constexpr std::array < TrGeometry, numTrGeos > | NAIA::TrTrack::trGeoTypes |
static const std::array < std::string, numTrGeos > | NAIA::TrTrack::trGeoNames {"Default", "InnerOnly", "InnerL1", "FullSpan"} |
constexpr unsigned int | NAIA::TrTrack::numSides = 2 |
constexpr std::array< Side, numSides > | NAIA::TrTrack::sides {Side::X, Side::Y} |
static const std::array < std::string, numSides > | NAIA::TrTrack::sideNames {"X", "Y"} |
constexpr unsigned int | NAIA::TrTrack::numTrackDistances = 7 |
constexpr std::array < DistanceFromTrack, numTrackDistances > | NAIA::TrTrack::trackDistances |
static const std::array < std::string, numTrackDistances > | NAIA::TrTrack::trackDistanceNames |
constexpr unsigned int | NAIA::TrdK::numChargeTypes = 3 |
constexpr std::array < ChargeType, numChargeTypes > | NAIA::TrdK::recoTypes {ChargeType::Total, ChargeType::Upper, ChargeType::Lower} |
static const std::array < std::string, numChargeTypes > | NAIA::TrdK::recoNames {"Total", "Upper", "Lower"} |
constexpr unsigned int | NAIA::TrdK::numLikelihoodTypes = 3 |
constexpr std::array < LikelihoodType, numLikelihoodTypes > | NAIA::TrdK::likelihoodTypes |
static const std::array < std::string, numLikelihoodTypes > | NAIA::TrdK::likelihoodNames {"Electron", "Proton", "Helium"} |
constexpr unsigned int | NAIA::TrdK::numLikelihoodRTypes = 3 |
constexpr std::array < LikelihoodRType, numLikelihoodRTypes > | NAIA::TrdK::likelihoodRTypes |
static const std::array < std::string, numLikelihoodRTypes > | NAIA::TrdK::likelihoodRNames {"ep", "eHe", "pHe"} |
constexpr unsigned int | NAIA::TrdK::numQualTypes = 2 |
constexpr std::array< QualType, numQualTypes > | NAIA::TrdK::qualTypes {QualType::OnTrack, QualType::OffTrack} |
static const std::array < std::string, numQualTypes > | NAIA::TrdK::qualNames {"OnTrack", "OffTrack"} |
constexpr unsigned int | NAIA::Ecal::numEnergyRecos = 5 |
constexpr std::array < EnergyRecoType, numEnergyRecos > | NAIA::Ecal::recoTypes |
static const std::array < std::string, numEnergyRecos > | NAIA::Ecal::recoNames |
constexpr unsigned int | NAIA::Ecal::numLikelihoodTypes = 2 |
constexpr std::array < LikelihoodType, numLikelihoodTypes > | NAIA::Ecal::likelihoodTypeNames |
constexpr unsigned int | NAIA::Ecal::numBDTTypes = 4 |
constexpr std::array< BDTType, numBDTTypes > | NAIA::Ecal::BDTTypes {BDTType::v5std, BDTType::v5ada, BDTType::v7std, BDTType::v7ada} |
static const std::array < std::string, numBDTTypes > | NAIA::Ecal::BDTNames {"v5std", "v5ada", "v7std", "v7ada"} |
constexpr unsigned int | NAIA::Tof::numChargeTypes = 3 |
constexpr std::array < ChargeType, numChargeTypes > | NAIA::Tof::recoTypes {ChargeType::Total, ChargeType::Upper, ChargeType::Lower} |
static const std::array < std::string, numChargeTypes > | NAIA::Tof::recoNames {"Total", "Upper", "Lower"} |
constexpr unsigned int | NAIA::Tof::numBetaTypes = 2 |
constexpr std::array< BetaType, numBetaTypes > | NAIA::Tof::betaTypes {BetaType::BetaH, BetaType::Evgeni} |
static const std::array < std::string, numBetaTypes > | NAIA::Tof::betaNames {"BetaH", "Evgeni"} |
constexpr unsigned int | NAIA::Tof::numBetaClusterTypes = 2 |
constexpr std::array < BetaClusterType, numBetaClusterTypes > | NAIA::Tof::betaClusterTypes |
static const std::array < std::string, numBetaClusterTypes > | NAIA::Tof::betaClusterTypeNames {"OnTime", "OffTime"} |
constexpr unsigned int | NAIA::MCTruth::numMCHeights = 13 |
constexpr std::array< MCHeight, numMCHeights > | NAIA::MCTruth::MCHeights |
constexpr std::array< float, numMCHeights > | NAIA::MCTruth::MCHeightsZ |
constexpr unsigned int | NAIA::Rich::numBetaTypes = 4 |
constexpr std::array< BetaType, numBetaTypes > | NAIA::Rich::betaTypes |
static const std::array < std::string, numBetaTypes > | NAIA::Rich::betaNames {"CIEMAT", "SIMPLE", "REFIT", "LIP"} |
Helper variables and functions to work with containers.
using NAIA::LayerVariable = typedef std::map<unsigned int, T> |
enum NAIA::Ecal::BDTType |
enum NAIA::Tof::BetaType |
enum NAIA::Rich::BetaType |
|
strong |
Bitmask enum, useful for taking quick decision about the current event before proceeding with reading the rest of the data
Enumerator | |
---|---|
None | |
HasTof |
Tof data is available for this event. |
HasTrack |
TrTrack data is available for this event. |
HasEcal |
Ecal data is available for this event. |
HasTrd |
TRD data is available for this event. |
HasRich |
Rich data is available for this event. |
HasTofStandalone |
Tof standalone data is available for this event. |
HasTrdStandalone |
TRD standalone data is available for this event. |
Charge1_Trk |
This event is classified as charge 1 according to tracker (0.5 < Q < 1.5) |
Charge2_Trk |
This event is classified as charge 2 according to tracker (1.5 < Q < 2.5) |
ChargeGT2_Trk |
This event is classified as charge >2 according to tracker (Q > 2.5) |
Charge1_Tof |
This event is classified as charge 1 according to tof (0.5 < Q < 1.5) |
Charge2_Tof |
This event is classified as charge 2 according to tof (1.5 < Q < 2.5) |
ChargeGT2_Tof |
This event is classified as charge >2 according to tof (Q > 2.5) |
Charge1_Trk_St |
This event is classified as charge 1 according to tracker standalone (0.5 < Q < 1.5) |
Charge2_Trk_St |
This event is classified as charge 2 according to tracker standalone (1.5 < Q < 2.5) |
ChargeGT2_Trk_St |
This event is classified as charge >2 according to tracker standalone (Q > 2.5) |
Charge1_Tof_St |
This event is classified as charge 1 according to tof standalone (0.5 < Q < 1.5) |
Charge2_Tof_St |
This event is classified as charge 2 according to tof standalone (1.5 < Q < 2.5) |
ChargeGT2_Tof_St |
This event is classified as charge >2 according to tof standalone (Q > 2.5) |
Enumerator | |
---|---|
EnergyD |
Total deposited energy in Ecal. |
EnergyE |
Ecal energy (standard reconstruction) |
EnergyCorrEneE_E |
Ecal energy (electron hypothesys, Using different methods to recover anode efficiency, rear leakage, lateral leakage and temperature effects) |
EnergyCorrEne2017 |
Ecal energy (2017 reconstruction) |
EcalKEle |
Ecal energy (W. Xu 3D reconstruction) |
enum NAIA::TrTrack::Fit |
enum NAIA::TrdK::QualType |
enum NAIA::TrTrack::Side |
std::enable_if<std::is_convertible<Key, size_t>::value, bool>::type NAIA::ContainsKeys | ( | const std::array< T, N > & | container, |
Key | key | ||
) |
( , )
Definition at line 53 of file Utils.hpp.
Referenced by NAIA::RichBaseData::BetaConsistencyTof(), NAIA::ContainsKeys(), NAIA::TofBaseData::Dump(), NAIA::TrTrackBaseData::Dump(), NAIA::EcalPlusData::Dump(), NAIA::TofPlusData::Dump(), NAIA::TrTrackPlusData::Dump(), NAIA::TrTrackBaseData::GetTrackPattern(), and NAIA::NtpSelector::UProcessCut().
std::enable_if<std::is_convertible<T, Key>::value, bool>::type NAIA::ContainsKeys | ( | const std::map< Key, Value > & | container, |
T | key | ||
) |
Definition at line 76 of file Utils.hpp.
References NAIA::end().
std::enable_if<std::is_convertible<Key, size_t>::value, bool>::type NAIA::ContainsKeys | ( | const std::vector< T > & | container, |
Key | key | ||
) |
std::enable_if<std::is_convertible<T, Key>::value, bool>::type NAIA::ContainsKeys | ( | const std::map< Key, Value > & | container, |
T | key, | ||
Keys... | keys | ||
) |
Definition at line 90 of file Utils.hpp.
References NAIA::ContainsKeys(), and NAIA::end().
std::enable_if<std::is_convertible<Key, size_t>::value, bool>::type NAIA::ContainsKeys | ( | const std::vector< T > & | container, |
Key | key, | ||
Keys... | keys | ||
) |
Definition at line 101 of file Utils.hpp.
References NAIA::ContainsKeys().
std::enable_if<std::is_convertible<T, Key>::value, bool>::type NAIA::KeyExists | ( | T | key, |
const std::map< Key, Value > & | container | ||
) |
Definition at line 60 of file Utils.hpp.
References NAIA::end(), and NAIA::_private::keyexists_deprecation_msg.
std::enable_if<std::is_convertible<T, size_t>::value, bool>::type NAIA::KeyExists | ( | T | key, |
const std::vector< Value > & | container | ||
) |
Definition at line 68 of file Utils.hpp.
References NAIA::_private::keyexists_deprecation_msg.
|
static |
Definition at line 322 of file Utils.h.
Referenced by NAIA::EcalBaseData::Dump().
constexpr std::array<BDTType, numBDTTypes> NAIA::Ecal::BDTTypes {BDTType::v5std, BDTType::v5ada, BDTType::v7std, BDTType::v7ada} |
Definition at line 320 of file Utils.h.
Referenced by NAIA::EcalBaseData::Dump().
|
static |
constexpr std::array<BetaClusterType, numBetaClusterTypes> NAIA::Tof::betaClusterTypes |
|
static |
Definition at line 355 of file Utils.h.
Referenced by NAIA::TofBaseData::Dump(), and NAIA::TofPlusData::Dump().
|
static |
constexpr std::array<BetaType, numBetaTypes> NAIA::Tof::betaTypes {BetaType::BetaH, BetaType::Evgeni} |
Definition at line 353 of file Utils.h.
Referenced by NAIA::TofBaseData::Dump(), and NAIA::TofPlusData::Dump().
constexpr std::array<BetaType, numBetaTypes> NAIA::Rich::betaTypes |
|
static |
Definition at line 188 of file Utils.h.
Referenced by NAIA::TrTrackBaseData::Dump(), and NAIA::TrTrackPlusData::Dump().
constexpr std::array<FitPositionHeight, numFitPositionHeights> NAIA::TrTrack::fitPositionHeights |
constexpr std::array<float, numFitPositionHeights> NAIA::TrTrack::fitPositionHeightZ |
|
static |
constexpr std::array<Fit, numFits> NAIA::TrTrack::fitTypes {Fit::Choutko, Fit::Kalman, Fit::GBL, Fit::KalmanElectron} |
constexpr std::array<FitPositionHeight, numTrLayers> NAIA::TrTrack::layerPositionHeights |
|
static |
Definition at line 250 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
|
static |
Definition at line 265 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
constexpr std::array<LikelihoodRType, numLikelihoodRTypes> NAIA::TrdK::likelihoodRTypes |
constexpr std::array<LikelihoodType, numLikelihoodTypes> NAIA::Ecal::likelihoodTypeNames |
constexpr std::array<LikelihoodType, numLikelihoodTypes> NAIA::TrdK::likelihoodTypes |
Definition at line 247 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
constexpr std::array<MCHeight, numMCHeights> NAIA::MCTruth::MCHeights |
constexpr std::array<float, numMCHeights> NAIA::MCTruth::MCHeightsZ |
constexpr unsigned int NAIA::Ecal::numBDTTypes = 4 |
Definition at line 316 of file Utils.h.
Referenced by NAIA::EcalBaseData::ResizeMembers().
constexpr unsigned int NAIA::TrdK::numChargeTypes = 3 |
Definition at line 229 of file Utils.h.
Referenced by NAIA::TrdKBaseData::ResizeMembers().
constexpr unsigned int NAIA::Ecal::numEnergyRecos = 5 |
Definition at line 285 of file Utils.h.
Referenced by NAIA::EcalBaseData::ResizeMembers().
constexpr unsigned int NAIA::TrTrack::numFitPositionHeights = 16 |
constexpr unsigned int NAIA::Ecal::numLikelihoodTypes = 2 |
Definition at line 307 of file Utils.h.
Referenced by NAIA::EcalPlusData::ResizeMembers().
constexpr unsigned int NAIA::TrdK::numQualTypes = 2 |
Definition at line 269 of file Utils.h.
Referenced by NAIA::TrdKBaseData::ResizeMembers().
|
static |
Definition at line 278 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
constexpr std::array<QualType, numQualTypes> NAIA::TrdK::qualTypes {QualType::OnTrack, QualType::OffTrack} |
Definition at line 276 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
|
static |
Definition at line 239 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
|
static |
Definition at line 302 of file Utils.h.
Referenced by NAIA::EcalBaseData::Dump().
|
static |
Definition at line 342 of file Utils.h.
Referenced by NAIA::TofBaseData::Dump().
constexpr std::array<ChargeRecoType, numChargeRecos> NAIA::TrTrack::recoTypes |
Definition at line 96 of file Utils.h.
Referenced by NAIA::UnbExtHitBaseData::Dump(), NAIA::TrTrackBaseData::Dump(), and NAIA::TrTrackPlusData::Dump().
constexpr std::array<ChargeType, numChargeTypes> NAIA::TrdK::recoTypes {ChargeType::Total, ChargeType::Upper, ChargeType::Lower} |
Definition at line 237 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
constexpr std::array<EnergyRecoType, numEnergyRecos> NAIA::Ecal::recoTypes |
Definition at line 298 of file Utils.h.
Referenced by NAIA::EcalBaseData::Dump().
constexpr std::array<ChargeType, numChargeTypes> NAIA::Tof::recoTypes {ChargeType::Total, ChargeType::Upper, ChargeType::Lower} |
Definition at line 340 of file Utils.h.
Referenced by NAIA::TofBaseData::Dump().
|
static |
constexpr std::array<Side, numSides> NAIA::TrTrack::sides {Side::X, Side::Y} |
|
static |
Definition at line 171 of file Utils.h.
Referenced by NAIA::TrTrackBaseData::Dump(), and NAIA::TrTrackPlusData::Dump().
constexpr std::array<Span, numSpans> NAIA::TrTrack::spanTypes |
|
static |
constexpr std::array<DistanceFromTrack, numTrackDistances> NAIA::TrTrack::trackDistances |
|
static |
constexpr std::array<TrGeometry, numTrGeos> NAIA::TrTrack::trGeoTypes |