40 |
|
,nBasicClusters_(0) |
41 |
|
,subClusterUID_() |
42 |
|
,subClusterIndex_() |
43 |
+ |
,seedClusterVectorIndex_(-1) |
44 |
|
,preshowerEnergy_(0.) |
45 |
|
,rawEnergy_(0.) |
46 |
|
,photon_() |
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_) |
64 |
|
,nBasicClusters_(0) |
65 |
|
,subClusterUID_() |
66 |
|
,subClusterIndex_() |
67 |
+ |
,seedClusterVectorIndex_(-1) |
68 |
|
,preshowerEnergy_(0.) |
69 |
|
,rawEnergy_(0.) |
70 |
|
,photon_() |
76 |
|
,nBasicClusters_(0) |
77 |
|
,subClusterUID_() |
78 |
|
,subClusterIndex_() |
79 |
+ |
,seedClusterVectorIndex_(-1) |
80 |
|
,preshowerEnergy_(0.) |
81 |
|
,rawEnergy_(0.) |
82 |
|
,photon_() |
88 |
|
,nBasicClusters_(0) |
89 |
|
,subClusterUID_() |
90 |
|
,subClusterIndex_() |
91 |
+ |
,seedClusterVectorIndex_(-1) |
92 |
|
,preshowerEnergy_(0.) |
93 |
|
,rawEnergy_(0.) |
94 |
|
,photon_() |
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_; } |
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; } |
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 |