11 #include "GaudiKernel/MsgStream.h"
38 ISvcLocator* pSvcLocator) :
72 ss <<
"odd_" <<
i <<
"_Tracks";
75 ss <<
"even_" <<
i <<
"_Tracks";
78 ss <<
"all_" <<
i <<
"_Tracks";
85 return StatusCode::SUCCESS;
94 return StatusCode::SUCCESS;
108 if (
sc.isFailure()) {
129 if(
sc.isFailure() || !tpbTES ) {
131 return StatusCode::SUCCESS;
133 ATH_MSG_DEBUG(
"TrackParticleCandidate Collection successfully retrieved");
137 if(
sc.isFailure() || !trkTES ) {
139 return StatusCode::SUCCESS;
141 ATH_MSG_DEBUG(
"TrackParticleCandidate Collection successfully retrieved");
144 std::map<std::string,TrackCollection*> trackmap;
145 std::map<std::string,Trk::TrackParticleBaseCollection*> tpbmap;
151 trackmap[
key] = tempTracks;
161 tpbmap[
key] = tempTpbs;
162 if (
evtStore()->contains<Trk::TrackParticleBaseCollection>(
key) &&
174 std::string oeNameString;
175 std::stringstream sss;
176 oeNameString.reserve(20);
177 for (
const auto * tpb: *tpbTES){
182 oeNameString.clear();
183 if (
m_isOdd) oeNameString =
"odd";
184 if (!
m_isOdd) oeNameString =
"even";
186 sss << oeNameString <<
"_" <<
m_addToVx <<
"_Tracks";
187 std::string oecontainerName = sss.str();
188 std::string allNameString =
"all";
190 sss << allNameString <<
"_" <<
m_addToVx <<
"_Tracks";
191 std::string allcontainerName = sss.str();
194 ATH_MSG_DEBUG(
"found a trackparticlebase, with momentum "<<tpb->definingParameters().momentum()<<
" giving it the key: "<< oecontainerName);
195 tpbmap[oecontainerName]->push_back(trkCopy1);
196 ATH_MSG_DEBUG(
"found a trackparticlebase, with momentum "<<tpb->definingParameters().momentum()<<
" giving it the key: "<< allcontainerName);
197 tpbmap[allcontainerName]->push_back(trkCopy2);
205 std::cout<<
"NotYet Implemented"<<std::endl;
223 return StatusCode::SUCCESS;