Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
34 return StatusCode::SUCCESS;
38 for (
const std::string&
key :
keys) {
51 return StatusCode::SUCCESS;
80 for (; phItr != phItrE; ++phItr) {
84 std::string photonAuthor =
"";
85 std::string photonIsEMString =
"none";
86 std::string photonLabel =
"";
88 phi.emplace_back(
DataType((*phItr)->phi()));
89 eta.emplace_back(
DataType((*phItr)->eta()));
92 bool passesTight(
false);
93 bool passesMedium(
false);
94 bool passesLoose(
false);
95 const bool tightSelectionExists = (*phItr)->passSelection(passesTight,
"Tight");
97 <<
" and passes? " << passesTight);
98 const bool mediumSelectionExists = (*phItr)->passSelection(passesMedium,
"Medium");
100 <<
" and passes? " << passesMedium);
101 const bool looseSelectionExists = (*phItr)->passSelection(passesLoose,
"Loose");
103 <<
" and passes? " << passesLoose);
105 photonAuthor =
"author"+
DataType( (*phItr)->author() ).toString();
106 photonLabel = photonAuthor;
107 if (( (*phItr)->author()) == 0){ photonAuthor =
"unknown"; photonLabel +=
"_unknown"; }
108 if (( (*phItr)->author()) == 8){ photonAuthor =
"forward"; photonLabel +=
"_forward"; }
109 if (( (*phItr)->author()) == 2){ photonAuthor =
"softe"; photonLabel +=
"_softe"; }
110 if (( (*phItr)->author()) == 1){ photonAuthor =
"egamma"; photonLabel +=
"_egamma"; }
113 photonLabel +=
"_Loose";
114 photonIsEMString =
"Loose";
117 photonLabel +=
"_Medium";
118 photonIsEMString =
"Medium";
121 photonLabel +=
"_Tight";
122 photonIsEMString =
"Tight";
126 isEMString.emplace_back(
DataType( photonIsEMString ) );
138 DataMap[
"isEMString"] = isEMString;
152 std::vector<std::string>
keys = {};
170 std::vector<std::string> allKeys;
174 for(
const std::string&
key : allKeys){
177 if(it2 !=
keys.end())
continue;
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.
Gaudi::Property< std::string > m_priorityKey
std::string find(const std::string &s)
return a remapped string
std::vector< DataType > DataVect
Defines a map with a key and a vector of DataType objects e.g.
Gaudi::Property< std::vector< std::string > > m_otherKeys
#define ATH_MSG_VERBOSE(x)
std::map< std::string, DataVect > DataMap
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
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.
Gaudi::Property< bool > m_doWriteHLT
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)
size_type size() const noexcept
Returns the number of elements in the collection.
const std::vector< std::string > getKeys()
Gets the StoreGate keys for the desired containers.
Gaudi::Property< bool > m_doWriteAllCollections
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.