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

Comparing UserCode/HbbAnalysis/src/GenParticle.cc (file contents):
Revision 1.1 by amagnan, Thu Sep 17 19:39:52 2009 UTC vs.
Revision 1.3 by agilbert, Wed Jan 25 18:45:50 2012 UTC

# Line 1 | Line 1
1   #include "UserCode/HbbAnalysis/interface/GenParticle.hh"
2 + #include "UserCode/HbbAnalysis/interface/Candidate.hh"
3  
4   namespace HbbAnalysis {
5  
6 +  GenParticle::GenParticle(){
7 +  }
8 +
9 +  void GenParticle::Clear() {
10 +    Candidate::Clear();
11 +    genVars_.Clear();
12 +    parentIndex_.clear();
13 +    childIndex_.clear();
14 +  }
15 +
16 +  void GenParticle::Print() const {
17 +    std::cout << "Idx: " << genVars().index <<
18 +                 "  St: " << genVars().status <<
19 +                 "  PDG: " << genVars().pdgId <<
20 +                 "  Chg: " << genVars().charge << std::endl;
21 +    std::cout << "Mothers: ";
22 +    for (unsigned i = 0; i < parentIndex_.size(); ++i) {
23 +      std::cout << parentIndex_[i] << " ";
24 +    }
25 +    std::cout << std::endl;
26 +    std::cout << "Daughters: ";
27 +    for (unsigned i = 0; i < childIndex_.size(); ++i) {
28 +      std::cout << childIndex_[i] << " ";
29 +    }
30 +    std::cout << std::endl;
31 +    Candidate::Print();
32 +  }
33   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines