ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/OSUT3Analysis/AnaTools/src/OSUObjects.cc
(Generate patch)

Comparing UserCode/OSUT3Analysis/AnaTools/src/OSUObjects.cc (file contents):
Revision 1.1 by ahart, Mon Aug 27 18:20:54 2012 UTC vs.
Revision 1.2 by ahart, Tue Aug 28 13:57:20 2012 UTC

# Line 3 | Line 3
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 ();
# Line 11 | Line 13 | GoodMuonCollection::GoodMuonCollection (
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_++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines