ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
Muon::IMuonSegmentHitSummaryTool::HitCounts Struct Reference

#include <IMuonSegmentHitSummaryTool.h>

Collaboration diagram for Muon::IMuonSegmentHitSummaryTool::HitCounts:

Public Member Functions

 HitCounts ()=default
 
uint8_t nmdtHits () const
 Returns the number of hits in both MDT layers. More...
 
uint8_t nmmHits () const
 Returns the number of hits in the micromegas. More...
 
uint8_t nnswHits () const
 Returns the number of hits in the NSW. More...
 
double goodADCFraction () const
 
std::string print () const
 dump content to a string More...
 

Public Attributes

uint8_t nmdtHighADCHits {0}
 
uint8_t nmdtHitsMl1 {0}
 
uint8_t nmdtHitsMl2 {0}
 
uint8_t nmdtHoles {0}
 
uint8_t nmdtHolesInChamber {0}
 
uint8_t nmdtEnclosedHoles {0}
 
EtaPhiHitCount ncscHits {}
 
EtaPhiHitCount nstgcHits {}
 
uint8_t nmmEtaHits {0}
 
uint8_t nmmStereoHits {0}
 Number of eta micromega hits. More...
 
uint8_t nphiTrigHitLayers {0}
 Number of eta stereo hits. More...
 
uint8_t netaTrigHitLayers {0}
 
uint8_t npairedTrigHitLayers {0}
 
uint8_t nexpectedTrigHitLayers {0}
 
bool closeToChamberEdge {false}
 
double segmentQuality {0}
 
int adcMax {-999}
 
MdtLayerIntersectMap mdtHitHolePerLayerCounts
 
HitCountsPerLayer hitCountsPerLayer
 

Detailed Description

Definition at line 37 of file IMuonSegmentHitSummaryTool.h.

Constructor & Destructor Documentation

◆ HitCounts()

Muon::IMuonSegmentHitSummaryTool::HitCounts::HitCounts ( )
default

Member Function Documentation

◆ goodADCFraction()

double Muon::IMuonSegmentHitSummaryTool::HitCounts::goodADCFraction ( ) const
inline

Definition at line 65 of file IMuonSegmentHitSummaryTool.h.

65 { return (double)nmdtHighADCHits / (double)nmdtHits(); }

◆ nmdtHits()

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtHits ( ) const
inline

Returns the number of hits in both MDT layers.

Definition at line 60 of file IMuonSegmentHitSummaryTool.h.

60 { return nmdtHitsMl1 + nmdtHitsMl2; }

◆ nmmHits()

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::nmmHits ( ) const
inline

Returns the number of hits in the micromegas.

Definition at line 62 of file IMuonSegmentHitSummaryTool.h.

62 {return nmmEtaHits + nmmStereoHits; }

◆ nnswHits()

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::nnswHits ( ) const
inline

Returns the number of hits in the NSW.

Definition at line 64 of file IMuonSegmentHitSummaryTool.h.

64 {return nmmHits() + nstgcHits();}

◆ print()

std::string Muon::IMuonSegmentHitSummaryTool::HitCounts::print ( ) const
inline

dump content to a string

Definition at line 88 of file IMuonSegmentHitSummaryTool.h.

