ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
TrigEFBphys Class Reference

#include <TrigEFBphys.h>

Collaboration diagram for TrigEFBphys:

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
}
 enum for different particle types More...
 

Public Member Functions

 TrigEFBphys ()
 constructors; note: default constructor needed by POOL More...
 
 TrigEFBphys (int roi, float eta, float phi, pType particleType, float mass)
 constructor for particle of type "particleType" with mass "mass" More...
 
 TrigEFBphys (int roi, float eta, float phi, pType particleType, float mass, const ElementLink< TrigEFBphysContainer > &sDecay)
 constructor for particle of type "particleType" with mass "mass" and a secondary decay (given as ElementLink to another TrigEFBphys) More...
 
 ~TrigEFBphys ()=default
 destructor More...
 
int roiId () const
 accessor method: ID of L1 RoI More...
 
pType particleType () const
 accessor method: particle Type More...
 
float eta () const
 accessor method: eta More...
 
float phi () const
 accessor method: phi More...
 
float mass () const
 accessor method: mass More...
 
float fitmass () const
 accessor method: mass from vertex fit More...
 
float fitchi2 () const
 accessor method: chi2 from vertex fit More...
 
int fitndof () const
 accessor method: ndof from vertex fit More...
 
float fitx () const
 accessor method: x position of vertex More...
 
float fity () const
 accessor method: y position of vertex More...
 
float fitz () const
 accessor method: z position of vertex More...
 
const TrigEFBphyspSecondDecay () const
 accessor method: secondary decay particle More...
 
const ElementLink< TrigEFBphysContainer > & secondaryDecayLink () const
 
const ElementLinkVector< Rec::TrackParticleContainer > & trackVector () const
 accessor method:vector of tracks used to make particle More...
 
void fitmass (float FitMass)
 set method: mass from vertex fit More...
 
void fitchi2 (float FitChi2)
 set method: chi2 from vertex fit More...
 
void fitndof (int FitNdof)
 set method: ndof from vertex fit More...
 
void fitx (float FitX)
 set method: x position of vertex
More...
 
void fity (float FitY)
 set method: y position of vertex
More...
 
void fitz (float FitZ)
 set method: z position of vertex
More...
 
void addTrack (const ElementLink< Rec::TrackParticleContainer > &track)
 set method: add track to particle
More...
 
void pSecondDecay (ElementLink< TrigEFBphysContainer > p_secondaryDecay)
 set method: link to secondary decay particle
More...
 

Private Attributes

int m_roiID
 
pType m_particleType
 
float m_eta
 
float m_phi
 
float m_mass
 
float m_fitmass
 
float m_fitchi2
 
int m_fitndof
 
float m_fitx
 
float m_fity
 
float m_fitz
 
ElementLink< TrigEFBphysContainerm_secondaryDecay
 
ElementLinkVector< Rec::TrackParticleContainerm_trackVector
 

Detailed Description

Definition at line 42 of file TrigEFBphys.h.

Member Enumeration Documentation

◆ pType

enum for different particle types

Enumerator
PHIKK 
DSPHIPI 
BMUMU 
BMUMUX 
JPSIEE 
JPSIMUMU 
MULTIMU 
BKMUMU 
BDKSTMUMU 
BSPHIMUMU 
LBLMUMU 
BCDSMUMU 

Definition at line 47 of file TrigEFBphys.h.

47 {PHIKK=0, DSPHIPI=1, BMUMU=2, BMUMUX=3, JPSIEE=4, JPSIMUMU=5, MULTIMU=6, BKMUMU=7, BDKSTMUMU=8, BSPHIMUMU=9, LBLMUMU=10, BCDSMUMU=11};

Constructor & Destructor Documentation

◆ TrigEFBphys() [1/3]

TrigEFBphys::TrigEFBphys ( )

constructors; note: default constructor needed by POOL

File: TrigEFBphys.cxx.

Description: To be created by hypothesis algorithms at end of Level 2 chains. To be used as a way to communicate EF decisions and to keep information available only online so far.

