ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TRootBardak.h
Revision: 1.1
Committed: Fri Oct 23 14:20:16 2009 UTC (15 years, 6 months ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: all_3_3_2_01, all_3_2_5_02, HEAD
Log Message:
Class to stock any temporary variables not fitting into another TRootObject

File Contents

# User Rev Content
1 lethuill 1.1 #ifndef TRootBardak_h
2     #define TRootBardak_h
3    
4     // Class to stock any temporary variables not fitting into another TRootObject
5    
6     #include <string>
7     #include <iostream>
8     #include <cmath>
9    
10     #include "Rtypes.h"
11     #include "TObject.h"
12    
13     #include "../interface/TRootTrack.h"
14    
15     using namespace std;
16    
17     class TRootBardak : public TObject
18     {
19    
20     public:
21    
22     TRootBardak() :
23     tkEle1_()
24     ,tkEle2_()
25     ,nSiHitsEle1_(-1)
26     ,nSiHitsEle2_(-1)
27     ,nPxlHitsEle1_(-1)
28     ,nPxlHitsEle2_(-1)
29     ,d0SigEle1_(-1.)
30     ,d0SigEle2_(-1.)
31     ,normChi2Ele1_(-1.)
32     ,normChi2Ele2_(-1.)
33     {;}
34    
35     ~TRootBardak() {;}
36    
37     TRootTrack tkEle1() const { return tkEle1_; }
38     TRootTrack tkEle2() const { return tkEle2_; }
39     Int_t nSiHitsEle1() const { return nSiHitsEle1_; }
40     Int_t nSiHitsEle2() const { return nSiHitsEle2_; }
41     Int_t nPxlHitsEle1() const { return nPxlHitsEle1_; }
42     Int_t nPxlHitsEle2() const { return nPxlHitsEle2_; }
43     Float_t d0SigEle1() const { return d0SigEle1_; }
44     Float_t d0SigEle2() const { return d0SigEle2_; }
45     Float_t normChi2Ele1() const { return normChi2Ele1_; }
46     Float_t normChi2Ele2() const { return normChi2Ele2_; }
47    
48     void setEle1(const TRootTrack &tk, Int_t nSiHits, Int_t nPxlHits, Float_t d0Sig, Float_t normChi2)
49     {
50     tkEle1_ = tk;
51     nSiHitsEle1_ = nSiHits;
52     nPxlHitsEle1_ = nPxlHits;
53     d0SigEle1_ = d0Sig;
54     normChi2Ele1_ = normChi2;
55     }
56    
57     void setEle2(const TRootTrack &tk, Int_t nSiHits, Int_t nPxlHits, Float_t d0Sig, Float_t normChi2)
58     {
59     tkEle2_ = tk;
60     nSiHitsEle2_ = nSiHits;
61     nPxlHitsEle2_ = nPxlHits;
62     d0SigEle2_ = d0Sig;
63     normChi2Ele2_ = normChi2;
64     }
65    
66     friend std::ostream& operator<< (std::ostream& stream, const TRootBardak& bardak) {
67     stream << " TRootBardak - nSiHitsEle1="<< bardak.nSiHitsEle1();
68     return stream;
69     };
70    
71     private:
72    
73     TRootTrack tkEle1_;
74     TRootTrack tkEle2_;
75     Int_t nSiHitsEle1_;
76     Int_t nSiHitsEle2_;
77     Int_t nPxlHitsEle1_;
78     Int_t nPxlHitsEle2_;
79     Float_t d0SigEle1_;
80     Float_t d0SigEle2_;
81     Float_t normChi2Ele1_;
82     Float_t normChi2Ele2_;
83    
84     ClassDef (TRootBardak,1);
85    
86     };
87    
88     #endif