7 fp_(iConfig.getUntrackedParameter<edm::
FileInPath>(
"file",edm::
FileInPath(
"CalibTracker/SiStripCommon/data/SiStripDetInfo.dat"))),
8 printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug",1)){}
15 edm::LogInfo(
"SiStripNoisesBuilder") <<
"... creating dummy SiStripNoises Data for Run " << run <<
"\n " << std::endl;
21 const std::map<uint32_t, SiStripDetInfoFileReader::DetInfo > DetInfos =
reader.getAllData();
24 for(std::map<uint32_t, SiStripDetInfoFileReader::DetInfo >::const_iterator it = DetInfos.begin(); it != DetInfos.end(); it++){
32 float noise = CLHEP::RandGauss::shoot(MeanNoise,RmsNoise);
37 obj->
setData(noise,theSiStripVector);
39 edm::LogInfo(
"SiStripNoisesBuilder") <<
"detid " << it->first <<
" \t"
40 <<
" strip " <<
strip <<
" \t"
42 << theSiStripVector.back()/10 <<
" \t"
46 if ( ! obj->
put(it->first,theSiStripVector) )
47 edm::LogError(
"SiStripNoisesBuilder")<<
"[SiStripNoisesBuilder::analyze] detid already exists"<<std::endl;
62 edm::LogError(
"SiStripNoisesBuilder")<<
"Service is unavailable"<<std::endl;
std::vector< uint16_t > InputVector
SiStripNoisesBuilder(const edm::ParameterSet &iConfig)
void appendSinceTime(T *payloadObj, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
bool isNewTagRequest(const std::string &recordName)
cond::Time_t beginOfTime() const
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
bool put(const uint32_t &detID, const InputVector &input)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
cond::Time_t endOfTime() const
cond::Time_t currentTime() const
std::string fullPath() const
void setData(float noise_, InputVector &vped)