27 StatusCode AsgPtEtaSelectionTool ::
32 ATH_MSG_ERROR (
"only one of 'useDressedProperties', 'useClusterEta' and 'useConstituentMomentum' can be used at the same time");
33 return StatusCode::FAILURE;
38 return StatusCode::FAILURE;
43 return StatusCode::FAILURE;
48 return StatusCode::FAILURE;
53 return StatusCode::FAILURE;
58 return StatusCode::FAILURE;
63 return StatusCode::FAILURE;
68 return StatusCode::FAILURE;
73 return StatusCode::FAILURE;
78 return StatusCode::FAILURE;
83 return StatusCode::FAILURE;
88 return StatusCode::FAILURE;
94 return StatusCode::FAILURE;
98 ATH_MSG_ERROR (
"cannot use both eta and rapidity cuts at the same time");
99 return StatusCode::FAILURE;
103 ATH_MSG_DEBUG(
"Performing pt and eta cuts on the dressed properties" );
117 ATH_MSG_DEBUG(
"Performing eta cut on the e/gamma cluster" );
122 ATH_MSG_DEBUG(
"Performing eta/rapidity cut on the jet constituent momentum" );
149 return StatusCode::SUCCESS;
155 getAcceptInfo ()
const
179 float pt = particle->pt();
181 pt = (*m_dressedPtAccessor) (*particle);
185 if (!std::isfinite(
pt) ||
pt < 0.)
220 ANA_MSG_ERROR (
"no calo-cluster associated with e-gamma object");
225 absEta = std::abs (caloCluster->
etaBE(2));
232 =
dynamic_cast<const xAOD::Jet*
>(particle);
244 absEta = std::abs (particle->eta());
262 float absRapidity = 0;
267 =
dynamic_cast<const xAOD::Jet*
>(particle);
276 absRapidity = std::abs (
jet->getAttribute<
xAOD::JetFourMom_t>(
"JetConstitScaleMomentum").Rapidity());
279 absRapidity = std::abs (particle->rapidity());
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.
Jet_v1 Jet
Definition of the current "jet version".
setRcore setEtHad setFside pt
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Egamma_v1 Egamma
Definition of the current "egamma version".
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.