CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
SiStripNoisesFromDBMiscalibrator Class Reference

#include <CondTools/SiStrip/plugins/SiStripNoisesFromDBMiscalibrator.cc>

Inheritance diagram for SiStripNoisesFromDBMiscalibrator:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 SiStripNoisesFromDBMiscalibrator (const edm::ParameterSet &)
 
 ~SiStripNoisesFromDBMiscalibrator () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void endJob () override
 
std::unique_ptr< SiStripNoisesgetNewObject (const std::map< std::pair< uint32_t, int >, float > &theMap)
 
std::unique_ptr< SiStripNoisesgetNewObject_withDefaults (const std::map< std::pair< uint32_t, int >, float > &theMap, const float theDefault)
 

Private Attributes

edm::FileInPath fp_
 
const bool m_fillDefaults
 
edm::ESGetToken< SiStripNoises, SiStripNoisesRcdm_noiseToken
 
const std::vector< edm::ParameterSetm_parameters
 
const bool m_saveMaps
 
edm::ESGetToken< TrackerTopology, TrackerTopologyRcdm_tTopoToken
 
std::unique_ptr< TrackerMapmissing_map
 
std::unique_ptr< TrackerMapnew_payload_map
 
std::unique_ptr< TrackerMapold_payload_map
 
std::unique_ptr< TrackerMapratio_map
 
std::unique_ptr< TrackerMapscale_map
 
std::unique_ptr< TrackerMapsmear_map
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Description: Class to miscalibrate a SiStrip Noise payload from Database

Implementation: Read a SiStrip Noise payload from DB (either central DB or sqlite file) and apply a miscalibration (either an offset / gaussian smearing or both) returns a local sqlite file with the same since of the original payload

Definition at line 51 of file SiStripNoisesFromDBMiscalibrator.cc.

Constructor & Destructor Documentation

◆ SiStripNoisesFromDBMiscalibrator()

SiStripNoisesFromDBMiscalibrator::SiStripNoisesFromDBMiscalibrator ( const edm::ParameterSet iConfig)
explicit

Definition at line 85 of file SiStripNoisesFromDBMiscalibrator.cc.

86  : m_fillDefaults{iConfig.getUntrackedParameter<bool>("fillDefaults", false)},
87  m_saveMaps{iConfig.getUntrackedParameter<bool>("saveMaps", true)},
88  m_parameters{iConfig.getParameter<std::vector<edm::ParameterSet> >("params")},
90  "file", edm::FileInPath("CalibTracker/SiStripCommon/data/SiStripDetInfo.dat"))},
93  //now do what ever initialization is needed
94 
95  scale_map = std::make_unique<TrackerMap>("scale");
96  scale_map->setTitle("Tracker Map of Scale factor averaged by module");
97  scale_map->setPalette(1);
98 
99  smear_map = std::make_unique<TrackerMap>("smear");
100  smear_map->setTitle("Tracker Map of Smear factor averaged by module");
101  smear_map->setPalette(1);
102 
103  old_payload_map = std::make_unique<TrackerMap>("old_payload");
104  old_payload_map->setTitle("Tracker Map of Starting Noise Payload averaged by module");
105  old_payload_map->setPalette(1);
106 
107  new_payload_map = std::make_unique<TrackerMap>("new_payload");
108  new_payload_map->setTitle("Tracker Map of Modified Noise Payload averaged by module");
109  new_payload_map->setPalette(1);
110 
111  ratio_map = std::make_unique<TrackerMap>("ratio");
112  ratio_map->setTitle("Tracker Map of Average by module of the payload ratio (new/old)");
113  ratio_map->setPalette(1);
114 
115  if (m_fillDefaults) {
116  missing_map = std::make_unique<TrackerMap>("uncabled");
117  missing_map->setTitle("Tracker Map of uncabled modules");
118  missing_map->setPalette(1);
119  }
120 }

References edm::ParameterSet::getUntrackedParameter().

◆ ~SiStripNoisesFromDBMiscalibrator()

SiStripNoisesFromDBMiscalibrator::~SiStripNoisesFromDBMiscalibrator ( )
override

Definition at line 122 of file SiStripNoisesFromDBMiscalibrator.cc.

122 {}

Member Function Documentation

◆ analyze()

void SiStripNoisesFromDBMiscalibrator::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 129 of file SiStripNoisesFromDBMiscalibrator.cc.

