#include <TkModuleGroupSelector.h>
Public Member Functions | |
edm::RunNumber_t | firstRunOfIOV (unsigned int iovNum) const |
First run of iov (0 if iovNum not treated). More... | |
unsigned int | getNumberOfParameters () const |
int | getParameterIndexFromDetId (unsigned int detId, edm::RunNumber_t run) const |
unsigned int | numIovs () const |
Total number of IOVs. More... | |
TkModuleGroupSelector (AlignableTracker *aliTracker, const edm::ParameterSet &cfg, const std::vector< int > &sdets) | |
Constructor. More... | |
virtual | ~TkModuleGroupSelector () |
Destructor. More... | |
Private Member Functions | |
bool | createGroup (unsigned int &Id, const std::vector< edm::RunNumber_t > &range, const std::list< Alignable * > &selected_alis, const edm::RunNumber_t refrun) |
void | createModuleGroups (AlignableTracker *aliTracker, const edm::VParameterSet &granularityConfig, const std::vector< edm::RunNumber_t > &defaultRunRange, edm::RunNumber_t defaultReferenceRun) |
void | fillDetIdMap (const unsigned int detid, const unsigned int groupid) |
const bool | testSplitOption (const edm::ParameterSet &pset) const |
void | verifyParameterNames (const edm::ParameterSet &pset, unsigned int psetnr) const |
Private Attributes | |
std::vector< unsigned int > | firstId_ |
std::vector< edm::RunNumber_t > | globalRunRange_ |
std::map< unsigned int, unsigned int > | mapDetIdGroupId_ |
unsigned int | nparameters_ |
std::vector< edm::RunNumber_t > | referenceRun_ |
std::vector< std::vector< edm::RunNumber_t > > | runRange_ |
std::vector< int > | subdetids_ |
Definition at line 33 of file TkModuleGroupSelector.h.
|
explicit |
Constructor.
Definition at line 22 of file TkModuleGroupSelector.cc.
References createModuleGroups(), Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), dataset::name, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlinevirtual |
Destructor.
Definition at line 42 of file TkModuleGroupSelector.h.
References muonDTDigis_cfi::pset, and findQualityFiles::run.
|
private |
Definition at line 83 of file TkModuleGroupSelector.cc.
References Exception, fillDetIdMap(), firstId_, nparameters_, referenceRun_, and runRange_.
Referenced by createModuleGroups().
|
private |
Definition at line 139 of file TkModuleGroupSelector.cc.
References AlignmentParameterSelector::addSelections(), align::AlignableDet, align::AlignableDetUnit, AlignmentParameterSelector::clear(), createGroup(), Exception, firstId_, dataset::firstRun, globalRunRange_, nparameters_, muonDTDigis_cfi::pset, AlignmentParameterSelector::selectedAlignables(), split, testSplitOption(), and verifyParameterNames().
Referenced by TkModuleGroupSelector().
|
private |
Definition at line 58 of file TkModuleGroupSelector.cc.
References Exception, and mapDetIdGroupId_.
Referenced by createGroup().
edm::RunNumber_t TkModuleGroupSelector::firstRunOfIOV | ( | unsigned int | iovNum | ) | const |
First run of iov (0 if iovNum not treated).
Definition at line 238 of file TkModuleGroupSelector.cc.
References globalRunRange_, and numIovs().
Referenced by SiStripBackplaneCalibration::endOfJob(), and SiStripBackplaneCalibration::writeTree().
unsigned int TkModuleGroupSelector::getNumberOfParameters | ( | ) | const |
Definition at line 226 of file TkModuleGroupSelector.cc.
References nparameters_.
Referenced by SiStripBackplaneCalibration::beginOfJob().
int TkModuleGroupSelector::getParameterIndexFromDetId | ( | unsigned int | detId, |
edm::RunNumber_t | run | ||
) | const |
Index of parameter for given detId (detId not treated => < 0) and the given run.
Definition at line 244 of file TkModuleGroupSelector.cc.
References DetId::det(), Exception, firstId_, mapDetIdGroupId_, referenceRun_, runRange_, gather_cfg::runs, triggerObjects_cff::sel, DetId::subdetId(), subdetids_, and DetId::Tracker.
Referenced by SiStripBackplaneCalibration::derivatives(), SiStripBackplaneCalibration::endOfJob(), SiStripBackplaneCalibration::getParameterForDetId(), and SiStripBackplaneCalibration::writeTree().
unsigned int TkModuleGroupSelector::numIovs | ( | ) | const |
Total number of IOVs.
Definition at line 232 of file TkModuleGroupSelector.cc.
References globalRunRange_.
Referenced by SiStripBackplaneCalibration::beginOfJob(), SiStripBackplaneCalibration::endOfJob(), and firstRunOfIOV().
|
private |
Definition at line 73 of file TkModuleGroupSelector.cc.
References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), and split.
Referenced by createModuleGroups().
|
private |
Definition at line 120 of file TkModuleGroupSelector.cc.
References Exception, edm::ParameterSet::getParameterNames(), dataset::name, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by createModuleGroups().
|
private |
Definition at line 87 of file TkModuleGroupSelector.h.
Referenced by createGroup(), createModuleGroups(), and getParameterIndexFromDetId().
|
private |
Definition at line 84 of file TkModuleGroupSelector.h.
Referenced by createModuleGroups(), firstRunOfIOV(), and numIovs().
|
private |
Definition at line 93 of file TkModuleGroupSelector.h.
Referenced by fillDetIdMap(), and getParameterIndexFromDetId().
|
private |
Definition at line 96 of file TkModuleGroupSelector.h.
Referenced by createGroup(), createModuleGroups(), and getNumberOfParameters().
|
private |
Definition at line 102 of file TkModuleGroupSelector.h.
Referenced by createGroup(), and getParameterIndexFromDetId().
|
private |
Definition at line 90 of file TkModuleGroupSelector.h.
Referenced by createGroup(), and getParameterIndexFromDetId().
|
private |
Definition at line 99 of file TkModuleGroupSelector.h.
Referenced by getParameterIndexFromDetId().