#include <SiStripLorentzAngleGenerator.h>
Public Member Functions | |
void | getObj (SiStripLorentzAngle *&obj) |
SiStripLorentzAngleGenerator (const edm::ParameterSet &, const edm::ActivityRegistry &) | |
~SiStripLorentzAngleGenerator () | |
Public Member Functions inherited from SiStripCondObjBuilderBase< SiStripLorentzAngle > | |
virtual bool | checkForCompatibility (std::string ss) |
virtual void | getMetaDataString (std::stringstream &ss) |
virtual void | initialize () |
SiStripCondObjBuilderBase (const edm::ParameterSet &pset) | |
virtual | ~SiStripCondObjBuilderBase () |
Private Member Functions | |
SiStripLorentzAngle * | createObject () |
void | setHallMobility (const double &meanMin, const double &meanMax, const double &sigma, const bool uniform) |
void | setUniform (const std::vector< double > &TIB_EstimatedValuesMin, const std::vector< double > &TIB_EstimatedValuesMax, std::vector< bool > &uniformTIB) |
Method used to determine whether to generate with a uniform distribution for each layer. More... | |
Private Attributes | |
float | hallMobility_ |
Additional Inherited Members | |
Protected Attributes inherited from SiStripCondObjBuilderBase< SiStripLorentzAngle > | |
edm::ParameterSet | _pset |
SiStripLorentzAngle * | obj_ |
Generator of the ideal/fake conditions for the LorentzAngle.
It receives input values with layer granularity and it is able to perform gaussian smearing or use a uniform distribution at the module level.
Depending on the parameters passed via cfg, it is able to generate the values per DetId with a gaussian distribution and a uniform distribution. When setting the sigma of the gaussian to 0 and passing a single value the generated values are fixed.
For TID and TEC the decision to generate with a uniform distribution comes from the setting for the first layers of TIB and TOB.
Definition at line 22 of file SiStripLorentzAngleGenerator.h.
|
explicit |
Definition at line 22 of file SiStripLorentzAngleGenerator.cc.
SiStripLorentzAngleGenerator::~SiStripLorentzAngleGenerator | ( | ) |
Definition at line 29 of file SiStripLorentzAngleGenerator.cc.
|
private |
Definition at line 50 of file SiStripLorentzAngleGenerator.cc.
References SiStripCondObjBuilderBase< SiStripLorentzAngle >::_pset, gather_cfg::cout, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), hallMobility_, TOBDetId::layer(), TIBDetId::layer(), getGTfromDQMFile::obj, SiStripLorentzAngle::putLorentzAngle(), matplotRender::reader, TECDetId::ringNumber(), setHallMobility(), setUniform(), redigi_cff::SiStripLorentzAngle, DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, and create_public_lumi_plots::transform.
Referenced by Vispa.Views.LineDecayView.LineDecayContainer::dropEvent(), and getObj().
|
inlinevirtual |
Returns the CondObj
Reimplemented from SiStripCondObjBuilderBase< SiStripLorentzAngle >.
Definition at line 28 of file SiStripLorentzAngleGenerator.h.
References createObject().
|
private |
This method fills the hallMobility_ variable with different values according to the parameters passed in the cfg.
Definition at line 33 of file SiStripLorentzAngleGenerator.cc.
References hallMobility_.
Referenced by createObject().
|
private |
Method used to determine whether to generate with a uniform distribution for each layer.
Definition at line 39 of file SiStripLorentzAngleGenerator.cc.
References max(), and bookConverter::min.
Referenced by createObject().
|
private |
Definition at line 33 of file SiStripLorentzAngleGenerator.h.
Referenced by createObject(), and setHallMobility().