ATLAS Offline Software
TrigMuonClusterFeature.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //
6 #ifndef TRIGMUON_TRIGMUONCLUSTERFEATURE_H
7 #define TRIGMUON_TRIGMUONCLUSTERFEATURE_H
8 /*******************************************************
9 
10 NAME: TrigMuonClusterFeature.h
11 PACKAGE: Trigger/TrigEvent/TrigMuonEvent
12 AUTHORS: Antonio Policicchio <Antonio.Policicchio@cern.ch>
13  Stefano Giagu <stefano.giagu@cern.ch>
14 PURPOSE: Keep the important output variables
15  from the muon ROI cluster trigger.
16 DATE: V1.0 Jan 13th , 2009
17 
18 ******************************************************/
19 #include <iostream>
20 #include <vector>
21 #include <map>
22 #include <string>
23 
24 #include "AthenaKernel/CLASS_DEF.h"
29 
30 // Forward declaration(s):
31 class MsgStream;
32 
34  public NavigableTerminalNode,
35  virtual public INavigable4Momentum {
36 
37  public:
38 
41  TrigMuonClusterFeature( float eta, float phi, int nroi, int njet, int ntrk );
42 
45 
52 
53  //Ovveride pure virtual methods
54  double pt(void) const { return 0.0; }
55  double eta(void) const { return m_eta; }
56  double phi(void) const { return m_phi; }
57  double m(void) const { return 0.0; }
58 
59  inline int getNRoi() const { return m_nroi ;};
60  inline int getNTRK() const { return m_ntrk ;};
61  inline int getNJet() const { return m_njet ;};
62  inline float getEta() const { return m_eta ; };
63  inline float getPhi() const { return m_phi ; };
64 
65  private:
66  float m_eta;
67  float m_phi;
68  int m_nroi;
69  int m_njet;
70  int m_ntrk;
71 
72 };
74 std::string str( const TrigMuonClusterFeature& d );
76 MsgStream& operator<< ( MsgStream& m, const TrigMuonClusterFeature& d );
80 inline bool operator!= ( const TrigMuonClusterFeature& a, const TrigMuonClusterFeature& b ) { return !(a==b); }
81 
89 void diff( const TrigMuonClusterFeature& a, const TrigMuonClusterFeature& b, std::map<std::string, double>& variableChange );
90 
91 CLASS_DEF( TrigMuonClusterFeature , 233283613 , 1 )
92 
94 
95 #endif
P4PtEtaPhiMBase.h
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
INavigable4Momentum.h
TrigMuonClusterFeature::pt
double pt(void) const
transverse momentum
Definition: TrigMuonClusterFeature.h:54
hist_file_dump.d
d
Definition: hist_file_dump.py:137
TrigMuonClusterFeature::getNRoi
int getNRoi() const
Definition: TrigMuonClusterFeature.h:59
str
std::string str(const TrigMuonClusterFeature &d)
Helper function for printing the object.
Definition: TrigMuonClusterFeature.cxx:96
NavigableTerminalNode
Dummy type needed fro specialized implementation.
Definition: NavigableTerminalNode.h:19
operator==
bool operator==(const TrigMuonClusterFeature &a, const TrigMuonClusterFeature &b)
Operator comparing two TrigMuonClusterFeature objects for equality.
Definition: TrigMuonClusterFeature.cxx:109
TrigMuonClusterFeature::getPhi
float getPhi() const
Definition: TrigMuonClusterFeature.h:63
TrigMuonClusterFeature::m_njet
int m_njet
Definition: TrigMuonClusterFeature.h:69
TrigMuonClusterFeature::m_phi
float m_phi
Definition: TrigMuonClusterFeature.h:67
diff
void diff(const TrigMuonClusterFeature &a, const TrigMuonClusterFeature &b, std::map< std::string, double > &variableChange)
comparison with feedback Function compares two objects and returns "semi verbose" output in the form ...
Definition: TrigMuonClusterFeature.cxx:118
TrigMuonClusterFeature::m_eta
float m_eta
Definition: TrigMuonClusterFeature.h:63
TrigMuonClusterFeature::~TrigMuonClusterFeature
~TrigMuonClusterFeature()
Destructor.
Definition: TrigMuonClusterFeature.cxx:45
TrigMuonClusterFeature::m_ntrk
int m_ntrk
Definition: TrigMuonClusterFeature.h:70
TrigMuonClusterFeature::getNTRK
int getNTRK() const
Definition: TrigMuonClusterFeature.h:60
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
TrigMuonClusterFeature::phi
double phi(void) const
phi in [-pi,pi[
Definition: TrigMuonClusterFeature.h:56
P4PtEtaPhiMBase
Definition: P4PtEtaPhiMBase.h:26
NavigableTerminalNode.h
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TrigMuonClusterFeature::getEta
float getEta() const
Definition: TrigMuonClusterFeature.h:62
operator!=
bool operator!=(const TrigMuonClusterFeature &a, const TrigMuonClusterFeature &b)
Operator comparing two TrigMuonClusterFeature objects for inequality.
Definition: TrigMuonClusterFeature.h:80
TrigMuonClusterFeature::operator=
TrigMuonClusterFeature & operator=(const TrigMuonClusterFeature &mfeature)
Assignement operator.
Definition: TrigMuonClusterFeature.cxx:49
TrigMuonClusterFeature
Definition: TrigMuonClusterFeature.h:35
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
TrigMuonClusterFeature::TrigMuonClusterFeature
TrigMuonClusterFeature()
Constructors.
Definition: TrigMuonClusterFeature.cxx:29
a
TList * a
Definition: liststreamerinfos.cxx:10
INavigable4Momentum
Definition: INavigable4Momentum.h:21
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
TrigMuonClusterFeature::m
double m(void) const
mass
Definition: TrigMuonClusterFeature.h:57
TrigMuonClusterFeature::getNJet
int getNJet() const
Definition: TrigMuonClusterFeature.h:61
operator<<
MsgStream & operator<<(MsgStream &m, const TrigMuonClusterFeature &d)
Helper operator for printing the object.
Definition: TrigMuonClusterFeature.cxx:105
TrigMuonClusterFeature::m_nroi
int m_nroi
Definition: TrigMuonClusterFeature.h:68
CLASS_DEF.h
macros to associate a CLID to a type
TrigMuonClusterFeature::eta
double eta(void) const
pseudo rapidity
Definition: TrigMuonClusterFeature.h:55