|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "GaudiKernel/PhysicalConstants.h"
9 #include "GaudiKernel/ITHistSvc.h"
25 ATH_CHECK(
book(TH2D(
"DriftRadiusVsTdc",
"DriftRadiusVsTdc", 100, 0., 250., 100, 0., 15.),
"MdtCalibDbAlgTest",
"MdtCalibDbAlgTest"));
26 ATH_CHECK(
book(TH2D(
"DriftdRdtVsTdc",
"DriftdRdtVsTdc", 100, 0., 250., 100, 0., 0.6),
"MdtCalibDbAlgTest",
"MdtCalibDbAlgTest"));
27 return StatusCode::SUCCESS;
33 return StatusCode::SUCCESS;
38 const EventContext& ctx = Gaudi::Hive::currentContext();
60 hist(
"DriftRadiusVsTdc")->Fill(tdcAdj, mdt->driftRadius());
65 return StatusCode::SUCCESS;
MuonVal::ScalarBranch< float > & m_out_driftdRdt
MuonVal::ScalarBranch< float > & m_out_tubeLength
StatusCode init(OWNER *instance)
Initialize method.
MuonVal::ScalarBranch< Identifier > & m_out_identifier
StatusCode book(const TH1 &hist, const std::string &tDir="", const std::string &stream="")
Simplify the booking and registering (into THistSvc) of histograms.
virtual StatusCode initialize() override
double activeTubeLength(const IdentifierHash &hash) const
MuonVal::ScalarBranch< float > & m_out_tdcAdj
SG::ReadHandleKey< ActsGeometryContext > m_geoCtxKey
const T * get(size_type n) const
Access an element, as an rvalue.
MuonVal::ScalarBranch< float > & m_out_globalPos
SG::ReadHandleKey< xAOD::MdtDriftCircleContainer > m_MdtKey
MuonVal::ScalarBranch< float > & m_out_globalPosZ
MuonVal::ScalarBranch< float > & m_out_tdc
::StatusCode StatusCode
StatusCode definition for legacy code.
#define ATH_MSG_ALWAYS(x)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
MuonVal::ScalarBranch< float > & m_out_globalPosY
Include the GeoPrimitives which need to be put first.
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
ToolHandle< IMdtCalibrationTool > m_calibrationTool
pointer to MdtCalibSvc
MuonVal::MuonTesterTree m_tree
Identifier identify() const override final
Return the athena identifier.
Eigen::Matrix< double, 3, 1 > Vector3D
MuonVal::ScalarBranch< float > & m_out_driftRadius
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
MdtCalibDbAlgTest(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode finalize() override
virtual StatusCode execute() override
bool fill(const EventContext &ctx)
Fills the tree per call.
StatusCode write()
Finally write the TTree objects.
Amg::Vector3D globalTubePos(const ActsGeometryContext &ctx, const Identifier &measId) const
Returns the global position of the tube center.
TH1 * hist(const std::string &histName, const std::string &tDir="", const std::string &stream="")
Simplify the retrieval of registered histograms of any type.
MuonVal::ScalarBranch< float > & m_out_globalPosX
https://gitlab.cern.ch/atlas/athena/-/blob/master/MuonSpectrometer/MuonReconstruction/MuonRecEvent/Mu...