7 #include "CLHEP/Units/SystemOfUnits.h"
30 declareInterface<IDataRetriever>(
this);
34 "Collection to be first in output, shown in Atlantis without switching");
36 "Track collections to retrieve first, shown as default in Atlantis");
55 if (
sc.isFailure() ) {
69 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Unable to retrieve iterator for Jet collection" <<
endmsg;
82 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Collection " <<
iterator.key() <<
" not found in SG " <<
endmsg;
90 std::vector<std::string>::const_iterator keyIter;
92 if ( !
evtStore()->contains<xAOD::TrackParticleContainer>( (*keyIter) ) ){
continue; }
94 if (!
sc.isFailure()) {
97 if ( FormatTool->AddToEvent(
dataTypeName(), (*keyIter)+
"_xAOD", &
data).isFailure()){
98 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Collection " << (*keyIter) <<
" not found in SG " <<
endmsg;
106 return StatusCode::SUCCESS;
126 DataVect nBLayerHits; nBLayerHits.reserve(TrackParticleCont->
size());
127 DataVect nPixHits; nPixHits.reserve(TrackParticleCont->
size());
137 double countHits = 0.;
138 std::string labelStr =
"unknownHits";
140 for (; TrackParticleItr != TrackParticleItrE; ++TrackParticleItr) {
143 msg(
MSG::VERBOSE) <<
" TrackParticle #" <<
counter++ <<
" : d0 = " << (*TrackParticleItr)->d0() <<
", z0 = "
144 << (*TrackParticleItr)->z0() <<
", pt[GeV] = " << (*TrackParticleItr)->pt()*(1./
CLHEP::GeV)
145 <<
", phi = " << (*TrackParticleItr)->phi()
146 <<
", qOverP = " << (*TrackParticleItr)->qOverP()
147 <<
", abs(qOverP) = " << fabs((*TrackParticleItr)->qOverP())
154 uint8_t numberOfBLayerHits_tmp=0;
159 uint8_t numberOfPixelHits_tmp = 0;
164 uint8_t numberOfTRTHits_tmp = 0;
169 uint8_t numberOfSCTHits_tmp = 0;
186 <<
", Total hits: " << countHits
187 <<
"; Label: " << labelStr <<
endmsg;
200 myQOverP = (*TrackParticleItr)->qOverP() ;
201 if (fabs(myQOverP) != myQOverP){
208 if ( (*TrackParticleItr)->theta() == 0.) {
222 DataMap[
"nBLayerHits"] = nBLayerHits;
223 DataMap[
"nPixHits"] = nPixHits;