ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::TrigBphys_v1 Class Reference

Class describing a Bphysics online composite object. More...

#include <TrigBphys_v1.h>

Inheritance diagram for xAOD::TrigBphys_v1:
Collaboration diagram for xAOD::TrigBphys_v1:

Public Types

enum  pType {
  PHIKK = 0 , DSPHIPI = 1 , BMUMU = 2 , BMUMUX = 3 ,
  JPSIEE = 4 , JPSIMUMU = 5 , MULTIMU = 6 , BKMUMU = 7 ,
  BDKSTMUMU = 8 , BSPHIMUMU = 9 , LBLMUMU = 10 , BCDSMUMU = 11 ,
  LAMBDAPIP = 12 , BCDPMUMU = 13 , BCDSTMUMU = 14 , OMEGALAMK = 15 ,
  XILAMPI = 16 , DSTDZPI = 17 , DZMUKX = 18 , DZKPI = 19 ,
  DPKPIPI = 20 , BCPIMUMU = 21 , LBPQMUMU = 22 , B2D0MUX = 23 ,
  BD2DMMUX = 24 , BD2DSTMUX = 25 , BS2DSMUX = 26 , LB2LCMUX = 27 ,
  BHH = 28 , UNKNOWNPTYPE = 9999
}
 enum for different particle types More...
enum  levelType {
  UNKOWNLEVEL = 0 , L2 = 2 , EF = 3 , HLT = 4 ,
  LASTLEVEL
}
 enum to describe the level this object is operating at More...

Public Member Functions

 TrigBphys_v1 ()
 Default constructor.
void clone (const TrigBphys_v1 &rhs)
void initialise ()
void initialise (uint32_t roi, float eta, float phi, float pt, pType particleType, float mass, levelType level)
void initialise (uint32_t roi, float eta, float phi, pType particleType, float mass, levelType level)
void initialise (uint32_t roi, float eta, float phi, float pt, pType particleType, float mass, const ElementLink< xAOD::TrigBphysContainer_v1 > &sDecay, levelType level)
 constructor replacement for particle of type "particleType" with mass "mass" and a secondary decay (given as ElementLink to another TrigEFBphys)
void initialise (uint32_t roi, float eta, float phi, pType particleType, float mass, const ElementLink< xAOD::TrigBphysContainer_v1 > &sDecay, levelType level)
 constructor replacement for particle of type "particleType" with mass "mass" and a secondary decay (given as ElementLink to another TrigEFBphys)
bool operator== (const TrigBphys_v1 &rhs) const
bool operator!= (const TrigBphys_v1 &rhs) const
uint32_t roiId () const
 accessor method: ID of L1 RoI
pType particleType () const
 accessor method: particle Type
levelType level () const
 accessor method: level Type
float eta () const
 accessor method: eta
float phi () const
 accessor method: phi
float pt () const
 accessor method: pt
float mass () const
 accessor method: mass
float fitmass () const
 accessor method: mass from vertex fit
float fitchi2 () const
 accessor method: chi2 from vertex fit
int fitndof () const
 accessor method: ndof from vertex fit
float fitx () const
 accessor method: x position of vertex
float fity () const
 accessor method: y position of vertex
float fitz () const
 accessor method: z position of vertex
float lxy () const
 accessor method: lxy
float lxyError () const
 accessor method: lxy uncertainty
float tau () const
 accessor method: tau
float tauError () const
 accessor method: tau uncertainty
float fitmassError () const
 accessor method: fitmass uncertainty
const TrigBphys_v1secondaryDecay () const
 accessor method: secondary decay particle
const ElementLink< TrigBphysContainer_v1 > & secondaryDecayLink () const
 accessor method: secondary decay particle
const std::vector< ElementLink< xAOD::TrackParticleContainer > > & trackParticleLinks () const
 accessor method:vector of tracks used to make particle
void setTrackParticleLinks (const std::vector< ElementLink< TrackParticleContainer > > &links)
 Set the track particle links on the object.
size_t nTrackParticles () const
 Number of tracks used to make particle.
const xAOD::TrackParticletrackParticle (size_t i) const
 Get the Nth track's pointer.
