Public Member Functions | |
void | beginOfJob (AlignableTracker *tracker, AlignableMuon *muon, AlignableExtras *extras) override |
void | beginRun (const edm::Run &, const edm::EventSetup &) override |
Call at beginning of run: More... | |
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 |
SiStripLorentzAngleCalibration (const edm::ParameterSet &cfg, edm::ConsumesCollector &iC) | |
Constructor. More... | |
~SiStripLorentzAngleCalibration () override=default | |
Destructor. More... | |
Public Member Functions inherited from IntegratedCalibrationBase | |
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 | |
SiStripLorentzAngle | createFromTree (const char *fileName, const char *treeName) const |
double | effectiveThickness (const GeomDet *det, int16_t mode, const edm::EventSetup &setup) const |
in non-peak mode the effective thickness is reduced... More... | |
const SiStripLorentzAngle * | getLorentzAnglesInput (const align::RunNumber &=0) |
double | getParameterForDetId (unsigned int detId, edm::RunNumber_t run) const |
void | writeTree (const SiStripLorentzAngle *lorentzAngle, const std::map< unsigned int, TreeStruct > &treeInfo, const char *treeName) const |
Private Attributes | |
const edm::ESGetToken < SiStripBackPlaneCorrection, SiStripBackPlaneCorrectionRcd > | backPlaneCorrToken_ |
std::map< align::RunNumber, SiStripLorentzAngle > | cachedLorentzAngleInputs_ |
align::RunNumber | currentIOV_ {0} |
const edm::ESGetToken < SiStripLatency, SiStripLatencyRcd > | latencyToken_ |
const edm::ESGetToken < SiStripLorentzAngle, SiStripLorentzAngleRcd > | lorentzAngleToken_ |
const edm::ESGetToken < MagneticField, IdealMagneticFieldRecord > | magFieldToken_ |
const std::vector< std::string > | mergeFileNames_ |
const edm::ParameterSet | moduleGroupSelCfg_ |
std::unique_ptr < 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_ |
SiStripLorentzAngle * | siStripLorentzAngleInput_ {nullptr} |
edm::ESWatcher < SiStripLorentzAngleRcd > | watchLorentzAngleRcd_ |
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... | |
Calibration of Lorentz angle for the strip tracker, integrated in the alignment algorithms. Note that not all algorithms support this...
Use one instance for peak and/or one instance for deco mode data.
(last update by
)
Definition at line 53 of file SiStripLorentzAngleCalibration.cc.
|
explicit |
Constructor.
Definition at line 144 of file SiStripLorentzAngleCalibration.cc.
References Exception, kDeconvolutionMode, kPeakMode, readoutMode_, and readoutModeName_.
|
overridedefault |
Destructor.
|
overridevirtual |
Call at beginning of job: default implementation is dummy, to be overwritten in derived class if useful.
Reimplemented from IntegratedCalibrationBase.
Definition at line 297 of file SiStripLorentzAngleCalibration.cc.
References mergeFileNames_, moduleGroupSelCfg_, moduleGroupSelector_, IntegratedCalibrationBase::name(), numParameters(), outFileName_, parameters_, paramUncertainties_, readoutModeName_, saveToDB_, SiStripDetId::TEC, SiStripDetId::TIB, SiStripDetId::TID, and SiStripDetId::TOB.
|
overridevirtual |
Call at beginning of run:
Reimplemented from IntegratedCalibrationBase.
Definition at line 174 of file SiStripLorentzAngleCalibration.cc.
References cond::TimeTypeSpecs::beginValue, cachedLorentzAngleInputs_, edm::ESWatcher< T >::check(), currentIOV_, Exception, dataset::firstRun, edm::EventSetup::get(), edm::EventSetup::getData(), SiStripLorentzAngle::getLorentzAngles(), mps_fire::i, lorentzAngleToken_, moduleGroupSelector_, edm::RunBase::run(), cond::runnumber, convertSQLiteXML::runNumber, redigi_cff::SiStripLorentzAngle, siStripLorentzAngleInput_, cond::timeTypeSpecs, and watchLorentzAngleRcd_.
|
private |
Definition at line 505 of file SiStripLorentzAngleCalibration.cc.
References mergeVDriftHistosByStation::file, mps_fire::result, MainPageGenerator::tree, and relativeConstraints::value.
Referenced by getLorentzAnglesInput().
|
override |
Return non-zero derivatives for x- and y-measurements with their indices by reference. Return value is their number.
Definition at line 216 of file SiStripLorentzAngleCalibration.cc.
References ecalTB2006H4_GenSimDigiReco_cfg::bField, TrackingRecHit::det(), effectiveThickness(), AlignmentAlgorithmBase::EventInfo::eventId(), GeomDet::geographicalId(), edm::EventSetup::getData(), MagneticField::inTesla(), kDeconvolutionMode, kPeakMode, beam_dqm_sourceclient-live_cfg::latency, latencyToken_, magFieldToken_, HLT_FULL_cff::magneticField, universalConfigTemplate::mode, moduleGroupSelector_, GloballyPositioned< T >::position(), readoutMode_, readoutModeName_, edm::EventID::run(), GeneralSetup::setup(), SiStripLatency::singleReadOutMode(), GeomDet::surface(), and GloballyPositioned< T >::toLocal().
|
private |
in non-peak mode the effective thickness is reduced...
Definition at line 396 of file SiStripLorentzAngleCalibration.cc.
References backPlaneCorrToken_, Surface::bounds(), GeomDet::geographicalId(), edm::EventSetup::getData(), gpuClustering::id, GeomDet::surface(), and Bounds::thickness().
Referenced by derivatives().
|
overridevirtual |
Called at end of a the job of the AlignmentProducer. Write out determined parameters.
Implements IntegratedCalibrationBase.
Definition at line 322 of file SiStripLorentzAngleCalibration.cc.
References c, getLorentzAnglesInput(), getParameterError(), getParameterForDetId(), PixelMapPlotter::inputs, edm::Service< T >::isAvailable(), moduleGroupSelector_, IntegratedCalibrationBase::name(), submitPVResolutionJobs::out, convertSQLitetoXML_cfg::output, parameters_, paramUncertainties_, readoutModeName_, recordNameDBwrite_, saveToDB_, AlCaHLTBitMon_QueryRunRegistry::string, relativeConstraints::value, cond::service::PoolDBOutputService::writeOneIOV(), and writeTree().
|
private |
Input LorentzAngle values:
Definition at line 414 of file SiStripLorentzAngleCalibration.cc.
References cachedLorentzAngleInputs_, createFromTree(), currentIOV_, SiStripLorentzAngle::getLorentzAngles(), mergeFileNames_, IntegratedCalibrationBase::name(), readoutModeName_, siStripLorentzAngleInput_, 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 287 of file SiStripLorentzAngleCalibration.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 292 of file SiStripLorentzAngleCalibration.cc.
References paramUncertainties_.
Referenced by endOfJob().
|
private |
Determined parameter value for this detId (detId not treated => 0.) and the given run.
Definition at line 455 of file SiStripLorentzAngleCalibration.cc.
References moduleGroupSelector_, and parameters_.
Referenced by endOfJob().
|
overridevirtual |
How many parameters does this calibration define?
Implements IntegratedCalibrationBase.
Definition at line 171 of file SiStripLorentzAngleCalibration.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 267 of file SiStripLorentzAngleCalibration.cc.
References parameters_, and relativeConstraints::value.
Referenced by coreTools.RunOnData::__call__(), trackTools.MakeAODTrackCandidates::__call__(), runJetUncertainties.RunJetUncertainties::__call__(), metTools.AddMETCollection::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), tauTools.AddTauCollection::__call__(), trackTools.MakeTrackCandidates::__call__(), trigTools.SwitchOnTriggerMatching::__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 277 of file SiStripLorentzAngleCalibration.cc.
References relativeConstraints::error, and paramUncertainties_.
|
private |
Definition at line 462 of file SiStripLorentzAngleCalibration.cc.
References mergeVDriftHistosByStation::file, SiStripLorentzAngle::getLorentzAngles(), TreeStruct::LeafList(), moduleGroupSelector_, outFileName_, MainPageGenerator::tree, and relativeConstraints::value.
Referenced by endOfJob().
|
private |
Definition at line 137 of file SiStripLorentzAngleCalibration.cc.
Referenced by effectiveThickness().
|
private |
Definition at line 124 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginRun(), and getLorentzAnglesInput().
|
private |
Definition at line 126 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginRun(), and getLorentzAnglesInput().
|
private |
Definition at line 134 of file SiStripLorentzAngleCalibration.cc.
Referenced by derivatives().
|
private |
Definition at line 135 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginRun().
|
private |
Definition at line 136 of file SiStripLorentzAngleCalibration.cc.
Referenced by derivatives().
|
private |
Definition at line 120 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob(), and getLorentzAnglesInput().
|
private |
Definition at line 132 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob().
|
private |
Definition at line 131 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob(), beginRun(), derivatives(), endOfJob(), getParameterForDetId(), and writeTree().
|
private |
Definition at line 119 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob(), and writeTree().
|
private |
Definition at line 128 of file SiStripLorentzAngleCalibration.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 129 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob(), endOfJob(), getParameterError(), and setParameterError().
|
private |
Definition at line 116 of file SiStripLorentzAngleCalibration.cc.
Referenced by derivatives(), and SiStripLorentzAngleCalibration().
|
private |
Definition at line 115 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob(), derivatives(), endOfJob(), getLorentzAnglesInput(), and SiStripLorentzAngleCalibration().
|
private |
Definition at line 118 of file SiStripLorentzAngleCalibration.cc.
Referenced by endOfJob().
|
private |
Definition at line 117 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob(), and endOfJob().
|
private |
Definition at line 125 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginRun(), and getLorentzAnglesInput().
|
private |
Definition at line 122 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginRun().