![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "CLHEP/Units/SystemOfUnits.h"
13 #include "CaloEvent/CaloClusterContainer.h"
28 declareInterface<IDataRetriever>(
this);
31 "Collection to be first in output, shown in Atlantis without switching");
48 if (
sc.isFailure() ) {
61 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Unable to retrieve iterator for Jet collection" <<
endmsg;
68 (
iterator.key() !=
"CaloESDMuonCollection" )) {
74 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING) <<
"Collection " <<
iterator.key() <<
" not found in SG " <<
endmsg;
81 return StatusCode::SUCCESS;
107 DataVect etConeIsol; etConeIsol.reserve(muoncont->
size());
111 DataVect clusterKeyVec; clusterKeyVec.reserve(muoncont->
size());
112 DataVect clusterIndexVec; clusterIndexVec.reserve(muoncont->
size());
113 DataVect trackKeyVec; trackKeyVec.reserve(muoncont->
size());
114 DataVect trackIndexVec; trackIndexVec.reserve(muoncont->
size());
120 std::string clusterKey =
"none";
121 int clusterIndex = -1;
122 std::string trackKey =
"none";
125 for (; muonItr != muonItrE; ++muonItr) {
137 std::string muonAuthor =
"none";
138 if (( (*muonItr)->author()) == 0){ muonAuthor =
"unknown"; }
139 if (( (*muonItr)->author()) == 1){ muonAuthor =
"highpt"; }
140 if (( (*muonItr)->author()) == 2){ muonAuthor =
"lowpt"; }
143 MCdataType = (*muonItr)->dataType();
149 if (MCdataType != 3){
150 chi2.push_back(
DataType((*muonItr)->matchChi2OverDoF() ) );
158 " Muon: matchChi2OverDoF: " << (*muonItr)->matchChi2OverDoF() <<
159 ", matchChi2: " << (*muonItr)->matchChi2() <<
160 ", fitChi2: " << (*muonItr)->fitChi2() <<
161 ", isCombined: " << (
int)(*muonItr)->isCombinedMuon() <<
endmsg;
170 trackKey = trackLink.
dataID();
171 trackIndex = trackLink.
index();
172 trackKeyVec.push_back(
DataType( trackKey ));
173 trackIndexVec.push_back(
DataType( trackIndex ));
175 trackKeyVec.push_back(
DataType(
"none" ) );
176 trackIndexVec.push_back(
DataType( -1 ) );
180 clusterKey = clusterLink.
dataID();
181 clusterIndex = clusterLink.
index();
182 clusterKeyVec.push_back(
DataType( clusterKey ));
183 clusterIndexVec.push_back(
DataType( clusterIndex ));
185 clusterKeyVec.push_back(
DataType(
"none" ));
186 clusterIndexVec.push_back(
DataType( -1 ));
191 etConeIsol.push_back(
DataType( 0 ) );
192 trackKeyVec.push_back(
DataType(
"none" ));
193 trackIndexVec.push_back(
DataType( -1 ));
194 clusterKeyVec.push_back(
DataType(
"none" ));
195 clusterIndexVec.push_back(
DataType( -1 ));
210 DataMap[
"etConeIsol"] = etConeIsol;
215 DataMap[
"clusterKey"] = clusterKeyVec;
216 DataMap[
"clusterIndex"] = clusterIndexVec;
217 DataMap[
"trackKey"] = trackKeyVec;
218 DataMap[
"trackIndex"] = trackIndexVec;
JetConstituentVector::iterator iterator
char data[hepevt_bytes_allocation_ATLAS]
Const iterator class for DataVector/DataList.
Scalar phi() const
phi method
virtual StatusCode retrieve(ToolHandle< IFormatTool > &FormatTool)
Retrieve all the data.
Scalar eta() const
pseudorapidity method
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
std::map< std::string, DataVect > DataMap
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.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::StatusCode StatusCode
StatusCode definition for legacy code.
double chi2(TH1 *h0, TH1 *h1)
const DataMap getData(const Analysis::MuonContainer *)
Retrieve basic parameters, mainly four-vectors, for each collection.
definition of StoreGate container holding a vector of Analysis::Muon
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.
virtual std::string dataTypeName() const
Return the name of the data type.
size_type size() const noexcept
Returns the number of elements in the collection.
MuonRetriever(const std::string &type, const std::string &name, const IInterface *parent)
Standard Constructor.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.