4#ifndef EFFICOLLECTION_H_
5#define EFFICOLLECTION_H_
73 unsigned int nBins()
const;
165 unsigned int nBins()
const;
176 std::string
GetBinName(
unsigned int Bin)
const;
195 std::vector<std::shared_ptr<EfficiencyScaleFactor>>
m_SF;
The collection container manages the time binning of a particular scale-factor map.
bool separateBinSyst() const
std::map< std::string, std::pair< unsigned int, unsigned int > > findPeriods(const MuonEfficiencyScaleFactors &ref_tool) const
unsigned int nOverFlowBins() const
Number of overflow bins in the map.
EffiCollection::CollectionType m_FileType
void addSubtoolsTo(columnar::ColumnarTool<> &parentTool)
std::vector< std::shared_ptr< EfficiencyScaleFactor > > m_SF
bool isBinInMap(unsigned int bin) const
Checks if the global bin number belongs to this map.
bool isOverFlowBin(int b) const
Check whether the bin is overflow or not.
std::string GetBinName(unsigned int Bin) const
Name of the i-th bin.
EffiCollection::CollectionType type() const
File type of the map.
bool isUpVariation() const
std::string fileName(const MuonEfficiencyScaleFactors &ref_tool) const
std::string sysname() const
Returns MUON_EFF_<sysname()>
int FindBinSF(const xAOD::Muon &mu) const
Returns the global bin number corresponding to the muon kinematics.
EfficiencyScaleFactor * m_currentSF
bool LoadPeriod(unsigned int RunNumber)
void SetGlobalOffSet(unsigned int OffSet)
Sets the global offset to align the order in the map into a global numbering scheme.
EfficiencyScaleFactor * retrieve(unsigned int RunNumer)
Retrieve the scale-factor map belonging to that particular run of data-taking.
unsigned int nBins() const
Number of bins of the map itself.
unsigned int m_binOffSet
Offset to translate between the bin-numbers in the bin numbers of each file against the global bin-nu...
unsigned int globalOffSet() const
Global offset of the bin numbers.
CollectionContainer(const MuonEfficiencyScaleFactors &ref_tool, EffiCollection::CollectionType FileType)
Nominal constructor... Only needs to know about it's type and the file to load.
bool SetSystematicBin(unsigned int Bin)
Activate this bin to run in the uncorrelated systematic mode.
bool CheckConsistency()
Consistency check of all scale-factor maps managed by the container instance.
columnar::MuonAccessor< columnar::ObjectColumn > m_muons
columnar::MuonAccessor< columnar::RetypeColumn< double, float > > etaAcc
columnar::MuonAccessor< columnar::RetypeColumn< xAOD::Muon::MuonType, std::uint16_t > > muonTypeAcc
std::shared_ptr< CollectionContainer > m_forward_eff
bool isAffectedBySystematic(const SystematicVariation &variation) const
Returns whether the given set has variations affecting this Collection.
CollectionContainer * FindContainer(unsigned int bin) const
std::shared_ptr< CollectionContainer > m_central_eff
Make the collection container shared ptr to allow that a systematic EffiCollection can use the same c...
int getUnCorrelatedSystBin(const xAOD::Muon &mu) const
Returns the bin number from which the scale-factor of the muon is going to be retrieved....
CollectionContainer * FindLRTContainer(columnar::MuonId mu) const
bool IsLowPtBin(unsigned int Bin) const
Checks whether the i-th bin belongs to the low-pt map...
std::shared_ptr< CollectionContainer > m_calo_eff
std::shared_ptr< CollectionContainer > m_lrt_central_eff
columnar::MuonAccessor< columnar::RetypeColumn< double, float > > ptAcc
@ JPsiAnalysis
Distinguish these two because the systematics are named with an extra LOWPT.
@ Central
The five different scale-factor maps.
bool CheckConsistency()
a consistency check of the scale-factor maps.
columnar::MuonAccessor< char > isLRTmuon
std::string GetBinName(unsigned int bin) const
Returns the global bin name conststucted from the axis titles and the bin borders.
EfficiencyScaleFactor * retrieveSF(const xAOD::Muon &mu, unsigned int RunNumber) const
return the correct SF type to provide, depending on eta and the author
static std::string FileTypeName(EffiCollection::CollectionType T)
bool IsForwardBin(unsigned int Bin) const
Checks whether the i-th bin belongs to the forward map.
std::shared_ptr< CollectionContainer > m_lowpt_central_eff
std::shared_ptr< CollectionContainer > m_lowpt_calo_eff
std::unique_ptr< SystematicSet > m_syst_set
The systematic set is returned back to the MuonEfficiencyScaleFactors instance to register The known ...
bool SetSystematicBin(unsigned int Bin)
If systematic decorrelation is activated then the user needs to loop manually over the syst bins.
unsigned int nBins() const
Get the number of all bins in the scale-factor maps including the overflow & underflow bins.
EffiCollection(MuonEfficiencyScaleFactors &ref_tool)
const MuonEfficiencyScaleFactors & m_ref_tool
std::shared_ptr< CollectionContainer > m_lrt_lowpt_central_eff
std::shared_ptr< CollectionContainer > retrieveContainer(CollectionType Type) const
Method to retrieve a container from the class ordered by a collection type This method is mainly used...
SystematicSet * getSystSet() const
Returns the systematic set affecting this collection.
Class to wrap a set of SystematicVariations.
Select isolated Photons, Electrons and Muons.
ObjectId< ContainerId::muon > MuonId
AccessorTemplate< ContainerId::muon, CT, ColumnAccessMode::input, CM > MuonAccessor
Muon_v1 Muon
Reference the current persistent version: