|
NAIA
1.1.1
|
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 = 17 |
| 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 = 6 |
| constexpr std::array< Span, numSpans > | NAIA::TrTrack::spanTypes |
| static const std::array< std::string, numSpans > | NAIA::TrTrack::spanNames |
| constexpr unsigned int | NAIA::TrTrack::numFits = 6 |
| constexpr std::array< Fit, numFits > | NAIA::TrTrack::fitTypes |
| static const std::array< std::string, numFits > | NAIA::TrTrack::fitNames |
| 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(), 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<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 | ||
| ) |
| 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 325 of file Utils.h.
Referenced by NAIA::EcalBaseData::Dump().
|
constexpr |
Definition at line 323 of file Utils.h.
Referenced by NAIA::EcalBaseData::Dump().
|
static |
|
constexpr |
|
static |
Definition at line 358 of file Utils.h.
Referenced by NAIA::TofBaseData::Dump(), and NAIA::TofPlusData::Dump().
|
static |
|
constexpr |
Definition at line 356 of file Utils.h.
Referenced by NAIA::TofBaseData::Dump(), and NAIA::TofPlusData::Dump().
|
constexpr |
|
static |
Definition at line 190 of file Utils.h.
Referenced by NAIA::TrTrackBaseData::Dump(), and NAIA::TrTrackPlusData::Dump().
|
constexpr |
|
constexpr |
|
static |
|
constexpr |
|
static |
Definition at line 253 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
|
static |
Definition at line 268 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
|
constexpr |
Definition at line 265 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
|
constexpr |
|
constexpr |
Definition at line 250 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 319 of file Utils.h.
Referenced by NAIA::EcalBaseData::ResizeMembers().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 232 of file Utils.h.
Referenced by NAIA::TrdKBaseData::ResizeMembers().
|
constexpr |
|
constexpr |
Definition at line 288 of file Utils.h.
Referenced by NAIA::EcalBaseData::ResizeMembers().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 310 of file Utils.h.
Referenced by NAIA::EcalPlusData::ResizeMembers().
|
constexpr |
|
constexpr |
Definition at line 272 of file Utils.h.
Referenced by NAIA::TrdKBaseData::ResizeMembers().
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
static |
Definition at line 281 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
|
constexpr |
Definition at line 279 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
|
static |
Definition at line 242 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
|
static |
Definition at line 305 of file Utils.h.
Referenced by NAIA::EcalBaseData::Dump().
|
static |
Definition at line 345 of file Utils.h.
Referenced by NAIA::TofBaseData::Dump().
|
constexpr |
Definition at line 96 of file Utils.h.
Referenced by NAIA::UnbExtHitBaseData::Dump(), NAIA::TrTrackBaseData::Dump(), and NAIA::TrTrackPlusData::Dump().
|
constexpr |
Definition at line 240 of file Utils.h.
Referenced by NAIA::TrdKBaseData::Dump().
|
constexpr |
|
constexpr |
Definition at line 343 of file Utils.h.
Referenced by NAIA::TofBaseData::Dump().
|
static |
Definition at line 170 of file Utils.h.
Referenced by NAIA::TrTrackBaseData::Dump(), and NAIA::TrTrackPlusData::Dump().
|
static |
|
constexpr |
|
constexpr |
1.8.18