![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
34 if( IID_IInDetEtaDependentCutsSvc == riid ) {
37 return AthService::queryInterface(riid, ppvIF);
40 return StatusCode::SUCCESS;
50 ATH_MSG_ERROR(
"Wrong initialisation of eta bins. Check the eta bin values in " <<
name() );
51 return StatusCode::FAILURE;
56 ATH_MSG_ERROR(
"Wrong initialisation of eta bins in " <<
name() <<
". Values are not sorted!" );
57 return StatusCode::FAILURE;
60 using setOfCuts = std::variant< std::reference_wrapper<std::vector <double>>, std::reference_wrapper<std::vector <int>> >;
88 for (setOfCuts&
cuts : allCuts) {
89 auto sCode = std::visit([noOfEtaBins] (
auto & testingCuts) ->
StatusCode {
91 if (testingCuts.get().size() == noOfEtaBins)
92 return StatusCode::SUCCESS;
94 if (testingCuts.get().size() > noOfEtaBins)
95 return StatusCode::FAILURE;
97 if (testingCuts.get().size() < noOfEtaBins)
98 testingCuts.get().resize(noOfEtaBins, testingCuts.get().back());
100 return StatusCode::SUCCESS;
103 if (sCode.isFailure()) {
161 return StatusCode::SUCCESS;
168 return StatusCode::SUCCESS;
175 ATH_MSG_INFO(
"Requesting cut value outside of configured eta range: clamping eta="
192 cuts.resize(noOfEtaBins);
197 else ATH_MSG_ERROR(
"CutName not recognized. Cuts will remain unchanged.");
207 cuts.resize(noOfEtaBins);
212 else ATH_MSG_ERROR(
"CutName not recognized. Cuts will remain unchanged.");
double getMaxEta() const override final
JetConstituentVector::iterator iterator
DoubleArrayProperty m_maxdImpactSSSSeeds
DoubleArrayProperty m_Xi2maxNoAdd
IntegerArrayProperty m_maxPixelHoles
DoubleArrayProperty m_minPTBrem
DoubleArrayProperty m_Xi2max
IntegerArrayProperty m_minSiNotShared
void getValue(const InDet::CutName cutName, std::vector< double > &cut) override final
Scalar eta() const
pseudorapidity method
DUMMY Primary Vertex Finder.
int getMaxPixelHolesAtEta(const double eta) const override final
DoubleArrayProperty m_maxZImpact
int getMinInnermostPixelHitsAtEta(const double eta) const override final
double getMinPtAtEta(const double eta) const override final
IntegerArrayProperty m_maxDoubleHoles
int getMaxSctHolesAtEta(const double eta) const override final
IntegerArrayProperty m_maxHolesGapPattern
double getMaxZImpactAtEta(const double eta) const override final
IntegerArrayProperty m_minClusters
double getMaxChi2AtEta(const double eta) const override final
DoubleArrayProperty m_minPT
virtual ~InDetEtaDependentCutsSvc() override final
Destructor:
::StatusCode StatusCode
StatusCode definition for legacy code.
DoubleArrayProperty m_maxPrimaryImpact
int getMinStripHitsAtEta(const double eta) const override final
int getMinSiHitsAtEta(const double eta) const override final
int getMaxSharedAtEta(const double eta) const override final
DoubleArrayProperty m_etaBins
int getMaxDoubleHolesAtEta(const double eta) const override final
IntegerArrayProperty m_nWeightedClustersMin
int getMaxSiHolesAtEta(const double eta) const override final
IntegerArrayProperty m_maxHolesPattern
int getIndexByEta(const double eta) const
IntegerArrayProperty m_minPixelHits
std::unordered_map< InDet::CutName, std::vector< int > > m_mapIntCuts
IntegerArrayProperty m_minInPixelHits
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvIF) final
IntegerArrayProperty m_maxShared
std::unordered_map< InDet::CutName, std::vector< double > > m_mapDoubleCuts
IntegerArrayProperty m_minStripHits
DoubleArrayProperty m_etaWidthBrem
bool absEta(const xAOD::TauJet &tau, double &out)
int getMinPixelHitsAtEta(const double eta) const override final
DoubleArrayProperty m_phiWidthBrem
IntegerArrayProperty m_maxSctHoles
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
StatusCode initialize() override final
double getMaxPrimaryImpactAtEta(const double eta) const override final
IntegerArrayProperty m_maxHoles
StatusCode finalize() override final
InDetEtaDependentCutsSvc(const std::string &name, ISvcLocator *sl)
Constructor with parameters:
int getMinSiNotSharedAtEta(const double eta) const override final