 |
ATLAS Offline Software
|
Go to the documentation of this file.
25 return StatusCode::SUCCESS;
52 return StatusCode::SUCCESS;
81 for (; phItr != phItrE; ++phItr) {
85 std::string photonAuthor =
"";
86 std::string photonIsEMString =
"none";
87 std::string photonLabel =
"";
89 phi.emplace_back(
DataType((*phItr)->phi()));
90 eta.emplace_back(
DataType((*phItr)->eta()));
93 bool passesTight(
false);
94 bool passesMedium(
false);
95 bool passesLoose(
false);
96 const bool tightSelectionExists = (*phItr)->passSelection(passesTight,
"Tight");
98 <<
" and passes? " << passesTight);
99 const bool mediumSelectionExists = (*phItr)->passSelection(passesMedium,
"Medium");
101 <<
" and passes? " << passesMedium);
102 const bool looseSelectionExists = (*phItr)->passSelection(passesLoose,
"Loose");
104 <<
" and passes? " << passesLoose);
106 photonAuthor =
"author"+
DataType( (*phItr)->author() ).toString();
107 photonLabel = photonAuthor;
108 if (( (*phItr)->author()) == 0){ photonAuthor =
"unknown"; photonLabel +=
"_unknown"; }
109 if (( (*phItr)->author()) == 8){ photonAuthor =
"forward"; photonLabel +=
"_forward"; }
110 if (( (*phItr)->author()) == 2){ photonAuthor =
"softe"; photonLabel +=
"_softe"; }
111 if (( (*phItr)->author()) == 1){ photonAuthor =
"egamma"; photonLabel +=
"_egamma"; }
114 photonLabel +=
"_Loose";
115 photonIsEMString =
"Loose";
118 photonLabel +=
"_Medium";
119 photonIsEMString =
"Medium";
122 photonLabel +=
"_Tight";
123 photonIsEMString =
"Tight";
127 isEMString.emplace_back(
DataType( photonIsEMString ) );
139 DataMap[
"isEMString"] = isEMString;
char data[hepevt_bytes_allocation_ATLAS]
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
For each photon collection retrieve basic parameters.
Const iterator class for DataVector/DataList.
const DataMap getData(const xAOD::PhotonContainer *)
Puts the variables into a DataMap.
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
#define ATH_MSG_VERBOSE(x)
std::map< std::string, DataVect > DataMap
SG::ReadHandleKeyArray< xAOD::PhotonContainer > m_keys
xAODPhotonRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
virtual std::string dataTypeName() const
Return the name of the data type that is generated by this retriever.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Wrapper to avoid constant divisions when using units.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
#define ATH_MSG_WARNING(x)
virtual StatusCode initialize()
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.