ATLAS Offline Software
TileTrackMuFeature.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 // Filename : TileTrackMuFeature.h
7 // Author : Heuijin Lim
8 // Created : Jun. 16, 2008
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_TILETRACKMUFEATURE_H
21 #define TRIGMUONEVENT_TILETRACKMUFEATURE_H
22 
23 #include <string>
24 #include <vector>
25 
26 #include "AthenaKernel/CLASS_DEF.h"
31 #include "AthLinks/ElementLink.h"
32 
33 // Trigger includes:
36 
37 
39  public NavigableTerminalNode,
40  virtual public INavigable4Momentum
41 {
42  public:
43 
46 
48  float PtTR_Trk,
49  float EtaTR_Trk, float PhiTR_Trk, int Typ_IDTrk,
52 
55 
57  TileTrackMuFeature(const TileTrackMuFeature* muon_feature);
58 
60  TileTrackMuFeature(const TileTrackMuFeature& muon_feature);
61 
63  TileTrackMuFeature& operator=(const TileTrackMuFeature& muon_feature);
64 
66  double PtTR_Trk() const { return m_PtTR_Trk; }
67  double EtaTR_Trk() const { return m_EtaTR_Trk; }
68  double PhiTR_Trk() const { return m_PhiTR_Trk; }
69  int Typ_IDTrk() const { return m_Typ_IDTrk; }
70 
71  const TileMuFeature* TileMuOutput(void) const { return *m_TileMuOutput; }
72  const TrigInDetTrack* IDScanOutput(void) const { return *m_IDScanOutput; }
73 
76 
77  double pt(void) const { return m_IDScanOutput ? (*m_IDScanOutput)->param()->pT():-9999.9; }
78  double eta(void) const { return m_IDScanOutput ? (*m_IDScanOutput)->param()->eta():-9999.9; }
79  double phi(void) const { return m_IDScanOutput ? (*m_IDScanOutput)->param()->phi0():-9999.9; }
80  double m(void) const { return -9999.9; }
81 
82  private:
83 
84  float m_PtTR_Trk;
85  float m_EtaTR_Trk;
86  float m_PhiTR_Trk;
88 
91 };
92 
94 std::string str( const TileTrackMuFeature& d );
95 
97 MsgStream& operator<< ( MsgStream& m, const TileTrackMuFeature& d );
98 
100 bool operator== ( const TileTrackMuFeature& a, const TileTrackMuFeature& b );
101 
103 inline bool operator!= ( const TileTrackMuFeature& a, const TileTrackMuFeature& b )
104 {
105  return !( a == b );
106 }
107 
109 void diff( const TileTrackMuFeature& a, const TileTrackMuFeature& b, std::map< std::string, double >& variableChange );
110 
111 CLASS_DEF(TileTrackMuFeature, 77762301, 0)
113 
114 #include "TrigMuonEvent/TileTrackMuFeatureContainer.h"
115 
116 #endif
TileTrackMuFeature::PhiTR_Trk
double PhiTR_Trk() const
Definition: TileTrackMuFeature.h:68
TileTrackMuFeature::m_TileMuOutput
ElementLink< TileMuFeatureContainer > m_TileMuOutput
Definition: TileTrackMuFeature.h:89
P4PtEtaPhiMBase.h
TileTrackMuFeature::phi
double phi(void) const
phi in [-pi,pi[
Definition: TileTrackMuFeature.h:79
TileTrackMuFeature::pt
double pt(void) const
transverse momentum
Definition: TileTrackMuFeature.h:77
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
INavigable4Momentum.h
diff
void diff(const TileTrackMuFeature &a, const TileTrackMuFeature &b, std::map< std::string, double > &variableChange)
Comparison with feedback.
Definition: TileTrackMuFeature.cxx:100
hist_file_dump.d
d
Definition: hist_file_dump.py:137
TileTrackMuFeature::m_EtaTR_Trk
float m_EtaTR_Trk
Definition: TileTrackMuFeature.h:85
TileTrackMuFeature::m_PtTR_Trk
float m_PtTR_Trk
Definition: TileTrackMuFeature.h:84
TileTrackMuFeature::Typ_IDTrk
int Typ_IDTrk() const
Definition: TileTrackMuFeature.h:69
NavigableTerminalNode
Dummy type needed fro specialized implementation.
Definition: NavigableTerminalNode.h:19
TileTrackMuFeature::TileTrackMuFeature
TileTrackMuFeature()
Constructor.
Definition: TileTrackMuFeature.cxx:11
TrigInDetTrackCollection.h
TileTrackMuFeature::m_Typ_IDTrk
int m_Typ_IDTrk
Definition: TileTrackMuFeature.h:87
TrigInDetTrack
Definition: TrigInDetTrack.h:34
TileTrackMuFeature
Definition: TileTrackMuFeature.h:41
TileTrackMuFeature::EtaTR_Trk
double EtaTR_Trk() const
Definition: TileTrackMuFeature.h:67
str
std::string str(const TileTrackMuFeature &d)
Helper function for printing the object.
Definition: TileTrackMuFeature.cxx:75
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
TileMuFeatureContainer.h
TileTrackMuFeature::PtTR_Trk
double PtTR_Trk() const
Ovveride pure virtual methods.
Definition: TileTrackMuFeature.h:66
TileTrackMuFeature::TileMuLink
const ElementLink< TileMuFeatureContainer > & TileMuLink(void) const
Definition: TileTrackMuFeature.h:74
TileTrackMuFeature::m_PhiTR_Trk
float m_PhiTR_Trk
Definition: TileTrackMuFeature.h:86
P4PtEtaPhiMBase
Definition: P4PtEtaPhiMBase.h:26
operator!=
bool operator!=(const TileTrackMuFeature &a, const TileTrackMuFeature &b)
Operator comparing two CombinedMuonFeature objects for inequality.
Definition: TileTrackMuFeature.h:103
NavigableTerminalNode.h
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TileTrackMuFeature::eta
double eta(void) const
pseudo rapidity
Definition: TileTrackMuFeature.h:78
TileTrackMuFeature::IDScanLink
const ElementLink< TrigInDetTrackCollection > & IDScanLink(void) const
Definition: TileTrackMuFeature.h:75
TileTrackMuFeature::TileMuOutput
const TileMuFeature * TileMuOutput(void) const
Definition: TileTrackMuFeature.h:71
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
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
operator<<
MsgStream & operator<<(MsgStream &m, const TileTrackMuFeature &d)
Helper operator for printing the object.
Definition: TileTrackMuFeature.cxx:86
TileTrackMuFeature::~TileTrackMuFeature
~TileTrackMuFeature()
Destructor.
Definition: TileTrackMuFeature.cxx:19
TileTrackMuFeature::m_IDScanOutput
ElementLink< TrigInDetTrackCollection > m_IDScanOutput
Definition: TileTrackMuFeature.h:90
TileTrackMuFeature::operator=
TileTrackMuFeature & operator=(const TileTrackMuFeature &muon_feature)
Assignement operator.
Definition: TileTrackMuFeature.cxx:61
TileTrackMuFeature::m
double m(void) const
mass
Definition: TileTrackMuFeature.h:80
CLASS_DEF.h
macros to associate a CLID to a type
operator==
bool operator==(const TileTrackMuFeature &a, const TileTrackMuFeature &b)
Operator comparing two CombinedMuonFeature objects for equality.
Definition: TileTrackMuFeature.cxx:91
TileMuFeature
Definition: TileMuFeature.h:33
TileTrackMuFeature::IDScanOutput
const TrigInDetTrack * IDScanOutput(void) const
Definition: TileTrackMuFeature.h:72