129  {
130  using namespace edm;
131 
132  const auto tTopo = &iSetup.getData(m_tTopoToken);
133 
134  std::vector<std::string> partitions;
135 
136  // fill the list of partitions
137  for (auto& thePSet : m_parameters) {
138  const std::string partition(thePSet.getParameter<std::string>("partition"));
139  // only if it is not yet in the list
140  if (std::find(partitions.begin(), partitions.end(), partition) == partitions.end()) {
141  partitions.push_back(partition);
142  }
143  }
144 
145  std::map<sistripsummary::TrackerRegion, SiStripMiscalibrate::Smearings> mapOfSmearings;
146 
147  for (auto& thePSet : m_parameters) {
148  const std::string partition(thePSet.getParameter<std::string>("partition"));
150 
151  bool m_doScale(thePSet.getParameter<bool>("doScale"));
152  bool m_doSmear(thePSet.getParameter<bool>("doSmear"));
153  double m_scaleFactor(thePSet.getParameter<double>("scaleFactor"));
154  double m_smearFactor(thePSet.getParameter<double>("smearFactor"));
155 
157  params.setSmearing(m_doScale, m_doSmear, m_scaleFactor, m_smearFactor);
158  mapOfSmearings[region] = params;
159  }
160 
161  const auto& stripNoises = iSetup.getData(m_noiseToken);
162 
163  std::map<std::pair<uint32_t, int>, float> theMap, oldPayloadMap;
164 
165  std::vector<uint32_t> detid;
166  stripNoises.getDetIds(detid);
167  for (const auto& d : detid) {
168  SiStripNoises::Range range = stripNoises.getRange(d);
169 
171 
172  // sort by largest to smallest
173  std::sort(regions.rbegin(), regions.rend());
174 
176 
177  for (unsigned int j = 0; j < regions.size(); j++) {
178  bool checkRegion = (mapOfSmearings.count(regions[j]) != 0);
179 
180  if (!checkRegion) {
181  // if the subdetector is not in the list and there's no indication for the whole tracker, just use the default
182  // i.e. no change
183  continue;
184  } else {
185  params = mapOfSmearings[regions[j]];
186  break;
187  }
188  }
189 
190  scale_map->fill(d, params.m_scaleFactor);
191  smear_map->fill(d, params.m_smearFactor);
192 
193  int nStrips = 0;
194  for (int it = 0; it < (range.second - range.first) * 8 / 9; ++it) {
195  auto noise = stripNoises.getNoise(it, range);
196  std::pair<uint32_t, int> index = std::make_pair(d, nStrips);
197 
198  oldPayloadMap[index] = noise;
199 
200  if (params.m_doScale) {
201  noise *= params.m_scaleFactor;
202  }
203 
204  if (params.m_doSmear) {
205  float smearedNoise = CLHEP::RandGauss::shoot(noise, params.m_smearFactor);
206  noise = smearedNoise;
207  }
208 
209  theMap[index] = noise;
210 
211  nStrips += 1;
212 
213  } // loop over APVs
214  } // loop over DetIds
215 
216  std::unique_ptr<SiStripNoises> theSiStripNoises;
217  if (!m_fillDefaults) {
218  theSiStripNoises = this->getNewObject(theMap);
219  } else {
220  theSiStripNoises = this->getNewObject_withDefaults(theMap, -1.);
221  }
222 
223  // make the payload ratio map
224  uint32_t cachedId(0);
225  SiStripMiscalibrate::Entry noise_ratio;
228  for (const auto& element : theMap) {
229  uint32_t DetId = element.first.first;
230  int nstrip = element.first.second;
231  float new_noise = element.second;
232  float old_noise = oldPayloadMap[std::make_pair(DetId, nstrip)];
233 
234  // flush the counters
235  if (cachedId != 0 && DetId != cachedId) {
236  ratio_map->fill(cachedId, noise_ratio.mean());
237  old_payload_map->fill(cachedId, o_noise.mean());
238  new_payload_map->fill(cachedId, n_noise.mean());
239 
240  //auto test = new_payload_map.get()->smoduleMap;
241 
242  noise_ratio.reset();
243  o_noise.reset();
244  n_noise.reset();
245  }
246 
247  cachedId = DetId;
248  noise_ratio.add(new_noise / old_noise);
249  o_noise.add(old_noise);
250  n_noise.add(new_noise);
251  }
252 
253  // write out the SiStripNoises record
255 
256  if (poolDbService.isAvailable())
257  poolDbService->writeOne(theSiStripNoises.get(), poolDbService->currentTime(), "SiStripNoisesRcd");
258  else
259  throw std::runtime_error("PoolDBService required.");
260 }

