CMS 3D CMS Logo

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

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

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

Public Member Functions

 SiStripChannelGainFromDBMiscalibrator (const edm::ParameterSet &)
 
 ~SiStripChannelGainFromDBMiscalibrator () 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< SiStripApvGaingetNewObject (const std::map< std::pair< uint32_t, int >, float > &theMap)
 

Private Attributes

edm::ESGetToken< SiStripGain, SiStripGainRcdgainToken_
 
const uint32_t m_gainType
 
const std::vector< edm::ParameterSetm_parameters
 
const std::string m_Record
 
const bool m_saveMaps
 
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
 
edm::ESGetToken< TrackerTopology, TrackerTopologyRcdtTopoToken_
 

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 Channel Gain payload from Database

Implementation: Read a SiStrip Channel Gain 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 50 of file SiStripChannelGainFromDBMiscalibrator.cc.

Constructor & Destructor Documentation

◆ SiStripChannelGainFromDBMiscalibrator()

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

Definition at line 81 of file SiStripChannelGainFromDBMiscalibrator.cc.

82  : m_Record{iConfig.getUntrackedParameter<std::string>("record", "SiStripApvGainRcd")},
83  m_gainType{iConfig.getUntrackedParameter<uint32_t>("gainType", 1)},
84  m_saveMaps{iConfig.getUntrackedParameter<bool>("saveMaps", true)},
85  m_parameters{iConfig.getParameter<std::vector<edm::ParameterSet> >("params")},
88  //now do what ever initialization is needed
89 
90  std::string ss_gain = (m_gainType > 0) ? "G2" : "G1";
91 
92  scale_map = std::make_unique<TrackerMap>("scale");
93  scale_map->setTitle("Scale factor averaged by module");
94  scale_map->setPalette(1);
95 
96  smear_map = std::make_unique<TrackerMap>("smear");
97  smear_map->setTitle("Smear factor averaged by module");
98  smear_map->setPalette(1);
99 
100  ratio_map = std::make_unique<TrackerMap>("ratio");
101  ratio_map->setTitle("Average by module of the " + ss_gain + " Gain payload ratio (new/old)");
102  ratio_map->setPalette(1);
103 
104  new_payload_map = std::make_unique<TrackerMap>("new_payload");
105  new_payload_map->setTitle("Tracker Map of Modified " + ss_gain + " Gain payload averaged by module");
106  new_payload_map->setPalette(1);
107 
108  old_payload_map = std::make_unique<TrackerMap>("old_payload");
109  old_payload_map->setTitle("Tracker Map of Starting " + ss_gain + " Gain Payload averaged by module");
110  old_payload_map->setPalette(1);
111 }

References edm::ParameterSet::getUntrackedParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~SiStripChannelGainFromDBMiscalibrator()

SiStripChannelGainFromDBMiscalibrator::~SiStripChannelGainFromDBMiscalibrator ( )
override

Definition at line 113 of file SiStripChannelGainFromDBMiscalibrator.cc.

113 {}

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 120 of file SiStripChannelGainFromDBMiscalibrator.cc.

