3 |
|
GoodMuonCollection::GoodMuonCollection (const edm::ParameterSet &cfg, const edm::Handle<BNmuonCollection> &muons, CutFlow *cuts) : |
4 |
|
leadP4_ (TLorentzVector (0.0, 0.0, 0.0, 0.0)), |
5 |
|
nextToLeadP4_ (TLorentzVector (0.0, 0.0, 0.0, 0.0)), |
6 |
< |
goodSize_ (0) |
6 |
> |
goodSize_ (0), |
7 |
> |
goodEtaSize_ (0), |
8 |
> |
goodPtSize_ (0) |
9 |
|
{ |
10 |
|
this->reserve (muons->size ()); |
11 |
|
leadMuon_ = this->end (); |
13 |
|
for (BNmuonCollection::const_iterator muon = muons->begin (); muon != muons->end (); muon++) |
14 |
|
{ |
15 |
|
this->push_back (GoodMuon (cfg, *muon, cuts)); |
16 |
+ |
if (this->back ().pass ("maxEta")) |
17 |
+ |
goodEtaSize_++; |
18 |
+ |
if (this->back ().pass ("minPt")) |
19 |
+ |
goodPtSize_++; |
20 |
|
if (this->back ().pass ()) |
21 |
|
{ |
22 |
|
goodSize_++; |