#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 35 of file TkModuleGroupSelector.h.
|
explicit |
Constructor.
Definition at line 22 of file TkModuleGroupSelector.cc.
References looper::cfg, createModuleGroups(), Exception, Skims_PA_cff::name, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlinevirtual |
|
private |
Definition at line 74 of file TkModuleGroupSelector.cc.
References Exception, fillDetIdMap(), firstId_, nparameters_, FastTimerService_cff::range, referenceRun_, and runRange_.
Referenced by createModuleGroups().
|
private |
Definition at line 120 of file TkModuleGroupSelector.cc.
References align::AlignableDet, align::AlignableDetUnit, createGroup(), Exception, firstId_, dataset::firstRun, globalRunRange_, nparameters_, muonDTDigis_cfi::pset, FastTimerService_cff::range, collectionMerger::selector, submitPVValidationJobs::split(), testSplitOption(), and verifyParameterNames().
Referenced by TkModuleGroupSelector().
|
private |
Definition at line 52 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 205 of file TkModuleGroupSelector.cc.
References globalRunRange_, and numIovs().
Referenced by SiStripBackplaneCalibration::endOfJob(), and SiStripBackplaneCalibration::writeTree().
unsigned int TkModuleGroupSelector::getNumberOfParameters | ( | ) | const |
Definition at line 199 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 210 of file TkModuleGroupSelector.cc.
References DetId::det(), hcalRecHitTable_cff::detId, Exception, firstId_, mapDetIdGroupId_, referenceRun_, writedatasetfile::run, runRange_, writedatasetfile::runs, EgammaValidation_Wenu_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 202 of file TkModuleGroupSelector.cc.
References globalRunRange_.
Referenced by SiStripBackplaneCalibration::beginOfJob(), SiStripBackplaneCalibration::endOfJob(), and firstRunOfIOV().
|
private |
Definition at line 65 of file TkModuleGroupSelector.cc.
References muonDTDigis_cfi::pset, and submitPVValidationJobs::split().
Referenced by createModuleGroups().
|
private |
Definition at line 106 of file TkModuleGroupSelector.cc.
References Exception, Skims_PA_cff::name, muonDTDigis_cfi::pset, 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().