ATLAS Offline Software
Loading...
Searching...
No Matches
TileMuFeature.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 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
25
26#include <vector>
27#include <string>
28#include <map>
29
30class MsgStream;
31
33{
34 public:
35
37
38 TileMuFeature ( float eta, float phi, const std::vector<float> & ener, float qual );
39 TileMuFeature ( float eta, float phi, std::vector<float> && ener, float qual );
40
42 //virtual ~TileMuFeature() {}
43 //~TileMuFeature();
44
45 //void Set( float eta, float phi, std::vector<float> & ener, float qual );
46
48 TileMuFeature(const TileMuFeature* muon_feature);
49
51 TileMuFeature(const TileMuFeature& muon_feature);
52
54 TileMuFeature& operator=(const TileMuFeature& muon_feature);
55 TileMuFeature& operator=(TileMuFeature&& muon_feature);
56
58 float eta() const { return m_eta; }
59 float phi() const { return m_phi; }
60 const std::vector<float>& enedep() const { return m_energy_deposited; }
61 float quality() const { return m_quality_factor; }
62
63 //void print (void) const;
64 // Convertion operator to a std::string
65 // Can be used in a cast operation : (std::string) TileMuFeature
66 //operator std::string() const;
67
68 /*
69 void SetIDTrk(float Pt_IDTrk, float Eta_IDTrk, float EtaTR_IDTrk, float Phi_IDTrk, float PhiTR_IDTrk, float zPos_IDTrk, int Typ_IDTrk);
70 float Pt_IDTrk() const { return m_Pt_IDTrk; }
71 float Eta_IDTrk() const { return m_Eta_IDTrk; }
72 float EtaTR_IDTrk() const { return m_EtaTR_IDTrk; }
73 float Phi_IDTrk() const { return m_Phi_IDTrk; }
74 float PhiTR_IDTrk() const { return m_PhiTR_IDTrk; }
75 float zPos_IDTrk() const { return m_zPos_IDTrk; }
76 int Typ_IDTrk() const { return m_IDTrk; }
77 */
78
79 private:
80
81 float m_eta;
82 float m_phi;
83 std::vector<float> m_energy_deposited;
85
86 /*
87 float m_Pt_IDTrk, m_Eta_IDTrk, m_EtaTR_IDTrk;
88 float m_Phi_IDTrk, m_PhiTR_IDTrk, m_zPos_IDTrk;
89 int m_IDTrk;
90 */
91};
92
94std::string str( const TileMuFeature& d );
95
97MsgStream& operator<< ( MsgStream& m, const TileMuFeature& d );
98
100bool operator== ( const TileMuFeature& a, const TileMuFeature& b );
101
103inline bool operator!= ( const TileMuFeature& a, const TileMuFeature& b )
104{
105 return !( a == b );
106}
107
109void diff( const TileMuFeature& a, const TileMuFeature& b, std::map< std::string, double >& variableChange );
110
111CLASS_DEF(TileMuFeature, 1503, 0)
113
114
115#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
static Double_t a
bool operator==(const TileMuFeature &a, const TileMuFeature &b)
Operator comparing two CombinedMuonFeature objects for equality.
MsgStream & operator<<(MsgStream &m, const TileMuFeature &d)
Helper operator for printing the object.
void diff(const TileMuFeature &a, const TileMuFeature &b, std::map< std::string, double > &variableChange)
Comparison with feedback.
bool operator!=(const TileMuFeature &a, const TileMuFeature &b)
Operator comparing two CombinedMuonFeature objects for inequality.
Derived DataVector<T>.
Definition DataVector.h:795
float m_quality_factor
const std::vector< float > & enedep() const
float quality() const
std::vector< float > m_energy_deposited
TileMuFeature & operator=(const TileMuFeature &muon_feature)
Assignement operator.
float phi() const
float eta() const
Accessor.