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

Comparing UserCode/HbbAnalysis/src/GenJet.cc (file contents):
Revision 1.1 by amagnan, Sat Jul 16 10:01:21 2011 UTC vs.
Revision 1.3 by agilbert, Wed Jan 25 18:45:50 2012 UTC

# Line 1 | Line 1
1   #include "UserCode/HbbAnalysis/interface/GenJet.hh"
2 + #include "UserCode/HbbAnalysis/interface/Candidate.hh"
3  
4   namespace HbbAnalysis {
5  
6 +  GenJet::GenJet(){
7 +  }
8 +
9 +  void GenJet::Clear() {
10 +    Candidate::Clear();
11 +    genJetVars_.Clear();
12 +    constituents_.clear();
13 +  }
14 +
15 +  void GenJet::Print() const {
16 +    Candidate::Print();
17 +    std::cout << "Flavour: " << genJetVars_.flavour <<
18 +                "nConst: " << genJetVars_.nConstituents <<
19 +              std::endl;
20 +    for (unsigned i = 0; i < constituents_.size(); ++i) {
21 +     std::cout << "Constituent " << i << ":" << std::endl;
22 +     constituents_[i].Print();
23 +    }
24 +  }
25   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines