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.3 by lethuill, Tue Nov 18 13:57:10 2008 UTC vs.
Revision 1.4 by lethuill, Mon Feb 9 16:10:09 2009 UTC

# Line 40 | Line 40 | public:
40                          ,nBasicClusters_(0)
41                          ,subClusterUID_()
42                          ,subClusterIndex_()
43 +                        ,seedClusterVectorIndex_(-1)
44                          ,preshowerEnergy_(0.)
45                          ,rawEnergy_(0.)
46                          ,photon_()
# Line 51 | Line 52 | public:
52                          ,nBasicClusters_(cluster.nBasicClusters_)
53                          ,subClusterUID_(cluster.subClusterUID_)
54                          ,subClusterIndex_(cluster.subClusterIndex_)
55 +                        ,seedClusterVectorIndex_(cluster.seedClusterVectorIndex_)
56                          ,preshowerEnergy_(cluster.preshowerEnergy_)
57                          ,rawEnergy_(cluster.rawEnergy_)
58                          ,photon_(cluster.photon_)
# Line 62 | Line 64 | public:
64                          ,nBasicClusters_(0)
65                          ,subClusterUID_()
66                          ,subClusterIndex_()
67 +                        ,seedClusterVectorIndex_(-1)
68                          ,preshowerEnergy_(0.)
69                          ,rawEnergy_(0.)
70                          ,photon_()
# Line 73 | Line 76 | public:
76                          ,nBasicClusters_(0)
77                          ,subClusterUID_()
78                          ,subClusterIndex_()
79 +                        ,seedClusterVectorIndex_(-1)
80                          ,preshowerEnergy_(0.)
81                          ,rawEnergy_(0.)
82                          ,photon_()
# Line 84 | Line 88 | public:
88                          ,nBasicClusters_(0)
89                          ,subClusterUID_()
90                          ,subClusterIndex_()
91 +                        ,seedClusterVectorIndex_(-1)
92                          ,preshowerEnergy_(0.)
93                          ,rawEnergy_(0.)
94                          ,photon_()
# Line 96 | Line 101 | public:
101          Int_t nBasicClusters() const   { return nBasicClusters_; }
102          std::vector<Int_t> subClusterUID() const { return subClusterUID_; }
103          std::vector<Int_t> subClusterIndex() const { return subClusterIndex_; }
104 <        Int_t seedIndex() const
104 >        Int_t seedIndex() const
105          {
106 <                if(subClusterIndex_.size()>0)
107 <                {
108 <                        return subClusterIndex_.at(0);
106 >                if( Int_t(subClusterIndex_.size())>seedClusterVectorIndex_)
107 >                {
108 >                        return subClusterIndex_.at(seedClusterVectorIndex_);
109                  }
110                  else
111                  {
112                          cout << "No seed BasicCluster in this SuperCluster...." << endl;
113 <                        return 0;
114 <                }
113 >                        return -1;
114 >                }
115          }
116          
117          Float_t preshowerEnergy() const   { return preshowerEnergy_; }
# Line 121 | Line 126 | public:
126          void clearSubClusterUID() { subClusterUID_.clear(); }
127          void addSubClusterIndex(Int_t idx) { subClusterIndex_.push_back(idx); }
128          void clearSubClusterIndex() { subClusterIndex_.clear(); }
129 +        void setSeedClusterVectorIndex(Int_t  seedClusterVectorIndex) { seedClusterVectorIndex_ = seedClusterVectorIndex; }
130          void setPreshowerEnergy(Float_t preshowerEnergy) { preshowerEnergy_ = preshowerEnergy; }
131          void setRawEnergy(Float_t rawEnergy) { rawEnergy_ = rawEnergy; }
132          void setPhoton(TObject* photon) { photon_ = photon; }
# Line 142 | Line 148 | protected:
148          Int_t nBasicClusters_;
149          std::vector<Int_t> subClusterUID_;
150          std::vector<Int_t> subClusterIndex_;
151 +        Int_t seedClusterVectorIndex_; // position in subClusterIndex_ vector containing the index of the seed basic cluster in the TRootBasicCluster array
152          Float_t preshowerEnergy_;
153          Float_t rawEnergy_;
154          TRef photon_;
155          TRef electron_;
156  
157 <
158 <        ClassDef (TRootSuperCluster,4);
157 >        
158 >        ClassDef (TRootSuperCluster,5);
159   };
160  
161   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines