8 std::vector<int>& numHitsDT,
9 std::vector<int>& numHitsCSC,
10 std::vector<int>& numHitsRPC) {
11 if (
muon.outerTrack().isNonnull()) {
20 if (muonStation >= 0 && muonStation < 4) {
22 ++numHitsDT[muonStation];
24 ++numHitsCSC[muonStation];
26 ++numHitsRPC[muonStation];
34 std::ostringstream os;
37 for (
unsigned iEntry = 0; iEntry <
numEntries; ++iEntry) {
47 std::vector<int>& numMatchesDT,
48 std::vector<int>& numMatchesCSC,
49 std::vector<int>& numMatchesRPC) {
50 const std::vector<reco::MuonChamberMatch>& muonSegments =
muon.matches();
51 for (std::vector<reco::MuonChamberMatch>::const_iterator muonSegment = muonSegments.begin();
52 muonSegment != muonSegments.end();
54 if (muonSegment->segmentMatches.empty())
56 int muonDetector = muonSegment->detector();
57 int muonStation = muonSegment->station() - 1;
58 assert(muonStation >= 0 && muonStation <= 3);
60 ++numMatchesDT[muonStation];
62 ++numMatchesCSC[muonStation];
64 ++numMatchesRPC[muonStation];
int numberOfAllHits(HitCategory category) const
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)
uint16_t getHitPattern(HitCategory category, int position) const
static bool muonHitFilter(uint16_t pattern)
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)
static bool muonRPCHitFilter(uint16_t pattern)
void countHits(const reco::Muon &muon, std::vector< int > &numHitsDT, std::vector< int > &numHitsCSC, std::vector< int > &numHitsRPC)