ATLAS Offline Software
Loading...
Searching...
No Matches
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
16#include <string>
17#include <vector>
18
24
25class TileMu {
26
27 public:
28
31 : m_eta(0.0),
32 m_phi(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
87CLASS_DEF(TileMu, 2938, 0)
88
89#endif
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Class to store TileMuId quantities.
Definition TileMu.h:25
float m_phi
Muon phi.
Definition TileMu.h:78
void print(void) const
Printing for debugging.
Definition TileMu.cxx:32
std::vector< float > m_energy_deposited
Energy deposited by the muons in TileCal.
Definition TileMu.h:81
float m_quality_factor
Quality flag for tight and loose muon selection.
Definition TileMu.h:84
std::string whoami(void) const
Return identification.
Definition TileMu.h:63
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()
Constructor.
Definition TileMu.h:30
float phi() const
Phi (average value at the TileCal radius)
Definition TileMu.h:46
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
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
float m_eta
Muon eta.
Definition TileMu.h:75
struct _Set Set
Represents a set of values.
Definition set.h:59