References SiStripMiscalibrate::Entry::add(), cond::service::PoolDBOutputService::currentTime(), ztail::d, spr::find(), edm::EventSetup::getData(), getNewObject(), getNewObject_withDefaults(), SiStripMiscalibrate::getRegionFromString(), SiStripMiscalibrate::getRegionsFromDetId(), edm::Service< T >::isAvailable(), dqmiolumiharvest::j, m_fillDefaults, m_noiseToken, m_parameters, m_tTopoToken, SiStripMiscalibrate::Entry::mean(), new_payload_map, hgcalDigitizer_cfi::noise, me0TriggerPseudoDigis_cff::nStrips, old_payload_map, CalibrationSummaryClient_cfi::params, FastTimerService_cff::range, ratio_map, HLT_FULL_cff::region, SiStripMiscalibrate::Entry::reset(), scale_map, smear_map, AlCaHLTBitMon_QueryRunRegistry::string, and cond::service::PoolDBOutputService::writeOne().

◆ beginJob()

void SiStripNoisesFromDBMiscalibrator::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 263 of file SiStripNoisesFromDBMiscalibrator.cc.

263 {}

◆ endJob()

void SiStripNoisesFromDBMiscalibrator::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 266 of file SiStripNoisesFromDBMiscalibrator.cc.

266  {
267  if (m_saveMaps) {
268  scale_map->save(true, 0, 0, "noise_scale_map.pdf");
269  scale_map->save(true, 0, 0, "noise_scale_map.png");
270 
271  smear_map->save(true, 0, 0, "noise_smear_map.pdf");
272  smear_map->save(true, 0, 0, "noise_smear_map.png");
273 
274  ratio_map->save(true, 0, 0, "noise_ratio_map.pdf");
275  ratio_map->save(true, 0, 0, "noise_ratio_map.png");
276 
278 
279  old_payload_map->save(true, range.first, range.second, "starting_noise_payload_map.pdf");
280  old_payload_map->save(true, range.first, range.second, "starting_noise_payload_map.png");
281 
283 
284  new_payload_map->save(true, range.first, range.second, "new_noise_payload_map.pdf");
285  new_payload_map->save(true, range.first, range.second, "new_noise_payload_map.png");
286 
287  if (m_fillDefaults) {
288  missing_map->save(true, 0, 0, "missing_map.pdf");
289  missing_map->save(true, 0, 0, "missing_map.png");
290  }
291  }
292 }

References SiStripMiscalibrate::getTruncatedRange(), m_fillDefaults, m_saveMaps, missing_map, new_payload_map, old_payload_map, FastTimerService_cff::range, ratio_map, scale_map, and smear_map.

◆ fillDescriptions()

void SiStripNoisesFromDBMiscalibrator::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 384 of file SiStripNoisesFromDBMiscalibrator.cc.

384  {
386 
387  desc.setComment(
388  "Creates rescaled / smeared SiStrip Noise payload."
389  "PoolDBOutputService must be set up for 'SiSiStripNoisesRcd'.");
390 
391  edm::ParameterSetDescription descScaler;
392  descScaler.setComment(
393  "ParameterSet specifying the Strip tracker partition to be scaled / smeared "
394  "by a given factor.");
395 
396  descScaler.add<std::string>("partition", "Tracker");
397  descScaler.add<bool>("doScale", true);
398  descScaler.add<bool>("doSmear", true);
399  descScaler.add<double>("scaleFactor", 1.0);
400  descScaler.add<double>("smearFactor", 1.0);
401  desc.addVPSet("params", descScaler, std::vector<edm::ParameterSet>(1));
402 
403  desc.addUntracked<bool>("fillDefaults", false);
404  desc.addUntracked<bool>("saveMaps", true);
405 
406  descriptions.add("scaleAndSmearSiStripNoises", desc);
407 }

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), submitPVResolutionJobs::desc, edm::ParameterSetDescription::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ getNewObject()

std::unique_ptr< SiStripNoises > SiStripNoisesFromDBMiscalibrator::getNewObject ( const std::map< std::pair< uint32_t, int >, float > &  theMap)
private

Definition at line 357 of file SiStripNoisesFromDBMiscalibrator.cc.

358  {
359  std::unique_ptr<SiStripNoises> obj = std::make_unique<SiStripNoises>();
360 
361  uint32_t PreviousDetId = 0;
362  SiStripNoises::InputVector theSiStripVector;
363  for (const auto& element : theMap) {
364  uint32_t DetId = element.first.first;
365  float noise = element.second;
366 
367  if (DetId != PreviousDetId) {
368  if (!theSiStripVector.empty()) {
369  if (!obj->put(PreviousDetId, theSiStripVector)) {
370  edm::LogError("SiStripNoisesFromDBMiscalibrator")
371  << "[SiStripNoisesFromDBMiscalibrator::analyze] detid already exists" << std::endl;
372  }
373  }
374 
375  theSiStripVector.clear();
376  PreviousDetId = DetId;
377  }
378  obj->setData(noise, theSiStripVector);
379  }
380  return obj;
381 }

References hgcalDigitizer_cfi::noise, and getGTfromDQMFile::obj.

Referenced by analyze().

◆ getNewObject_withDefaults()

std::unique_ptr< SiStripNoises > SiStripNoisesFromDBMiscalibrator::getNewObject_withDefaults ( const std::map< std::pair< uint32_t, int >, float > &  theMap,
const float  theDefault 
)
private

Definition at line 295 of file SiStripNoisesFromDBMiscalibrator.cc.

296  {
297  std::unique_ptr<SiStripNoises> obj = std::make_unique<SiStripNoises>();
298 
300  const std::map<uint32_t, SiStripDetInfoFileReader::DetInfo>& DetInfos = reader.getAllData();
301 
302  std::vector<uint32_t> missingDetIds;
303 
304  for (std::map<uint32_t, SiStripDetInfoFileReader::DetInfo>::const_iterator it = DetInfos.begin();
305  it != DetInfos.end();
306  it++) {
307  //Generate Noise for det detid
308  bool isMissing(false);
309  SiStripNoises::InputVector theSiStripVector;
310  for (int t_strip = 0; t_strip < 128 * it->second.nApvs; ++t_strip) {
311  std::pair<uint32_t, int> index = std::make_pair(it->first, t_strip);
312 
313  if (theMap.find(index) == theMap.end()) {
314  LogDebug("SiStripNoisesFromDBMiscalibrator") << "detid " << it->first << " \t"
315  << " strip " << t_strip << " \t"
316  << " not found" << std::endl;
317 
318  isMissing = true;
319  obj->setData(theDefault, theSiStripVector);
320 
321  } else {
322  float noise = theMap.at(index);
323  obj->setData(noise, theSiStripVector);
324  }
325  }
326 
327  if (isMissing)
328  missingDetIds.push_back(it->first);
329 
330  if (!obj->put(it->first, theSiStripVector)) {
331  edm::LogError("SiStripNoisesFromDBMiscalibrator")
332  << "[SiStripNoisesFromDBMiscalibrator::analyze] detid already exists" << std::endl;
333  }
334  }
335 
336  if (!missingDetIds.empty()) {
337  // open output file
338  std::stringstream name;
339  name << "missing_modules.txt";
340  std::ofstream* ofile = new std::ofstream(name.str(), std::ofstream::trunc);
341  if (!ofile->is_open())
342  throw "cannot open output file!";
343  for (const auto& missing : missingDetIds) {
344  edm::LogVerbatim("SiStripNoisesFromDBMiscalibrator") << missing << " " << 1 << std::endl;
345  (*ofile) << missing << " " << 1 << std::endl;
346  missing_map->fill(missing, 1);
347  }
348 
349  ofile->close();
350  delete ofile;
351  }
352 
353  return obj;
354 }

References fp_, edm::FileInPath::fullPath(), LogDebug, combine::missing, missing_map, Skims_PA_cff::name, hgcalDigitizer_cfi::noise, getGTfromDQMFile::obj, indexGen::ofile, DQM::reader, and pileupReCalc_HLTpaths::trunc.

Referenced by analyze().

Member Data Documentation

◆ fp_

edm::FileInPath SiStripNoisesFromDBMiscalibrator::fp_
private

Definition at line 70 of file SiStripNoisesFromDBMiscalibrator.cc.

Referenced by getNewObject_withDefaults().

◆ m_fillDefaults

const bool SiStripNoisesFromDBMiscalibrator::m_fillDefaults
private

