![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
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;
67 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Collection " <<
iterator.key() <<
" not found in SG " <<
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";
162 MCdataType = (*photonItr)->dataType();
165 if (MCdataType != 3){
166 isEM.push_back(
DataType((**photonItr).isem()) );
170 clusterKey = clusterLink.
dataID();
171 clusterIndex = clusterLink.
index();
172 clusterKeyVec.push_back(
DataType( clusterKey ));
173 clusterIndexVec.push_back(
DataType( clusterIndex ));
175 clusterKeyVec.push_back(
DataType(
"none" ));
176 clusterIndexVec.push_back(
DataType( -1 ));
190 etConeVec.push_back(
DataType( -1. ));
191 fracs1Vec.push_back(
DataType( -1. ));
196 clusterKeyVec.push_back(
DataType(
"none" ));
197 clusterIndexVec.push_back(
DataType( -1 ));
198 f1Vec.push_back( -1.);
199 etConeVec.push_back(
DataType( -1. ));
200 fracs1Vec.push_back(
DataType( -1. ));
202 photonLabel +=
"_fastSim";
203 photonIsEMString =
"fastSim";
207 isEMString.push_back(
DataType( photonIsEMString ) );
221 DataMap[
"clusterKey"] = clusterKeyVec;
222 DataMap[
"clusterIndex"] = clusterIndexVec;
230 DataMap[
"isEMString"] = isEMString;
JetConstituentVector::iterator iterator
const unsigned int PhotonLooseAR
Loose photon selection with Ambiguity resolver.
char data[hepevt_bytes_allocation_ATLAS]
Const iterator class for DataVector/DataList.
PhotonRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
const DataMap getData(const PhotonContainer *)
Retrieve basic parameters, mainly four-vectors, for each collection.
Scalar phi() const
phi method
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const unsigned int PhotonLoose
Loose photon selection.
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
bool msgLvl(const MSG::Level lvl) const
const unsigned int PhotonTightIso
Tight photon selection with isolation.
std::map< std::string, DataVect > DataMap
virtual double parameter(egammaParameters::ParamDef) const
bool isValid() const
Test to see if the link can be dereferenced.
const ID_type & dataID() const
Get the key that we reference, as a string.
@ fracs1
shower shape in the shower core : [E(+/-3)-E(+/-1)]/E(+/-1), where E(+/-n) is the energy in +- n stri...
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
@ etcone20
ET in a cone with half-opening angle 0.2, with exclusion of a window of size 7x5 in electromagnetic c...
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual std::string dataTypeName() const
Return the name of the data type.
@ e237
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x7
const unsigned int PhotonTightAR
Tight photon selection with Ambiguity resolver.
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
index_type index() const
Get the index of the element inside of its container.
const unsigned int PhotonTight
Tight photon selection.
const unsigned int PhotonTightARIso
Tight photon selection with isolation and Ambiguity resolver.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
@ f1
E1/E = fraction of energy reconstructed in the first sampling, where E1 is energy in all strips belon...
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.