ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMuonEF.h
Go to the documentation of this file.
1// -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef TRIGMUONEVENT_TRIGMUONEF_H
8#define TRIGMUONEVENT_TRIGMUONEF_H
9
10
11
12// Gaudi/Athena include(s):
17// STL include(s):
18#include <string>
19#include <map>
20
21// Forward declaration(s):
22class MsgStream;
23
26 virtual public INavigable4Momentum {
27
28public:
29
31 TrigMuonEF( ) = default;
32
33 // /** Default constructor */
34 TrigMuonEF( double theIPt, double theCotTh, double thePhi, double theM );
35
37 TrigMuonEF( const TrigMuonEF& rhs ) = delete;
38
40 TrigMuonEF& operator=( const TrigMuonEF& rhs ) = delete;
41
43 virtual ~TrigMuonEF();
44
45 /* set methods */
47 void set_muonCode( int theMuonCode );
48
50 void set_RoINum( const std::string& theRoINum );
51
53 void set_Charge( double theCharge );
54
55 /* get methods */
57 int MuonCode() const { return m_muonCode; }
58
60 const std::string& RoINum() const { return m_roi; }
61
63 double Charge() const { return m_charge; }
64 double charge() const { return this->Charge(); }
65
66private:
68 int m_muonCode{0};
69 std::string m_roi;
70 double m_charge{0};
71
72};
73
75std::string str( const TrigMuonEF& d );
77MsgStream& operator<< ( MsgStream& m, const TrigMuonEF& d );
78
80bool operator== ( const TrigMuonEF& a, const TrigMuonEF& b );
82inline bool operator!= ( const TrigMuonEF& a, const TrigMuonEF& b ) {
83 return !( a == b );
84}
85
87void diff( const TrigMuonEF& a, const TrigMuonEF& b,
88 std::map< std::string, double >& variableChange );
89
90CLASS_DEF( TrigMuonEF , 60689128 , 1 )
91
92
93#endif // TRIGMUONEVENT_TRIGMUONEF_H
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
static Double_t a
bool operator==(const TrigMuonEF &a, const TrigMuonEF &b)
Operator comparing two TrigMuonEF objects for equality.
bool operator!=(const TrigMuonEF &a, const TrigMuonEF &b)
Operator comparing two TrigMuonEF objects for inequality.
Definition TrigMuonEF.h:82
void diff(const TrigMuonEF &a, const TrigMuonEF &b, std::map< std::string, double > &variableChange)
Comparison with feedback.
MsgStream & operator<<(MsgStream &m, const TrigMuonEF &d)
Helper operator for printing the object.
P4IPtCotThPhiM(const double iPt, const double cotTh, const double phi, const double m)
constructor with all data members
double Charge() const
Charge.
Definition TrigMuonEF.h:63
double m_charge
Definition TrigMuonEF.h:70
TrigMuonEF & operator=(const TrigMuonEF &rhs)=delete
Assignment operator.
void set_Charge(double theCharge)
Set Charge.
int MuonCode() const
Code for type of muon.
Definition TrigMuonEF.h:57
virtual ~TrigMuonEF()
Destructor.
TrigMuonEF(const TrigMuonEF &rhs)=delete
Copy constructor.
double charge() const
Definition TrigMuonEF.h:64
const std::string & RoINum() const
Seeding algorithm RoI number.
Definition TrigMuonEF.h:60
void set_RoINum(const std::string &theRoINum)
Set RoINum.
int m_muonCode
what kind of track we are dealing with (Moore, StandAlone, Combined)
Definition TrigMuonEF.h:68
void set_muonCode(int theMuonCode)
Set MuonCode.
std::string m_roi
Definition TrigMuonEF.h:69
TrigMuonEF()=default
Default constructor.