6 void countHits(
const reco::Muon&
muon, std::vector<int>& numHitsDT, std::vector<int>& numHitsCSC, std::vector<int>& numHitsRPC)
12 if ( hit == 0 )
break;
15 if ( muonStation >= 0 && muonStation < 4 ) {
27 std::ostringstream os;
30 for (
unsigned iEntry = 0; iEntry <
numEntries; ++iEntry ) {
32 if ( iEntry < (numEntries - 1) ) os <<
", ";
38 void countMatches(
const reco::Muon&
muon, std::vector<int>& numMatchesDT, std::vector<int>& numMatchesCSC, std::vector<int>& numMatchesRPC)
40 const std::vector<reco::MuonChamberMatch>& muonSegments = muon.
matches();
41 for ( std::vector<reco::MuonChamberMatch>::const_iterator muonSegment = muonSegments.begin();
42 muonSegment != muonSegments.end(); ++muonSegment ) {
43 if ( muonSegment->segmentMatches.empty() )
continue;
44 int muonDetector = muonSegment->detector();
45 int muonStation = muonSegment->station() - 1;
46 assert(muonStation >= 0 && muonStation <= 3);
bool isNonnull() const
Checks for non-null.
void countMatches(const reco::Muon &muon, std::vector< int > &numMatchesDT, std::vector< int > &numMatchesCSC, std::vector< int > &numMatchesRPC)
static bool muonCSCHitFilter(uint16_t pattern)
static uint32_t getHitType(uint16_t pattern)
Long64_t numEntries(TFile *hdl, std::string const &trname)
int numberOfAllHits(HitCategory category) const
virtual TrackRef outerTrack() const
reference to Track reconstructed in the muon detector only
static bool muonHitFilter(uint16_t pattern)
std::vector< MuonChamberMatch > & matches()
get muon matching information
static bool muonDTHitFilter(uint16_t pattern)
static uint16_t getMuonStation(uint16_t pattern)
Muon station (1-4). Only valid for muon patterns, of course. only for patterns from muon...
std::string format_vint(const std::vector< int > &vi)
uint16_t getHitPattern(HitCategory category, int position) const
static bool muonRPCHitFilter(uint16_t pattern)
void countHits(const reco::Muon &muon, std::vector< int > &numHitsDT, std::vector< int > &numHitsCSC, std::vector< int > &numHitsRPC)