ATLAS Offline Software
TileMuFeature.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // *****************************************************************************
6 // Filename : TileMuFeature.h
7 // Author : Heuijin Lim
8 // Created : Sep. 2007
9 //
10 // DESCRIPTION:
11 // Contain the muon candidates from TileCal and the combined tracks from
12 // Inner-Detector.
13 //
14 // HISTORY:
15 //
16 // BUGS:
17 //
18 //*****************************************************************************
19 
20 #ifndef TRIGMUONEVENT_TILEMUFEATURE_H
21 #define TRIGMUONEVENT_TILEMUFEATURE_H
22 
23 #include "AthenaKernel/CLASS_DEF.h"
25 
26 #include <vector>
27 #include <string>
28 
30 {
31  public:
32 
33  TileMuFeature();
34 
35  TileMuFeature ( float eta, float phi, const std::vector<float> & ener, float qual );
36  TileMuFeature ( float eta, float phi, std::vector<float> && ener, float qual );
37 
39  //virtual ~TileMuFeature() {}
40  //~TileMuFeature();
41 
42  //void Set( float eta, float phi, std::vector<float> & ener, float qual );
43 
45  TileMuFeature(const TileMuFeature* muon_feature);
46 
48  TileMuFeature(const TileMuFeature& muon_feature);
49 
51  TileMuFeature& operator=(const TileMuFeature& muon_feature);
52  TileMuFeature& operator=(TileMuFeature&& muon_feature);
53 
55  float eta() const { return m_eta; }
56  float phi() const { return m_phi; }
57  const std::vector<float>& enedep() const { return m_energy_deposited; }
58  float quality() const { return m_quality_factor; }
59 
60  //void print (void) const;
61  // Convertion operator to a std::string
62  // Can be used in a cast operation : (std::string) TileMuFeature
63  //operator std::string() const;
64 
65  /*
66  void SetIDTrk(float Pt_IDTrk, float Eta_IDTrk, float EtaTR_IDTrk, float Phi_IDTrk, float PhiTR_IDTrk, float zPos_IDTrk, int Typ_IDTrk);
67  float Pt_IDTrk() const { return m_Pt_IDTrk; }
68  float Eta_IDTrk() const { return m_Eta_IDTrk; }
69  float EtaTR_IDTrk() const { return m_EtaTR_IDTrk; }
70  float Phi_IDTrk() const { return m_Phi_IDTrk; }
71  float PhiTR_IDTrk() const { return m_PhiTR_IDTrk; }
72  float zPos_IDTrk() const { return m_zPos_IDTrk; }
73  int Typ_IDTrk() const { return m_IDTrk; }
74  */
75 
76  private:
77 
78  float m_eta;
79  float m_phi;
80  std::vector<float> m_energy_deposited;
82 
83  /*
84  float m_Pt_IDTrk, m_Eta_IDTrk, m_EtaTR_IDTrk;
85  float m_Phi_IDTrk, m_PhiTR_IDTrk, m_zPos_IDTrk;
86  int m_IDTrk;
87  */
88 };
89 
91 std::string str( const TileMuFeature& d );
92 
94 MsgStream& operator<< ( MsgStream& m, const TileMuFeature& d );
95 
97 bool operator== ( const TileMuFeature& a, const TileMuFeature& b );
98 
100 inline bool operator!= ( const TileMuFeature& a, const TileMuFeature& b )
101 {
102  return !( a == b );
103 }
104 
106 void diff( const TileMuFeature& a, const TileMuFeature& b, std::map< std::string, double >& variableChange );
107 
108 CLASS_DEF(TileMuFeature, 1503, 0)
109 CLASS_DEF(DataVector<TileMuFeature>, 49567812, 0)
110 
111 
112 #endif
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
diff
void diff(const TileMuFeature &a, const TileMuFeature &b, std::map< std::string, double > &variableChange)
Comparison with feedback.
Definition: TileMuFeature.cxx:125
TileMuFeature::phi
float phi() const
Definition: TileMuFeature.h:56
hist_file_dump.d
d
Definition: hist_file_dump.py:137
operator!=
bool operator!=(const TileMuFeature &a, const TileMuFeature &b)
Operator comparing two CombinedMuonFeature objects for inequality.
Definition: TileMuFeature.h:100
operator==
bool operator==(const TileMuFeature &a, const TileMuFeature &b)
Operator comparing two CombinedMuonFeature objects for equality.
Definition: TileMuFeature.cxx:116
TileMuFeature::m_energy_deposited
std::vector< float > m_energy_deposited
Definition: TileMuFeature.h:80
TileMuFeature::enedep
const std::vector< float > & enedep() const
Definition: TileMuFeature.h:57
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
TileMuFeature::m_quality_factor
float m_quality_factor
Definition: TileMuFeature.h:81
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TileMuFeature::quality
float quality() const
Definition: TileMuFeature.h:58
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
a
TList * a
Definition: liststreamerinfos.cxx:10
TileMuFeature::m_phi
float m_phi
Definition: TileMuFeature.h:79
TileMuFeature::operator=
TileMuFeature & operator=(const TileMuFeature &muon_feature)
Assignement operator.
Definition: TileMuFeature.cxx:73
operator<<
MsgStream & operator<<(MsgStream &m, const TileMuFeature &d)
Helper operator for printing the object.
Definition: TileMuFeature.cxx:111
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
TileMuFeature::eta
float eta() const
Accessor.
Definition: TileMuFeature.h:55
str
std::string str(const TileMuFeature &d)
Helper function for printing the object.
Definition: TileMuFeature.cxx:100
beamspotman.qual
qual
Definition: beamspotman.py:481
CLASS_DEF.h
macros to associate a CLID to a type
TileMuFeature::TileMuFeature
TileMuFeature()
Definition: TileMuFeature.cxx:34
TileMuFeature::m_eta
float m_eta
Definition: TileMuFeature.h:78
TileMuFeature
Definition: TileMuFeature.h:30