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

#include <TrigL2Bphys.h>

Collaboration diagram for TrigL2Bphys:

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

 TrigL2Bphys ()
 constructors; note: default constructor needed by POOL More...
 
 TrigL2Bphys (int roi, float eta, float phi, pType particleType, float mass, const ElementLink< TrigL2BphysContainer > &sDecay)
 constructor for particle of type "particleType" with mass "mass" and a secondary decay (given as ElementLink to another TrigEFBphys) More...
 
 TrigL2Bphys (int roi, float eta, float phi, pType particleType, float mass)
 constructor for particle of type "particleType" with mass "mass" More...
 
 TrigL2Bphys (const TrigL2Bphys &te)=default
 
TrigL2Bphysoperator= (const TrigL2Bphys &te)=default
 
 ~TrigL2Bphys ()=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 TrigL2BphyspSecondDecay () const
 accessor method: secondary decay particle More...
 
const ElementLink< TrigL2BphysContainer > & secondaryDecayLink () const
 
const ElementLinkVector< TrigInDetTrackCollection > & 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< TrigInDetTrackCollection > &track)
 set method: add track to particle
More...
 
void pSecondDecay (ElementLink< TrigL2BphysContainer > 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< TrigL2BphysContainerm_secondaryDecay
 
ElementLinkVector< TrigInDetTrackCollectionm_trackVector
 

Detailed Description

Definition at line 43 of file TrigL2Bphys.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 TrigL2Bphys.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

◆ TrigL2Bphys() [1/4]

TrigL2Bphys::TrigL2Bphys ( )

constructors; note: default constructor needed by POOL

File: TrigL2Bphys.cxx.

Description: To be created by hypothesis algorithms at end of Level 2 chains. To be used as a way to communicate L2 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 29 of file TrigL2Bphys.cxx.

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

◆ TrigL2Bphys() [2/4]

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

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

Definition at line 37 of file TrigL2Bphys.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.),
43  m_secondaryDecay(sDecay),
45 {}

◆ TrigL2Bphys() [3/4]

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

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

Definition at line 48 of file TrigL2Bphys.cxx.

48  :
49  m_roiID(roi),
51  m_eta(eta), m_phi(phi),
52  m_mass(mass), m_fitmass(-99.), m_fitchi2(-99.), m_fitndof(-99), m_fitx(-99.),
53  m_fity(-99.), m_fitz(-99.), m_secondaryDecay(), m_trackVector()
54 {}

◆ TrigL2Bphys() [4/4]

TrigL2Bphys::TrigL2Bphys ( const TrigL2Bphys te)
default

◆ ~TrigL2Bphys()

TrigL2Bphys::~TrigL2Bphys ( )
default

destructor

Member Function Documentation

◆ addTrack()

void TrigL2Bphys::addTrack ( const ElementLink< TrigInDetTrackCollection > &  track)

set method: add track to particle

Definition at line 58 of file TrigL2Bphys.cxx.

59 {
61 }

◆ eta()

float TrigL2Bphys::eta ( ) const
inline

accessor method: eta

Definition at line 70 of file TrigL2Bphys.h.

70 { return m_eta; }

◆ fitchi2() [1/2]

float TrigL2Bphys::fitchi2 ( ) const
inline

accessor method: chi2 from vertex fit

Definition at line 78 of file TrigL2Bphys.h.

78 { return m_fitchi2; }

◆ fitchi2() [2/2]

void TrigL2Bphys::fitchi2 ( float  FitChi2)

set method: chi2 from vertex fit

Definition at line 79 of file TrigL2Bphys.cxx.

80 {
81  m_fitchi2 = FitChi2;
82 }

◆ fitmass() [1/2]

float TrigL2Bphys::fitmass ( ) const
inline

accessor method: mass from vertex fit

Definition at line 76 of file TrigL2Bphys.h.

76 { return m_fitmass; }

◆ fitmass() [2/2]

void TrigL2Bphys::fitmass ( float  FitMass)

set method: mass from vertex fit

Definition at line 74 of file TrigL2Bphys.cxx.

75 {
76  m_fitmass = FitMass;
77 }

◆ fitndof() [1/2]

int TrigL2Bphys::fitndof ( ) const
inline

accessor method: ndof from vertex fit

Definition at line 80 of file TrigL2Bphys.h.

80 { return m_fitndof; }

◆ fitndof() [2/2]

void TrigL2Bphys::fitndof ( int  FitNdof)

