Public Member Functions | |
virtual void | beginOfJob (AlignableTracker *tracker, AlignableMuon *muon, AlignableExtras *extras) override |
virtual unsigned int | derivatives (std::vector< ValuesIndexPair > &outDerivInds, const TransientTrackingRecHit &hit, const TrajectoryStateOnSurface &tsos, const edm::EventSetup &setup, const EventInfo &eventInfo) const override |
virtual void | endOfJob () override |
virtual double | getParameter (unsigned int index) const override |
virtual double | getParameterError (unsigned int index) const override |
virtual unsigned int | numParameters () const override |
How many parameters does this calibration define? More... | |
virtual bool | setParameter (unsigned int index, double value) override |
virtual bool | setParameterError (unsigned int index, double error) override |
SiStripLorentzAngleCalibration (const edm::ParameterSet &cfg) | |
Constructor. More... | |
virtual | ~SiStripLorentzAngleCalibration () |
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 | |
bool | checkLorentzAngleInput (const edm::EventSetup &setup, const EventInfo &eventInfo) |
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 () |
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 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_ |
SiStripLorentzAngle * | siStripLorentzAngleInput_ |
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 148 of file SiStripLorentzAngleCalibration.cc.
References edm::hlt::Exception, kDeconvolutionMode, kPeakMode, readoutMode_, and readoutModeName_.
|
virtual |
Destructor.
Definition at line 176 of file SiStripLorentzAngleCalibration.cc.
References moduleGroupSelector_, and siStripLorentzAngleInput_.
|
overridevirtual |
Call at beginning of job: default implementation is dummy, to be overwritten in derived class if useful.
Reimplemented from IntegratedCalibrationBase.
Definition at line 282 of file SiStripLorentzAngleCalibration.cc.
References TkModuleGroupSelector::getNumberOfParameters(), mergeFileNames_, moduleGroupSelCfg_, moduleGroupSelector_, IntegratedCalibrationBase::name(), TkModuleGroupSelector::numIovs(), numParameters(), outFileName_, parameters_, paramUncertainties_, readoutModeName_, saveToDB_, SiStripDetId::TIB, and SiStripDetId::TOB.
|
private |
If called the first time, fill 'siStripLorentzAngleInput_', later check that LorentzAngle has not changed.
Definition at line 382 of file SiStripLorentzAngleCalibration.cc.
References edm::ESWatcher< T >::check(), AlignmentAlgorithmBase::EventInfo::eventId_, edm::hlt::Exception, edm::EventSetup::get(), SiStripLorentzAngle::getLorentzAngles(), readoutModeName_, edm::EventID::run(), redigi_cff::SiStripLorentzAngle, siStripLorentzAngleInput_, and watchLorentzAngleRcd_.
Referenced by derivatives().
|
private |
Definition at line 524 of file SiStripLorentzAngleCalibration.cc.
References mergeVDriftHistosByStation::file, SiStripLorentzAngle::putLorentzAngle(), query::result, redigi_cff::SiStripLorentzAngle, diffTreeTool::tree, and relativeConstraints::value.
Referenced by getLorentzAnglesInput().
|
overridevirtual |
Return non-zero derivatives for x- and y-measurements with their indices by reference. Return value is their number.
Definition at line 191 of file SiStripLorentzAngleCalibration.cc.
References ecalTB2006H4_GenSimDigiReco_cfg::bField, checkLorentzAngleInput(), TrackingRecHit::det(), effectiveThickness(), AlignmentAlgorithmBase::EventInfo::eventId_, GeomDet::geographicalId(), edm::EventSetup::get(), TkModuleGroupSelector::getParameterIndexFromDetId(), cmsHarvester::index, kDeconvolutionMode, kPeakMode, alignBH_cfg::mode, moduleGroupSelector_, GloballyPositioned< T >::position(), readoutMode_, readoutModeName_, edm::EventID::run(), HcalObjRepresent::setup(), GeomDet::surface(), and GloballyPositioned< T >::toLocal().
|
private |
in non-peak mode the effective thickness is reduced...
Definition at line 412 of file SiStripLorentzAngleCalibration.cc.
References Surface::bounds(), GeomDet::geographicalId(), edm::EventSetup::get(), readoutModeName_, 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 309 of file SiStripLorentzAngleCalibration.cc.
References TkModuleGroupSelector::firstRunOfIOV(), SiStripLorentzAngle::getLorentzAngles(), getLorentzAnglesInput(), getParameterError(), getParameterForDetId(), TkModuleGroupSelector::getParameterIndexFromDetId(), input, edm::Service< T >::isAvailable(), moduleGroupSelector_, IntegratedCalibrationBase::name(), TkModuleGroupSelector::numIovs(), dbtoconf::out, convertSQLitetoXML_cfg::output, parameters_, paramUncertainties_, SiStripLorentzAngle::putLorentzAngle(), readoutModeName_, recordNameDBwrite_, saveToDB_, redigi_cff::SiStripLorentzAngle, AlCaHLTBitMon_QueryRunRegistry::string, cond::service::PoolDBOutputService::writeOne(), and writeTree().
|
private |
Input LorentzAngle values:
Definition at line 431 of file SiStripLorentzAngleCalibration.cc.
References createFromTree(), SiStripLorentzAngle::getLorentzAngles(), mergeFileNames_, IntegratedCalibrationBase::name(), readoutModeName_, redigi_cff::SiStripLorentzAngle, 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 270 of file SiStripLorentzAngleCalibration.cc.
References cmsHarvester::index, and 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 276 of file SiStripLorentzAngleCalibration.cc.
References cmsHarvester::index, and paramUncertainties_.
Referenced by endOfJob().
|
private |
Determined parameter value for this detId (detId not treated => 0.) and the given run.
Definition at line 472 of file SiStripLorentzAngleCalibration.cc.
References TkModuleGroupSelector::getParameterIndexFromDetId(), cmsHarvester::index, moduleGroupSelector_, and parameters_.
Referenced by endOfJob().
|
overridevirtual |
How many parameters does this calibration define?
Implements IntegratedCalibrationBase.
Definition at line 184 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 248 of file SiStripLorentzAngleCalibration.cc.
References cmsHarvester::index, 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__(), jetTools.AddJetCollection::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), HiCoreTools.RemoveAllPATObjectsBut::__call__(), runType1CaloMEtUncertainties.RunType1CaloMEtUncertainties::__call__(), HiCoreTools.RemoveSpecificPATObjects::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), trackTools.MakeTrackCandidates::__call__(), tauTools.AddTauCollection::__call__(), jmeUncertaintyTools.JetMEtUncertaintyTools::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), HiCoreTools.RemoveCleaning::__call__(), runType1PFMEtUncertainties.RunType1PFMEtUncertainties::__call__(), HiCoreTools.AddCleaning::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.AddJetID::__call__(), and jetTools.SetTagInfos::__call__().
|
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 SiStripLorentzAngleCalibration.cc.
References relativeConstraints::error, cmsHarvester::index, and paramUncertainties_.
|
private |
Definition at line 481 of file SiStripLorentzAngleCalibration.cc.
References mergeVDriftHistosByStation::file, TkModuleGroupSelector::firstRunOfIOV(), SiStripLorentzAngle::getLorentzAngles(), TkModuleGroupSelector::getParameterIndexFromDetId(), TreeStruct::LeafList(), moduleGroupSelector_, outFileName_, diffTreeTool::tree, and relativeConstraints::value.
Referenced by endOfJob().
|
private |
Definition at line 131 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob(), and getLorentzAnglesInput().
|
private |
Definition at line 141 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob().
|
private |
Definition at line 140 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob(), derivatives(), endOfJob(), getParameterForDetId(), writeTree(), and ~SiStripLorentzAngleCalibration().
|
private |
Definition at line 130 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob(), and writeTree().
|
private |
Definition at line 137 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob(), Mixins._TypedParameterizable::clone(), Types.PSet::clone(), Mixins._TypedParameterizable::copy(), endOfJob(), getParameter(), getParameterForDetId(), numParameters(), and setParameter().
|
private |
Definition at line 138 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob(), endOfJob(), getParameterError(), and setParameterError().
|
private |
Definition at line 127 of file SiStripLorentzAngleCalibration.cc.
Referenced by derivatives(), and SiStripLorentzAngleCalibration().
|
private |
Definition at line 126 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob(), checkLorentzAngleInput(), derivatives(), effectiveThickness(), endOfJob(), getLorentzAnglesInput(), and SiStripLorentzAngleCalibration().
|
private |
Definition at line 129 of file SiStripLorentzAngleCalibration.cc.
Referenced by endOfJob().
|
private |
Definition at line 128 of file SiStripLorentzAngleCalibration.cc.
Referenced by beginOfJob(), and endOfJob().
|
private |
Definition at line 135 of file SiStripLorentzAngleCalibration.cc.
Referenced by checkLorentzAngleInput(), getLorentzAnglesInput(), and ~SiStripLorentzAngleCalibration().
|
private |
Definition at line 133 of file SiStripLorentzAngleCalibration.cc.
Referenced by checkLorentzAngleInput().