ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/src/GenParticle.cc
Revision: 1.3
Committed: Wed Jan 25 18:45:50 2012 UTC (13 years, 3 months ago) by agilbert
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +17 -0 lines
Error occurred while calculating annotation data.
Log Message:
Lots of updates

File Contents

# Content
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 }