|
ATLAS Offline Software
|
Go to the documentation of this file.
37 declareInterface<IDataRetriever>(
this);
40 "Collection to be first in output, shown in Atlantis without switching");
42 "Other collections to be retrieved. If list left empty, all available retrieved");
59 if (
sc.isFailure() ) {
74 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
75 "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;
135 for (; muItr != muItrE; ++muItr) {
139 <<
", phi = " << (*muItr)->phi() <<
", pt = " << (*muItr)->pt()
140 <<
", pdgId = " << -13.*(*muItr)->primaryTrackParticle()->charge()
144 phi.push_back(
DataType((*muItr)->phi()));
145 eta.push_back(
DataType((*muItr)->eta()));
150 chi2.push_back( 1.0 );
151 pdgId.push_back(
DataType( -13.*(*muItr)->primaryTrackParticle()->charge() ));
JetConstituentVector::iterator iterator
char data[hepevt_bytes_allocation_ATLAS]
Const iterator class for DataVector/DataList.
virtual std::string dataTypeName() const
Return the name of the data type.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
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
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
std::map< std::string, DataVect > DataMap
xAODMuonRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const DataMap getData(const xAOD::MuonContainer *)
Retrieve basic parameters, mainly four-vectors, for each collection.
::StatusCode StatusCode
StatusCode definition for legacy code.
double chi2(TH1 *h0, TH1 *h1)
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.
std::vector< std::string > m_otherKeys
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.