Public Member Functions | |
void | beginOfJob (AlignableTracker *tracker, AlignableMuon *muon, AlignableExtras *extras) override |
unsigned int | derivatives (std::vector< ValuesIndexPair > &outDerivInds, const TransientTrackingRecHit &hit, const TrajectoryStateOnSurface &tsos, const edm::EventSetup &setup, const EventInfo &eventInfo) const override |
void | endOfJob () override |
double | getParameter (unsigned int index) const override |
double | getParameterError (unsigned int index) const override |
unsigned int | numParameters () const override |
How many parameters does this calibration define? More... | |
bool | setParameter (unsigned int index, double value) override |
bool | setParameterError (unsigned int index, double error) override |
SiStripBackplaneCalibration (const edm::ParameterSet &cfg) | |
Constructor. More... | |
~SiStripBackplaneCalibration () override | |
Destructor. More... | |
Public Member Functions inherited from IntegratedCalibrationBase | |
virtual void | beginRun (const edm::Run &, const edm::EventSetup &) |
virtual std::vector< Values > | derivatives (const TrackingRecHit &hit, const TrajectoryStateOnSurface &tsos, const edm::EventSetup &setup, const EventInfo &eventInfo) const |
virtual unsigned int | derivatives (std::vector< ValuesIndexPair > &outDerivInds, const TrackingRecHit &hit, const TrajectoryStateOnSurface &tsos, const edm::EventSetup &setup, const EventInfo &eventInfo) const =0 |
virtual void | endOfLoop () |
IntegratedCalibrationBase (const edm::ParameterSet &cfg) | |
Values and their parameter index. More... | |
const std::string & | name () const |
name of this calibration More... | |
virtual void | startNewLoop () |
virtual | ~IntegratedCalibrationBase () |
Destructor. More... | |
Private Member Functions | |
bool | checkBackPlaneCorrectionInput (const edm::EventSetup &setup, const EventInfo &eventInfo) |
SiStripBackPlaneCorrection * | createFromTree (const char *fileName, const char *treeName) const |
const SiStripBackPlaneCorrection * | getBackPlaneCorrectionInput () |
double | getParameterForDetId (unsigned int detId, edm::RunNumber_t run) const |
void | writeTree (const SiStripBackPlaneCorrection *backPlaneCorr, const std::map< unsigned int, TreeStruct > &treeInfo, const char *treeName) const |
Private Attributes | |
const std::vector< std::string > | mergeFileNames_ |
const edm::ParameterSet | moduleGroupSelCfg_ |
TkModuleGroupSelector * | moduleGroupSelector_ |
const std::string | outFileName_ |
std::vector< double > | parameters_ |
std::vector< double > | paramUncertainties_ |
int16_t | readoutMode_ |
const std::string | readoutModeName_ |
const std::string | recordNameDBwrite_ |
const bool | saveToDB_ |
SiStripBackPlaneCorrection * | siStripBackPlaneCorrInput_ |
edm::ESWatcher< SiStripBackPlaneCorrectionRcd > | watchBackPlaneCorrRcd_ |
Additional Inherited Members | |
Public Types inherited from IntegratedCalibrationBase | |
typedef AlignmentAlgorithmBase::EventInfo | EventInfo |
typedef std::pair< double, double > | Values |
typedef std::pair< Values, unsigned int > | ValuesIndexPair |
x- and y-values More... | |
(last update by
)
Calibration of back plane corrections for the strip tracker, integrated in the alignment algorithms. Note that not all algorithms support this...
Usally use one instance for deco mode data since peak mode should give the
Definition at line 55 of file SiStripBackplaneCalibration.cc.
|
explicit |
Constructor.
Definition at line 145 of file SiStripBackplaneCalibration.cc.
References Exception, kDeconvolutionMode, kPeakMode, readoutMode_, and readoutModeName_.
|
override |
Destructor.
Definition at line 170 of file SiStripBackplaneCalibration.cc.
References moduleGroupSelector_, and siStripBackPlaneCorrInput_.
|
overridevirtual |
Call at beginning of job: default implementation is dummy, to be overwritten in derived class if useful.
Reimplemented from IntegratedCalibrationBase.
Definition at line 279 of file SiStripBackplaneCalibration.cc.
References TkModuleGroupSelector::getNumberOfParameters(), mergeFileNames_, moduleGroupSelCfg_, moduleGroupSelector_, IntegratedCalibrationBase::name(), TkModuleGroupSelector::numIovs(), numParameters(), outFileName_, parameters_, paramUncertainties_, readoutModeName_, saveToDB_, SiStripDetId::TEC, SiStripDetId::TIB, SiStripDetId::TID, and SiStripDetId::TOB.
|
private |
If called the first time, fill 'siStripBackPlaneCorrInput_', later check that Backplane has not changed.
Definition at line 396 of file SiStripBackplaneCalibration.cc.
References edm::ESWatcher< T >::check(), AlignmentAlgorithmBase::EventInfo::eventId(), Exception, edm::EventSetup::get(), SiStripBackPlaneCorrection::getBackPlaneCorrections(), readoutModeName_, edm::EventID::run(), siStripBackPlaneCorrInput_, and watchBackPlaneCorrRcd_.
Referenced by derivatives().
|
private |
Definition at line 512 of file SiStripBackplaneCalibration.cc.
References DEFINE_EDM_PLUGIN, FrontierConditions_GlobalTag_cff::file, SiStripBackPlaneCorrection::putBackPlaneCorrection(), and mps_fire::result.
Referenced by getBackPlaneCorrectionInput().
|
override |
Return non-zero derivatives for x- and y-measurements with their indices by reference. Return value is their number.
Definition at line 180 of file SiStripBackplaneCalibration.cc.
References ecalTB2006H4_GenSimDigiReco_cfg::bField, Surface::bounds(), checkBackPlaneCorrectionInput(), TrackingRecHit::det(), AlignmentAlgorithmBase::EventInfo::eventId(), GeomDet::geographicalId(), edm::EventSetup::get(), SiStripLorentzAngle::getLorentzAngle(), TkModuleGroupSelector::getParameterIndexFromDetId(), MagneticField::inTesla(), kDeconvolutionMode, kPeakMode, hcaltpdigi_cfi::latency, TrajectoryStateOnSurface::localParameters(), seedCreatorFromRegionConsecutiveHitsEDProducer_cff::magneticField, LocalTrajectoryParameters::mixedFormatVector(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, moduleGroupSelector_, GloballyPositioned< T >::position(), readoutMode_, readoutModeName_, edm::EventID::run(), SiStripLatency::singleReadOutMode(), GeomDet::surface(), Bounds::thickness(), and GloballyPositioned< T >::toLocal().
|
overridevirtual |
Called at end of a the job of the AlignmentProducer. Write out determined parameters.
Implements IntegratedCalibrationBase.
Definition at line 306 of file SiStripBackplaneCalibration.cc.
References EnergyCorrector::c, TkModuleGroupSelector::firstRunOfIOV(), getBackPlaneCorrectionInput(), SiStripBackPlaneCorrection::getBackPlaneCorrections(), getParameterError(), getParameterForDetId(), TkModuleGroupSelector::getParameterIndexFromDetId(), input, edm::Service< T >::isAvailable(), moduleGroupSelector_, IntegratedCalibrationBase::name(), TkModuleGroupSelector::numIovs(), MillePedeFileConverter_cfg::out, convertSQLitetoXML_cfg::output, parameters_, paramUncertainties_, SiStripBackPlaneCorrection::putBackPlaneCorrection(), readoutModeName_, recordNameDBwrite_, saveToDB_, AlCaHLTBitMon_QueryRunRegistry::string, cond::service::PoolDBOutputService::writeOne(), and writeTree().
|
private |
Input BackPlaneCorrection values:
Definition at line 424 of file SiStripBackplaneCalibration.cc.
References createFromTree(), SiStripBackPlaneCorrection::getBackPlaneCorrections(), mergeFileNames_, IntegratedCalibrationBase::name(), readoutModeName_, siStripBackPlaneCorrInput_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by endOfJob().
|
overridevirtual |
Return current value of parameter identified by index. Returns 0. if index out-of-bounds.
Implements IntegratedCalibrationBase.
Definition at line 269 of file SiStripBackplaneCalibration.cc.
References parameters_.
Referenced by Mixins._Parameterizable::hasParameter().
|
overridevirtual |
Return current value of parameter identified by index. Returns 0. if index out-of-bounds or if errors undetermined.
Implements IntegratedCalibrationBase.
Definition at line 274 of file SiStripBackplaneCalibration.cc.
References paramUncertainties_.
Referenced by endOfJob().
|
private |
Determined parameter value for this detId (detId not treated => 0.) and the given run.
Definition at line 462 of file SiStripBackplaneCalibration.cc.
References TkModuleGroupSelector::getParameterIndexFromDetId(), moduleGroupSelector_, and parameters_.
Referenced by endOfJob().
|
overridevirtual |
How many parameters does this calibration define?
Implements IntegratedCalibrationBase.
Definition at line 177 of file SiStripBackplaneCalibration.cc.
References parameters_.
Referenced by beginOfJob().
|
overridevirtual |
Setting the determined parameter identified by index, returns false if out-of-bounds, true otherwise.
Implements IntegratedCalibrationBase.
Definition at line 249 of file SiStripBackplaneCalibration.cc.
References parameters_, and relativeConstraints::value.
Referenced by editorTools.UserCodeTool::__call__(), HiCoreTools.RestrictInputToAOD::__call__(), coreTools.RunOnData::__call__(), trackTools.MakeAODTrackCandidates::__call__(), runJetUncertainties.RunJetUncertainties::__call__(), metTools.AddMETCollection::__call__(), editorTools.ChangeSource::__call__(), HiCoreTools.RemoveMCMatching::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__call__(), HiCoreTools.RemoveAllPATObjectsBut::__call__(), HiCoreTools.RemoveSpecificPATObjects::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), trackTools.MakeTrackCandidates::__call__(), tauTools.AddTauCollection::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), HiCoreTools.RemoveCleaning::__call__(), HiCoreTools.AddCleaning::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.AddJetCollection::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.UpdateJetCollection::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), and runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::jetConfiguration().
|
overridevirtual |
Setting the determined parameter uncertainty identified by index, returns false if out-of-bounds, true otherwise.
Implements IntegratedCalibrationBase.
Definition at line 259 of file SiStripBackplaneCalibration.cc.
References relativeConstraints::error, and paramUncertainties_.
|
private |
Definition at line 469 of file SiStripBackplaneCalibration.cc.
References FrontierConditions_GlobalTag_cff::file, TkModuleGroupSelector::firstRunOfIOV(), SiStripBackPlaneCorrection::getBackPlaneCorrections(), TkModuleGroupSelector::getParameterIndexFromDetId(), TreeStruct::LeafList(), moduleGroupSelector_, and outFileName_.
Referenced by endOfJob().
|
private |
Definition at line 128 of file SiStripBackplaneCalibration.cc.
Referenced by beginOfJob(), and getBackPlaneCorrectionInput().
|
private |
Definition at line 138 of file SiStripBackplaneCalibration.cc.
Referenced by beginOfJob().
|
private |
Definition at line 137 of file SiStripBackplaneCalibration.cc.
Referenced by beginOfJob(), derivatives(), endOfJob(), getParameterForDetId(), writeTree(), and ~SiStripBackplaneCalibration().
|
private |
Definition at line 127 of file SiStripBackplaneCalibration.cc.
Referenced by beginOfJob(), and writeTree().
|
private |
Definition at line 134 of file SiStripBackplaneCalibration.cc.
Referenced by beginOfJob(), Mixins._TypedParameterizable::clone(), Types.PSet::clone(), Types.EDAlias::clone(), Mixins._TypedParameterizable::copy(), endOfJob(), getParameter(), getParameterForDetId(), numParameters(), and setParameter().
|
private |
Definition at line 135 of file SiStripBackplaneCalibration.cc.
Referenced by beginOfJob(), endOfJob(), getParameterError(), and setParameterError().
|
private |
Definition at line 124 of file SiStripBackplaneCalibration.cc.
Referenced by derivatives(), and SiStripBackplaneCalibration().
|
private |
Definition at line 123 of file SiStripBackplaneCalibration.cc.
Referenced by beginOfJob(), checkBackPlaneCorrectionInput(), derivatives(), endOfJob(), getBackPlaneCorrectionInput(), and SiStripBackplaneCalibration().
|
private |
Definition at line 126 of file SiStripBackplaneCalibration.cc.
Referenced by endOfJob().
|
private |
Definition at line 125 of file SiStripBackplaneCalibration.cc.
Referenced by beginOfJob(), and endOfJob().
|
private |
Definition at line 132 of file SiStripBackplaneCalibration.cc.
Referenced by checkBackPlaneCorrectionInput(), getBackPlaneCorrectionInput(), and ~SiStripBackplaneCalibration().
|
private |
Definition at line 130 of file SiStripBackplaneCalibration.cc.
Referenced by checkBackPlaneCorrectionInput().