void setEta (float)
 Set the pseudorapidity of the object.
void setPhi (float)
 Set the azimuth angle of the object.
void setMass (float)
 Set the mass of the object.
void setPt (float)
 Set the pT of the object.
void setRoiId (uint32_t id)
 set method: roiId
void setParticleType (pType type)
 set method: particle type
void setLevel (levelType type)
 set method: level type
void setFitmass (float FitMass)
 set method: mass from vertex fit
void setFitchi2 (float FitChi2)
 set method: chi2 from vertex fit
void setFitndof (int FitNdof)
 set method: ndof from vertex fit
void setFitx (float FitX)
 set method: x position of vertex
void setFity (float FitY)
 set method: y position of vertex
void setFitz (float FitZ)
 set method: z position of vertex
void addTrackParticleLink (const ElementLink< xAOD::TrackParticleContainer > &track)
 set method: add track to particle
void setSecondaryDecayLink (const ElementLink< xAOD::TrigBphysContainer_v1 > &link)
 set method: link to secondary decay particle
void setLxy (float v)
 set method: lxy
void setLxyError (float v)
 set method: lxyError
void setTau (float v)
 set method: tau
void setTauError (float v)
 set method: tauError
void setFitmassError (float v)
 set method: fitmassError
const std::vector< uint32_t > & vecRoiIds () const
 accessor method:vector of tracks used to make particle
void setVecRoiIds (const std::vector< uint32_t > &roiIds)
 Set the track particle links on the object.
size_t nVecRoiIds () const
 Number of tracks used to make particle.
uint32_t vecRoiId (size_t i) const
 Get the Nth roiId.
void addVecRoiId (uint32_t roiId)
 add a roiId to the vector
const TrigBphys_v1lowerChain () const
 accessor method: lowerChain decay particle
const ElementLink< TrigBphysContainer_v1 > & lowerChainLink () const
 accessor method: lowerChain decay particle
void setLowerChainLink (const ElementLink< xAOD::TrigBphysContainer_v1 > &link)
 set method: link to lowerChain decay particle
const std::vector< ElementLink< xAOD::IParticleContainer > > & particleLinks () const
 accessor method:vector of tracks used to make particle
void setParticleLinks (const std::vector< ElementLink< IParticleContainer > > &links)
 Set the track particle links on the object.
size_t nParticles () const
 Number of tracks used to make particle.
const xAOD::IParticleparticle (size_t i) const
 Get the Nth track's pointer.
void addParticleLink (const ElementLink< xAOD::IParticleContainer > &particle)
 add a track to the vector of particles
TrigBphys_v1operator= (const TrigBphys_v1 &rhs)=default

Private Member Functions

 TrigBphys_v1 (const TrigBphys_v1 &rhs)=delete

Detailed Description

Class describing a Bphysics online composite object.

This class describes the properties of BPhysics composite object in the xAOD format.

Author
James Walder jwald.nosp@m.er@c.nosp@m.ern.c.nosp@m.h Based on the previous TrigL2Bphys and TrigEFBphys classes
Revision
696633
Date
2015-09-24 16:59:50 +0200 (Thu, 24 Sep 2015)

Definition at line 44 of file TrigBphys_v1.h.

Member Enumeration Documentation

◆ levelType

enum to describe the level this object is operating at

Enumerator
UNKOWNLEVEL 
L2 
EF 
HLT 
LASTLEVEL 

Definition at line 83 of file TrigBphys_v1.h.

◆ pType

enum for different particle types

Enumerator
PHIKK 
DSPHIPI 
BMUMU 
BMUMUX 
JPSIEE 
JPSIMUMU 
MULTIMU 
BKMUMU 
BDKSTMUMU 
BSPHIMUMU 
LBLMUMU 
BCDSMUMU 
LAMBDAPIP 
BCDPMUMU 
BCDSTMUMU 
OMEGALAMK 
XILAMPI 
DSTDZPI 
DZMUKX 
DZKPI 
DPKPIPI 
BCPIMUMU 
LBPQMUMU 
B2D0MUX 
BD2DMMUX 
BD2DSTMUX 
BS2DSMUX 
LB2LCMUX 
BHH 
UNKNOWNPTYPE 