Design: Must be light and easy to serialize AND to store in ESD; should avoid ElementLinks and try to persistify pointers instead; should avoid inheritance to be easy to serialize.

Authour: J.Kirk - Wed May 10

Definition at line 28 of file TrigEFBphys.cxx.

28  :
29  m_roiID(-1), m_particleType(PHIKK), m_eta(0), m_phi(0) ,
30  m_mass(0), m_fitmass(-99.), m_fitchi2(-99.), m_fitndof(-99),
31  m_fitx(-99.), m_fity(-99.), m_fitz(-99),
33 {}

◆ TrigEFBphys() [2/3]

TrigEFBphys::TrigEFBphys ( int  roi,
float  eta,
float  phi,
pType  particleType,
float  mass 
)

constructor for particle of type "particleType" with mass "mass"

Definition at line 37 of file TrigEFBphys.cxx.

38  :
39  m_roiID(roi),
41  m_eta(eta), m_phi(phi), m_mass(mass),
42  m_fitmass(-99.), m_fitchi2(-99.), m_fitndof(-99),m_fitx(-99.), m_fity(-99.), m_fitz(-99.),
44 {}

◆ TrigEFBphys() [3/3]

TrigEFBphys::TrigEFBphys ( int  roi,
float  eta,
float  phi,
pType  particleType,
float  mass,
const ElementLink< TrigEFBphysContainer > &  sDecay 
)

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

Definition at line 46 of file TrigEFBphys.cxx.

47  :
48  m_roiID(roi),
50  m_eta(eta), m_phi(phi), m_mass(mass),
51  m_fitmass(-99.), m_fitchi2(-99.), m_fitndof(-99),m_fitx(-99.), m_fity(-99.), m_fitz(-99.),
53 {}

◆ ~TrigEFBphys()

TrigEFBphys::~TrigEFBphys ( )
default

destructor

Member Function Documentation

◆ addTrack()

void TrigEFBphys::addTrack ( const ElementLink< Rec::TrackParticleContainer > &  track)

set method: add track to particle

Definition at line 56 of file TrigEFBphys.cxx.

57 {
59 }

◆ eta()

float TrigEFBphys::eta ( ) const
inline

accessor method: eta

Definition at line 67 of file TrigEFBphys.h.

67 { return m_eta; }

◆ fitchi2() [1/2]

float TrigEFBphys::fitchi2 ( ) const
inline

accessor method: chi2 from vertex fit

Definition at line 75 of file TrigEFBphys.h.

75 { return m_fitchi2; }

◆ fitchi2() [2/2]

void TrigEFBphys::fitchi2 ( float  FitChi2)

set method: chi2 from vertex fit

Definition at line 72 of file TrigEFBphys.cxx.

73 {
74  m_fitchi2 = FitChi2;
75 }

◆ fitmass() [1/2]

float TrigEFBphys::fitmass ( ) const
inline

accessor method: mass from vertex fit

Definition at line 73 of file TrigEFBphys.h.

73 { return m_fitmass; }

◆ fitmass() [2/2]

void TrigEFBphys::fitmass ( float  FitMass)

set method: mass from vertex fit

Definition at line 67 of file TrigEFBphys.cxx.

68 {
69  m_fitmass = FitMass;
70 }

◆ fitndof() [1/2]

int TrigEFBphys::fitndof ( ) const
inline

accessor method: ndof from vertex fit

Definition at line 77 of file TrigEFBphys.h.

77 { return m_fitndof; }

◆ fitndof() [2/2]

void TrigEFBphys::fitndof ( int  FitNdof)

set method: ndof from vertex fit

Definition at line 77 of file TrigEFBphys.cxx.

78 {
79  m_fitndof = FitNdof;
80 }

◆ fitx() [1/2]

float TrigEFBphys::fitx ( ) const
inline

accessor method: x position of vertex

Definition at line 79 of file TrigEFBphys.h.

79 { return m_fitx; }

◆ fitx() [2/2]

void TrigEFBphys::fitx ( float  FitX)

