CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
SiStripBackplaneCalibration Class Reference
Inheritance diagram for SiStripBackplaneCalibration:
IntegratedCalibrationBase

Public Member Functions

virtual void beginOfJob (AlignableTracker *tracker, AlignableMuon *muon, AlignableExtras *extras)
 
virtual unsigned int derivatives (std::vector< ValuesIndexPair > &outDerivInds, const TransientTrackingRecHit &hit, const TrajectoryStateOnSurface &tsos, const edm::EventSetup &setup, const EventInfo &eventInfo) const
 
virtual void endOfJob ()
 
virtual double getParameter (unsigned int index) const
 
virtual double getParameterError (unsigned int index) const
 
virtual unsigned int numParameters () const
 How many parameters does this calibration define? More...
 
virtual bool setParameter (unsigned int index, double value)
 
virtual bool setParameterError (unsigned int index, double error)
 
 SiStripBackplaneCalibration (const edm::ParameterSet &cfg)
 Constructor. More...
 
virtual ~SiStripBackplaneCalibration ()
 Destructor. More...
 
- Public Member Functions inherited from IntegratedCalibrationBase
virtual std::vector< Valuesderivatives (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)
 
SiStripBackPlaneCorrectioncreateFromTree (const char *fileName, const char *treeName) const
 
const SiStripBackPlaneCorrectiongetBackPlaneCorrectionInput ()
 
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_
 
TkModuleGroupSelectormoduleGroupSelector_
 
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_
 
SiStripBackPlaneCorrectionsiStripBackPlaneCorrInput_
 
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...
 

Detailed Description

Author
: Gero Flucke date : November 2012
Revision:
1.1.2.13
Date:
2013/05/31 08:37:12

(last update by

Author:
flucke

)

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.

Constructor & Destructor Documentation

SiStripBackplaneCalibration::SiStripBackplaneCalibration ( const edm::ParameterSet cfg)
explicit

Constructor.

Definition at line 148 of file SiStripBackplaneCalibration.cc.

SiStripBackplaneCalibration::~SiStripBackplaneCalibration ( )
virtual

Destructor.

Definition at line 176 of file SiStripBackplaneCalibration.cc.

Member Function Documentation

void SiStripBackplaneCalibration::beginOfJob ( AlignableTracker tracker,
AlignableMuon muon,
AlignableExtras extras 
)
virtual

Call at beginning of job: default implementation is dummy, to be overwritten in derived class if useful.

Reimplemented from IntegratedCalibrationBase.

Definition at line 295 of file SiStripBackplaneCalibration.cc.

bool SiStripBackplaneCalibration::checkBackPlaneCorrectionInput ( const edm::EventSetup setup,
const EventInfo eventInfo 
)
private

If called the first time, fill 'siStripBackPlaneCorrInput_', later check that Backplane has not changed.

Definition at line 416 of file SiStripBackplaneCalibration.cc.

SiStripBackPlaneCorrection * SiStripBackplaneCalibration::createFromTree ( const char *  fileName,
const char *  treeName 
) const
private

Definition at line 540 of file SiStripBackplaneCalibration.cc.

unsigned int SiStripBackplaneCalibration::derivatives ( std::vector< ValuesIndexPair > &  outDerivInds,
const TransientTrackingRecHit hit,
const TrajectoryStateOnSurface tsos,
const edm::EventSetup setup,
const EventInfo eventInfo 
) const
virtual

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 SiStripBackplaneCalibration.cc.

void SiStripBackplaneCalibration::endOfJob ( )
virtual

Called at end of a the job of the AlignmentProducer. Write out determined parameters.

Implements IntegratedCalibrationBase.

Definition at line 325 of file SiStripBackplaneCalibration.cc.

const SiStripBackPlaneCorrection * SiStripBackplaneCalibration::getBackPlaneCorrectionInput ( )
private

Input BackPlaneCorrection values:

  • either from EventSetup of first call to derivatives(..)
  • or created from files of passed by configuration (i.e. from parallel processing)

Definition at line 446 of file SiStripBackplaneCalibration.cc.