set method: ndof from vertex fit

Definition at line 84 of file TrigL2Bphys.cxx.

85 {
86  m_fitndof = FitNdof;
87 }

◆ fitx() [1/2]

float TrigL2Bphys::fitx ( ) const
inline

accessor method: x position of vertex

Definition at line 82 of file TrigL2Bphys.h.

82 { return m_fitx; }

◆ fitx() [2/2]

void TrigL2Bphys::fitx ( float  FitX)

set method: x position of vertex

Definition at line 89 of file TrigL2Bphys.cxx.

90 {
91  m_fitx = FitX;
92 }

◆ fity() [1/2]

float TrigL2Bphys::fity ( ) const
inline

accessor method: y position of vertex

Definition at line 84 of file TrigL2Bphys.h.

84 { return m_fity; }

◆ fity() [2/2]

void TrigL2Bphys::fity ( float  FitY)

set method: y position of vertex

Definition at line 93 of file TrigL2Bphys.cxx.

94 {
95  m_fity = FitY;
96 }

◆ fitz() [1/2]

float TrigL2Bphys::fitz ( ) const
inline

accessor method: z position of vertex

Definition at line 86 of file TrigL2Bphys.h.

86 { return m_fitz; }

◆ fitz() [2/2]

void TrigL2Bphys::fitz ( float  FitZ)

set method: z position of vertex

Definition at line 97 of file TrigL2Bphys.cxx.

98 {
99  m_fitz = FitZ;
100 }

◆ mass()

float TrigL2Bphys::mass ( ) const
inline

accessor method: mass

Definition at line 74 of file TrigL2Bphys.h.

74 { return m_mass; }

◆ operator=()

TrigL2Bphys& TrigL2Bphys::operator= ( const TrigL2Bphys te)
default

◆ particleType()

pType TrigL2Bphys::particleType ( ) const
inline

accessor method: particle Type

Definition at line 68 of file TrigL2Bphys.h.

68 { return m_particleType; }

◆ phi()

float TrigL2Bphys::phi ( ) const
inline

accessor method: phi

Definition at line 72 of file TrigL2Bphys.h.

72 { return m_phi; }

◆ pSecondDecay() [1/2]

const TrigL2Bphys * TrigL2Bphys::pSecondDecay ( ) const

accessor method: secondary decay particle

Definition at line 173 of file TrigL2Bphys.cxx.

174 {
175  if (m_secondaryDecay.isValid()) {
176  return *m_secondaryDecay;
177  } else {
178  return NULL;
179  }
180 }

◆ pSecondDecay() [2/2]

void TrigL2Bphys::pSecondDecay ( ElementLink< TrigL2BphysContainer p_secondaryDecay)

set method: link to secondary decay particle

Definition at line 63 of file TrigL2Bphys.cxx.

64 {
65  m_secondaryDecay=p_secondaryDecay;
66 }

◆ roiId()

int TrigL2Bphys::roiId ( ) const
inline

accessor method: ID of L1 RoI

Definition at line 66 of file TrigL2Bphys.h.

66 { return m_roiID; }

◆ secondaryDecayLink()

const ElementLink< TrigL2BphysContainer > & TrigL2Bphys::secondaryDecayLink ( ) const

Definition at line 68 of file TrigL2Bphys.cxx.

69 {
70  return m_secondaryDecay;
71 }

◆ trackVector()

const ElementLinkVector<TrigInDetTrackCollection>& TrigL2Bphys::trackVector ( ) const
inline

accessor method:vector of tracks used to make particle

Definition at line 93 of file TrigL2Bphys.h.

93 {return m_trackVector;}

Member Data Documentation

◆ m_eta

float TrigL2Bphys::m_eta
private

Definition at line 118 of file TrigL2Bphys.h.

◆ m_fitchi2

float TrigL2Bphys::m_fitchi2
private

Definition at line 122 of file TrigL2Bphys.h.

◆ m_fitmass

float TrigL2Bphys::m_fitmass
private

Definition at line 121 of file TrigL2Bphys.h.

◆ m_fitndof

int TrigL2Bphys::m_fitndof
private

Definition at line 123 of file TrigL2Bphys.h.

◆ m_fitx

float TrigL2Bphys::m_fitx
private

Definition at line 124 of file TrigL2Bphys.h.

◆ m_fity

float TrigL2Bphys::m_fity
private

Definition at line 125 of file TrigL2Bphys.h.

