#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(), edm::hlt::Exception, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlinevirtual |
|
private |
Definition at line 83 of file TkModuleGroupSelector.cc.
References edm::hlt::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(), edm::hlt::Exception, firstId_, dataset::firstRun, globalRunRange_, nparameters_, AlignmentParameterSelector::selectedAlignables(), split, testSplitOption(), and verifyParameterNames().
Referenced by TkModuleGroupSelector().
|
private |
Definition at line 58 of file TkModuleGroupSelector.cc.
References cond::rpcobgas::detid, edm::hlt::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 239 of file TkModuleGroupSelector.cc.
References globalRunRange_, and numIovs().
Referenced by SiStripLorentzAngleCalibration::endOfJob(), SiStripBackplaneCalibration::endOfJob(), SiPixelLorentzAngleCalibration::endOfJob(), SiStripBackplaneCalibration::writeTree(), SiStripLorentzAngleCalibration::writeTree(), and SiPixelLorentzAngleCalibration::writeTree().
unsigned int TkModuleGroupSelector::getNumberOfParameters | ( | ) | const |
Definition at line 227 of file TkModuleGroupSelector.cc.
References nparameters_.
Referenced by SiStripLorentzAngleCalibration::beginOfJob(), SiPixelLorentzAngleCalibration::beginOfJob(), and 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 245 of file TkModuleGroupSelector.cc.
References DetId::det(), edm::hlt::Exception, firstId_, cmsHarvester::index, mapDetIdGroupId_, referenceRun_, runRange_, gather_cfg::runs, EgammaValidation_Wenu_cff::sel, DetId::subdetId(), subdetids_, and DetId::Tracker.
Referenced by SiStripLorentzAngleCalibration::derivatives(), SiPixelLorentzAngleCalibration::derivatives(), SiStripBackplaneCalibration::derivatives(), SiStripLorentzAngleCalibration::endOfJob(), SiStripBackplaneCalibration::endOfJob(), SiPixelLorentzAngleCalibration::endOfJob(), SiStripBackplaneCalibration::getParameterForDetId(), SiStripLorentzAngleCalibration::getParameterForDetId(), SiPixelLorentzAngleCalibration::getParameterForDetId(), SiStripBackplaneCalibration::writeTree(), SiPixelLorentzAngleCalibration::writeTree(), and SiStripLorentzAngleCalibration::writeTree().
unsigned int TkModuleGroupSelector::numIovs | ( | ) | const |
Total number of IOVs.
Definition at line 233 of file TkModuleGroupSelector.cc.
References globalRunRange_.
Referenced by SiStripLorentzAngleCalibration::beginOfJob(), SiPixelLorentzAngleCalibration::beginOfJob(), SiStripBackplaneCalibration::beginOfJob(), SiStripLorentzAngleCalibration::endOfJob(), SiStripBackplaneCalibration::endOfJob(), SiPixelLorentzAngleCalibration::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 edm::hlt::Exception, edm::ParameterSet::getParameterNames(), mergeVDriftHistosByStation::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().