|
ATLAS Offline Software
|
Go to the documentation of this file.
33 auto sfBranch = std::make_shared<TestMuonSF::MuonSFBranches>(
m_tree,
tool,
39 auto replicaBranch = std::make_shared<TestMuonSF::MuonReplicaBranches>(
m_tree,
tool,
56 return StatusCode::SUCCESS;
60 return StatusCode::SUCCESS;
64 const EventContext& ctx{Gaudi::Hive::currentContext()};
70 ATH_MSG_DEBUG(
"Start to run over event "<<ei->eventNumber()<<
" in run" <<ei->runNumber());
91 return StatusCode::SUCCESS;
Gaudi::Property< std::string > m_validRelease
SG::ReadHandleKey< xAOD::MuonContainer > m_sgKey
muon container
StatusCode execute() override
Function executing the algorithm.
StatusCode init(OWNER *instance)
Initialize method.
MuonVal::ScalarBranch< float > & m_muonPt
static void enableFailure() noexcept
MuonVal::MuonTesterTree m_tree
StatusCode initialize() override
Function initialising the algorithm.
ToolHandleArray< IMuonEfficiencyScaleFactors > m_comparisonTools
Gaudi::Property< int > m_muon_quality
Select isolated Photons, Electrons and Muons.
MuonScaleFactorTestAlg(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
MuonVal::ScalarBranch< float > & m_muonEta
Gaudi::Property< float > m_eta_cut
Gaudi::Property< std::string > m_defaultRelease
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
StatusCode finalize() override
Function finalizing the algortihm.
ToolHandle< IPileupReweightingTool > m_prw_Tool
Scale factor tool.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
ToolHandleArray< IMuonEfficiencyScaleFactors > m_effiTools
std::vector< std::shared_ptr< TestMuonSF::MuonEffiBranch > > m_sfBranches
bool fill(const EventContext &ctx)
Fills the tree per call.
StatusCode write()
Finally write the TTree objects.
Gaudi::Property< float > m_pt_cut
ToolHandle< IMuonSelectionTool > m_sel_tool
Handle class for reading from StoreGate.
MuonVal::ScalarBranch< int > & m_muonQ
MuonVal::ScalarBranch< float > & m_muonPhi
bool addBranch(std::shared_ptr< IMuonTesterBranch > branch)
Branch is added to the tree without transferring the ownership.