set method: x position of vertex

Definition at line 82 of file TrigEFBphys.cxx.

83 {
84  m_fitx = FitX;
85 }

◆ fity() [1/2]

float TrigEFBphys::fity ( ) const
inline

accessor method: y position of vertex

Definition at line 81 of file TrigEFBphys.h.

81 { return m_fity; }

◆ fity() [2/2]

void TrigEFBphys::fity ( float  FitY)

set method: y position of vertex

Definition at line 86 of file TrigEFBphys.cxx.

87 {
88  m_fity = FitY;
89 }

◆ fitz() [1/2]

float TrigEFBphys::fitz ( ) const
inline

accessor method: z position of vertex

Definition at line 83 of file TrigEFBphys.h.

83 { return m_fitz; }

◆ fitz() [2/2]

void TrigEFBphys::fitz ( float  FitZ)

set method: z position of vertex

Definition at line 90 of file TrigEFBphys.cxx.

91 {
92  m_fitz = FitZ;
93 }

◆ mass()

float TrigEFBphys::mass ( ) const
inline

accessor method: mass

Definition at line 71 of file TrigEFBphys.h.

71 { return m_mass; }

◆ particleType()

pType TrigEFBphys::particleType ( ) const
inline

accessor method: particle Type

Definition at line 65 of file TrigEFBphys.h.

65 { return m_particleType; }

◆ phi()

float TrigEFBphys::phi ( ) const
inline

accessor method: phi

Definition at line 69 of file TrigEFBphys.h.

69 { return m_phi; }

◆ pSecondDecay() [1/2]

const TrigEFBphys * TrigEFBphys::pSecondDecay ( ) const

accessor method: secondary decay particle

Definition at line 166 of file TrigEFBphys.cxx.

166  {
167  if (m_secondaryDecay.isValid()) {
168  return *m_secondaryDecay;
169  } else {
170  return NULL;
171  }
172 }

◆ pSecondDecay() [2/2]

void TrigEFBphys::pSecondDecay ( ElementLink< TrigEFBphysContainer p_secondaryDecay)

set method: link to secondary decay particle

Definition at line 61 of file TrigEFBphys.cxx.

62 {
63  m_secondaryDecay=p_secondaryDecay;
64 }

◆ roiId()

int TrigEFBphys::roiId ( ) const
inline

accessor method: ID of L1 RoI

Definition at line 63 of file TrigEFBphys.h.

63 { return m_roiID; }

◆ secondaryDecayLink()

const ElementLink< TrigEFBphysContainer > & TrigEFBphys::secondaryDecayLink ( ) const

Definition at line 175 of file TrigEFBphys.cxx.

176 {
177  return m_secondaryDecay;
178 }

◆ trackVector()

const ElementLinkVector<Rec::TrackParticleContainer>& TrigEFBphys::trackVector ( ) const
inline

accessor method:vector of tracks used to make particle

Definition at line 89 of file TrigEFBphys.h.

89 {return m_trackVector;}

Member Data Documentation

◆ m_eta

float TrigEFBphys::m_eta
private

Definition at line 114 of file TrigEFBphys.h.

◆ m_fitchi2

float TrigEFBphys::m_fitchi2
private

Definition at line 118 of file TrigEFBphys.h.

◆ m_fitmass

float TrigEFBphys::m_fitmass
private

Definition at line 117 of file TrigEFBphys.h.

◆ m_fitndof

int TrigEFBphys::m_fitndof
private

Definition at line 119 of file TrigEFBphys.h.

◆ m_fitx

float TrigEFBphys::m_fitx
private

Definition at line 120 of file TrigEFBphys.h.

◆ m_fity

float TrigEFBphys::m_fity
private

Definition at line 121 of file TrigEFBphys.h.

◆ m_fitz

float TrigEFBphys::m_fitz
private

Definition at line 122 of file TrigEFBphys.h.

◆ m_mass

float TrigEFBphys::m_mass
private

Definition at line 116 of file TrigEFBphys.h.

