33 auto sfBranch = std::make_shared<TestMuonSF::MuonSFBranches>(
m_tree,tool,
37 m_tree.addBranch(sfBranch);
39 auto replicaBranch = std::make_shared<TestMuonSF::MuonReplicaBranches>(
m_tree, tool,
43 m_tree.addBranch(replicaBranch);
48 m_tree.addBranch(sfBranch);
50 auto replicaBranch = std::make_shared<TestMuonSF::MuonReplicaBranches>(
m_tree,tool,
m_validRelease);
52 m_tree.addBranch(replicaBranch);
54 m_tree.addBranch(std::make_shared<MuonVal::EventInfoBranch>(
m_tree, 0));
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;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for reading from StoreGate.
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
static void enableFailure() noexcept
MuonVal::ScalarBranch< float > & m_muonPt
ToolHandle< IPileupReweightingTool > m_prw_Tool
Scale factor tool.
ToolHandleArray< IMuonEfficiencyScaleFactors > m_effiTools
StatusCode finalize() override
Function finalizing the algortihm.
SG::ReadHandleKey< xAOD::MuonContainer > m_sgKey
muon container
Gaudi::Property< std::string > m_validRelease
ToolHandle< IMuonSelectionTool > m_sel_tool
MuonVal::MuonTesterTree m_tree
std::vector< std::shared_ptr< TestMuonSF::MuonEffiBranch > > m_sfBranches
Gaudi::Property< float > m_eta_cut
MuonVal::ScalarBranch< float > & m_muonPhi
ToolHandleArray< IMuonEfficiencyScaleFactors > m_comparisonTools
StatusCode execute() override
Function executing the algorithm.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Gaudi::Property< std::string > m_defaultRelease
MuonScaleFactorTestAlg(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
Gaudi::Property< int > m_muon_quality
Gaudi::Property< float > m_pt_cut
MuonVal::ScalarBranch< int > & m_muonQ
StatusCode initialize() override
Function initialising the algorithm.
MuonVal::ScalarBranch< float > & m_muonEta
Select isolated Photons, Electrons and Muons.
Muon_v1 Muon
Reference the current persistent version: