|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #ifndef XAOD_STANDALONE
16 declareInterface<IJetConstituentModifier>(
this);
31 <<
", but received " << cont->
front()->type());
32 return StatusCode::FAILURE;
37 return StatusCode::SUCCESS;
56 return StatusCode::FAILURE;
58 return StatusCode::SUCCESS;
70 if(weightAcc) (*weightAcc)(*clus) = clus->
calE() > 0. ?
e / clus->calE() : 0.;
79 if(weightAcc) (*weightAcc)(*pfo) = pfo->
pt() > 0. ?
pt / pfo->pt() : 0.;
82 pfo->setP4(
pt, pfo->eta(), pfo->phi());
91 if(weightAcc) (*weightAcc)(*pfo) = pfo->
pt() > 0. ?
pt / pfo->pt() : 0.;
92 pfo->setP4(
pt, pfo->eta(), pfo->phi(), 0.);
99 if( tcc->
taste() != 0) {
100 if(weightAcc) (*weightAcc)(*tcc) = tcc->
pt() > 0. ?
pt / tcc->pt() : 0.;
101 tcc->setParameters(
pt, tcc->eta(), tcc->phi(), tcc->m(),
xAOD::TrackCaloCluster::Taste(tcc->taste()), tcc->trackParticleLink(), tcc->caloClusterLinks());
108 return StatusCode::FAILURE;
110 return StatusCode::SUCCESS;
120 if(weightAcc) (*weightAcc)(*clus) = clus->
calE() > 0. ? p4.e() / clus->calE() : 0.;
121 clus->setCalE(p4.e());
122 clus->setCalEta(p4.eta());
123 clus->setCalPhi(p4.phi());
132 if(weightAcc) (*weightAcc)(*pfo) = pfo->
pt() > 0. ? p4.pt() / pfo->pt() : 0.;
133 pfo->setP4(p4.pt(),p4.eta(),p4.phi(),p4.mass());
142 if(weightAcc) (*weightAcc)(*pfo) = pfo->
pt() > 0. ? p4.pt() / pfo->pt() : 0.;
143 pfo->setP4(p4.pt(),p4.eta(),p4.phi(),p4.mass());
150 if( tcc->
taste() != 0) {
151 if(weightAcc) (*weightAcc)(*tcc) = tcc->
pt() > 0. ? p4.pt() / tcc->pt() : 0.;
152 tcc->setParameters(p4.pt(), p4.eta(), p4.phi(), p4.mass(),
xAOD::TrackCaloCluster::Taste(tcc->taste()), tcc->trackParticleLink(), tcc->caloClusterLinks());
160 return StatusCode::FAILURE;
162 return StatusCode::SUCCESS;
StatusCode process(xAOD::IParticleContainer *cont) const override final
StatusCode setEtaPhi(xAOD::IParticle *obj, float eta, float phi) const
virtual double pt() const
The transverse momentum ( ) of the particle.
Scalar phi() const
phi method
JetConstituentModifierBase(const std::string &name)
Helper class to provide type-safe access to aux data.
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
flt_t calE() const
Geet Energy in signal state CALIBRATED.
Class describing a TrackCaloCluster.
virtual StatusCode process_impl(xAOD::IParticleContainer *) const
void setCalEta(flt_t)
Set for signal state CALIBRATED.
virtual double pt() const override
Class providing the definition of the 4-vector interface.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
TrackCaloCluster_v1 TrackCaloCluster
Reference the current persistent version:
virtual double pt() const
The transverse momentum ( ) of the particle.
Description of a calorimeter cluster.
void setCalPhi(flt_t)
Set for signal state CALIBRATED.
::StatusCode StatusCode
StatusCode definition for legacy code.
FlowElement_v1 FlowElement
Definition of the current "pfo version".
const T * front() const
Access the first element in the collection as an rvalue.
@ ParticleFlow
The object is a particle-flow object.
StatusCode setP4(xAOD::IParticle *obj, const xAOD::JetFourMom_t &p4, const SG::AuxElement::Accessor< float > *weightAcc=nullptr) const
bool isCharged() const
is a charged PFO
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.
Class describing a particle flow object.
StatusCode setEnergyPt(xAOD::IParticle *obj, float e, float pt, const SG::AuxElement::Accessor< float > *weightAcc=nullptr) const
virtual int taste() const
The taste of the particle.
Taste
Type of TrackCaloCluster - Charged - Neutral - Combined.
bool empty() const noexcept
Returns true if the collection is empty.
A detector object made of other lower level object(s)