120  {
121  using namespace edm;
122 
123  const auto* const tTopo = &iSetup.getData(tTopoToken_);
124 
125  std::vector<std::string> partitions;
126 
127  // fill the list of partitions
128  for (auto& thePSet : m_parameters) {
129  const std::string partition(thePSet.getParameter<std::string>("partition"));
130  // only if it is not yet in the list
131  if (std::find(partitions.begin(), partitions.end(), partition) == partitions.end()) {
132  partitions.push_back(partition);
133  }
134  }
135 
136  std::map<sistripsummary::TrackerRegion, SiStripMiscalibrate::Smearings> mapOfSmearings;
137 
138  for (auto& thePSet : m_parameters) {
139  const std::string partition(thePSet.getParameter<std::string>("partition"));
141 
142  bool m_doScale(thePSet.getParameter<bool>("doScale"));
143  bool m_doSmear(thePSet.getParameter<bool>("doSmear"));
144  double m_scaleFactor(thePSet.getParameter<double>("scaleFactor"));
145  double m_smearFactor(thePSet.getParameter<double>("smearFactor"));
146 
148  params.setSmearing(m_doScale, m_doSmear, m_scaleFactor, m_smearFactor);
149  mapOfSmearings[region] = params;
150  }
151 
152  const auto& apvGain = iSetup.getData(gainToken_);
153 
154  std::map<std::pair<uint32_t, int>, float> theMap, oldPayloadMap;
155 
156  std::vector<uint32_t> detid;
157  apvGain.getDetIds(detid);
158  for (const auto& d : detid) {
159  SiStripApvGain::Range range = apvGain.getRange(d, m_gainType);
160  float nAPV = 0;
161 
163 
164  // sort by largest to smallest
165  std::sort(regions.rbegin(), regions.rend());
166 
168 
169  for (unsigned int j = 0; j < regions.size(); j++) {
170  bool checkRegion = (mapOfSmearings.count(regions[j]) != 0);
171 
172  if (!checkRegion) {
173  // if the subdetector is not in the list and there's no indication for the whole tracker, just use the default
174  // i.e. no change
175  continue;
176  } else {
177  params = mapOfSmearings[regions[j]];
178  break;
179  }
180  }
181 
182  scale_map->fill(d, params.m_scaleFactor);
183  smear_map->fill(d, params.m_smearFactor);
184 
185  for (int it = 0; it < range.second - range.first; it++) {
186  nAPV += 1;
187  float Gain = apvGain.getApvGain(it, range);
188  std::pair<uint32_t, int> index = std::make_pair(d, nAPV);
189 
190  oldPayloadMap[index] = Gain;
191 
192  if (params.m_doScale) {
193  Gain *= params.m_scaleFactor;
194  }
195 
196  if (params.m_doSmear) {
197  float smearedGain = CLHEP::RandGauss::shoot(Gain, params.m_smearFactor);
198  Gain = smearedGain;
199  }
200 
201  theMap[index] = Gain;
202 
203  } // loop over APVs
204  } // loop over DetIds
205 
206  std::unique_ptr<SiStripApvGain> theAPVGains = this->getNewObject(theMap);
207 
208  // make the payload ratio map
209  uint32_t cachedId(0);
210  SiStripMiscalibrate::Entry gain_ratio;
213  for (const auto& element : theMap) {
214  uint32_t DetId = element.first.first;
215  int nAPV = element.first.second;
216  float new_gain = element.second;
217  float old_gain = oldPayloadMap[std::make_pair(DetId, nAPV)];
218 
219  // flush the counters
220  if (cachedId != 0 && DetId != cachedId) {
221  ratio_map->fill(cachedId, gain_ratio.mean());
222  old_payload_map->fill(cachedId, o_gain.mean());
223  new_payload_map->fill(cachedId, n_gain.mean());
224 
225  //auto test = new_payload_map.get()->smoduleMap;
226 
227  gain_ratio.reset();
228  o_gain.reset();
229  n_gain.reset();
230  }
231 
232  cachedId = DetId;
233  gain_ratio.add(new_gain / old_gain);
234  o_gain.add(old_gain);
235  n_gain.add(new_gain);
236  }
237 
238  // write out the APVGains record
240 
241  if (poolDbService.isAvailable())
242  poolDbService->writeOne(theAPVGains.get(), poolDbService->currentTime(), m_Record);
243  else
244  throw std::runtime_error("PoolDBService required.");
245 }

References SiStripMiscalibrate::Entry::add(), cond::service::PoolDBOutputService::currentTime(), ztail::d, spr::find(), IntegrityClient_cfi::Gain, gainToken_, edm::EventSetup::getData(), getNewObject(), SiStripMiscalibrate::getRegionFromString(), SiStripMiscalibrate::getRegionsFromDetId(), edm::Service< T >::isAvailable(), dqmiolumiharvest::j, m_gainType, m_parameters, m_Record, SiStripMiscalibrate::Entry::mean(), new_payload_map, 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, tTopoToken_, and cond::service::PoolDBOutputService::writeOne().

◆ beginJob()

void SiStripChannelGainFromDBMiscalibrator::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 248 of file SiStripChannelGainFromDBMiscalibrator.cc.

248 {}

◆ endJob()

void SiStripChannelGainFromDBMiscalibrator::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 251 of file SiStripChannelGainFromDBMiscalibrator.cc.

251  {
252  if (m_saveMaps) {
253  std::string ss_gain = (m_gainType > 0) ? "G2" : "G1";
254 
255  scale_map->save(true, 0, 0, ss_gain + "_gain_scale_map.pdf");
256  scale_map->save(true, 0, 0, ss_gain + "_gain_scale_map.png");
257 
258  smear_map->save(true, 0, 0, ss_gain + "_gain_smear_map.pdf");
259  smear_map->save(true, 0, 0, ss_gain + "_gain_smear_map.png");
260 
261  ratio_map->save(true, 0, 0, ss_gain + "_gain_ratio_map.pdf");
262  ratio_map->save(true, 0, 0, ss_gain + "_gain_ratio_map.png");
263 
265 
266  old_payload_map->save(true, range.first, range.second, "starting_" + ss_gain + "_gain_payload_map.pdf");
267  old_payload_map->save(true, range.first, range.second, "starting_" + ss_gain + "_gain_payload_map.png");
268 
270 
271  new_payload_map->save(true, range.first, range.second, "new_" + ss_gain + "_gain_payload_map.pdf");
272  new_payload_map->save(true, range.first, range.second, "new_" + ss_gain + "_gain_payload_map.png");
273  }
274 }

