#include <SiStripNoisesGenerator.h>
Public Member Functions | |
void | getObj (SiStripNoises *&obj) |
SiStripNoisesGenerator (const edm::ParameterSet &, const edm::ActivityRegistry &) | |
~SiStripNoisesGenerator () | |
Public Member Functions inherited from SiStripCondObjBuilderBase< SiStripNoises > | |
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 | |
SiStripNoises * | createObject () |
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 |
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 SiStripCondObjBuilderBase< SiStripNoises > | |
edm::ParameterSet | _pset |
SiStripNoises * | obj_ |
Definition at line 12 of file SiStripNoisesGenerator.h.
|
explicit |
Definition at line 14 of file SiStripNoisesGenerator.cc.
SiStripNoisesGenerator::~SiStripNoisesGenerator | ( | ) |
Definition at line 24 of file SiStripNoisesGenerator.cc.
|
private |
Definition at line 29 of file SiStripNoisesGenerator.cc.
References SiStripCondObjBuilderBase< SiStripNoises >::_pset, prof2calltree::count, electronsPerADC_, fillParameters(), edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), j, minimumPosValue_, HLT_25ns14e33_v1_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 123 of file SiStripNoisesGenerator.cc.
References SiStripCondObjBuilderBase< SiStripNoises >::_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 136 of file SiStripNoisesGenerator.cc.
References edm::hlt::Exception, and LayerTriplets::layers().
Referenced by fillParameters().
|
inlinevirtual |
Returns the CondObj
Reimplemented from SiStripCondObjBuilderBase< SiStripNoises >.
Definition at line 18 of file SiStripNoisesGenerator.h.
References createObject().
|
inlineprivate |
Definition at line 36 of file SiStripNoisesGenerator.h.
Referenced by createObject().
|
private |
Given the map and the detid it returns the corresponding layer/ring.
Definition at line 97 of file SiStripNoisesGenerator.cc.
References TOBDetId::layer(), TIBDetId::layer(), TIDDetId::ring(), TECDetId::ring(), DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, and StripSubdetector::TOB.
Referenced by createObject().
|
private |
Definition at line 41 of file SiStripNoisesGenerator.h.
Referenced by createObject().
|
private |
Definition at line 42 of file SiStripNoisesGenerator.h.
Referenced by createObject().
|
private |
Definition at line 44 of file SiStripNoisesGenerator.h.
Referenced by createObject().
|
private |
Definition at line 43 of file SiStripNoisesGenerator.h.
Referenced by createObject().