|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #if !defined(SIMULATIONBASE) and !defined(GENERATIONBASE)
10 #endif // not SIMULATIONBASE or GENERATIONBASE
16 if( std::abs(
m ) < 0.00001 ) {
19 p = std::sqrt(
e *
e -
m *
m );
26 double aEta = std::abs( eta );
30 const double sinTh = 1.0 / std::cosh( aEta );
39 switch(
part->type() ){
50 #if !defined(SIMULATIONBASE) and !defined(GENERATIONBASE)
54 else constit.SetCoordinates( 0, 1, 1, 0 );
57 #endif // not SIMULATIONBASE or GENERATIONBASE
63 constit.SetCoordinates(
part->pt(),
part->eta(),
93 using ELVector = std::vector<ElementLink<IParticleContainer> >;
96 if ( !
el.isValid() )
return false;
123 std::vector<const IParticle*>
v(
m_elVector->size() );
130 std::vector<JetConstituent>
vec(
N);
131 for (
size_t i=0;
i<
N;
i++ ) {
JetConstituentVector::iterator iterator
JetConstituent at(size_t i) const
Constituent proxy at position i.
JetConstituent operator[](size_t i) const
Constituent proxy at position i.
double ptFromEEtaM(const double e, const double eta, const double m)
const JetConstituent * operator*()
iterator end() const
iterator after the last constituent
JetConstituent back() const
last constituent proxy
virtual double phiEM() const
get EM scale phi
bool operator==(const iterator &other) const
size_t size() const
number of constituents
bool isValid() const
Check if element links are valid.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
std::vector< size_t > vec
const std::vector< ElementLink< IParticleContainer > > * m_elVector
This file defines helper classes to deal with jet constituents.
Class providing the definition of the 4-vector interface.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
virtual double ptEM() const
get EM scale pt
bool empty() const
true if vector is empty()
typename vecDetail::vec_typedef< T, N >::type vec
Define a nice alias for the vectorized type.
iterator begin() const
iterator on the first constituent
Description of a calorimeter cluster.
ELiterator m_cachedMomIndex
@ ParticleFlow
The object is a particle-flow object.
virtual double mEM() const
get EM scale mass
Class describing a particle flow object.
JetConstituent front() const
first constituent proxy
virtual double etaEM() const
get EM scale eta
JetConstitScale m_sigState
JetConstitScale m_sigState
std::vector< JetConstituent > asSTLVector()
Returns this vector as a std::vector Provided for convenience when dealing with the JetConstituentVec...
std::vector< const IParticle * > asIParticleVector() const
vector of pointer to the underlying IParticles.
@ UncalibratedJetConstituent
bool operator!=(const iterator &other) const
4-vector of jet constituent at the scale used during jet finding.
const JetConstituent * operator->()
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
void fillJetConstituent(const IParticle *part, JetConstituent &constit, JetConstitScale sigState)