References SiStripMiscalibrate::getTruncatedRange(), m_gainType, m_saveMaps, new_payload_map, old_payload_map, FastTimerService_cff::range, ratio_map, scale_map, smear_map, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ fillDescriptions()

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

Definition at line 310 of file SiStripChannelGainFromDBMiscalibrator.cc.

310  {
312 
313  desc.setComment(
314  "Creates rescaled / smeared SiStrip Gain payload. Can be used for both G1 and G2."
315  "PoolDBOutputService must be set up for 'SiStripApvGainRcd'.");
316 
317  edm::ParameterSetDescription descScaler;
318  descScaler.setComment(
319  "ParameterSet specifying the Strip tracker partition to be scaled / smeared "
320  "by a given factor.");
321 
322  descScaler.add<std::string>("partition", "Tracker");
323  descScaler.add<bool>("doScale", true);
324  descScaler.add<bool>("doSmear", true);
325  descScaler.add<double>("scaleFactor", 1.0);
326  descScaler.add<double>("smearFactor", 1.0);
327  desc.addVPSet("params", descScaler, std::vector<edm::ParameterSet>(1));
328 
329  desc.addUntracked<std::string>("record", "SiStripApvGainRcd");
330  desc.addUntracked<unsigned int>("gainType", 1);
331  desc.addUntracked<bool>("saveMaps", true);
332 
333  descriptions.add("scaleAndSmearSiStripGains", desc);
334 }

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

◆ getNewObject()

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

Definition at line 277 of file SiStripChannelGainFromDBMiscalibrator.cc.

278  {
279  std::unique_ptr<SiStripApvGain> obj = std::make_unique<SiStripApvGain>();
280 
281  std::vector<float> theSiStripVector;
282  uint32_t PreviousDetId = 0;
283  for (const auto& element : theMap) {
284  uint32_t DetId = element.first.first;
285  if (DetId != PreviousDetId) {
286  if (!theSiStripVector.empty()) {
287  SiStripApvGain::Range range(theSiStripVector.begin(), theSiStripVector.end());
288  if (!obj->put(PreviousDetId, range))
289  printf("Bug to put detId = %i\n", PreviousDetId);
290  }
291  theSiStripVector.clear();
292  PreviousDetId = DetId;
293  }
294  theSiStripVector.push_back(element.second);
295 
296  edm::LogInfo("SiStripChannelGainFromDBMiscalibrator")
297  << " DetId: " << DetId << " APV: " << element.first.second << " Gain: " << element.second << std::endl;
298  }
299 
300  if (!theSiStripVector.empty()) {
301  SiStripApvGain::Range range(theSiStripVector.begin(), theSiStripVector.end());
302  if (!obj->put(PreviousDetId, range))
303  printf("Bug to put detId = %i\n", PreviousDetId);
304  }
305 
306  return obj;
307 }

References getGTfromDQMFile::obj, and FastTimerService_cff::range.

Referenced by analyze().

Member Data Documentation

◆ gainToken_

edm::ESGetToken<SiStripGain, SiStripGainRcd> SiStripChannelGainFromDBMiscalibrator::gainToken_
private

Definition at line 68 of file SiStripChannelGainFromDBMiscalibrator.cc.

Referenced by analyze().

◆ m_gainType

const uint32_t SiStripChannelGainFromDBMiscalibrator::m_gainType
private

Definition at line 65 of file SiStripChannelGainFromDBMiscalibrator.cc.

Referenced by analyze(), and endJob().

◆ m_parameters

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

Definition at line 67 of file SiStripChannelGainFromDBMiscalibrator.cc.

Referenced by analyze().

◆ m_Record

const std::string SiStripChannelGainFromDBMiscalibrator::m_Record
private

Definition at line 64 of file SiStripChannelGainFromDBMiscalibrator.cc.

Referenced by analyze().

◆ m_saveMaps

const bool SiStripChannelGainFromDBMiscalibrator::m_saveMaps
private

Definition at line 66 of file SiStripChannelGainFromDBMiscalibrator.cc.

Referenced by endJob().

◆ new_payload_map

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

Definition at line 75 of file SiStripChannelGainFromDBMiscalibrator.cc.

Referenced by analyze(), and endJob().

◆ old_payload_map

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

Definition at line 74 of file SiStripChannelGainFromDBMiscalibrator.cc.

Referenced by analyze(), and endJob().

◆ ratio_map

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