Definition at line 48 of file TrigBphys_v1.h.

48 {
49 PHIKK = 0,
50 DSPHIPI = 1,
51 BMUMU = 2,
52 BMUMUX = 3,
53 JPSIEE = 4,
54 JPSIMUMU = 5,
55 MULTIMU = 6,
56 BKMUMU = 7,
57 BDKSTMUMU = 8,
58 BSPHIMUMU = 9,
59 LBLMUMU = 10,
60 BCDSMUMU = 11,
61 // added JW: 21/09/15 for 2016 edm running
62 LAMBDAPIP = 12, // Lambda^0 -> pi- p
63 BCDPMUMU = 13, // B_c -> D+ mu mu
64 BCDSTMUMU = 14, // B_c -> D*+ mu mu
65 OMEGALAMK = 15, // Omega- -> Lambda^0 K-
66 XILAMPI = 16, // Xi- -> Lambda^0 pi-
67 DSTDZPI = 17, // D*+ -> D0 pi+
68 DZMUKX = 18, // D0 -> mu+ K- X
69 DZKPI = 19, // D0 -> K- pi+
70 DPKPIPI = 20, // D+ -> K- pi+ pi+
71 BCPIMUMU = 21, // B_c+ -> pi+ mu mu
72 LBPQMUMU = 22, // Lambda_b0 -> P_c+(-> J/psi p) K-, pentaquark states
73 B2D0MUX = 23, // B+ -> mu+ nu_mu anti-D0(-> K+ pi-)
74 BD2DMMUX = 24, // B0 -> mu+ nu_mu D-(->K+ pi- pi-)
75 BD2DSTMUX = 25, // B0 -> mu+ nu_mu D*-(->anti-D0(->K+ pi-) pi-)
76 BS2DSMUX = 26, // B_s0 -> mu+ nu_mu D_s-(->phi(->K+ K-) pi-)
77 LB2LCMUX = 27, // anti-Lambda_b0 -> mu+ nu_mu anti-Lambda_c-(-> anti-p K+ pi-)
78 BHH = 28, // B0 or B_s0 -> h+ h-, h = pi, K
79 UNKNOWNPTYPE = 9999
80 };

Constructor & Destructor Documentation

◆ TrigBphys_v1() [1/2]

xAOD::TrigBphys_v1::TrigBphys_v1 ( )

Default constructor.

Definition at line 16 of file TrigBphys_v1.cxx.

17 : SG::AuxElement() {
18 } // TrigBphys_v1
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.

◆ TrigBphys_v1() [2/2]

xAOD::TrigBphys_v1::TrigBphys_v1 ( const TrigBphys_v1 & rhs)
privatedelete

Member Function Documentation

◆ addParticleLink()

void xAOD::TrigBphys_v1::addParticleLink ( const ElementLink< xAOD::IParticleContainer > & particle)

add a track to the vector of particles

Definition at line 322 of file TrigBphys_v1.cxx.

322 {
323 particleAcc( *this ).push_back( particle );
324 return;
325 } //addTrack
const xAOD::IParticle * particle(size_t i) const
Get the Nth track's pointer.

◆ addTrackParticleLink()

void xAOD::TrigBphys_v1::addTrackParticleLink ( const ElementLink< xAOD::TrackParticleContainer > & track)

set method: add track to particle

add a track to the vector of tracks

Definition at line 232 of file TrigBphys_v1.cxx.

232 {
233 trackAcc( *this ).push_back( track );
234 return;
235 } //addTrack
static const SG::AuxElement::Accessor< Vertex_v1::TrackParticleLinks_t > trackAcc("trackParticleLinks")
Accessor for the track links.

◆ addVecRoiId()

void xAOD::TrigBphys_v1::addVecRoiId ( uint32_t roiId)

add a roiId to the vector

Definition at line 356 of file TrigBphys_v1.cxx.

356 {
357 vRoiAcc( *this ).push_back( roiId );
358 return;
359 } //addTrack
uint32_t roiId() const
accessor method: ID of L1 RoI

