10 #include "CLHEP/Units/SystemOfUnits.h"
25 declareInterface<IDataRetriever>(
this);
28 "Collection to be first in output, shown in Atlantis without switching");
45 if (
sc.isFailure() ) {
58 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Unable to retrieve iterator for Jet collection" <<
endmsg;
74 return StatusCode::SUCCESS;
100 DataVect fracs1Vec; fracs1Vec.reserve(photcont->
size());
105 DataVect isEMString; isEMString.reserve(photcont->
size());
108 DataVect clusterKeyVec; clusterKeyVec.reserve(photcont->
size());
109 DataVect clusterIndexVec; clusterIndexVec.reserve(photcont->
size());
115 std::string clusterKey =
"none";
116 int clusterIndex = -1;
118 std::string photonAuthor =
"";
119 std::string photonIsEMString =
"none";
120 std::string photonLabel =
"";
124 for (; photonItr != photonItrE; ++photonItr) {
125 photonIsEMString =
"none";
126 photonAuthor =
"author"+
DataType( (*photonItr)->author() ).toString();
127 photonLabel = photonAuthor;
128 if (( (*photonItr)->author()) == 0x0){ photonAuthor =
"unknown"; photonLabel +=
"_unknown"; }
129 if (( (*photonItr)->author()) == 0x8){ photonAuthor =
"forward"; photonLabel +=
"_forward"; }
130 if (( (*photonItr)->author()) == 0x10){ photonAuthor =
"rconv"; photonLabel +=
"_recoveredconversion"; }
131 if (( (*photonItr)->author()) == 0x4){ photonAuthor =
"photon"; photonLabel +=
"_photon"; }
133 photonLabel +=
"_Loose";
134 photonIsEMString =
"Loose";
137 photonLabel +=
"_Tight";
138 photonIsEMString =
"Tight";
141 photonLabel +=
"_LooseAR";
144 photonLabel +=
"_TightAR";
147 photonLabel +=
"_TightARIso";
150 photonLabel +=
"_TightIso";
153 phi.emplace_back((*photonItr)->phi());
154 eta.emplace_back((*photonItr)->eta());
162 MCdataType = (*photonItr)->dataType();
163 if (MCdataType != 3){
164 isEM.emplace_back((**photonItr).isem() );
168 clusterKey = clusterLink.
dataID();
169 clusterIndex = clusterLink.
index();
170 clusterKeyVec.emplace_back( clusterKey );
171 clusterIndexVec.emplace_back( clusterIndex );
173 clusterKeyVec.emplace_back(
"none" );
174 clusterIndexVec.emplace_back( -1 );
185 f1Vec.emplace_back( -1.);
186 etConeVec.emplace_back( -1. );
187 fracs1Vec.emplace_back( -1. );
188 et37Vec.emplace_back( -1.);
191 isEM.emplace_back( 0 );
192 clusterKeyVec.emplace_back(
"none" );
193 clusterIndexVec.emplace_back( -1 );
194 f1Vec.push_back( -1.);
195 etConeVec.emplace_back( -1. );
196 fracs1Vec.emplace_back( -1. );
197 et37Vec.emplace_back( -1. );
198 photonLabel +=
"_fastSim";
199 photonIsEMString =
"fastSim";
201 author.emplace_back(photonAuthor );
202 label.emplace_back( photonLabel );
203 isEMString.emplace_back( photonIsEMString );
207 DataMap[
"phi"] = std::move(phi);
208 DataMap[
"eta"] = std::move(eta);
217 DataMap[
"isEM"] = std::move(isEM);
218 DataMap[
"clusterKey"] = std::move(clusterKeyVec);
219 DataMap[
"clusterIndex"] = std::move(clusterIndexVec);
221 DataMap[
"f1"] = std::move(f1Vec);
222 DataMap[
"etCone"] = std::move(etConeVec);
223 DataMap[
"fracs1"] = std::move(fracs1Vec);
224 DataMap[
"et37"] = std::move(et37Vec);
227 DataMap[
"isEMString"] = std::move(isEMString);