|
ATLAS Offline Software
|
Go to the documentation of this file.
185 secondaryDecayLink, setSecondaryDecayLink )
189 static const Accessor< ElementLink< TrigBphysContainer_v1 > > acc(
"secondaryDecayLink" );
190 if( ! acc.isAvailable( *
this ) ) {
207 trackAcc(
"trackParticleLinks" );
211 if( ! trackAcc.isAvailable( *
this ) ) {
214 return trackAcc( *this ).size();
219 if( ! trackAcc.isAvailable( *
this ) ) {
225 if( ! trackAcc( *
this )[
i ].
isValid() ) {
228 return *( trackAcc( *
this )[
i ] );
233 trackAcc( *this ).push_back(
track );
238 const double epsilon = 1
e-5;
242 if((aHasSD+bHasSD)==1)
253 if(fabs(
eta()-rhs.
eta())>epsilon)
return false;
254 if(fabs(
phi()-rhs.
phi())>epsilon)
return false;
255 if(fabs(
pt()*0.001-rhs.
pt()*0.001)>epsilon)
return false;
256 if(fabs(
mass()*0.001-rhs.
mass()*0.001)>epsilon)
return false;
259 if(fabs(
fitx()-rhs.
fitx())>epsilon)
return false;
260 if(fabs(
fity()-rhs.
fity())>epsilon)
return false;
261 if(fabs(
fitz()-rhs.
fitz())>epsilon)
return false;
263 if((aHasSD+bHasSD)==2)
275 lowerChainLink, setLowerChainLink )
279 static const Accessor< ElementLink< TrigBphysContainer_v1 > > acc(
"lowerChainLink" );
280 if( ! acc.isAvailable( *
this ) ) {
293 particleLinks, setParticleLinks )
297 particleAcc(
"particleLinks" );
301 if( ! particleAcc.isAvailable( *
this ) ) {
304 return particleAcc( *this ).size();
309 if( ! particleAcc.isAvailable( *
this ) ) {
315 if( ! particleAcc( *
this )[
i ].
isValid() ) {
318 return *( particleAcc( *
this )[
i ] );
323 particleAcc( *this ).push_back(
particle );
329 std::vector< uint32_t >,
330 vecRoiIds, setVecRoiIds )
334 vRoiAcc(
"vecRoiIds" );
338 if( ! vRoiAcc.isAvailable( *
this ) ) {
341 return vRoiAcc( *this ).size();
346 if( ! vRoiAcc.isAvailable( *
this ) ) {
352 return vRoiAcc( *
this )[
i ];
357 vRoiAcc( *this ).push_back(
roiId );
368 return ptAcc( *
this );
385 return fitmassErrorAcc.isAvailable(*
this)? fitmassErrorAcc(*
this) : -99.;
388 return lxyAcc.isAvailable(*
this) ? lxyAcc(*
this) : -99.;
391 return lxyErrorAcc.isAvailable(*
this) ? lxyErrorAcc(*
this) : -99.;
394 return tauAcc.isAvailable(*
this) ? tauAcc(*
this) : -99.;
397 return tauErrorAcc.isAvailable(*
this) ? tauErrorAcc(*
this) : -99.;
402 fitmassErrorAcc(*
this) =
x;
410 lxyErrorAcc(*
this) =
x;
418 tauErrorAcc(*
this) =
x;
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
uint32_t vecRoiId(size_t i) const
Get the Nth roiId.
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
void setFitchi2(float FitChi2)
set method: chi2 from vertex fit
void setPhi(float)
Set the azimuth angle of the object.
void addVecRoiId(uint32_t roiId)
add a roiId to the vector
void setPt(float)
Set the pT of the object.
Helper class to provide type-safe access to aux data.
float tau() const
accessor method: tau
void setLevel(levelType type)
set method: level type
levelType level() const
accessor method: level Type
void setLowerChainLink(const ElementLink< xAOD::TrigBphysContainer_v1 > &link)
set method: link to lowerChain decay particle
void setFitz(float FitZ)
set method: z position of vertex
pType particleType() const
accessor method: particle Type
float fitx() const
accessor method: x position of vertex
void setLxy(float v)
set method: lxy
void addParticleLink(const ElementLink< xAOD::IParticleContainer > &particle)
add a track to the vector of particles
size_t nParticles() const
Number of tracks used to make particle.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
TrigBphys_v1()
Default constructor.
float mass() const
accessor method: mass
setRcore setEtHad setFside pt
const TrigBphys_v1 * secondaryDecay() const
accessor method: secondary decay particle
Class providing the definition of the 4-vector interface.
void setVecRoiIds(const std::vector< uint32_t > &roiIds)
Set the track particle links on the object.
void setEta(float)
Set the pseudorapidity of the object.
Amg::RotationMatrix3D setPhi(Amg::RotationMatrix3D mat, double angle, int convention=0)
float pt() const
accessor method: pt
const std::vector< ElementLink< xAOD::TrackParticleContainer > > & trackParticleLinks() const
accessor method:vector of tracks used to make particle
void setFitndof(int FitNdof)
set method: ndof from vertex fit
void setLevel(MsgLevel l)
const ElementLink< TrigBphysContainer_v1 > & secondaryDecayLink() const
accessor method: secondary decay particle
float tauError() const
accessor method: tau uncertainty
void setRoiId(uint32_t id)
set method: roiId
void setTau(float v)
set method: tau
void setFitmass(float FitMass)
set method: mass from vertex fit
void setParticleLinks(const std::vector< ElementLink< IParticleContainer > > &links)
Set the track particle links on the object.
AUXSTORE_PRIMITIVE_SETTER_WITH_CAST(CompositeParticle_v1, float, double, px, setPx) AUXSTORE_PRIMITIVE_SETTER_WITH_CAST(CompositeParticle_v1
void setSecondaryDecayLink(const ElementLink< xAOD::TrigBphysContainer_v1 > &link)
set method: link to secondary decay particle
float fitmassError() const
accessor method: fitmass uncertainty
void setFity(float FitY)
set method: y position of vertex
float lxyError() const
accessor method: lxy uncertainty
bool operator==(const TrigBphys_v1 &rhs) const
AUXSTORE_PRIMITIVE_GETTER_WITH_CAST(Muon_v1, uint8_t, Muon_v1::EnergyLossType, energyLossType) AUXSTORE_PRIMITIVE_SETTER_WITH_CAST(Muon_v1
setTeId setLumiBlock roiId
void setMass(float)
Set the mass of the object.
uint32_t roiId() const
accessor method: ID of L1 RoI
std::vector< ElementLink< xAOD::TrackParticleContainer > > trackParticleLinks(const xAOD::TauJet *tau, xAOD::TauJetParameters::TauTrackFlag flag=xAOD::TauJetParameters::TauTrackFlag::classifiedCharged)
float fitchi2() const
accessor method: chi2 from vertex fit
const xAOD::TrackParticle * trackParticle(size_t i) const
Get the Nth track's pointer.
float fitmass() const
accessor method: mass from vertex fit
float fitz() const
accessor method: z position of vertex
void setFitmassError(float v)
set method: fitmassError
levelType
enum to describe the level this object is operating at
void setLxyError(float v)
set method: lxyError
ElementLink implementation for ROOT usage.
void addTrackParticleLink(const ElementLink< xAOD::TrackParticleContainer > &track)
set method: add track to particle
void setTrackParticleLinks(const std::vector< ElementLink< TrackParticleContainer > > &links)
Set the track particle links on the object.
const ElementLink< TrigBphysContainer_v1 > & lowerChainLink() const
accessor method: lowerChain decay particle
void setParticleType(pType type)
set method: particle type
float phi() const
accessor method: phi
size_t nVecRoiIds() const
Number of tracks used to make particle.
void clone(const TrigBphys_v1 &rhs)
const std::vector< uint32_t > & vecRoiIds() const
accessor method:vector of tracks used to make particle
const TrigBphys_v1 * lowerChain() const
accessor method: lowerChain decay particle
void setTauError(float v)
set method: tauError
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
const std::vector< ElementLink< xAOD::IParticleContainer > > & particleLinks() const
accessor method:vector of tracks used to make particle
Class describing a TrackParticle.
float fity() const
accessor method: y position of vertex
float lxy() const
accessor method: lxy
float eta() const
accessor method: eta
const xAOD::IParticle * particle(size_t i) const
Get the Nth track's pointer.
int fitndof() const
accessor method: ndof from vertex fit
Class describing a Bphysics online composite object.
pType
enum for different particle types
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
size_t nTrackParticles() const
Number of tracks used to make particle.
void setFitx(float FitX)
set method: x position of vertex