ATLAS Offline Software
|
The collection container manages the time binning of a particular scale-factor map. More...
#include <EffiCollection.h>
Public Member Functions | |
CollectionContainer (const MuonEfficiencyScaleFactors &ref_tool, EffiCollection::CollectionType FileType) | |
Nominal constructor... Only needs to know about it's type and the file to load. More... | |
CollectionContainer (const MuonEfficiencyScaleFactors &ref_tool, CollectionContainer *Nominal, const std::string &syst_name, unsigned int syst_bit_map) | |
EfficiencyScaleFactor * | retrieve (unsigned int RunNumer) |
Retrieve the scale-factor map belonging to that particular run of data-taking. More... | |
bool | isBinInMap (unsigned int bin) const |
Checks if the global bin number belongs to this map. More... | |
bool | CheckConsistency () |
Consistency check of all scale-factor maps managed by the container instance. More... | |
std::string | sysname () const |
Returns MUON_EFF_<sysname()> More... | |
bool | SetSystematicBin (unsigned int Bin) |
Activate this bin to run in the uncorrelated systematic mode. More... | |
void | SetGlobalOffSet (unsigned int OffSet) |
Sets the global offset to align the order in the map into a global numbering scheme. More... | |
unsigned int | nBins () const |
Number of bins of the map itself. More... | |
unsigned int | nOverFlowBins () const |
Number of overflow bins in the map. More... | |
bool | isOverFlowBin (int b) const |
Check whether the bin is overflow or not. More... | |
unsigned int | globalOffSet () const |
Global offset of the bin numbers. More... | |
std::string | GetBinName (unsigned int Bin) const |
Name of the i-th bin. More... | |
int | FindBinSF (const xAOD::Muon &mu) const |
Returns the global bin number corresponding to the muon kinematics. More... | |
EffiCollection::CollectionType | type () const |
File type of the map. More... | |
bool | isNominal () const |
bool | isUpVariation () const |
bool | separateBinSyst () const |
Private Member Functions | |
std::map< std::string, std::pair< unsigned int, unsigned int > > | findPeriods (const MuonEfficiencyScaleFactors &ref_tool) const |
std::string | fileName (const MuonEfficiencyScaleFactors &ref_tool) const |
bool | LoadPeriod (unsigned int RunNumber) |
Private Attributes | |
std::vector< std::shared_ptr< EfficiencyScaleFactor > > | m_SF |
EfficiencyScaleFactor * | m_currentSF |
EffiCollection::CollectionType | m_FileType |
unsigned int | m_binOffSet |
Offset to translate between the bin-numbers in the bin numbers of each file against the global bin-number. More... | |
The collection container manages the time binning of a particular scale-factor map.
For a given runNumber, it pipes the right map to the upstream tools.
Definition at line 126 of file EffiCollection.h.
CP::CollectionContainer::CollectionContainer | ( | const MuonEfficiencyScaleFactors & | ref_tool, |
EffiCollection::CollectionType | FileType | ||
) |
Nominal constructor... Only needs to know about it's type and the file to load.
Definition at line 339 of file EffiCollection.cxx.
CP::CollectionContainer::CollectionContainer | ( | const MuonEfficiencyScaleFactors & | ref_tool, |
CollectionContainer * | Nominal, | ||
const std::string & | syst_name, | ||
unsigned int | syst_bit_map | ||
) |
Definition at line 351 of file EffiCollection.cxx.
bool CP::CollectionContainer::CheckConsistency | ( | ) |
Consistency check of all scale-factor maps managed by the container instance.
Check that there are no overlapping run numbers in the periods
Definition at line 404 of file EffiCollection.cxx.
|
private |
Definition at line 396 of file EffiCollection.cxx.
int CP::CollectionContainer::FindBinSF | ( | const xAOD::Muon & | mu | ) | const |
|
private |
Definition at line 367 of file EffiCollection.cxx.
std::string CP::CollectionContainer::GetBinName | ( | unsigned int | Bin | ) | const |
Name of the i-th bin.
Definition at line 467 of file EffiCollection.cxx.
unsigned int CP::CollectionContainer::globalOffSet | ( | ) | const |
Global offset of the bin numbers.
Definition at line 478 of file EffiCollection.cxx.
bool CP::CollectionContainer::isBinInMap | ( | unsigned int | bin | ) | const |
Checks if the global bin number belongs to this map.
Definition at line 461 of file EffiCollection.cxx.
bool CP::CollectionContainer::isNominal | ( | ) | const |
Definition at line 481 of file EffiCollection.cxx.
bool CP::CollectionContainer::isOverFlowBin | ( | int | b | ) | const |
Check whether the bin is overflow or not.
Definition at line 458 of file EffiCollection.cxx.
bool CP::CollectionContainer::isUpVariation | ( | ) | const |
Definition at line 485 of file EffiCollection.cxx.
|
private |
Definition at line 426 of file EffiCollection.cxx.
unsigned int CP::CollectionContainer::nBins | ( | ) | const |
Number of bins of the map itself.
Definition at line 452 of file EffiCollection.cxx.
unsigned int CP::CollectionContainer::nOverFlowBins | ( | ) | const |
Number of overflow bins in the map.
Definition at line 455 of file EffiCollection.cxx.
EfficiencyScaleFactor * CP::CollectionContainer::retrieve | ( | unsigned int | RunNumer | ) |
Retrieve the scale-factor map belonging to that particular run of data-taking.
Definition at line 438 of file EffiCollection.cxx.
bool CP::CollectionContainer::separateBinSyst | ( | ) | const |
Definition at line 489 of file EffiCollection.cxx.
void CP::CollectionContainer::SetGlobalOffSet | ( | unsigned int | OffSet | ) |
Sets the global offset to align the order in the map into a global numbering scheme.
Definition at line 475 of file EffiCollection.cxx.
bool CP::CollectionContainer::SetSystematicBin | ( | unsigned int | Bin | ) |
Activate this bin to run in the uncorrelated systematic mode.
Definition at line 444 of file EffiCollection.cxx.
std::string CP::CollectionContainer::sysname | ( | ) | const |
Returns MUON_EFF_<sysname()>
Definition at line 493 of file EffiCollection.cxx.
EffiCollection::CollectionType CP::CollectionContainer::type | ( | ) | const |
File type of the map.
Definition at line 464 of file EffiCollection.cxx.
|
private |
Offset to translate between the bin-numbers in the bin numbers of each file against the global bin-number.
Definition at line 187 of file EffiCollection.h.
|
private |
Definition at line 182 of file EffiCollection.h.
|
private |
Definition at line 184 of file EffiCollection.h.
|
private |
Definition at line 181 of file EffiCollection.h.