|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef DUMPEVENTDATATOJSONALG_H
6 #define DUMPEVENTDATATOJSONALG_H
10 #include "GaudiKernel/ToolHandle.h"
41 #include <nlohmann/json.hpp>
72 const std::string &jsonType);
77 const Acts::GeometryContext& gctx);
116 ToolHandle<Trk::IExtrapolationEngine>
m_extrapolator{
this,
"Extrapolator",
"Trk::ExtrapolationEngine/AtlasExtrapolation"};
119 this,
"ActsAlignmentKey",
"ActsAlignment",
"cond read key for the alignment"};
121 Gaudi::Property<std::string>
m_outputJSON_Name{
this,
"OutputLocation",
"EventData.json",
"Default filename for "};
123 Gaudi::Property<bool>
m_dumpTestEvent{
this,
"DumpTestEvent",
false,
"If true, prepend a test event with some calibration data in it."};
124 Gaudi::Property<bool>
m_physlite{
this,
"PHYSLITE",
false,
"If true, do not try to access data which is not available in PHYSLITE files."};
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual StatusCode initialize() override
inherited from Algorithm
char data[hepevt_bytes_allocation_ATLAS]
SG::ReadHandleKey< ActsGeometryContext > m_geometryContextKey
ToolHandle< Trk::IExtrapolationEngine > m_extrapolator
SG::ReadHandleKey< Muon::sTgcPrepDataContainer > m_stgcPrepRawDataKey
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
Algorithm to dump some Event data to JSON.
Property holding a SG store/key/clid from which a ReadHandle is made.
void prependTestEvent()
Dumps a dummy event with some objects at specific eta/phi coordinates for calibration.
virtual StatusCode finalize() override
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
SG::ReadHandleKeyArray< ActsTrk::TrackContainer > m_trackContainerKeys
SG::ReadHandleKey< Muon::TgcPrepDataContainer > m_tgcPrepRawDataKey
SG::ReadHandleKey< Muon::MMPrepDataContainer > m_mmPrepRawDataKey
SG::ReadHandleKeyArray< xAOD::TauJetContainer > m_tauJetKeys
Gaudi::Property< bool > m_dumpTestEvent
POOL::TEvent event(POOL::TEvent::kClassAccess)
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
SG::ReadHandleKey< Muon::MdtPrepDataContainer > m_mdtPrepRawDataKey
nlohmann::json m_eventData
#define TYPE(CODE, TYP, IOTYP)
StatusCode getAndFillContainer(nlohmann::json &event, const SG::ReadHandleKey< TYPE > &key, const std::string &jsonType)
virtual StatusCode execute() override
void addLink(const TYPE &link, nlohmann::json &data)
SG::ReadHandleKeyArray< xAOD::CaloClusterContainer > m_caloClustersKeys
nlohmann::json getData(const TYPE &object)
SG::ReadHandleKey< Muon::CscPrepDataContainer > m_cscPrepRawDataKey
Gaudi::Property< bool > m_physlite
DumpEventDataToJsonAlg(const std::string &name, ISvcLocator *pService)
Algorithm constructor.
SG::ReadHandleKeyArray< xAOD::ElectronContainer > m_electronKeys
nlohmann::json getActsData(const Acts::TrackProxy< ActsTrk::TrackSummaryContainer, ActsTrk::MultiTrajectory, ActsTrk::DataLinkHolder, true > &track, const Acts::GeometryContext &gctx)
SG::ReadHandleKeyArray< xAOD::PhotonContainer > m_photonKeys
virtual ~DumpEventDataToJsonAlg()=default
SG::ReadHandleKeyArray< CaloCellContainer > m_caloCellKey
SG::ReadHandleKeyArray< xAOD::TrackParticleContainer > m_trackParticleKeys
SG::ReadHandleKeyArray< xAOD::MuonContainer > m_muonKeys