|
ATLAS Offline Software
|
Algorithm to dump some Event data to JSON.
More...
#include <DumpEventDataToJsonAlg.h>
|
| DumpEventDataToJsonAlg (const std::string &name, ISvcLocator *pService) |
| Algorithm constructor. More...
|
|
virtual | ~DumpEventDataToJsonAlg ()=default |
|
virtual StatusCode | initialize () override |
| inherited from Algorithm More...
|
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () override |
|
template<> |
nlohmann::json | getData (const xAOD::Jet &jet) |
|
template<> |
nlohmann::json | getData (const xAOD::CaloCluster &clust) |
|
template<> |
nlohmann::json | getData (const CaloCell &cell) |
|
template<> |
nlohmann::json | getData (const xAOD::TrackParticle &tp) |
|
template<> |
nlohmann::json | getData (const Trk::Track &track) |
|
template<> |
nlohmann::json | getData (const xAOD::Muon &muon) |
|
template<> |
nlohmann::json | getData (const xAOD::TauJet &tauJet) |
|
template<> |
nlohmann::json | getData (const xAOD::Electron &electron) |
|
template<> |
nlohmann::json | getData (const xAOD::Photon &photon) |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
void | prependTestEvent () |
| Dumps a dummy event with some objects at specific eta/phi coordinates for calibration. More...
|
|
template<class TYPE > |
StatusCode | getAndFillArrayOfContainers (nlohmann::json &event, const SG::ReadHandleKeyArray< TYPE > &keys, const std::string &jsonType) |
|
template<class TYPE > |
StatusCode | getAndFillContainer (nlohmann::json &event, const SG::ReadHandleKey< TYPE > &key, const std::string &jsonType) |
|
template<class TYPE > |
nlohmann::json | getData (const TYPE &object) |
|
nlohmann::json | getActsData (const Acts::TrackProxy< ActsTrk::TrackSummaryContainer, ActsTrk::MultiTrajectory, ActsTrk::DataLinkHolder, true > &track, const Acts::GeometryContext &gctx) |
|
template<class TYPE > |
void | addLink (const TYPE &link, nlohmann::json &data) |
|
void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution More...
|
|
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
|
void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. More...
|
|
|
SG::ReadHandleKey< xAOD::EventInfo > | m_eventInfoKey {this, "EventInfoKey", "EventInfo", "Key for the Event Info"} |
|
SG::ReadHandleKeyArray< xAOD::TrackParticleContainer > | m_trackParticleKeys {this, "TrackParticleContainerKeys", {"InDetTrackParticles", "CombinedMuonTrackParticles"}, "Keys for TrackParticle Containers"} |
|
SG::ReadHandleKeyArray< xAOD::JetContainer > | m_jetKeys {this, "JetContainerKeys", {"AntiKt4EMTopoJets"}, "Keys for Jet Containers"} |
|
SG::ReadHandleKeyArray< xAOD::MuonContainer > | m_muonKeys {this, "MuonContainerKeys", {"Muons"}, "Keys for Muon Containers"} |
|
SG::ReadHandleKeyArray< xAOD::TauJetContainer > | m_tauJetKeys {this, "TauJetContainerKeys", {"TauJets"}, "Keys for Tau Containers"} |
|
SG::ReadHandleKeyArray< xAOD::ElectronContainer > | m_electronKeys {this, "ElectronContainerKeys", {"Electrons"}, "Keys for Electron Containers"} |
|
SG::ReadHandleKeyArray< xAOD::PhotonContainer > | m_photonKeys {this, "PhotonContainerKeys", {"Photons"}, "Keys for Photon Containers"} |
|
SG::ReadHandleKeyArray< xAOD::CaloClusterContainer > | m_caloClustersKeys {this, "CaloClusterContainerKeys", {"CaloCalTopoClusters"}, "Keys for CaloClusters Containers"} |
|
SG::ReadHandleKeyArray< CaloCellContainer > | m_caloCellKey {this, "CaloCellContainerKey", {"AllCalo"}, "Key for CaloCell Container"} |
|
SG::ReadHandleKeyArray< TrackCollection > | m_trackCollectionKeys {this, "TrackCollectionKeys", {"CombinedInDetTracks", "CombinedMuonTracks", "MuonSpectrometerTracks"}, "Keys for Track Containers"} |
|
SG::ReadHandleKeyArray< ActsTrk::TrackContainer > | m_trackContainerKeys {this, "TrackContainerKeys", {"ConvertedTracks"}, "Location of the converted Acts TrackContainer"} |
|
SG::ReadHandleKey< Muon::CscPrepDataContainer > | m_cscPrepRawDataKey {this, "CscPrepRawDataKey", "CSC_Clusters", "Key for CSC PRD Container"} |
|
SG::ReadHandleKey< Muon::MdtPrepDataContainer > | m_mdtPrepRawDataKey {this, "MdtPrepRawDataKey", "MDT_DriftCircles", "Key for MDT PRD Container"} |
|
SG::ReadHandleKey< Muon::RpcPrepDataContainer > | m_rpcPrepRawDataKey {this, "RpcPrepRawDataKey", "RPC_Measurements", "Key for RPC PRD Container"} |
|
SG::ReadHandleKey< Muon::TgcPrepDataContainer > | m_tgcPrepRawDataKey {this, "TgcPrepRawDataKey", "TGC_MeasurementsAllBCs", "Key for TGC PRD Container"} |
|
SG::ReadHandleKey< Muon::MMPrepDataContainer > | m_mmPrepRawDataKey {this, "MMPrepRawDataKey", "MM_Measurements", "Key for MM PRD Container"} |
|
SG::ReadHandleKey< Muon::sTgcPrepDataContainer > | m_stgcPrepRawDataKey {this, "sTgcPrepRawDataKey", "STGC_Measurements", "Key for sTGC PRD Container"} |
|
SG::ReadHandleKey< InDet::PixelClusterContainer > | m_pixelPrepRawDataKey {this, "PixelPrepRawDataKey", "PixelClusters", "Key for Pixel PRD Container"} |
|
SG::ReadHandleKey< InDet::SCT_ClusterContainer > | m_sctPrepRawDataKey {this, "SctPrepRawDataKey", "SCT_Clusters", "Key for SCT PRD Container"} |
|
SG::ReadHandleKey< InDet::TRT_DriftCircleContainer > | m_trtPrepRawDataKey {this, "TrtPrepRawDataKey", "TRT_DriftCircles", "Key for TRT PRD Container"} |
|
ToolHandle< Trk::IExtrapolationEngine > | m_extrapolator {this, "Extrapolator", "Trk::ExtrapolationEngine/AtlasExtrapolation"} |
|
SG::ReadHandleKey< ActsGeometryContext > | m_geometryContextKey |
|
Gaudi::Property< std::string > | m_outputJSON_Name {this, "OutputLocation", "EventData.json", "Default filename for "} |
|
Gaudi::Property< bool > | m_dumpTestEvent {this, "DumpTestEvent", false, "If true, prepend a test event with some calibration data in it."} |
|
Gaudi::Property< bool > | m_physlite {this, "PHYSLITE", false, "If true, do not try to access data which is not available in PHYSLITE files."} |
|
nlohmann::json | m_eventData |
|
Algorithm to dump some Event data to JSON.
Definition at line 49 of file DumpEventDataToJsonAlg.h.
◆ StoreGateSvc_t
◆ DumpEventDataToJsonAlg()
DumpEventDataToJsonAlg::DumpEventDataToJsonAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pService |
|
) |
| |
◆ ~DumpEventDataToJsonAlg()
virtual DumpEventDataToJsonAlg::~DumpEventDataToJsonAlg |
( |
| ) |
|
|
virtualdefault |
◆ addLink()
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode DumpEventDataToJsonAlg::execute |
( |
| ) |
|
|
overridevirtual |
Definition at line 135 of file DumpEventDataToJsonAlg.cxx.
137 if (!eventInfo.isValid()) {
139 return StatusCode::SUCCESS;
148 <<
" Event num: " << eventInfo->eventNumber());
151 j[
"event number"] = eventInfo->eventNumber();
152 j[
"run number"] = eventInfo->runNumber();
171 ATH_MSG_VERBOSE(
"TrackStateContainer has "<< tcHandle->size() <<
" elements");
173 ATH_MSG_VERBOSE(
"Trying to load " << tcHandle.key() <<
" with " << tcHandle->size() <<
" tracks");
175 for (
auto track : *tc) {
177 j[
"TrackContainers"][tcHandle.key()].push_back(
tmp);
200 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode DumpEventDataToJsonAlg::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getActsData()
Definition at line 80 of file DumpEventDataToJsonAlg.cxx.
89 const Acts::BoundTrackParameters trackparams(
track.referenceSurface().getSharedPtr(),
91 auto trackPosition = trackparams.position(gctx);;
92 data[
"pos"].push_back(trackPosition.x());
93 data[
"pos"].push_back(trackPosition.y());
94 data[
"pos"].push_back(trackPosition.z());
96 unsigned int nTrackStates =
track.nTrackStates();
100 std::vector<ActsTrk::MultiTrajectory::ConstTrackStateProxy> trackStates;
101 trackStates.reserve(nTrackStates);
102 for (
auto trackstate :
track.trackStatesReversed()) {
103 trackStates.push_back(trackstate);
108 unsigned int count = 0;
109 for (
auto trackstate : trackStates) {
111 if (trackstate.hasSmoothed() && trackstate.hasReferenceSurface()) {
112 const Acts::BoundTrackParameters
params(trackstate.referenceSurface().getSharedPtr(),
113 trackstate.smoothed(),
114 trackstate.smoothedCovariance(),
119 data[
"pos"].push_back(
pos.x());
120 data[
"pos"].push_back(
pos.y());
121 data[
"pos"].push_back(
pos.z());
126 ATH_MSG_WARNING(
"TrackState "<<
count<<
" does not have smoothed state ["<<trackstate.hasSmoothed()<<
"] or reference surface ["<<trackstate.hasReferenceSurface()<<
"]. Skipping.");
◆ getAndFillArrayOfContainers()
Definition at line 263 of file DumpEventDataToJsonAlg.cxx.
271 for (
auto object : *handle) {
273 event[jsonType][handle.key()].push_back(
tmp);
276 return StatusCode::SUCCESS;
◆ getAndFillContainer()
Definition at line 497 of file DumpEventDataToJsonAlg.cxx.
501 return StatusCode::SUCCESS;
508 <<
" collections: ");
511 if (!
tmp.is_null()) {
512 ATH_MSG_VERBOSE(
"Writing " << jsonType <<
" : " << handle.key() <<
" with"
513 <<
tmp.size() <<
" elements:");
514 event[jsonType][handle.key()] =
tmp;
516 return StatusCode::SUCCESS;
◆ getData() [1/10]
◆ getData() [2/10]
Definition at line 381 of file DumpEventDataToJsonAlg.cxx.
400 track.trackParameters();
403 data[
"pos"].push_back(param->position().x());
404 data[
"pos"].push_back(param->position().y());
405 data[
"pos"].push_back(param->position().z());
409 track.measurementsOnTrack();
412 data[
"pos"].push_back(meas->globalPosition().x());
413 data[
"pos"].push_back(meas->globalPosition().y());
414 data[
"pos"].push_back(meas->globalPosition().z());
◆ getData() [3/10]
Definition at line 521 of file DumpEventDataToJsonAlg.cxx.
524 for (
const auto &coll : container) {
525 for (
const auto &prd : *coll) {
527 data[
"pos"] = {prd->globalPosition().x(), prd->globalPosition().y(),
528 prd->globalPosition().z()};
530 data[
"id"] =
id.get_compact();
531 colldata.push_back(
data);
◆ getData() [4/10]
◆ getData() [5/10]
◆ getData() [6/10]
◆ getData() [7/10]
Definition at line 424 of file DumpEventDataToJsonAlg.cxx.
429 std::vector<std::string> quality = {
"Tight",
"Medium",
"Loose",
"VeryLoose"};
430 data[
"Quality"] = quality[
static_cast<unsigned int>(
muon.quality())];
431 std::vector<std::string>
type = {
"Combined",
"Standalone",
"SegmentTagged",
432 "CaloTagged",
"SiAssociatedForward"};
433 data[
"Type"] =
type[
static_cast<unsigned int>(
muon.muonType())];
437 addLink(
muon.muonSpectrometerTrackParticleLink(),
data[
"LinkedTracks"]);
438 addLink(
muon.extrapolatedMuonSpectrometerTrackParticleLink(),
439 data[
"LinkedTracks"]);
◆ getData() [8/10]
◆ getData() [9/10]
◆ getData() [10/10]
Definition at line 315 of file DumpEventDataToJsonAlg.cxx.
317 data[
"chi2"] =
tp.chiSquared();
318 data[
"dof"] =
tp.numberDoF();
319 data[
"dparams"] = {
tp.d0(),
tp.z0(),
tp.phi0(),
tp.theta(),
tp.qOverP()};
322 ATH_MSG_VERBOSE(
"Physlite mode enabled. Not adding track parameters.");
327 data[
"pos"] = {
tp.perigeeParameters().position().x(),
328 tp.perigeeParameters().position().y(),
329 tp.perigeeParameters().position().z()};
330 for (
unsigned int i = 0;
i <
tp.numberOfParameters(); ++
i) {
331 data[
"pos"].push_back(
tp.parameterX(
i));
332 data[
"pos"].push_back(
tp.parameterY(
i));
333 data[
"pos"].push_back(
tp.parameterZ(
i));
336 std::vector<Amg::Vector3D> positions;
338 positions.push_back(
Amg::Vector3D(peri.position().x(), peri.position().y(),
339 peri.position().z()));
350 for (
auto &es : ecc.extrapolationSteps) {
356 positions.push_back(
pos);
360 positions.push_back(ecc.endParameters->position());
363 for (
auto pos : positions) {
364 data[
"pos"].push_back(
pos.x());
365 data[
"pos"].push_back(
pos.y());
366 data[
"pos"].push_back(
pos.z());
371 "Failure in extrapolation for Track with start parameters "
◆ initialize()
StatusCode DumpEventDataToJsonAlg::initialize |
( |
| ) |
|
|
overridevirtual |
inherited from Algorithm
Definition at line 34 of file DumpEventDataToJsonAlg.cxx.
69 ATH_MSG_WARNING(
"No extrapolator found. Will not be able to extrapolate tracks.");
71 ATH_MSG_INFO(
"Extrapolator found. Will be able to extrapolate tracks.");
77 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ prependTestEvent()
void DumpEventDataToJsonAlg::prependTestEvent |
( |
| ) |
|
|
protected |
Dumps a dummy event with some objects at specific eta/phi coordinates for calibration.
Definition at line 203 of file DumpEventDataToJsonAlg.cxx.
208 auto writeEtaPhiLabel = [](
float eta,
float phi) {
212 j[
"event number"] = 999;
213 j[
"run number"] = 999;
216 unsigned int maxSteps = 3;
220 phi =
static_cast<float>(
nPhi) /
static_cast<float>(maxSteps) *
223 eta =
static_cast<float>(
nEta) /
static_cast<float>(maxSteps) *
228 cluster[
"phi"] =
phi;
229 cluster[
"eta"] =
eta;
230 cluster[
"energy"] = 999.9;
231 cluster[
"label"] = writeEtaPhiLabel(
eta,
phi);
233 j[
"CaloClusters"][
"TestClusters"].push_back(cluster);
239 jet[
"energy"] = 99999.9;
240 jet[
"label"] = writeEtaPhiLabel(
eta,
phi);
241 j[
"Jets"][
"TestJets"].push_back(
jet);
251 for (
unsigned int i = 0;
i < 4; ++
i) {
253 track[
"pos"].push_back({trackPos.x(), trackPos.y(), trackPos.z()});
256 j[
"Tracks"][
"TestTracks"].push_back(
track);
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_caloCellKey
◆ m_caloClustersKeys
◆ m_cscPrepRawDataKey
◆ m_detStore
◆ m_dumpTestEvent
Gaudi::Property<bool> DumpEventDataToJsonAlg::m_dumpTestEvent {this, "DumpTestEvent", false, "If true, prepend a test event with some calibration data in it."} |
|
protected |
◆ m_electronKeys
◆ m_eventData
◆ m_eventInfoKey
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_extrapolator
◆ m_geometryContextKey
Initial value:{
this, "ActsAlignmentKey", "ActsAlignment", "cond read key for the alignment"}
Definition at line 118 of file DumpEventDataToJsonAlg.h.
◆ m_jetKeys
◆ m_mdtPrepRawDataKey
◆ m_mmPrepRawDataKey
◆ m_muonKeys
◆ m_outputJSON_Name
Gaudi::Property<std::string> DumpEventDataToJsonAlg::m_outputJSON_Name {this, "OutputLocation", "EventData.json", "Default filename for "} |
|
protected |
◆ m_photonKeys
◆ m_physlite
Gaudi::Property<bool> DumpEventDataToJsonAlg::m_physlite {this, "PHYSLITE", false, "If true, do not try to access data which is not available in PHYSLITE files."} |
|
protected |
◆ m_pixelPrepRawDataKey
◆ m_rpcPrepRawDataKey
◆ m_sctPrepRawDataKey
◆ m_stgcPrepRawDataKey
◆ m_tauJetKeys
◆ m_tgcPrepRawDataKey
◆ m_trackCollectionKeys
SG::ReadHandleKeyArray<TrackCollection> DumpEventDataToJsonAlg::m_trackCollectionKeys {this, "TrackCollectionKeys", {"CombinedInDetTracks", "CombinedMuonTracks", "MuonSpectrometerTracks"}, "Keys for Track Containers"} |
|
protected |
◆ m_trackContainerKeys
◆ m_trackParticleKeys
◆ m_trtPrepRawDataKey
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
virtual double phi() const
The azimuthal angle ( ) of the particle.
char data[hepevt_bytes_allocation_ATLAS]
SG::ReadHandleKey< ActsGeometryContext > m_geometryContextKey
Scalar phi() const
phi method
virtual double eta() const
The pseudorapidity ( ) of the particle.
ToolHandle< Trk::IExtrapolationEngine > m_extrapolator
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
SG::ReadHandleKey< Muon::sTgcPrepDataContainer > m_stgcPrepRawDataKey
Scalar theta() const
theta method
SG::ReadHandleKeyArray< TrackCollection > m_trackCollectionKeys
SG::ReadHandleKey< InDet::PixelClusterContainer > m_pixelPrepRawDataKey
StatusCode getAndFillArrayOfContainers(nlohmann::json &event, const SG::ReadHandleKeyArray< TYPE > &keys, const std::string &jsonType)
SG::ReadHandleKey< Muon::RpcPrepDataContainer > m_rpcPrepRawDataKey
SG::ReadHandleKey< InDet::TRT_DriftCircleContainer > m_trtPrepRawDataKey
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
#define ATH_MSG_VERBOSE(x)
bool empty() const
Test if the key is blank.
void prependTestEvent()
Dumps a dummy event with some objects at specific eta/phi coordinates for calibration.
virtual double e() const
The total energy of the particle.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
constexpr int nPhi
Default bin number of phi for vertex map.
SG::ReadHandleKeyArray< ActsTrk::TrackContainer > m_trackContainerKeys
virtual void setOwner(IDataHandleHolder *o)=0
SG::ReadHandleKey< Muon::TgcPrepDataContainer > m_tgcPrepRawDataKey
virtual double phi() const
The azimuthal angle ( ) of the particle.
SG::ReadHandleKey< Muon::MMPrepDataContainer > m_mmPrepRawDataKey
SG::ReadHandleKeyArray< xAOD::TauJetContainer > m_tauJetKeys
virtual StatusCode sysInitialize() override
Override sysInitialize.
Gaudi::Property< bool > m_dumpTestEvent
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
virtual double eta() const
The pseudorapidity ( ) of the particle.
SG::ReadHandleKeyArray< xAOD::JetContainer > m_jetKeys
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< std::string > m_outputJSON_Name
SG::ReadHandleKey< InDet::SCT_ClusterContainer > m_sctPrepRawDataKey
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::ReadHandleKey< Muon::MdtPrepDataContainer > m_mdtPrepRawDataKey
nlohmann::json m_eventData
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
StatusCode getAndFillContainer(nlohmann::json &event, const SG::ReadHandleKey< TYPE > &key, const std::string &jsonType)
void addLink(const TYPE &link, nlohmann::json &data)
std::string to_string(const DetectorType &type)
SG::ReadHandleKeyArray< xAOD::CaloClusterContainer > m_caloClustersKeys
nlohmann::json getData(const TYPE &object)
SG::ReadHandleKey< Muon::CscPrepDataContainer > m_cscPrepRawDataKey
Gaudi::Property< bool > m_physlite
Eigen::Matrix< double, 3, 1 > Vector3D
SG::ReadHandleKeyArray< xAOD::ElectronContainer > m_electronKeys
nlohmann::json getActsData(const Acts::TrackProxy< ActsTrk::TrackSummaryContainer, ActsTrk::MultiTrajectory, ActsTrk::DataLinkHolder, true > &track, const Acts::GeometryContext &gctx)
DataObjIDColl m_extendedExtraObjects
SG::ReadHandleKeyArray< xAOD::PhotonContainer > m_photonKeys
#define ATH_MSG_WARNING(x)
void setRThetaPhi(Amg::Vector3D &v, double r, double theta, double phi)
sets radius, the theta and phi angle of a vector.
SG::ReadHandleKeyArray< CaloCellContainer > m_caloCellKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
double chiSquared() const
returns the of the overall track fit
AthAlgorithm()
Default constructor:
constexpr int nEta
Default bin number of eta for vertex map.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
virtual double e() const
The total energy of the particle.
SG::ReadHandleKeyArray< xAOD::TrackParticleContainer > m_trackParticleKeys
double doubleNumberDoF() const
returns the number of degrees of freedom of the overall track or vertex fit as double
SG::ReadHandleKeyArray< xAOD::MuonContainer > m_muonKeys