◆ clone()

void xAOD::TrigBphys_v1::clone ( const TrigBphys_v1 & rhs)

Definition at line 54 of file TrigBphys_v1.cxx.

54 {
55 if (this == &rhs) {
56 // if attempting to clone oneself, dont
57 return;
58 }
59 initialise(rhs.roiId(), rhs.eta(), rhs.phi(), rhs.pt(),
60 rhs.particleType(),
61 rhs.mass(), rhs.level());
62 setFitmass(rhs.fitmass());
63 setFitchi2(rhs.fitchi2());
64 setFitndof(rhs.fitndof());
65 setFitx (rhs.fitx());
66 setFity (rhs.fity());
67 setFitz (rhs.fitz());
68
69 setSecondaryDecayLink(rhs.secondaryDecayLink());
70 setTrackParticleLinks(rhs.trackParticleLinks());
71
72 setVecRoiIds(rhs.vecRoiIds());
73 setLowerChainLink(rhs.lowerChainLink());
74 setParticleLinks(rhs.particleLinks());
75 }
void setFitchi2(float FitChi2)
set method: chi2 from vertex fit
void setFitx(float FitX)
set method: x position of vertex
void setFity(float FitY)
set method: y position of vertex
void setSecondaryDecayLink(const ElementLink< xAOD::TrigBphysContainer_v1 > &link)
set method: link to secondary decay particle
void setParticleLinks(const std::vector< ElementLink< IParticleContainer > > &links)
Set the track particle links on the object.
void setFitndof(int FitNdof)
set method: ndof from vertex fit
void setVecRoiIds(const std::vector< uint32_t > &roiIds)
Set the track particle links on the object.
void setFitz(float FitZ)
set method: z position of vertex
void setFitmass(float FitMass)
set method: mass from vertex fit
void setTrackParticleLinks(const std::vector< ElementLink< TrackParticleContainer > > &links)
Set the track particle links on the object.
void setLowerChainLink(const ElementLink< xAOD::TrigBphysContainer_v1 > &link)
set method: link to lowerChain decay particle

◆ eta()

float xAOD::TrigBphys_v1::eta ( ) const

accessor method: eta

◆ fitchi2()

float xAOD::TrigBphys_v1::fitchi2 ( ) const

accessor method: chi2 from vertex fit

◆ fitmass()

float xAOD::TrigBphys_v1::fitmass ( ) const

accessor method: mass from vertex fit

◆ fitmassError()

float xAOD::TrigBphys_v1::fitmassError ( ) const

accessor method: fitmass uncertainty

Definition at line 384 of file TrigBphys_v1.cxx.

384 {
385 return fitmassErrorAcc.isAvailable(*this)? fitmassErrorAcc(*this) : -99.;
386 }
static const SG::AuxElement::Accessor< float > fitmassErrorAcc("fitmassError")

◆ fitndof()

int xAOD::TrigBphys_v1::fitndof ( ) const

accessor method: ndof from vertex fit

◆ fitx()

float xAOD::TrigBphys_v1::fitx ( ) const

accessor method: x position of vertex

◆ fity()

float xAOD::TrigBphys_v1::fity ( ) const

accessor method: y position of vertex

◆ fitz()

float xAOD::TrigBphys_v1::fitz ( ) const

accessor method: z position of vertex

◆ initialise() [1/5]

void xAOD::TrigBphys_v1::initialise ( )

Definition at line 22 of file TrigBphys_v1.cxx.

22 {
23 setRoiId(0);
24 setEta (0.);
25 setPhi (0.);
26 setPt (0.);
27 setMass (0.);
30 // set defaults
31 setFitmass(-99.);
32 setFitchi2(-99.);
33 setFitndof(-99.);
34 setFitx (-99.);
35 setFity (-99.);
36 setFitz (-99.);
37
38 setFitmassError( -99.);
39 setLxy ( -99.);
40 setLxyError( -99.);
41 setTau ( -99.);
42 setTauError( -99.);
43
44
45 // ensure that we clear unused variables
46 //secondaryDecay.clear();
47 //trackVector.clear();
48
49
50 } // initialise
void setPhi(float)
Set the azimuth angle of the object.
void setTau(float v)
set method: tau
void setParticleType(pType type)
set method: particle type
void setRoiId(uint32_t id)
set method: roiId
void setTauError(float v)
set method: tauError
void setPt(float)
Set the pT of the object.
void setLxy(float v)
set method: lxy
void setFitmassError(float v)
set method: fitmassError
void setLevel(levelType type)
set method: level type
void setEta(float)
Set the pseudorapidity of the object.
void setMass(float)
Set the mass of the object.
void setLxyError(float v)
set method: lxyError

◆ initialise() [2/5]

void xAOD::TrigBphys_v1::initialise ( uint32_t roi,
float eta,
float phi,
float pt,
pType particleType,
float mass,
const ElementLink< xAOD::TrigBphysContainer_v1 > & sDecay,
levelType level )

constructor replacement for particle of type "particleType" with mass "mass" and a secondary decay (given as ElementLink to another TrigEFBphys)

Definition at line 157 of file TrigBphys_v1.cxx.

160 {
161 // call this method first, as it clears the trackVector and
163 setSecondaryDecayLink(sDecay);
164 } // initialise
float pt() const
accessor method: pt
float eta() const
accessor method: eta
pType particleType() const
accessor method: particle Type
float phi() const
accessor method: phi
float mass() const
accessor method: mass
levelType level() const
accessor method: level Type

◆ initialise() [3/5]

void xAOD::TrigBphys_v1::initialise ( uint32_t roi,
float eta,
float phi,
float pt,
pType particleType,
float mass,
levelType level )

Definition at line 79 of file TrigBphys_v1.cxx.

81 {
82 setRoiId(roi);
83 setEta (eta);
84 setPhi (phi);
85 setPt (pt);
86 setMass (mass);
89 // set defaults
90 setFitmass(-99.);
91 setFitchi2(-99.);
92 setFitndof(-99.);
93 setFitx (-99.);
94 setFity (-99.);
95 setFitz (-99.);
96
97 setFitmassError( -99.);
98 setLxy ( -99.);
99 setLxyError( -99.);
100 setTau ( -99.);
101 setTauError( -99.);
102
103 // ensure that we clear unused variables
104 //secondaryDecay.clear();
105 //trackVector.clear(); #FIXME
106
107 } //initialise

◆ initialise() [4/5]

void xAOD::TrigBphys_v1::initialise ( uint32_t roi,
float eta,
float phi,
pType particleType,
float mass,
const ElementLink< xAOD::TrigBphysContainer_v1 > & sDecay,
levelType level )

constructor replacement for particle of type "particleType" with mass "mass" and a secondary decay (given as ElementLink to another TrigEFBphys)

Definition at line 144 of file TrigBphys_v1.cxx.

146 {
147 // deprecated method, as pt is initialised to 0. here.
148 // use the alternative initialise method
149
150 // call this method first, as it clears the trackVector and
152 setSecondaryDecayLink(sDecay);
153 } // initialise

◆ initialise() [5/5]

void xAOD::TrigBphys_v1::initialise ( uint32_t roi,
float eta,
float phi,
pType particleType,
float mass,
levelType level )

Definition at line 111 of file TrigBphys_v1.cxx.

112 {
113 // deprecated method, as pt is initialised to 0. here.
114 // use the alternative initialise method
115 setRoiId(roi);
116 setEta (eta);
117 setPhi (phi);
118 setPt (0.0);
119 setMass (mass);
122 // set defaults
123 setFitmass(-99.);
124 setFitchi2(-99.);
125 setFitndof(-99.);
126 setFitx (-99.);
127 setFity (-99.);
128 setFitz (-99.);
129
130 setFitmassError( -99.);
131 setLxy ( -99.);
132 setLxyError( -99.);
133 setTau ( -99.);
134 setTauError( -99.);
135
136 // ensure that we clear unused variables
137 //secondaryDecay.clear();
138 //trackVector.clear(); #FIXME
139
140 } //initialise

◆ level()

levelType xAOD::TrigBphys_v1::level ( ) const

accessor method: level Type

◆ lowerChain()

const TrigBphys_v1 * xAOD::TrigBphys_v1::lowerChain ( ) const

accessor method: lowerChain decay particle

◆ lowerChainLink()

const ElementLink< TrigBphysContainer_v1 > & xAOD::TrigBphys_v1::lowerChainLink ( ) const

accessor method: lowerChain decay particle

◆ lxy()

float xAOD::TrigBphys_v1::lxy ( ) const

accessor method: lxy

Definition at line 387 of file TrigBphys_v1.cxx.

387 {
388 return lxyAcc.isAvailable(*this) ? lxyAcc(*this) : -99.;
389 }
static const SG::AuxElement::Accessor< float > lxyAcc("lxy")

◆ lxyError()

float xAOD::TrigBphys_v1::lxyError ( ) const

accessor method: lxy uncertainty

Definition at line 390 of file TrigBphys_v1.cxx.

390 {
391 return lxyErrorAcc.isAvailable(*this) ? lxyErrorAcc(*this) : -99.;
392 }
static const SG::AuxElement::Accessor< float > lxyErrorAcc("lxyError")

◆ mass()

float xAOD::TrigBphys_v1::mass ( ) const

accessor method: mass

◆ nParticles()

size_t xAOD::TrigBphys_v1::nParticles ( ) const

Number of tracks used to make particle.

◆ nTrackParticles()

size_t xAOD::TrigBphys_v1::nTrackParticles ( ) const

Number of tracks used to make particle.

◆ nVecRoiIds()

size_t xAOD::TrigBphys_v1::nVecRoiIds ( ) const

Number of tracks used to make particle.

◆ operator!=()

bool xAOD::TrigBphys_v1::operator!= ( const TrigBphys_v1 & rhs) const
inline

Definition at line 117 of file TrigBphys_v1.h.

117{return !((*this)==rhs);}

◆ operator=()

TrigBphys_v1 & xAOD::TrigBphys_v1::operator= ( const TrigBphys_v1 & rhs)
default

◆ operator==()

bool xAOD::TrigBphys_v1::operator== ( const TrigBphys_v1 & rhs) const

Definition at line 237 of file TrigBphys_v1.cxx.

237 {
238 const double epsilon = 1e-5;
239
240 int aHasSD = (secondaryDecay() !=nullptr)?1:0;
241 int bHasSD = (rhs.secondaryDecay()!=nullptr)?1:0;
242 if((aHasSD+bHasSD)==1)
243 return false;
244
245 if(trackParticleLinks().size()!=rhs.trackParticleLinks().size())
246 return false;
247
248 if(roiId() != rhs.roiId()) return false;
249 if(particleType() != rhs.particleType()) return false;
250 if(level() != rhs.level()) return false;
251 if(fitndof() != rhs.fitndof()) return false;
252
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; // internal conversion to GeV for more sensible comparison.
256 if(fabs(mass()*0.001-rhs.mass()*0.001)>epsilon) return false;
257 if(fabs(fitmass()-rhs.fitmass())>epsilon) return false;
258 if(fabs(fitchi2()-rhs.fitchi2())>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;
262
263 if((aHasSD+bHasSD)==2)
264 {
265 if ( secondaryDecay() != rhs.secondaryDecay() )
266 return false;
267 }
268
269 return true;
270 }
size_t size() const
Number of registered mappings.
int fitndof() const
accessor method: ndof from vertex fit
const TrigBphys_v1 * secondaryDecay() const
accessor method: secondary decay particle
float fitchi2() const
accessor method: chi2 from vertex fit
float fitx() const
accessor method: x position of vertex
float fitz() const
accessor method: z position of vertex
float fitmass() const
accessor method: mass from vertex fit
const std::vector< ElementLink< xAOD::TrackParticleContainer > > & trackParticleLinks() const
accessor method:vector of tracks used to make particle
float fity() const
accessor method: y position of vertex

◆ particle()

const IParticle * xAOD::TrigBphys_v1::particle ( size_t i) const

Get the Nth track's pointer.

Definition at line 307 of file TrigBphys_v1.cxx.

307 {
308
309 if( ! particleAcc.isAvailable( *this ) ) {
310 return nullptr;
311 }
312 if( i >= nParticles() ) {
313 return nullptr;
314 }
315 if( ! particleAcc( *this )[ i ].isValid() ) {
316 return nullptr;
317 }
318 return *( particleAcc( *this )[ i ] );
319 }
size_t nParticles() const
Number of tracks used to make particle.

◆ particleLinks()

const std::vector< ElementLink< xAOD::IParticleContainer > > & xAOD::TrigBphys_v1::particleLinks ( ) const

accessor method:vector of tracks used to make particle

◆ particleType()

pType xAOD::TrigBphys_v1::particleType ( ) const

accessor method: particle Type

◆ phi()

float xAOD::TrigBphys_v1::phi ( ) const

accessor method: phi

◆ pt()

float xAOD::TrigBphys_v1::pt ( ) const

accessor method: pt

Definition at line 362 of file TrigBphys_v1.cxx.

362 {
363 // #FIXME - why doesn't this work as expected?
364 static const SG::AuxElement::Accessor< float > ptAcc( "pt" );
365 if( ! ptAcc.isAvailable( *this ) ) {
366 return 0.;
367 }
368 return ptAcc( *this );
369 }

◆ roiId()

uint32_t xAOD::TrigBphys_v1::roiId ( ) const

accessor method: ID of L1 RoI

◆ secondaryDecay()

const TrigBphys_v1 * xAOD::TrigBphys_v1::secondaryDecay ( ) const

accessor method: secondary decay particle

◆ secondaryDecayLink()

const ElementLink< TrigBphysContainer_v1 > & xAOD::TrigBphys_v1::secondaryDecayLink ( ) const

accessor method: secondary decay particle

◆ setEta()

void xAOD::TrigBphys_v1::setEta ( float )

Set the pseudorapidity of the object.

◆ setFitchi2()

void xAOD::TrigBphys_v1::setFitchi2 ( float FitChi2)

set method: chi2 from vertex fit

◆ setFitmass()

void xAOD::TrigBphys_v1::setFitmass ( float FitMass)

set method: mass from vertex fit

◆ setFitmassError()

void xAOD::TrigBphys_v1::setFitmassError ( float v)

set method: fitmassError

Definition at line 401 of file TrigBphys_v1.cxx.

401 {
402 fitmassErrorAcc(*this) = x;
403 return;
404 }
#define x

◆ setFitndof()

void xAOD::TrigBphys_v1::setFitndof ( int FitNdof)

set method: ndof from vertex fit

◆ setFitx()

void xAOD::TrigBphys_v1::setFitx ( float FitX)

set method: x position of vertex

◆ setFity()

void xAOD::TrigBphys_v1::setFity ( float FitY)

set method: y position of vertex

◆ setFitz()

void xAOD::TrigBphys_v1::setFitz ( float FitZ)

set method: z position of vertex

◆ setLevel()

void xAOD::TrigBphys_v1::setLevel ( levelType type)

set method: level type

◆ setLowerChainLink()

void xAOD::TrigBphys_v1::setLowerChainLink ( const ElementLink< xAOD::TrigBphysContainer_v1 > & link)

set method: link to lowerChain decay particle

◆ setLxy()

void xAOD::TrigBphys_v1::setLxy ( float v)

set method: lxy

Definition at line 405 of file TrigBphys_v1.cxx.

405 {
406 lxyAcc(*this) = x;
407 return;
408 }

◆ setLxyError()

void xAOD::TrigBphys_v1::setLxyError ( float v)

set method: lxyError

Definition at line 409 of file TrigBphys_v1.cxx.

409 {
410 lxyErrorAcc(*this) = x;
411 return;
412 }

◆ setMass()

void xAOD::TrigBphys_v1::setMass ( float )

Set the mass of the object.

◆ setParticleLinks()

void xAOD::TrigBphys_v1::setParticleLinks ( const std::vector< ElementLink< IParticleContainer > > & links)

Set the track particle links on the object.

◆ setParticleType()

void xAOD::TrigBphys_v1::setParticleType ( pType type)

set method: particle type

◆ setPhi()

void xAOD::TrigBphys_v1::setPhi ( float )

Set the azimuth angle of the object.

◆ setPt()

void xAOD::TrigBphys_v1::setPt ( float pt)

Set the pT of the object.

Definition at line 371 of file TrigBphys_v1.cxx.

371 {
372 static const SG::AuxElement::Accessor< float > ptAcc( "pt" );
373 ptAcc(*this) = pt;
374 return;
375 }

◆ setRoiId()

void xAOD::TrigBphys_v1::setRoiId ( uint32_t id)

set method: roiId

◆ setSecondaryDecayLink()

void xAOD::TrigBphys_v1::setSecondaryDecayLink ( const ElementLink< xAOD::TrigBphysContainer_v1 > & link)

set method: link to secondary decay particle

◆ setTau()

void xAOD::TrigBphys_v1::setTau ( float v)

set method: tau

Definition at line 413 of file TrigBphys_v1.cxx.

413 {
414 tauAcc(*this) = x;
415 return;
416 }
static const SG::AuxElement::Accessor< float > tauAcc("tau")

◆ setTauError()

void xAOD::TrigBphys_v1::setTauError ( float v)

set method: tauError

Definition at line 417 of file TrigBphys_v1.cxx.

417 {
418 tauErrorAcc(*this) = x;
419 return;
420 }
static const SG::AuxElement::Accessor< float > tauErrorAcc("tauError")

◆ setTrackParticleLinks()

void xAOD::TrigBphys_v1::setTrackParticleLinks ( const std::vector< ElementLink< TrackParticleContainer > > & links)

Set the track particle links on the object.

◆ setVecRoiIds()

void xAOD::TrigBphys_v1::setVecRoiIds ( const std::vector< uint32_t > & roiIds)

Set the track particle links on the object.

◆ tau()

float xAOD::TrigBphys_v1::tau ( ) const

accessor method: tau

Definition at line 393 of file TrigBphys_v1.cxx.

393 {
394 return tauAcc.isAvailable(*this) ? tauAcc(*this) : -99.;
395 }

◆ tauError()

float xAOD::TrigBphys_v1::tauError ( ) const

accessor method: tau uncertainty

Definition at line 396 of file TrigBphys_v1.cxx.

396 {
397 return tauErrorAcc.isAvailable(*this) ? tauErrorAcc(*this) : -99.;
398 }

◆ trackParticle()

const TrackParticle * xAOD::TrigBphys_v1::trackParticle ( size_t i) const

Get the Nth track's pointer.

Definition at line 217 of file TrigBphys_v1.cxx.

217 {
218
219 if( ! trackAcc.isAvailable( *this ) ) {
220 return nullptr;
221 }
222 if( i >= nTrackParticles() ) {
223 return nullptr;
224 }
225 if( ! trackAcc( *this )[ i ].isValid() ) {
226 return nullptr;
227 }
228 return *( trackAcc( *this )[ i ] );
229 }
size_t nTrackParticles() const
Number of tracks used to make particle.

◆ trackParticleLinks()

const std::vector< ElementLink< xAOD::TrackParticleContainer > > & xAOD::TrigBphys_v1::trackParticleLinks ( ) const

accessor method:vector of tracks used to make particle

◆ vecRoiId()

uint32_t xAOD::TrigBphys_v1::vecRoiId ( size_t i) const

Get the Nth roiId.

Definition at line 344 of file TrigBphys_v1.cxx.

344 {
345
346 if( ! vRoiAcc.isAvailable( *this ) ) {
347 return ~0;
348 }
349 if( i >= nVecRoiIds() ) {
350 return ~0;
351 }
352 return vRoiAcc( *this )[ i ];
353 }
size_t nVecRoiIds() const
Number of tracks used to make particle.

◆ vecRoiIds()

const std::vector< uint32_t > & xAOD::TrigBphys_v1::vecRoiIds ( ) const

accessor method:vector of tracks used to make particle


The documentation for this class was generated from the following files: