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
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
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::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
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")},
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, gpuVertexFinder::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, jetUpdater_cfi::sort, 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 379 of file SiStripNoisesFromDBMiscalibrator.cc.

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

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 352 of file SiStripNoisesFromDBMiscalibrator.cc.

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

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

References fp_, edm::FileInPath::fullPath(), LogDebug, combine::missing, missing_map, Skims_PA_cff::name, gpuVertexFinder::noise, getGTfromDQMFile::obj, SiStripDetInfoFileReader::read(), 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
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
edm::Service::isAvailable
bool isAvailable() const
Definition: Service.h:40
SiStripDetInfoFileReader::read
SiStripDetInfo read(std::string filePath)
Definition: SiStripDetInfoFileReader.cc:11
SiStripNoisesFromDBMiscalibrator::missing_map
std::unique_ptr< TrackerMap > missing_map
Definition: SiStripNoisesFromDBMiscalibrator.cc:79
DetId
Definition: DetId.h:17
edm::FileInPath
Definition: FileInPath.h:61
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
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:352
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
SiStripNoisesFromDBMiscalibrator::new_payload_map
std::unique_ptr< TrackerMap > new_payload_map
Definition: SiStripNoisesFromDBMiscalibrator.cc:78
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
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
jetUpdater_cfi.sort
sort
Definition: jetUpdater_cfi.py:29
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:88286
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
gpuVertexFinder::noise
__shared__ int noise
Definition: gpuFitVertices.h:50
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
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:127
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
SiStripDetInfoFileReader::kDefaultFile
constexpr static char const *const kDefaultFile
Definition: SiStripDetInfoFileReader.h:10
cond::service::PoolDBOutputService::writeOne
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
Definition: PoolDBOutputService.h:63
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:206
ztail.d
d
Definition: ztail.py:151
AlignmentPI::regions
regions
Definition: AlignmentPayloadInspectorHelper.h:78
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:143
cond::service::PoolDBOutputService::currentTime
cond::Time_t currentTime() const
Definition: PoolDBOutputService.cc:217
edm::FileInPath::fullPath
std::string fullPath() const
Definition: FileInPath.cc:161
SiStripMiscalibrate::Entry
Definition: SiStripMiscalibrateHelper.h:14
SiStripMiscalibrate::getRegionsFromDetId
std::vector< sistripsummary::TrackerRegion > getRegionsFromDetId(const TrackerTopology *m_trackerTopo, DetId detid)
Definition: SiStripMiscalibrateHelper.cc:38