Get the analysis.
124 for (reco::TrackCollection::const_iterator recoTrack = glbTracks->begin(); recoTrack!=glbTracks->end(); ++recoTrack){
128 cout <<
"[SegmentTrackAnalyzer] # of segments associated to the track: "<<(segments).
size() <<endl;
130 LogTrace(
metname)<<
"[SegmentTrackAnalyzer] # of segments associated to the track: "<<(segments).
size();
138 int hitsFromSegmDt=0;
139 int hitsFromSegmCsc=0;
144 for (MuonTransientTrackingRecHit::MuonRecHitContainer::const_iterator segment=segments.begin();
145 segment!=segments.end(); segment++) {
147 DetId id = (*segment)->geographicalId();
153 if((*seg4D).hasPhi())
155 if((*seg4D).hasZed())
156 hitsFromSegmDt+=(*seg4D).zSegment()->specificRecHits().size();
162 hitsFromSegmCsc+=(*segment)->recHits().size();
173 DetId id = (*recHit)->geographicalId();
203 hitsNotUsed->
Fill(hitsFromSegmDt+hitsFromSegmCsc+hitsFromRpc+hitsFromTk-hitsFromTrack);
206 if(hitsFromDt!=0 && hitsFromCsc!=0)
208 if(hitsFromDt!=0 && hitsFromCsc==0)
210 if(hitsFromDt==0 && hitsFromCsc!=0)
221 if(hitsFromSegmDt+hitsFromSegmCsc !=0){
227 if(hitsFromSegmDt!=0){
233 if(hitsFromSegmCsc!=0){
MonitorElement * trackHitPercentualVsPt
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const DTChamberRecSegment2D * phiSegment() const
The superPhi segment: 0 if no phi projection available.
SegmentsTrackAssociator * theSegmentsAssociator
MonitorElement * cscTrackHitPercentualVsPhi
MonitorElement * hitTkrProvenance
MuonServiceProxy * theService
MuonTransientTrackingRecHit::MuonRecHitContainer associate(const edm::Event &, const edm::EventSetup &, const reco::Track &)
Get the analysis.
MonitorElement * trackHitPercentualVsPhi
std::vector< DTRecHit1D > specificRecHits() const
Access to specific components.
MonitorElement * TrackSegm
MonitorElement * cscTrackHitPercentualVsPt
edm::EDGetTokenT< reco::TrackCollection > theMuTrackCollectionLabel_
MonitorElement * dtTrackHitPercentualVsPhi
MonitorElement * hitsNotUsedPercentual
MonitorElement * cscTrackHitPercentualVsEta
MonitorElement * dtTrackHitPercentualVsEta
MonitorElement * hitsNotUsed
MonitorElement * dtTrackHitPercentualVsPt
MonitorElement * trackHitPercentualVsEta
std::vector< MuonRecHitPointer > MuonRecHitContainer
tuple size
Write out results.
MonitorElement * hitStaProvenance