Definition at line 67 of file SiStripNoisesFromDBMiscalibrator.cc.

Referenced by analyze(), and endJob().

◆ m_noiseToken

edm::ESGetToken<SiStripNoises, SiStripNoisesRcd> SiStripNoisesFromDBMiscalibrator::m_noiseToken
private

Definition at line 72 of file SiStripNoisesFromDBMiscalibrator.cc.

Referenced by analyze().

◆ m_parameters

const std::vector<edm::ParameterSet> SiStripNoisesFromDBMiscalibrator::m_parameters
private

Definition at line 69 of file SiStripNoisesFromDBMiscalibrator.cc.

Referenced by analyze().

◆ m_saveMaps

const bool SiStripNoisesFromDBMiscalibrator::m_saveMaps
private

Definition at line 68 of file SiStripNoisesFromDBMiscalibrator.cc.

Referenced by endJob().

◆ m_tTopoToken

edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> SiStripNoisesFromDBMiscalibrator::m_tTopoToken
private

Definition at line 71 of file SiStripNoisesFromDBMiscalibrator.cc.

Referenced by analyze().

◆ missing_map

std::unique_ptr<TrackerMap> SiStripNoisesFromDBMiscalibrator::missing_map
private

Definition at line 79 of file SiStripNoisesFromDBMiscalibrator.cc.

Referenced by endJob(), and getNewObject_withDefaults().

◆ new_payload_map

std::unique_ptr<TrackerMap> SiStripNoisesFromDBMiscalibrator::new_payload_map
private

Definition at line 78 of file SiStripNoisesFromDBMiscalibrator.cc.

Referenced by analyze(), and endJob().

◆ old_payload_map

std::unique_ptr<TrackerMap> SiStripNoisesFromDBMiscalibrator::old_payload_map
private

Definition at line 77 of file SiStripNoisesFromDBMiscalibrator.cc.

Referenced by analyze(), and endJob().

◆ ratio_map

std::unique_ptr<TrackerMap> SiStripNoisesFromDBMiscalibrator::ratio_map
private

Definition at line 76 of file SiStripNoisesFromDBMiscalibrator.cc.

Referenced by analyze(), and endJob().

◆ scale_map

std::unique_ptr<TrackerMap> SiStripNoisesFromDBMiscalibrator::scale_map
private

Definition at line 74 of file SiStripNoisesFromDBMiscalibrator.cc.

Referenced by analyze(), and endJob().

◆ smear_map

std::unique_ptr<TrackerMap> SiStripNoisesFromDBMiscalibrator::smear_map
private

Definition at line 75 of file SiStripNoisesFromDBMiscalibrator.cc.

Referenced by analyze(), and endJob().

FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
indexGen.ofile
ofile
Definition: indexGen.py:102
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
SiStripMiscalibrate::Smearings
Definition: SiStripMiscalibrateHelper.h:45
SiStripNoisesFromDBMiscalibrator::smear_map
std::unique_ptr< TrackerMap > smear_map
Definition: SiStripNoisesFromDBMiscalibrator.cc:75
SiStripMiscalibrate::Entry::add
void add(double val)
Definition: SiStripMiscalibrateHelper.h:25
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
AlignmentPI::partitions
partitions
Definition: AlignmentPayloadInspectorHelper.h:48
SiStripNoisesFromDBMiscalibrator::fp_
edm::FileInPath fp_
Definition: SiStripNoisesFromDBMiscalibrator.cc:70
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
SiStripDetInfoFileReader
Definition: SiStripDetInfoFileReader.h:30
edm::Service::isAvailable
bool isAvailable() const
Definition: Service.h:40
SiStripNoisesFromDBMiscalibrator::missing_map
std::unique_ptr< TrackerMap > missing_map
Definition: SiStripNoisesFromDBMiscalibrator.cc:79
DetId
Definition: DetId.h:17
edm::FileInPath
Definition: FileInPath.h:64
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
DQM.reader
reader
Definition: DQM.py:105
sistripsummary::TrackerRegion
TrackerRegion
Definition: SiStripSummary.h:19
SiStripNoises::Range
std::pair< ContainerIterator, ContainerIterator > Range
Definition: SiStripNoises.h:47
SiStripNoisesFromDBMiscalibrator::getNewObject
std::unique_ptr< SiStripNoises > getNewObject(const std::map< std::pair< uint32_t, int >, float > &theMap)
Definition: SiStripNoisesFromDBMiscalibrator.cc:357
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
SiStripNoisesFromDBMiscalibrator::new_payload_map
std::unique_ptr< TrackerMap > new_payload_map
Definition: SiStripNoisesFromDBMiscalibrator.cc:78
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
edm::ParameterSetDescription::setComment
void setComment(std::string const &value)
Definition: ParameterSetDescription.cc:33
SiStripNoisesFromDBMiscalibrator::m_fillDefaults
const bool m_fillDefaults
Definition: SiStripNoisesFromDBMiscalibrator.cc:67
SiStripNoisesFromDBMiscalibrator::m_saveMaps
const bool m_saveMaps
Definition: SiStripNoisesFromDBMiscalibrator.cc:68
SiStripNoisesFromDBMiscalibrator::m_tTopoToken
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > m_tTopoToken
Definition: SiStripNoisesFromDBMiscalibrator.cc:71
SiStripMiscalibrate::getTruncatedRange
std::pair< float, float > getTruncatedRange(const TrackerMap *theMap)
Definition: SiStripMiscalibrateHelper.cc:87
hgcalDigitizer_cfi.noise
noise
Definition: hgcalDigitizer_cfi.py:155
SiStripNoisesFromDBMiscalibrator::scale_map
std::unique_ptr< TrackerMap > scale_map
Definition: SiStripNoisesFromDBMiscalibrator.cc:74
SiStripNoisesFromDBMiscalibrator::ratio_map
std::unique_ptr< TrackerMap > ratio_map
Definition: SiStripNoisesFromDBMiscalibrator.cc:76
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88338
edm::Service< cond::service::PoolDBOutputService >
SiStripNoisesFromDBMiscalibrator::m_noiseToken
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd > m_noiseToken
Definition: SiStripNoisesFromDBMiscalibrator.cc:72
SiStripMiscalibrate::Entry::reset
void reset()
Definition: SiStripMiscalibrateHelper.h:31
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
me0TriggerPseudoDigis_cff.nStrips
nStrips
1.2 is to make the matching window safely the two nearest strips 0.35 is the size of an ME0 chamber i...
Definition: me0TriggerPseudoDigis_cff.py:26
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:120
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
SiStripNoisesFromDBMiscalibrator::getNewObject_withDefaults
std::unique_ptr< SiStripNoises > getNewObject_withDefaults(const std::map< std::pair< uint32_t, int >, float > &theMap, const float theDefault)
Definition: SiStripNoisesFromDBMiscalibrator.cc:295
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
cond::service::PoolDBOutputService::writeOne
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
Definition: PoolDBOutputService.h:57
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
edm::EDConsumerBase::esConsumes
auto esConsumes()
Definition: EDConsumerBase.h:200
ztail.d
d
Definition: ztail.py:151
AlignmentPI::regions
regions
Definition: AlignmentPayloadInspectorHelper.h:76
SiStripMiscalibrate::getRegionFromString
sistripsummary::TrackerRegion getRegionFromString(std::string region)
Definition: SiStripMiscalibrateHelper.cc:8
SiStripNoises::InputVector
std::vector< uint16_t > InputVector
Definition: SiStripNoises.h:50
SiStripMiscalibrate::Entry::mean
double mean()
Definition: SiStripMiscalibrateHelper.h:18
combine.missing
missing
Definition: combine.py:5
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
SiStripNoisesFromDBMiscalibrator::m_parameters
const std::vector< edm::ParameterSet > m_parameters
Definition: SiStripNoisesFromDBMiscalibrator.cc:69
SiStripNoisesFromDBMiscalibrator::old_payload_map
std::unique_ptr< TrackerMap > old_payload_map
Definition: SiStripNoisesFromDBMiscalibrator.cc:77
pileupReCalc_HLTpaths.trunc
trunc
Definition: pileupReCalc_HLTpaths.py:144
cond::service::PoolDBOutputService::currentTime
cond::Time_t currentTime() const
Definition: PoolDBOutputService.cc:189
edm::FileInPath::fullPath
std::string fullPath() const
Definition: FileInPath.cc:163
SiStripMiscalibrate::Entry
Definition: SiStripMiscalibrateHelper.h:14
SiStripMiscalibrate::getRegionsFromDetId
std::vector< sistripsummary::TrackerRegion > getRegionsFromDetId(const TrackerTopology *m_trackerTopo, DetId detid)
Definition: SiStripMiscalibrateHelper.cc:38