88  {
89  std::ostringstream sout;
90  sout << "HitCounts: ";
91  if (nmdtHits()) sout << " MDT ml1 " << std::setw(3) <<(int) nmdtHitsMl1 << " ml2 " << std::setw(3) <<(int) nmdtHitsMl2;
92  if (nmdtHoles )
93  sout << " holes " << std::setw(3) << nmdtHoles << " in chamber " << std::setw(3) << nmdtHolesInChamber << " enclosed "
94  << std::setw(3) << nmdtEnclosedHoles << " quality " << segmentQuality;
95  if (ncscHits()) sout << " CSC eta " << std::setw(3) << (int) ncscHits.netaHits << " phi " << std::setw(3) << (int) ncscHits.nphiHits;
96  if (nmmHits()) sout << " Micromega eta " << std::setw(3) << (int) nmmEtaHits << " stereo " << std::setw(3) << (int) nmmStereoHits;
97  if (nstgcHits()) sout << " sTGC eta " << std::setw(3) << (int) nstgcHits.netaHits << " phi " << std::setw(3) << (int) nstgcHits.netaHits;
98 
99  if (netaTrigHitLayers != 0) sout << " Trig eta " << std::setw(3) << (int)netaTrigHitLayers;
100  if (nphiTrigHitLayers != 0) sout << " Trig phi " << std::setw(3) << (int)nphiTrigHitLayers;
101  if (npairedTrigHitLayers != 0) sout << " Trig pairs " << std::setw(3) << (int)npairedTrigHitLayers;
102  if (closeToChamberEdge) sout << " on edge";
103  return sout.str();
104  }

Member Data Documentation

◆ adcMax

int Muon::IMuonSegmentHitSummaryTool::HitCounts::adcMax {-999}

Definition at line 57 of file IMuonSegmentHitSummaryTool.h.

◆ closeToChamberEdge

bool Muon::IMuonSegmentHitSummaryTool::HitCounts::closeToChamberEdge {false}

Definition at line 55 of file IMuonSegmentHitSummaryTool.h.

◆ hitCountsPerLayer

HitCountsPerLayer Muon::IMuonSegmentHitSummaryTool::HitCounts::hitCountsPerLayer

Definition at line 71 of file IMuonSegmentHitSummaryTool.h.

◆ mdtHitHolePerLayerCounts

MdtLayerIntersectMap Muon::IMuonSegmentHitSummaryTool::HitCounts::mdtHitHolePerLayerCounts

Definition at line 68 of file IMuonSegmentHitSummaryTool.h.

◆ ncscHits

EtaPhiHitCount Muon::IMuonSegmentHitSummaryTool::HitCounts::ncscHits {}

Definition at line 45 of file IMuonSegmentHitSummaryTool.h.

◆ netaTrigHitLayers

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::netaTrigHitLayers {0}

Definition at line 52 of file IMuonSegmentHitSummaryTool.h.

◆ nexpectedTrigHitLayers

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::nexpectedTrigHitLayers {0}

Definition at line 54 of file IMuonSegmentHitSummaryTool.h.

◆ nmdtEnclosedHoles

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtEnclosedHoles {0}

Definition at line 44 of file IMuonSegmentHitSummaryTool.h.

◆ nmdtHighADCHits

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtHighADCHits {0}

Definition at line 39 of file IMuonSegmentHitSummaryTool.h.

◆ nmdtHitsMl1

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtHitsMl1 {0}

Definition at line 40 of file IMuonSegmentHitSummaryTool.h.

◆ nmdtHitsMl2

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtHitsMl2 {0}

Definition at line 41 of file IMuonSegmentHitSummaryTool.h.

◆ nmdtHoles

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtHoles {0}

Definition at line 42 of file IMuonSegmentHitSummaryTool.h.

◆ nmdtHolesInChamber

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtHolesInChamber {0}

Definition at line 43 of file IMuonSegmentHitSummaryTool.h.

◆ nmmEtaHits

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::nmmEtaHits {0}

Definition at line 48 of file IMuonSegmentHitSummaryTool.h.

◆ nmmStereoHits

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::nmmStereoHits {0}

Number of eta micromega hits.

Definition at line 49 of file IMuonSegmentHitSummaryTool.h.

◆ npairedTrigHitLayers

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::npairedTrigHitLayers {0}

Definition at line 53 of file IMuonSegmentHitSummaryTool.h.

◆ nphiTrigHitLayers

uint8_t Muon::IMuonSegmentHitSummaryTool::HitCounts::nphiTrigHitLayers {0}

Number of eta stereo hits.

Definition at line 51 of file IMuonSegmentHitSummaryTool.h.