double SiStripBackplaneCalibration::getParameter ( unsigned int  index) const
virtual

Return current value of parameter identified by index. Returns 0. if index out-of-bounds.

Implements IntegratedCalibrationBase.

Definition at line 283 of file SiStripBackplaneCalibration.cc.

double SiStripBackplaneCalibration::getParameterError ( unsigned int  index) const
virtual

Return current value of parameter identified by index. Returns 0. if index out-of-bounds or if errors undetermined.

Implements IntegratedCalibrationBase.

Definition at line 289 of file SiStripBackplaneCalibration.cc.

double SiStripBackplaneCalibration::getParameterForDetId ( unsigned int  detId,
edm::RunNumber_t  run 
) const
private

Determined parameter value for this detId (detId not treated => 0.) and the given run.

Definition at line 487 of file SiStripBackplaneCalibration.cc.

unsigned int SiStripBackplaneCalibration::numParameters ( ) const
virtual

How many parameters does this calibration define?

Implements IntegratedCalibrationBase.

Definition at line 184 of file SiStripBackplaneCalibration.cc.

bool SiStripBackplaneCalibration::setParameter ( unsigned int  index,
double  value 
)
virtual

Setting the determined parameter identified by index, returns false if out-of-bounds, true otherwise.

Implements IntegratedCalibrationBase.

Definition at line 261 of file SiStripBackplaneCalibration.cc.

Referenced by editorTools.UserCodeTool::__call__(), metTools.AddMETCollection::__call__(), and editorTools.ChangeSource::__call__().

bool SiStripBackplaneCalibration::setParameterError ( unsigned int  index,
double  error 
)
virtual

Setting the determined parameter uncertainty identified by index, returns false if out-of-bounds, true otherwise.

Implements IntegratedCalibrationBase.

Definition at line 272 of file SiStripBackplaneCalibration.cc.

void SiStripBackplaneCalibration::writeTree ( const SiStripBackPlaneCorrection backPlaneCorr,
const std::map< unsigned int, TreeStruct > &  treeInfo,
const char *  treeName 
) const
private

Definition at line 496 of file SiStripBackplaneCalibration.cc.

Member Data Documentation

const std::vector<std::string> SiStripBackplaneCalibration::mergeFileNames_
private

Definition at line 130 of file SiStripBackplaneCalibration.cc.

const edm::ParameterSet SiStripBackplaneCalibration::moduleGroupSelCfg_
private

Definition at line 140 of file SiStripBackplaneCalibration.cc.

TkModuleGroupSelector* SiStripBackplaneCalibration::moduleGroupSelector_
private

Definition at line 139 of file SiStripBackplaneCalibration.cc.

const std::string SiStripBackplaneCalibration::outFileName_
private

Definition at line 129 of file SiStripBackplaneCalibration.cc.

std::vector<double> SiStripBackplaneCalibration::parameters_
private

Definition at line 136 of file SiStripBackplaneCalibration.cc.

std::vector<double> SiStripBackplaneCalibration::paramUncertainties_
private

Definition at line 137 of file SiStripBackplaneCalibration.cc.

int16_t SiStripBackplaneCalibration::readoutMode_
private

Definition at line 126 of file SiStripBackplaneCalibration.cc.

const std::string SiStripBackplaneCalibration::readoutModeName_
private

Definition at line 125 of file SiStripBackplaneCalibration.cc.

const std::string SiStripBackplaneCalibration::recordNameDBwrite_
private

Definition at line 128 of file SiStripBackplaneCalibration.cc.

const bool SiStripBackplaneCalibration::saveToDB_
private

Definition at line 127 of file SiStripBackplaneCalibration.cc.

SiStripBackPlaneCorrection* SiStripBackplaneCalibration::siStripBackPlaneCorrInput_
private

Definition at line 134 of file SiStripBackplaneCalibration.cc.

edm::ESWatcher<SiStripBackPlaneCorrectionRcd> SiStripBackplaneCalibration::watchBackPlaneCorrRcd_
private

Definition at line 132 of file SiStripBackplaneCalibration.cc.