|
ATLAS Offline Software
|
Go to the documentation of this file.
37 const std::string&
name,
44 "Target label for the getter for the jets to which"
49 "Primary vertex container name");
52 "DR cut between electrons and jets");
55 "The ICollectionGetterRegistryTool instance.");
68 return StatusCode::SUCCESS;
82 const std::type_info& ti)
87 return StatusCode::SUCCESS;
100 return StatusCode::SUCCESS;
121 float dr = hypot (clus->
p4().DeltaPhi(myjet->p4()),
122 myjet->eta() - clus->
etaBE(2));
125 float signedIP=-9999.9;
127 float reducedPt=-9999.9;
130 signedIP, PTRel ).isFailure() )
161 "DR between electron and associated jet.") );
163 "Signed impact parameter between electron and jet.") );
165 "Relative Pt between electron and jet.") );
167 "Number of jet constituents.") );
169 "Jet Pt with electron removed.") );
171 return StatusCode::SUCCESS;
188 return StatusCode::SUCCESS;
193 return StatusCode::SUCCESS;
198 reducedPt = hypot (
px,
py);
200 return StatusCode::SUCCESS;
220 return StatusCode::SUCCESS;
225 return StatusCode::SUCCESS;
228 PTRel=
track->p4().Perp (j0->
p4().Vect());
230 CLHEP::Hep3Vector jetDirection( (j0)->
px(), (j0)->
py(), (j0)->
pz());
231 CLHEP::Hep3Vector
unit = jetDirection.unit();
234 return StatusCode::SUCCESS;
242 <<
" not found in StoreGate!";
243 else if (!vxcontainer->
empty())
244 vx = vxcontainer->
front();
249 <<
"No vertex found.";
250 return StatusCode::SUCCESS;
256 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
Common interface for adding a variable to a tuple.
virtual StatusCode initialize() override
Standard Gaudi initialize method.
float * m_reducedPt
Variable: Jet pT with electron removed.
ToolHandle< Trk::ITrackToVertexIPEstimator > m_trackToVertexIPEstimator
Property: Tool for the estimation of the IPs to the vertex.
float * m_ptrel
Variable: Relative Pt between electron and jet.
float * m_signedIP
Variable: Signed impact parameter between electron and jet.
std::string m_targetLabel
Property: Target label for the getter for the jets to which to associate.
ElectronJetDRAssociator(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Add a variable to the tuple.
ToolHandle< ICollectionGetterRegistryTool > m_registry
Property: The ICollectionGetterRegistryTool instance.
StatusCode findReducedPt(const xAOD::Electron *eg, const xAOD::Jet *j, float &reducedPt)
Find the pT of the jet with electron removed.
unsigned int * m_jetSize
Variable: Number of jet constituents.
virtual StatusCode configureD3PD(IAddVariable *tree, const std::type_info &ti) override
Configure during initialization: type-check.
virtual const xAOD::Jet * next() override
Return a pointer to the next element in the association.
const xAOD::Electron * m_eg
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
Description of a calorimeter cluster.
Block filler tool for noisy FEB information.
::StatusCode StatusCode
StatusCode definition for legacy code.
double m_drcut
Property: DR cut between electrons and jets.
virtual StatusCode book() final
Create any needed tuple variables.
const xAOD::CaloCluster * caloCluster(size_t index=0) const
Pointer to the xAOD::CaloCluster/s that define the electron candidate.
const T * front() const
Access the first element in the collection as an rvalue.
#define CHECK(...)
Evaluate an expression and check for errors.
float py() const
The y-component of the jet's momentum.
virtual FourMom_t p4() const
The full 4-momentum of the particle.
std::string m_vertexContainerName
Property: Vertex container name.
ICollectionGetterTool * m_target
Getter defining the collection within which to index.
virtual StatusCode reset(const xAOD::Electron &eg) override
Start the iteration for a new association.
float px() const
The x-component of the jet's momentum.
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE(LVL)
Report a message.
virtual FourMom_t p4() const
The full 4-momentum of the particle.
Class describing a Vertex.
#define ATH_MSG_WARNING(x)
const PlainObject unit() const
This is a plugin that makes Eigen look like CLHEP & defines some convenience methods.
StatusCode findSignedIPAndPTRelEleJetPair(const xAOD::Electron *eg, const xAOD::Jet *j0, float &signedIP, float &PTRel)
Find the signed impact parameter and PTRel of EG's track relative to the beamspot.
Class describing a TrackParticle.
float * m_dr
Variable: DR between electron and jet.
bool empty() const noexcept
Returns true if the collection is empty.