Definition at line 73 of file SiStripChannelGainFromDBMiscalibrator.cc.

Referenced by analyze(), and endJob().

◆ scale_map

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

Definition at line 71 of file SiStripChannelGainFromDBMiscalibrator.cc.

Referenced by analyze(), and endJob().

◆ smear_map

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

Definition at line 72 of file SiStripChannelGainFromDBMiscalibrator.cc.

Referenced by analyze(), and endJob().

◆ tTopoToken_

edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> SiStripChannelGainFromDBMiscalibrator::tTopoToken_
private

Definition at line 69 of file SiStripChannelGainFromDBMiscalibrator.cc.

Referenced by analyze().

FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
SiStripChannelGainFromDBMiscalibrator::tTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: SiStripChannelGainFromDBMiscalibrator.cc:69
SiStripChannelGainFromDBMiscalibrator::m_gainType
const uint32_t m_gainType
Definition: SiStripChannelGainFromDBMiscalibrator.cc:65
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
IntegrityClient_cfi.Gain
Gain
Definition: IntegrityClient_cfi.py:16
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
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
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
SiStripChannelGainFromDBMiscalibrator::gainToken_
edm::ESGetToken< SiStripGain, SiStripGainRcd > gainToken_
Definition: SiStripChannelGainFromDBMiscalibrator.cc:68
SiStripChannelGainFromDBMiscalibrator::m_Record
const std::string m_Record
Definition: SiStripChannelGainFromDBMiscalibrator.cc:64
DetId
Definition: DetId.h:17
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
sistripsummary::TrackerRegion
TrackerRegion
Definition: SiStripSummary.h:19
SiStripChannelGainFromDBMiscalibrator::m_saveMaps
const bool m_saveMaps
Definition: SiStripChannelGainFromDBMiscalibrator.cc:66
SiStripChannelGainFromDBMiscalibrator::new_payload_map
std::unique_ptr< TrackerMap > new_payload_map
Definition: SiStripChannelGainFromDBMiscalibrator.cc:75
SiStripChannelGainFromDBMiscalibrator::getNewObject
std::unique_ptr< SiStripApvGain > getNewObject(const std::map< std::pair< uint32_t, int >, float > &theMap)
Definition: SiStripChannelGainFromDBMiscalibrator.cc:277
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
SiStripChannelGainFromDBMiscalibrator::m_parameters
const std::vector< edm::ParameterSet > m_parameters
Definition: SiStripChannelGainFromDBMiscalibrator.cc:67
SiStripChannelGainFromDBMiscalibrator::ratio_map
std::unique_ptr< TrackerMap > ratio_map
Definition: SiStripChannelGainFromDBMiscalibrator.cc:73
edm::ParameterSetDescription::setComment
void setComment(std::string const &value)
Definition: ParameterSetDescription.cc:33
SiStripMiscalibrate::getTruncatedRange
std::pair< float, float > getTruncatedRange(const TrackerMap *theMap)
Definition: SiStripMiscalibrateHelper.cc:87
jetUpdater_cfi.sort
sort
Definition: jetUpdater_cfi.py:29
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88286
edm::Service< cond::service::PoolDBOutputService >
SiStripMiscalibrate::Entry::reset
void reset()
Definition: SiStripMiscalibrateHelper.h:31
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
SiStripChannelGainFromDBMiscalibrator::smear_map
std::unique_ptr< TrackerMap > smear_map
Definition: SiStripChannelGainFromDBMiscalibrator.cc:72
SiStripChannelGainFromDBMiscalibrator::old_payload_map
std::unique_ptr< TrackerMap > old_payload_map
Definition: SiStripChannelGainFromDBMiscalibrator.cc:74
SiStripApvGain::Range
std::pair< ContainerIterator, ContainerIterator > Range
Definition: SiStripApvGain.h:28
cond::service::PoolDBOutputService::writeOne
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
Definition: PoolDBOutputService.h:63
SiStripChannelGainFromDBMiscalibrator::scale_map
std::unique_ptr< TrackerMap > scale_map
Definition: SiStripChannelGainFromDBMiscalibrator.cc:71
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
SiStripMiscalibrate::Entry::mean
double mean()
Definition: SiStripMiscalibrateHelper.h:18
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
cond::service::PoolDBOutputService::currentTime
cond::Time_t currentTime() const
Definition: PoolDBOutputService.cc:217
SiStripMiscalibrate::Entry
Definition: SiStripMiscalibrateHelper.h:14
SiStripMiscalibrate::getRegionsFromDetId
std::vector< sistripsummary::TrackerRegion > getRegionsFromDetId(const TrackerTopology *m_trackerTopo, DetId detid)
Definition: SiStripMiscalibrateHelper.cc:38