◆ m_particleType

pType TrigEFBphys::m_particleType
private

Definition at line 113 of file TrigEFBphys.h.

◆ m_phi

float TrigEFBphys::m_phi
private

Definition at line 115 of file TrigEFBphys.h.

◆ m_roiID

int TrigEFBphys::m_roiID
private

Definition at line 112 of file TrigEFBphys.h.

◆ m_secondaryDecay

ElementLink< TrigEFBphysContainer> TrigEFBphys::m_secondaryDecay
private

Definition at line 123 of file TrigEFBphys.h.

◆ m_trackVector

ElementLinkVector<Rec::TrackParticleContainer> TrigEFBphys::m_trackVector
private

Definition at line 124 of file TrigEFBphys.h.


The documentation for this class was generated from the following files:
TrigEFBphys::phi
float phi() const
accessor method: phi
Definition: TrigEFBphys.h:69
TrigEFBphys::m_fitz
float m_fitz
Definition: TrigEFBphys.h:122
TrigEFBphys::BMUMUX
@ BMUMUX
Definition: TrigEFBphys.h:47
TrigEFBphys::eta
float eta() const
accessor method: eta
Definition: TrigEFBphys.h:67
TrigEFBphys::MULTIMU
@ MULTIMU
Definition: TrigEFBphys.h:47
TrigEFBphys::BDKSTMUMU
@ BDKSTMUMU
Definition: TrigEFBphys.h:47
TrigEFBphys::LBLMUMU
@ LBLMUMU
Definition: TrigEFBphys.h:47
particleType
Definition: particleType.h:29
TrigEFBphys::m_fity
float m_fity
Definition: TrigEFBphys.h:121
TrigEFBphys::m_particleType
pType m_particleType
Definition: TrigEFBphys.h:113
ElementLinkVector::push_back
void push_back(const ElemLink &link)
Definition: AthLinks/ElementLinkVector.h:316
TrigEFBphys::m_mass
float m_mass
Definition: TrigEFBphys.h:116
TrigEFBphys::m_phi
float m_phi
Definition: TrigEFBphys.h:115
TrigEFBphys::PHIKK
@ PHIKK
Definition: TrigEFBphys.h:47
TrigEFBphys::BKMUMU
@ BKMUMU
Definition: TrigEFBphys.h:47
TrigEFBphys::DSPHIPI
@ DSPHIPI
Definition: TrigEFBphys.h:47
TrigEFBphys::BMUMU
@ BMUMU
Definition: TrigEFBphys.h:47
TrigEFBphys::BSPHIMUMU
@ BSPHIMUMU
Definition: TrigEFBphys.h:47
TrigEFBphys::mass
float mass() const
accessor method: mass
Definition: TrigEFBphys.h:71
TrigEFBphys::m_fitndof
int m_fitndof
Definition: TrigEFBphys.h:119
TrigEFBphys::BCDSMUMU
@ BCDSMUMU
Definition: TrigEFBphys.h:47
TrigEFBphys::JPSIEE
@ JPSIEE
Definition: TrigEFBphys.h:47
TrigEFBphys::m_fitmass
float m_fitmass
Definition: TrigEFBphys.h:117
TrigEFBphys::m_fitx
float m_fitx
Definition: TrigEFBphys.h:120
TrigEFBphys::m_trackVector
ElementLinkVector< Rec::TrackParticleContainer > m_trackVector
Definition: TrigEFBphys.h:124
TrigEFBphys::m_eta
float m_eta
Definition: TrigEFBphys.h:114
TrigEFBphys::JPSIMUMU
@ JPSIMUMU
Definition: TrigEFBphys.h:47
TrigEFBphys::m_secondaryDecay
ElementLink< TrigEFBphysContainer > m_secondaryDecay
Definition: TrigEFBphys.h:123
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
TrigEFBphys::m_fitchi2
float m_fitchi2
Definition: TrigEFBphys.h:118
TrigEFBphys::m_roiID
int m_roiID
Definition: TrigEFBphys.h:112