22 declareInterface<DerivationFramework::IAugmentationTool>(
this);
38 for (
unsigned int its = 0; its < nTrackSels; ++its) {
57 return StatusCode::SUCCESS;
65 return StatusCode::SUCCESS;
75 return StatusCode::FAILURE;
83 return StatusCode::FAILURE;
88 std::vector <int> TrackParticleMultiplicity(nTrackSels,0);
89 for(
auto tp : *tracks)
93 for (
unsigned int its = 0; its < nTrackSels; ++its) {
99 for (
unsigned int its = 0; its < nTrackSels; ++its) {
111 float HalfFCalEtA = 0;
112 float HalfFCalEtC = 0;
130 return StatusCode::FAILURE;
134 for(
const auto* ptrEvtShp : *eventShape){
135 if(ptrEvtShp->layer()!=21 && ptrEvtShp->layer()!=22 &&
136 ptrEvtShp->layer()!=23)
continue;
138 float eta = ptrEvtShp->etaMin();
139 const std::vector<float>&
c1 = ptrEvtShp->etCos();
140 const std::vector<float>&s1 = ptrEvtShp->etSin();
143 FCalEtA += ptrEvtShp->et();
145 FCalEtA_Qnx.at(vn-1) +=
c1.at(vn);
146 FCalEtA_Qny.at(vn-1) += s1.at(vn);
149 HalfFCalEtA += ptrEvtShp->et();
151 HalfFCalEtA_Qnx.at(vn-1) +=
c1.at(vn);
152 HalfFCalEtA_Qny.at(vn-1) += s1.at(vn);
155 }
else if (eta < 0) {
156 FCalEtC += ptrEvtShp->et();
158 FCalEtC_Qnx.at(vn-1) +=
c1.at(vn);
159 FCalEtC_Qny.at(vn-1) += s1.at(vn);
162 HalfFCalEtC += ptrEvtShp->et();
164 HalfFCalEtC_Qnx.at(vn-1) +=
c1.at(vn);
165 HalfFCalEtC_Qny.at(vn-1) += s1.at(vn);
171 decFCalEtA(*eventInfo) = FCalEtA;
172 decFCalEtC(*eventInfo) = FCalEtC;
173 decHalfFCalEtA(*eventInfo) = HalfFCalEtA;
174 decHalfFCalEtC(*eventInfo) = HalfFCalEtC;
186 return StatusCode::SUCCESS;