#include <SiStripNoisesGenerator.h>
Public Member Functions | |
void | getObj (SiStripNoises *&obj, const TrackerTopology *tTopo) |
SiStripNoisesGenerator (const edm::ParameterSet &, const edm::ActivityRegistry &) | |
~SiStripNoisesGenerator () | |
Public Member Functions inherited from SiStripDepCondObjBuilderBase< SiStripNoises, TrackerTopology > | |
virtual bool | checkForCompatibility (std::string ss) |
virtual void | getMetaDataString (std::stringstream &ss) |
virtual void | initialize () |
SiStripDepCondObjBuilderBase (const edm::ParameterSet &pset) | |
virtual | ~SiStripDepCondObjBuilderBase () |
Private Member Functions | |
SiStripNoises * | createObject (const TrackerTopology *tTopo) |
void | fillParameters (std::map< int, std::vector< double > > &mapToFill, const std::string ¶meterName) const |
Fills the parameters read from cfg and matching the name in the given map. More... | |
void | fillSubDetParameter (std::map< int, std::vector< double > > &mapToFill, const std::vector< double > &v, const int subDet, const unsigned short layers) const |
void | printLog (const uint32_t detId, const unsigned short strip, const double &noise) const |
std::pair< int, int > | subDetAndLayer (const uint32_t detit, const TrackerTopology *tTopo) const |
Given the map and the detid it returns the corresponding layer/ring. More... | |
Private Attributes | |
double | electronsPerADC_ |
double | minimumPosValue_ |
uint32_t | printDebug_ |
bool | stripLengthMode_ |
Additional Inherited Members | |
Protected Attributes inherited from SiStripDepCondObjBuilderBase< SiStripNoises, TrackerTopology > | |
edm::ParameterSet | _pset |
SiStripNoises * | obj_ |
Definition at line 13 of file SiStripNoisesGenerator.h.
|
explicit |
Definition at line 9 of file SiStripNoisesGenerator.cc.
SiStripNoisesGenerator::~SiStripNoisesGenerator | ( | ) |
Definition at line 19 of file SiStripNoisesGenerator.cc.
|
private |
Definition at line 24 of file SiStripNoisesGenerator.cc.
References SiStripDepCondObjBuilderBase< SiStripNoises, TrackerTopology >::_pset, KineDebug3::count(), electronsPerADC_, fillParameters(), edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), j, minimumPosValue_, HLT_25ns10e33_v2_cff::noise, getGTfromDQMFile::obj, printDebug_, printLog(), SiStripNoises::put(), matplotRender::reader, SiStripNoises::setData(), stripLengthMode_, and subDetAndLayer().
Referenced by Vispa.Views.LineDecayView.LineDecayContainer::dropEvent(), and getObj().
|
private |
Fills the parameters read from cfg and matching the name in the given map.
Definition at line 114 of file SiStripNoisesGenerator.cc.
References SiStripDepCondObjBuilderBase< SiStripNoises, TrackerTopology >::_pset, fillSubDetParameter(), edm::ParameterSet::getParameter(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, and StripSubdetector::TOB.
Referenced by createObject().
|
private |
Fills the map with the paramters for the given subdetector.
Each vector "v" holds the parameters for the layers/rings, if the vector has only one parameter all the layers/rings get that parameter.
The only other possibility is that the number of parameters equals the number of layers, otherwise an exception of type "Configuration" will be thrown.
Definition at line 127 of file SiStripNoisesGenerator.cc.
References Exception, and LayerTriplets::layers().
Referenced by fillParameters().
|
inlinevirtual |
Returns the CondObj
Reimplemented from SiStripDepCondObjBuilderBase< SiStripNoises, TrackerTopology >.
Definition at line 19 of file SiStripNoisesGenerator.h.
References createObject().
|
inlineprivate |
Definition at line 37 of file SiStripNoisesGenerator.h.
Referenced by createObject().
|
private |
Given the map and the detid it returns the corresponding layer/ring.
Definition at line 92 of file SiStripNoisesGenerator.cc.
References DetId::subdetId(), StripSubdetector::TEC, TrackerTopology::tecRing(), StripSubdetector::TIB, TrackerTopology::tibLayer(), StripSubdetector::TID, TrackerTopology::tidRing(), StripSubdetector::TOB, and TrackerTopology::tobLayer().
Referenced by createObject().
|
private |
Definition at line 42 of file SiStripNoisesGenerator.h.
Referenced by createObject().
|
private |
Definition at line 43 of file SiStripNoisesGenerator.h.
Referenced by createObject().
|
private |
Definition at line 45 of file SiStripNoisesGenerator.h.
Referenced by createObject().
|
private |
Definition at line 44 of file SiStripNoisesGenerator.h.
Referenced by createObject().