ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TRootSuperCluster.h
(Generate patch)

Comparing UserCode/Morgan/interface/TRootSuperCluster.h (file contents):
Revision 1.2 by lethuill, Thu Oct 30 16:22:26 2008 UTC vs.
Revision 1.3 by lethuill, Tue Nov 18 13:57:10 2008 UTC

# Line 42 | Line 42 | public:
42                          ,subClusterIndex_()
43                          ,preshowerEnergy_(0.)
44                          ,rawEnergy_(0.)
45 +                        ,photon_()
46 +                        ,electron_()
47                          {;}
48                  
49          TRootSuperCluster(const TRootSuperCluster& cluster) :
# Line 51 | Line 53 | public:
53                          ,subClusterIndex_(cluster.subClusterIndex_)
54                          ,preshowerEnergy_(cluster.preshowerEnergy_)
55                          ,rawEnergy_(cluster.rawEnergy_)
56 +                        ,photon_(cluster.photon_)
57 +                        ,electron_(cluster.photon_)
58                          {;}
59                          
60          TRootSuperCluster(Double_t energy, Double_t eta, Double_t phi) :
# Line 60 | Line 64 | public:
64                          ,subClusterIndex_()
65                          ,preshowerEnergy_(0.)
66                          ,rawEnergy_(0.)
67 +                        ,photon_()
68 +                        ,electron_()
69                          {;}
70                          
71          TRootSuperCluster(Double_t energy, Double_t eta, Double_t phi, Double_t x, Double_t y, Double_t z) :
# Line 69 | Line 75 | public:
75                          ,subClusterIndex_()
76                          ,preshowerEnergy_(0.)
77                          ,rawEnergy_(0.)
78 +                        ,photon_()
79 +                        ,electron_()
80                          {;}
81                          
82          TRootSuperCluster(Double_t energy, Double_t eta, Double_t phi, Double_t x, Double_t y, Double_t z, Int_t det) :
# Line 78 | Line 86 | public:
86                          ,subClusterIndex_()
87                          ,preshowerEnergy_(0.)
88                          ,rawEnergy_(0.)
89 +                        ,photon_()
90 +                        ,electron_()
91                          {;}
92                                                  
93          ~TRootSuperCluster() {;}
# Line 101 | Line 111 | public:
111          
112          Float_t preshowerEnergy() const   { return preshowerEnergy_; }
113          Float_t rawEnergy() const   { return rawEnergy_; }
114 +        TObject* photon() const  { return photon_.GetObject();}
115 +        TObject* electron() const  { return electron_.GetObject();}
116 +        Bool_t isPhoton() const { return ( photon_.GetObject() == 0 ? false : true); }
117 +        Bool_t isElectron() const { return ( electron_.GetObject() == 0 ? false : true); }
118  
119          void setNBasicClusters(Int_t nBasicClusters) { nBasicClusters_ = nBasicClusters; }
120          void addSubClusterUID(Int_t uid) { subClusterUID_.push_back(uid); }
# Line 109 | Line 123 | public:
123          void clearSubClusterIndex() { subClusterIndex_.clear(); }
124          void setPreshowerEnergy(Float_t preshowerEnergy) { preshowerEnergy_ = preshowerEnergy; }
125          void setRawEnergy(Float_t rawEnergy) { rawEnergy_ = rawEnergy; }
126 +        void setPhoton(TObject* photon) { photon_ = photon; }
127 +        void setElectron(TObject* electron) { electron_ = electron; }
128  
129  
130          friend std::ostream& operator<< (std::ostream& stream, const TRootSuperCluster& clus) {
# Line 128 | Line 144 | protected:
144          std::vector<Int_t> subClusterIndex_;
145          Float_t preshowerEnergy_;
146          Float_t rawEnergy_;
147 +        TRef photon_;
148 +        TRef electron_;
149  
150 <        ClassDef (TRootSuperCluster,3);
150 >
151 >        ClassDef (TRootSuperCluster,4);
152   };
153  
154   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines