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

Class to store TileMuId quantities. More...

#include <TileMu.h>

Collaboration diagram for TileMu:

Public Member Functions

 TileMu ()
 Constructor. More...
 
 TileMu (float eta, float phi, const std::vector< float > &ener, float qual)
 Constructor. More...
 
void Set (float eta, float phi, const std::vector< float > &ener, float qual)
 
float eta () const
 Eta (computed as the average of the eta values of the TileCal cells where the muon goes through) More...
 
float phi () const
 Phi (average value at the TileCal radius) More...
 
const std::vector< float > & enedep () const
 Energy deposition by the muons in TileCal: 1st component: energy deposited in innermost layer (A cells), 2nd component: energy deposited in central layer (BC cells), 3rd component: energy deposited in outermost layer (D cells), 4th component: energy deposited in the surrounding cells. More...
 
float quality () const
 Quality flag (0 or 1): set to 0 if the "energy deposition path" is MIP like in all three samples (tight muon), set to 1 if the "energy deposition path" is MIP like in two samples and a larger energy deposition is found in the remaining cell (loose muon) More...
 
std::string whoami (void) const
 Return identification. More...
 
void print (void) const
 Printing for debugging. More...
 
 operator std::string () const
 Convertion operator to a std::string, can be used in a cast operation : (std::string) TileMu. More...
 

Private Attributes

float m_eta
 Muon eta. More...
 
float m_phi
 Muon phi. More...
 
std::vector< float > m_energy_deposited
 Energy deposited by the muons in TileCal. More...
 
float m_quality_factor
 Quality flag for tight and loose muon selection. More...
 

Detailed Description

Class to store TileMuId quantities.

Author
G. Usai (giuli.nosp@m.o.us.nosp@m.ai@ce.nosp@m.rn.c.nosp@m.h)

Definition at line 25 of file TileMu.h.

Constructor & Destructor Documentation

◆ TileMu() [1/2]

TileMu::TileMu ( )
inline

Constructor.

Definition at line 30 of file TileMu.h.

31  : m_eta(0.0),
32  m_phi(0.0),
33  m_quality_factor(0.0)
34  {}

◆ TileMu() [2/2]

TileMu::TileMu ( float  eta,
float  phi,
const std::vector< float > &  ener,
float  qual 
)

Constructor.

Definition at line 16 of file TileMu.cxx.

17  : m_eta(eta)
18  , m_phi(phi)
19  , m_energy_deposited(ener)
21 {
22 }

Member Function Documentation

◆ enedep()

const std::vector<float>& TileMu::enedep ( ) const
inline

Energy deposition by the muons in TileCal: 1st component: energy deposited in innermost layer (A cells), 2nd component: energy deposited in central layer (BC cells), 3rd component: energy deposited in outermost layer (D cells), 4th component: energy deposited in the surrounding cells.

Definition at line 54 of file TileMu.h.

54 { return m_energy_deposited; }

◆ eta()

float TileMu::eta ( ) const
inline

Eta (computed as the average of the eta values of the TileCal cells where the muon goes through)

Definition at line 43 of file TileMu.h.

43 { return m_eta; }

◆ operator std::string()

TileMu::operator std::string ( ) const

Convertion operator to a std::string, can be used in a cast operation : (std::string) TileMu.

Definition at line 37 of file TileMu.cxx.

38 {
39  std::ostringstream text(std::ostringstream::out);
40 
41  text << whoami();
42  text << " eta=" << m_eta;
43  text << " phi=" << m_phi;
44  for (unsigned int i=0; i<m_energy_deposited.size(); ++i)
45  text << " ene[" << i << "]=" << m_energy_deposited[i];
46  text << " qual=" << m_quality_factor;
47 
48  return text.str();
49 }

◆ phi()

float TileMu::phi ( ) const
inline

Phi (average value at the TileCal radius)

Definition at line 46 of file TileMu.h.

46 { return m_phi; }

◆ print()

void TileMu::print ( void  ) const

Printing for debugging.

Definition at line 32 of file TileMu.cxx.

33 {
34  std::cout << (std::string) (*this) << std::endl;
35 }

◆ quality()

float TileMu::quality ( ) const
inline

Quality flag (0 or 1): set to 0 if the "energy deposition path" is MIP like in all three samples (tight muon), set to 1 if the "energy deposition path" is MIP like in two samples and a larger energy deposition is found in the remaining cell (loose muon)

Definition at line 60 of file TileMu.h.

60 { return m_quality_factor; }

◆ Set()

void TileMu::Set ( float  eta,
float  phi,
const std::vector< float > &  ener,
float  qual 
)

Definition at line 24 of file TileMu.cxx.

25 {
26  m_eta = eta;
27  m_phi = phi;
28  m_energy_deposited = ener;
30 }

◆ whoami()

std::string TileMu::whoami ( void  ) const
inline

Return identification.

Definition at line 63 of file TileMu.h.

63 { return "TileMu"; }

Member Data Documentation

◆ m_energy_deposited

std::vector<float> TileMu::m_energy_deposited
private

Energy deposited by the muons in TileCal.

Definition at line 81 of file TileMu.h.

◆ m_eta

float TileMu::m_eta
private

Muon eta.

Definition at line 75 of file TileMu.h.

◆ m_phi

float TileMu::m_phi
private

Muon phi.

Definition at line 78 of file TileMu.h.

◆ m_quality_factor

float TileMu::m_quality_factor
private

Quality flag for tight and loose muon selection.

Definition at line 84 of file TileMu.h.


The documentation for this class was generated from the following files:
TileMu::m_energy_deposited
std::vector< float > m_energy_deposited
Energy deposited by the muons in TileCal.
Definition: TileMu.h:81
TileMu::phi
float phi() const
Phi (average value at the TileCal radius)
Definition: TileMu.h:46
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
lumiFormat.i
int i
Definition: lumiFormat.py:92
TileMu::m_phi
float m_phi
Muon phi.
Definition: TileMu.h:78
TileMu::m_quality_factor
float m_quality_factor
Quality flag for tight and loose muon selection.
Definition: TileMu.h:84
TileMu::m_eta
float m_eta
Muon eta.
Definition: TileMu.h:75
TileMu::eta
float eta() const
Eta (computed as the average of the eta values of the TileCal cells where the muon goes through)
Definition: TileMu.h:43
TileMu::whoami
std::string whoami(void) const
Return identification.
Definition: TileMu.h:63
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
beamspotman.qual
qual
Definition: beamspotman.py:481