ATLAS Offline Software
TileMu.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 
3 /*
4  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 //==============================================
8 // File TileMu.h
9 // define the muon tagged by Tile object TileMu
10 //=============================================
11 
12 #ifndef TILEMU_H
13 #define TILEMU_H
14 
15 #include "AthenaKernel/CLASS_DEF.h"
16 #include <string>
17 #include <vector>
18 
25 class TileMu {
26 
27  public:
28 
31  : m_eta(0.0),
32  m_phi(0.0),
33  m_quality_factor(0.0)
34  {}
35 
37  TileMu ( float eta, float phi, const std::vector<float> & ener, float qual );
38 
39 
40  void Set( float eta, float phi, const std::vector<float> & ener, float qual );
41 
43  float eta() const { return m_eta; }
44 
46  float phi() const { return m_phi; }
47 
54  const std::vector<float>& enedep() const { return m_energy_deposited; }
55 
60  float quality() const { return m_quality_factor; }
61 
63  std::string whoami (void) const { return "TileMu"; }
64 
66  void print (void) const;
67 
70  operator std::string() const;
71 
72  private:
73 
75  float m_eta;
76 
78  float m_phi;
79 
81  std::vector<float> m_energy_deposited;
82 
85 };
86 
87 CLASS_DEF(TileMu, 2938, 0)
88 
89 #endif
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
TileMu::Set
void Set(float eta, float phi, const std::vector< float > &ener, float qual)
Definition: TileMu.cxx:24
TileMu::print
void print(void) const
Printing for debugging.
Definition: TileMu.cxx:32
TileMu::TileMu
TileMu()
Constructor.
Definition: TileMu.h:30
TileMu::quality
float quality() const
Quality flag (0 or 1): set to 0 if the "energy deposition path" is MIP like in all three samples (tig...
Definition: TileMu.h:60
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::enedep
const std::vector< float > & enedep() const
Energy deposition by the muons in TileCal: 1st component: energy deposited in innermost layer (A cell...
Definition: TileMu.h:54
TileMu::m_eta
float m_eta
Muon eta.
Definition: TileMu.h:75
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
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
beamspotman.qual
qual
Definition: beamspotman.py:481
CLASS_DEF.h
macros to associate a CLID to a type
TileMu
Class to store TileMuId quantities.
Definition: TileMu.h:25