◆ nstgcHits

EtaPhiHitCount Muon::IMuonSegmentHitSummaryTool::HitCounts::nstgcHits {}

Definition at line 46 of file IMuonSegmentHitSummaryTool.h.

◆ segmentQuality

double Muon::IMuonSegmentHitSummaryTool::HitCounts::segmentQuality {0}

Definition at line 56 of file IMuonSegmentHitSummaryTool.h.


The documentation for this struct was generated from the following file:
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
Muon::IMuonSegmentHitSummaryTool::HitCounts::nmmStereoHits
uint8_t nmmStereoHits
Number of eta micromega hits.
Definition: IMuonSegmentHitSummaryTool.h:49
Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtHitsMl1
uint8_t nmdtHitsMl1
Definition: IMuonSegmentHitSummaryTool.h:40
Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtHighADCHits
uint8_t nmdtHighADCHits
Definition: IMuonSegmentHitSummaryTool.h:39
Muon::IMuonSegmentHitSummaryTool::HitCounts::npairedTrigHitLayers
uint8_t npairedTrigHitLayers
Definition: IMuonSegmentHitSummaryTool.h:53
Muon::IMuonSegmentHitSummaryTool::HitCounts::netaTrigHitLayers
uint8_t netaTrigHitLayers
Definition: IMuonSegmentHitSummaryTool.h:52
Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtHits
uint8_t nmdtHits() const
Returns the number of hits in both MDT layers.
Definition: IMuonSegmentHitSummaryTool.h:60
Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtHolesInChamber
uint8_t nmdtHolesInChamber
Definition: IMuonSegmentHitSummaryTool.h:43
Muon::IMuonSegmentHitSummaryTool::HitCounts::nmmHits
uint8_t nmmHits() const
Returns the number of hits in the micromegas.
Definition: IMuonSegmentHitSummaryTool.h:62
Muon::IMuonSegmentHitSummaryTool::HitCounts::closeToChamberEdge
bool closeToChamberEdge
Definition: IMuonSegmentHitSummaryTool.h:55
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtEnclosedHoles
uint8_t nmdtEnclosedHoles
Definition: IMuonSegmentHitSummaryTool.h:44
Muon::IMuonSegmentHitSummaryTool::HitCounts::nphiTrigHitLayers
uint8_t nphiTrigHitLayers
Number of eta stereo hits.
Definition: IMuonSegmentHitSummaryTool.h:51
Muon::IMuonSegmentHitSummaryTool::HitCounts::nstgcHits
EtaPhiHitCount nstgcHits
Definition: IMuonSegmentHitSummaryTool.h:46
Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtHoles
uint8_t nmdtHoles
Definition: IMuonSegmentHitSummaryTool.h:42
Muon::IMuonSegmentHitSummaryTool::HitCounts::ncscHits
EtaPhiHitCount ncscHits
Definition: IMuonSegmentHitSummaryTool.h:45
Muon::IMuonSegmentHitSummaryTool::HitCounts::nmmEtaHits
uint8_t nmmEtaHits
Definition: IMuonSegmentHitSummaryTool.h:48
if
if(febId1==febId2)
Definition: LArRodBlockPhysicsV0.cxx:567
Muon::IMuonSegmentHitSummaryTool::HitCounts::segmentQuality
double segmentQuality
Definition: IMuonSegmentHitSummaryTool.h:56
Muon::IMuonSegmentHitSummaryTool::EtaPhiHitCount::netaHits
uint8_t netaHits
Definition: IMuonSegmentHitSummaryTool.h:21
Muon::IMuonSegmentHitSummaryTool::EtaPhiHitCount::nphiHits
uint8_t nphiHits
Definition: IMuonSegmentHitSummaryTool.h:20
Muon::IMuonSegmentHitSummaryTool::HitCounts::nmdtHitsMl2
uint8_t nmdtHitsMl2
Definition: IMuonSegmentHitSummaryTool.h:41