7 #include "TLorentzVector.h"
16 ISvcLocator* pSvcLocator):
50 return StatusCode::SUCCESS;
55 return StatusCode::SUCCESS;
61 return StatusCode::SUCCESS;
78 return StatusCode::SUCCESS; }
79 ATH_MSG_DEBUG(
"TrackParticleContainer successfully retrieved" );
84 return StatusCode::SUCCESS; }
85 ATH_MSG_DEBUG(
"Primary Vertices container successfully retrieved" );
94 return StatusCode::SUCCESS; }
95 ATH_MSG_DEBUG(
"AntiKt4EMPflow jet container successfully retrieved" );
107 for(trackItr = trackTES->
begin(); trackItr != trackItrE; ++trackItr){
113 for(jetItr = jetTES->
begin(); jetItr != jetItrE; ++jetItr){
115 float curDeltaR = (itrk)->p4().DeltaR(curJet->
p4());
116 if(curDeltaR < minDeltaR) {minDeltaR = curDeltaR; closestJet = curJet;}
122 for(trackItr = trackTES->
begin(); trackItr != trackItrE; ++trackItr){
124 std::vector<float> v_tctScoresDeco = trackReadDecorHandleTCTScore(*itrk);
127 ATH_MSG_DEBUG(
"TCT score from decoration: " << v_tctScoresDeco.at(0) <<
", " << v_tctScoresDeco.at(1) <<
", "<< v_tctScoresDeco.at(2));
129 ATH_MSG_DEBUG(
"Calculated TCT score: " << v_tctScore.at(0) <<
", " << v_tctScore.at(1) <<
", " << v_tctScore.at(2));
131 for(
int j=0; j<=2 ; j++) {assert(
Athena_test::isEqual(v_tctScore.at(j),v_tctScoresDeco.at(j)));}
138 for(jetItr = jetTES->
begin(); jetItr != jetItrE; ++jetItr){
140 std::vector<const xAOD::TrackParticle*> trkparticles(0);
141 for(trackItr = trackTES->
begin(); trackItr != trackItrE; ++trackItr){
143 if((itrk)->p4().
DeltaR(ijet->
p4()) < 0.4) {trkparticles.push_back(itrk); }
149 for(jetItr = jetTES->
begin(); jetItr != jetItrE; ++jetItr){
151 std::vector<std::vector<float>> v_tctScoresDeco = jetReadDecorHandleTCTScore(*ijet);
152 std::vector<ElementLink<xAOD::TrackParticleContainer>> v_trackLinks = jetReadDecorHandleTrackLink(*ijet);
154 for(
unsigned int i=0;
i<v_tctScoresDeco.size();
i++)
156 ATH_MSG_DEBUG(
"TCT score from decoration: " << v_tctScoresDeco.at(
i).at(0) <<
", " << v_tctScoresDeco.at(
i).at(1) <<
", "<< v_tctScoresDeco.at(
i).at(2));
158 ATH_MSG_DEBUG(
"Calculated TCT score: " << v_tctScore.at(0) <<
", " << v_tctScore.at(1) <<
", " << v_tctScore.at(2));
160 for(
int j=0; j<=2 ; j++) {assert(
Athena_test::isEqual(v_tctScore.at(j),v_tctScoresDeco.at(
i).at(j)));}
170 return StatusCode::SUCCESS;