|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef MUONTRIGGERSCALEFACTORS_H_
6 #define MUONTRIGGERSCALEFACTORS_H_
21 #include "TDirectory.h"
23 #include <unordered_map>
58 virtual int getReplica_index(
const std::string& sysBaseName,
const std::string& trigStr)
const;
virtual CP::SystematicSet affectingSystematics() const
returns: the list of all systematics this tool can be affected by
std::set< std::string > m_replicaSet
std::string getTriggerCorrespondingToDimuonTrigger(const std::string &trigger) const
virtual int getReplica_index(const std::string &sysBaseName, const std::string &trigStr) const
std::shared_ptr< TH1 > TH1_Ptr
virtual StatusCode initialize(void)
Dummy implementation of the initialisation function.
unsigned int getYear(unsigned int run) const
const CP::SystematicSet & appliedSystematics() const
std::string m_muonquality
virtual CorrectionCode getDimuonEfficiency(Double_t &eff, const TrigMuonEff::Configuration &configuration, const xAOD::MuonContainer &mucont, const std::string &chain, const std::string &systematic) const
CP::SystematicSet * m_appliedSystematics
std::string m_forcePeriod
std::pair< YearPeriod, unsigned int > EffiHistoIdent
std::vector< TH1_Ptr > generateReplicas(TH1_Ptr h, int nrep, int seed) const
TDirectory * getTemporaryDirectory(void) const
std::map< EffiHistoIdent, TH1_Ptr > EfficiencyMap
Class to wrap a set of SystematicVariations.
virtual CorrectionCode getTriggerScaleFactor(const xAOD::MuonContainer &mucont, Double_t &triggersf, const std::string &trigger) const
std::vector< std::string > m_replicaTriggerList
Select isolated Photons, Electrons and Muons.
virtual ~MuonTriggerScaleFactors()
virtual StatusCode applySystematicVariation(const CP::SystematicSet &systConfig)
effects: configure this tool for the given list of systematic variations.
virtual int getBinNumber(const xAOD::Muon &muon, const std::string &trigger) const
virtual CorrectionCode GetTriggerSF_dimu(Double_t &TriggerSF, TrigMuonEff::Configuration &configuration, const xAOD::MuonContainer &mucont, const std::string &trigger) const
structure to hold variables to configure behaviour of the tool
void efficiency(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
::StatusCode StatusCode
StatusCode definition for legacy code.
static const std::map< unsigned int, int > m_runNumber_year
StatusCode LoadTriggerMap(unsigned int year)
std::string m_calibration_version
virtual bool isAffectedBySystematic(const CP::SystematicVariation &systematic) const
Declare the interface that this class provides.
std::string getDataPeriod() const
virtual CorrectionCode getMuonEfficiency(Double_t &eff, const TrigMuonEff::Configuration &configuration, const xAOD::Muon &muon, const std::string &trigger, const std::string &systematic) const
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
MuonTriggerScaleFactors(const std::string &name)
std::unordered_map< CP::SystematicSet, CP::SystematicSet > m_systFilter
std::pair< unsigned int, std::string > YearPeriod
virtual CP::SystematicSet recommendedSystematics() const
returns: the list of all systematics this tool recommends to use
unsigned int getRunNumber() const
EfficiencyMap m_efficiencyMap
unsigned int encodeHistoName(const std::string &period, const std::string &Trigger, bool isData, const std::string &Systematic, bool isBarrel=true) const
virtual CorrectionCode getTriggerEfficiency(const xAOD::Muon &mu, Double_t &efficiency, const std::string &trigger, Bool_t dataType) const
Return value from object correction CP tools.
StatusCode registerSystematics()
virtual bool isTriggerSupported(const std::string &trigger) const
Returns whether the trigger is supported by the tool or not. The decision depends on the present (ran...
CorrectionCode getThreshold(Int_t &threshold, const std::string &trigger) const
virtual std::shared_ptr< TH1 > getEfficiencyHistogram(unsigned int year, const std::string &period, const std::string &trigger, bool isData, const std::string &Systematic, bool isBarrel=true) const
std::map< EffiHistoIdent, std::vector< TH1_Ptr > > m_efficiencyMapReplicaArray
std::string getDataPeriod(unsigned int runNumber, unsigned int year) const
virtual CorrectionCode GetTriggerSF(Double_t &TriggerSF, TrigMuonEff::Configuration &configuration, const xAOD::MuonContainer &mucont, const std::string &trigger) const