ATLAS Offline Software
Muon_ROI.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: Muon_ROI.h,v 1.6 2008-05-08 15:00:11 krasznaa Exp $
8 #ifndef ANALYSISTRIGGEREVENT_MUON_ROI_H
9 #define ANALYSISTRIGGEREVENT_MUON_ROI_H
10 
11 // STL/System include(s):
12 #include <string>
13 #include <inttypes.h>
14 
15 // Athena include(s):
19 
33 class Muon_ROI : public P4PtEtaPhiMBase,
34  public NavigableTerminalNode,
35  virtual public INavigable4Momentum {
36 
37 public:
39  Muon_ROI( uint32_t roiWord, double eta, double phi, const std::string &thrName,
40  double thrValue );
42  Muon_ROI();
44  virtual ~Muon_ROI();
45 
47  enum RoISource {
50  Forward
51  };
53  enum Hemisphere {
55  Negative
56  };
58  enum Charge {
59  Neg = 0,
60  Pos = 1,
61  Undef = 100
62  };
63 
65  uint32_t getROIWord() const { return m_roiWord; }
67  float getEta() const { return m_eta; }
69  float getPhi() const { return m_phi; }
71  std::string getThrName() const { return m_thrName; }
73  float getThrValue() const { return m_thrValue; }
74 
76  int getThrNumber() const;
78  int getRoI() const;
80  int getSectorAddress() const;
82  bool isFirstCandidate() const;
84  bool isMoreCandInRoI() const;
86  bool isMoreCandInSector() const;
88  RoISource getSource() const;
90  Hemisphere getHemisphere() const;
92  Charge getCharge() const;
94  bool isVetoed() const;
95 
97  virtual double pt() const { return m_thrValue; }
99  virtual double eta() const { return m_eta; }
101  virtual double phi() const { return m_phi; }
103  virtual double m() const { return 0.0; }
104 
105 private:
107 
108  float m_eta;
109  float m_phi;
110 
111  std::string m_thrName;
112  float m_thrValue;
113 
114 }; // class Muon_ROI
115 
116 #endif // ANALYSISTRIGGEREVENT_MUON_ROI_H
P4PtEtaPhiMBase.h
Muon_ROI::Muon_ROI
Muon_ROI()
Default constructor (for persistency purposes)
Definition: Muon_ROI.cxx:23
Muon_ROI::Undef
@ Undef
This is an RPC candidate.
Definition: Muon_ROI.h:61
Muon_ROI::isFirstCandidate
bool isFirstCandidate() const
Returns if the candidate had the highest pT in the sector.
Definition: Muon_ROI.cxx:92
INavigable4Momentum.h
Muon_ROI::Negative
@ Negative
The candidate came from the -z side (side C)
Definition: Muon_ROI.h:55
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
Muon_ROI::eta
virtual double eta() const
Return the eta coordinate of the center of the RoI.
Definition: Muon_ROI.h:99
Muon_ROI::m_eta
float m_eta
eta coordinate of RoI
Definition: Muon_ROI.h:108
Muon_ROI::Pos
@ Pos
Candidate is a mu+ from a TGC sector.
Definition: Muon_ROI.h:60
Muon_ROI::getSource
RoISource getSource() const
Returns the system that detected the muon candidate.
Definition: Muon_ROI.cxx:126
Muon_ROI::getPhi
float getPhi() const
Legacy function returning the phi coordinate of the RoI.
Definition: Muon_ROI.h:69
NavigableTerminalNode
Dummy type needed fro specialized implementation.
Definition: NavigableTerminalNode.h:19
Muon_ROI::getHemisphere
Hemisphere getHemisphere() const
Returns the hemisphere that detected the muon candidate.
Definition: Muon_ROI.cxx:144
Muon_ROI::m_phi
float m_phi
phi coordinate of RoI
Definition: Muon_ROI.h:109
Muon_ROI::pt
virtual double pt() const
Return the value of the highest threshold this RoI passed.
Definition: Muon_ROI.h:97
Muon_ROI::getThrName
std::string getThrName() const
Return the name of the highest threshold this RoI passed.
Definition: Muon_ROI.h:71
Muon_ROI::phi
virtual double phi() const
Return the phi coordinate of the center of the RoI.
Definition: Muon_ROI.h:101
Muon_ROI
Muon RoI class for analysis.
Definition: Muon_ROI.h:35
Muon_ROI::Forward
@ Forward
The muon candidate was detected in the forward region.
Definition: Muon_ROI.h:50
Muon_ROI::Barrel
@ Barrel
The muon candidate was detected in the barrel region.
Definition: Muon_ROI.h:48
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
Muon_ROI::getThrNumber
int getThrNumber() const
Get the logic number of the highest threshold this RoI passed.
Definition: Muon_ROI.cxx:43
Muon_ROI::getCharge
Charge getCharge() const
Returns the charge sign of the muon candidate.
Definition: Muon_ROI.cxx:160
Muon_ROI::getROIWord
uint32_t getROIWord() const
Return the original 32-bit RoI word given by the LVL1 muon trigger.
Definition: Muon_ROI.h:65
Muon_ROI::Endcap
@ Endcap
The muon candidate was detected in the endcap region.
Definition: Muon_ROI.h:49
Muon_ROI::~Muon_ROI
virtual ~Muon_ROI()
Destructor.
Definition: Muon_ROI.cxx:32
Muon_ROI::m_thrValue
float m_thrValue
Value of the highest threshold this RoI passed.
Definition: Muon_ROI.h:112
Muon_ROI::isMoreCandInSector
bool isMoreCandInSector() const
Returns if there were other muons detected in the same sector.
Definition: Muon_ROI.cxx:114
Muon_ROI::getEta
float getEta() const
Legacy function returning the eta coordinate of the RoI.
Definition: Muon_ROI.h:67
Muon_ROI::getThrValue
float getThrValue() const
Return the value of the highest threshold this RoI passed.
Definition: Muon_ROI.h:73
Muon_ROI::Hemisphere
Hemisphere
RoI hemisphere enumeration.
Definition: Muon_ROI.h:53
Muon_ROI::m
virtual double m() const
Return the mass of the object, always 0.0 for RoIs.
Definition: Muon_ROI.h:103
P4PtEtaPhiMBase
Definition: P4PtEtaPhiMBase.h:26
Muon_ROI::Positive
@ Positive
The candidate came from the +z side (side A)
Definition: Muon_ROI.h:54
NavigableTerminalNode.h
Muon_ROI::Charge
Charge
Charge sign.
Definition: Muon_ROI.h:58
Muon_ROI::RoISource
RoISource
RoI source enumeration.
Definition: Muon_ROI.h:47
Muon_ROI::getRoI
int getRoI() const
Get the "RoI number" (position inside the sector)
Definition: Muon_ROI.cxx:56
Muon_ROI::isVetoed
bool isVetoed() const
Returns the veto flag for the candidate.
Definition: Muon_ROI.cxx:175
INavigable4Momentum
Definition: INavigable4Momentum.h:21
Muon_ROI::m_roiWord
uint32_t m_roiWord
32bit encoded ROI word
Definition: Muon_ROI.h:106
Muon_ROI::isMoreCandInRoI
bool isMoreCandInRoI() const
Returns if there were other muons detected in the same RoI.
Definition: Muon_ROI.cxx:103
Muon_ROI::Neg
@ Neg
Candidate is a mu- from a TGC sector.
Definition: Muon_ROI.h:59
xAOD::thrValue
thrValue
Definition: MuonRoI_v1.cxx:54
Muon_ROI::m_thrName
std::string m_thrName
Name of the highest threshold this RoI passed.
Definition: Muon_ROI.h:111
Muon_ROI::getSectorAddress
int getSectorAddress() const
Get the full sector address.
Definition: Muon_ROI.cxx:80