ATLAS Offline Software
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):
14 #include "FourMom/P4IPtCotThPhiM.h"
16 #include "AthenaKernel/CLASS_DEF.h"
17 // STL include(s):
18 #include <string>
19 #include <map>
20 
21 // Forward declaration(s):
22 class MsgStream;
23 
24 class TrigMuonEF : public P4IPtCotThPhiM,
25  public NavigableTerminalNode,
26  virtual public INavigable4Momentum {
27 
28 public:
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 
66 private:
68  int m_muonCode{0};
69  std::string m_roi;
70  double m_charge{0};
71 
72 };
73 
75 std::string str( const TrigMuonEF& d );
77 MsgStream& operator<< ( MsgStream& m, const TrigMuonEF& d );
78 
80 bool operator== ( const TrigMuonEF& a, const TrigMuonEF& b );
82 inline bool operator!= ( const TrigMuonEF& a, const TrigMuonEF& b ) {
83  return !( a == b );
84 }
85 
87 void diff( const TrigMuonEF& a, const TrigMuonEF& b,
88  std::map< std::string, double >& variableChange );
89 
90 CLASS_DEF( TrigMuonEF , 60689128 , 1 )
91 
92 
93 #endif // TRIGMUONEVENT_TRIGMUONEF_H
P4IPtCotThPhiM.h
TrigMuonEF::RoINum
const std::string & RoINum() const
Seeding algorithm RoI number.
Definition: TrigMuonEF.h:60
TrigMuonEF::~TrigMuonEF
virtual ~TrigMuonEF()
Destructor.
Definition: TrigMuonEF.cxx:52
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrigMuonEF::Charge
double Charge() const
Charge.
Definition: TrigMuonEF.h:63
INavigable4Momentum.h
hist_file_dump.d
d
Definition: hist_file_dump.py:137
operator==
bool operator==(const TrigMuonEF &a, const TrigMuonEF &b)
Operator comparing two TrigMuonEF objects for equality.
Definition: TrigMuonEF.cxx:79
P4IPtCotThPhiM
Definition: P4IPtCotThPhiM.h:27
NavigableTerminalNode
Dummy type needed fro specialized implementation.
Definition: NavigableTerminalNode.h:19
TrigMuonEF::charge
double charge() const
Definition: TrigMuonEF.h:64
TrigMuonEF::TrigMuonEF
TrigMuonEF()=default
Default constructor.
TrigMuonEF::m_muonCode
int m_muonCode
what kind of track we are dealing with (Moore, StandAlone, Combined)
Definition: TrigMuonEF.h:68
TrigMuonEF::TrigMuonEF
TrigMuonEF(const TrigMuonEF &rhs)=delete
Copy constructor.
operator<<
MsgStream & operator<<(MsgStream &m, const TrigMuonEF &d)
Helper operator for printing the object.
Definition: TrigMuonEF.cxx:73
TrigMuonEF::set_RoINum
void set_RoINum(const std::string &theRoINum)
Set RoINum.
Definition: TrigMuonEF.cxx:42
TrigMuonEF::operator=
TrigMuonEF & operator=(const TrigMuonEF &rhs)=delete
Assignment operator.
TrigMuonEF
Definition: TrigMuonEF.h:26
TrigMuonEF::set_muonCode
void set_muonCode(int theMuonCode)
Set MuonCode.
Definition: TrigMuonEF.cxx:37
diff
void diff(const TrigMuonEF &a, const TrigMuonEF &b, std::map< std::string, double > &variableChange)
Comparison with feedback.
Definition: TrigMuonEF.cxx:97
NavigableTerminalNode.h
TrigMuonEF::m_charge
double m_charge
Definition: TrigMuonEF.h:70
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
operator!=
bool operator!=(const TrigMuonEF &a, const TrigMuonEF &b)
Operator comparing two TrigMuonEF objects for inequality.
Definition: TrigMuonEF.h:82
TrigMuonEF::m_roi
std::string m_roi
Definition: TrigMuonEF.h:69
a
TList * a
Definition: liststreamerinfos.cxx:10
str
std::string str(const TrigMuonEF &d)
Helper function for printing the object.
Definition: TrigMuonEF.cxx:60
INavigable4Momentum
Definition: INavigable4Momentum.h:21
TrigMuonEF::set_Charge
void set_Charge(double theCharge)
Set Charge.
Definition: TrigMuonEF.cxx:47
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
TrigMuonEF::MuonCode
int MuonCode() const
Code for type of muon.
Definition: TrigMuonEF.h:57
CLASS_DEF.h
macros to associate a CLID to a type