34 declareInterface<IDataRetriever>(
this);
37 "Collection to be first in output, shown in Atlantis without switching");
39 "Other collections to be retrieved. If list left empty, all available retrieved");
57 if (
sc.isFailure() ) {
71 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
72 "Unable to retrieve iterator for xAOD Muon collection" <<
endmsg;
84 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Collection " <<
iterator.key() <<
" not found in SG " <<
endmsg;
92 std::vector<std::string>::const_iterator keyIter;
95 if (!
sc.isFailure()) {
99 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Collection " << (*keyIter) <<
" not found in SG " <<
endmsg;
108 return StatusCode::SUCCESS;
128 DataVect isEMString; isEMString.reserve(phCont->
size());
137 for (; phItr != phItrE; ++phItr) {
141 << (*phItr)->phi() <<
endmsg;
144 std::string photonAuthor =
"";
145 std::string photonIsEMString =
"none";
146 std::string photonLabel =
"";
152 bool passesTight(
false);
153 bool passesMedium(
false);
154 bool passesLoose(
false);
155 const bool tightSelectionExists = (*phItr)->passSelection(passesTight,
"Tight");
157 <<
" and passes? " << passesTight <<
endmsg;
158 const bool mediumSelectionExists = (*phItr)->passSelection(passesMedium,
"Medium");
160 <<
" and passes? " << passesMedium <<
endmsg;
161 const bool looseSelectionExists = (*phItr)->passSelection(passesLoose,
"Loose");
163 <<
" and passes? " << passesLoose <<
endmsg;
165 photonAuthor =
"author"+
DataType( (*phItr)->author() ).toString();
166 photonLabel = photonAuthor;
167 if (( (*phItr)->author()) == 0){ photonAuthor =
"unknown"; photonLabel +=
"_unknown"; }
168 if (( (*phItr)->author()) == 8){ photonAuthor =
"forward"; photonLabel +=
"_forward"; }
169 if (( (*phItr)->author()) == 2){ photonAuthor =
"softe"; photonLabel +=
"_softe"; }
170 if (( (*phItr)->author()) == 1){ photonAuthor =
"egamma"; photonLabel +=
"_egamma"; }
173 photonLabel +=
"_Loose";
174 photonIsEMString =
"Loose";
177 photonLabel +=
"_Medium";
178 photonIsEMString =
"Medium";
181 photonLabel +=
"_Tight";
182 photonIsEMString =
"Tight";
186 isEMString.push_back(
DataType( photonIsEMString ) );
198 DataMap[
"isEMString"] = isEMString;