◆ m_fitz

float TrigL2Bphys::m_fitz
private

Definition at line 126 of file TrigL2Bphys.h.

◆ m_mass

float TrigL2Bphys::m_mass
private

Definition at line 120 of file TrigL2Bphys.h.

◆ m_particleType

pType TrigL2Bphys::m_particleType
private

Definition at line 117 of file TrigL2Bphys.h.

◆ m_phi

float TrigL2Bphys::m_phi
private

Definition at line 119 of file TrigL2Bphys.h.

◆ m_roiID

int TrigL2Bphys::m_roiID
private

Definition at line 116 of file TrigL2Bphys.h.

◆ m_secondaryDecay

ElementLink<TrigL2BphysContainer> TrigL2Bphys::m_secondaryDecay
private

Definition at line 127 of file TrigL2Bphys.h.

◆ m_trackVector

ElementLinkVector<TrigInDetTrackCollection> TrigL2Bphys::m_trackVector
private

Definition at line 128 of file TrigL2Bphys.h.


The documentation for this class was generated from the following files:
TrigL2Bphys::LBLMUMU
@ LBLMUMU
Definition: TrigL2Bphys.h:47
TrigL2Bphys::m_fity
float m_fity
Definition: TrigL2Bphys.h:125
TrigL2Bphys::m_phi
float m_phi
Definition: TrigL2Bphys.h:119
TrigL2Bphys::eta
float eta() const
accessor method: eta
Definition: TrigL2Bphys.h:70
TrigL2Bphys::m_particleType
pType m_particleType
Definition: TrigL2Bphys.h:117
TrigL2Bphys::BCDSMUMU
@ BCDSMUMU
Definition: TrigL2Bphys.h:47
TrigL2Bphys::m_fitx
float m_fitx
Definition: TrigL2Bphys.h:124
TrigL2Bphys::JPSIMUMU
@ JPSIMUMU
Definition: TrigL2Bphys.h:47
TrigL2Bphys::BSPHIMUMU
@ BSPHIMUMU
Definition: TrigL2Bphys.h:47
TrigL2Bphys::DSPHIPI
@ DSPHIPI
Definition: TrigL2Bphys.h:47
TrigL2Bphys::PHIKK
@ PHIKK
Definition: TrigL2Bphys.h:47
TrigL2Bphys::BMUMUX
@ BMUMUX
Definition: TrigL2Bphys.h:47
particleType
Definition: particleType.h:29
ElementLinkVector::push_back
void push_back(const ElemLink &link)
Definition: AthLinks/ElementLinkVector.h:316
TrigL2Bphys::BDKSTMUMU
@ BDKSTMUMU
Definition: TrigL2Bphys.h:47
TrigL2Bphys::m_eta
float m_eta
Definition: TrigL2Bphys.h:118
TrigL2Bphys::JPSIEE
@ JPSIEE
Definition: TrigL2Bphys.h:47
TrigL2Bphys::m_fitchi2
float m_fitchi2
Definition: TrigL2Bphys.h:122
TrigL2Bphys::BMUMU
@ BMUMU
Definition: TrigL2Bphys.h:47
TrigL2Bphys::m_trackVector
ElementLinkVector< TrigInDetTrackCollection > m_trackVector
Definition: TrigL2Bphys.h:128
TrigL2Bphys::m_fitmass
float m_fitmass
Definition: TrigL2Bphys.h:121
TrigL2Bphys::m_mass
float m_mass
Definition: TrigL2Bphys.h:120
TrigL2Bphys::MULTIMU
@ MULTIMU
Definition: TrigL2Bphys.h:47
TrigL2Bphys::m_secondaryDecay
ElementLink< TrigL2BphysContainer > m_secondaryDecay
Definition: TrigL2Bphys.h:127
TrigL2Bphys::BKMUMU
@ BKMUMU
Definition: TrigL2Bphys.h:47
TrigL2Bphys::mass
float mass() const
accessor method: mass
Definition: TrigL2Bphys.h:74
TrigL2Bphys::m_roiID
int m_roiID
Definition: TrigL2Bphys.h:116
TrigL2Bphys::m_fitz
float m_fitz
Definition: TrigL2Bphys.h:126
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
TrigL2Bphys::m_fitndof
int m_fitndof
Definition: TrigL2Bphys.h:123
TrigL2Bphys::phi
float phi() const
accessor method: phi
Definition: TrigL2Bphys.h:72