46 for(; mdtseg_itr!=mdtseg_end; ++mdtseg_itr){
47 if(!(*mdtseg_itr)->muonSegment().isValid())
continue;
50 if (segm ==
nullptr) {
56 int nMdtMeas[4] = {0,0,0,0};
57 bool isMdt=
false, isEndcap=
false;
65 stationName = int(
m_idHelperSvc->mdtIdHelper().stationName(
id));
70 if((stationName==13)||(stationName==49)){nMdtMeas[0]++;}
71 if((stationName==14)||(stationName==15)){nMdtMeas[1]++;}
72 if((stationName==17)||(stationName==18)){nMdtMeas[2]++;}
73 if((stationName==20)||(stationName==21)){nMdtMeas[3]++;}
76 if(!isEndcap)
continue;
80 for(
int jMDT=0;jMDT<4;jMDT++){
86 if(nStations!=1)
continue;
90 int segmAC = (segmGlobalPos.z()<0);
93 for(
int jMDT=0;jMDT<4;jMDT++){
96 float segmGlobalEta = std::abs(segmGlobalPos.eta());
97 float segmGlobalPhi = segmGlobalPos.phi();
98 if(segmGlobalPhi<0) segmGlobalPhi+=2*
M_PI;
100 m_mdt_segmmap[segmAC][jMDT]->Fill(segmGlobalPhi, segmGlobalEta);
115 tgc_itc!= tgc_itc_end;
125 int tgcStationName =
m_idHelperSvc->tgcIdHelper().stationName(tgcid);
129 float tgcGlobalPhi = tgcGlobalPos.phi();
130 if(tgcGlobalPhi<0)tgcGlobalPhi+=2*
M_PI;
133 if(tgcStationName<41 || tgcStationName>48)
continue;
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
const_iterator end() const
return const_iterator for end of container
const_iterator begin() const
return const_iterator for first entry
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
TH2 * m_mdt_segmmap[2][4]
void maphists(const xAOD::MuonSegmentContainer *m_newsegment, const Muon::TgcPrepDataContainer *tgc_prepcontainer)
std::string getStationType() const
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
This is the common class for 3D segments used in the muon spectrometer.
const Trk::RIO_OnTrack * rioOnTrack(unsigned int) const
returns the RIO_OnTrack (also known as ROT) objects depending on the integer
unsigned int numberOfContainedROTs() const
number of RIO_OnTracks
virtual const Amg::Vector3D & globalPosition() const override final
global position
Class to represent TGC measurements.
virtual const Amg::Vector3D & globalPosition() const override final
Returns the global position.
virtual const MuonGM::TgcReadoutElement * detectorElement() const override final
Returns the detector element corresponding to this PRD The pointer will be zero if the det el is not ...
Class to handle RIO On Tracks ROT) for InDet and Muons, it inherits from the common MeasurementBase.
Identifier identify() const
return the identifier -extends MeasurementBase
Eigen::Matrix< double, 3, 1 > Vector3D
MuonPrepDataContainerT< TgcPrepData > TgcPrepDataContainer
MuonSegmentContainer_v1 MuonSegmentContainer
Definition of the current "MuonSegment container version".