ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TRootTopTop.h
Revision: 1.2
Committed: Wed Jun 10 11:17:06 2009 UTC (15 years, 10 months ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: all_3_3_2_01, all_3_2_5_02, all_3_2_5_01, all_2_2_9_03, all_2_2_9_02, all_2_2_9_01, HEAD
Branch point for: CMSSW_2_2_X_br
Changes since 1.1: +37 -36 lines
Log Message:
Better protection against missing collection / Cleaning data format selection / Last iteration for migration to PAT of Photons

File Contents

# User Rev Content
1 lethuill 1.1 #ifndef TRootTopTop_h
2     #define TRootTopTop_h
3    
4     #include <string>
5     #include <iostream>
6    
7     #include "Rtypes.h"
8     #include "TLorentzVector.h"
9     #include "TRef.h"
10    
11     using namespace std;
12    
13     class TRootTopTop : public TLorentzVector
14     {
15    
16 lethuill 1.2 public:
17    
18     TRootTopTop() : TLorentzVector(), indexOne_(-1), indexTwo_(-1), motherOne_(0), motherTwo_(0), decayType_(0), njetTenGeV_(-1), njetFiftyGeV_(-1) {;}
19     TRootTopTop(const TRootTopTop& particles) : TLorentzVector(particles), indexOne_(particles.indexOne_), indexTwo_(particles.indexTwo_), motherOne_(particles.motherOne_),motherTwo_(particles.motherTwo_), decayType_(particles.decayType_), njetTenGeV_(particles.njetTenGeV_),njetFiftyGeV_(particles.njetFiftyGeV_) {;}
20     TRootTopTop(Float_t px, Float_t py, Float_t pz, Float_t e) : TLorentzVector(px,py,pz,e), indexOne_(-1), indexTwo_(-1), motherOne_(0), motherTwo_(0), decayType_(0), njetTenGeV_(-1), njetFiftyGeV_(-1) {;}
21     TRootTopTop(const TLorentzVector &momentum) : TLorentzVector(momentum),indexOne_(-1), indexTwo_(-1), motherOne_(0), motherTwo_(0), decayType_(0), njetTenGeV_(-1), njetFiftyGeV_(-1) {;}
22     TRootTopTop(const TLorentzVector &momentum, Int_t indexOne, Int_t indexTwo, Int_t motherOne, Int_t motherTwo, Int_t decayType, Int_t njetTenGeV, Int_t njetFiftyGeV) : TLorentzVector(momentum),indexOne_(indexOne), indexTwo_(indexTwo),motherOne_(motherOne), motherTwo_(motherTwo), decayType_(decayType), njetTenGeV_(njetTenGeV),njetFiftyGeV_(njetFiftyGeV) {;}
23    
24     ~TRootTopTop() {;}
25    
26     Int_t indexOne() const {return indexOne_; }
27     Int_t indexTwo() const {return indexTwo_; }
28     Int_t motherOne() const {return motherOne_; }
29     Int_t motherTwo() const {return motherTwo_; }
30     Int_t decayType() const { return decayType_; }
31     Int_t njetTenGeV() const {return njetTenGeV_;}
32     Int_t njetFiftyGeV() const {return njetFiftyGeV_;}
33    
34     void setIndexOne(Int_t indexOne) {indexOne_ = indexOne; }
35     void setIndexTwo(Int_t indexTwo) {indexTwo_ = indexTwo; }
36     void setMotherOne(Int_t motherOne) { motherOne_ = motherOne; }
37     void setMotherTwo(Int_t motherTwo) { motherTwo_ = motherTwo; }
38     void setdecayType(Int_t decayType) { decayType_ = decayType; }
39     void setnjetTenGeV(Int_t njetTenGeV) {njetTenGeV_ = njetTenGeV; }
40     void setnjetFiftyGeV(Int_t njetFiftyGeV) {njetFiftyGeV_ = njetFiftyGeV; }
41    
42     protected:
43    
44     Int_t indexOne_;
45     Int_t indexTwo_;
46     Int_t motherOne_;
47     Int_t motherTwo_;
48     Int_t decayType_;
49     Int_t njetTenGeV_;
50     Int_t njetFiftyGeV_;
51    
52     ClassDef (TRootTopTop,1);
53 lethuill 1.1
54     };
55    
56     #endif