CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
CTPPSRPAlignmentCorrectionsDataESSourceXML Class Reference
Inheritance diagram for CTPPSRPAlignmentCorrectionsDataESSourceXML:
edm::ESProducer edm::EventSetupRecordIntervalFinder edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 CTPPSRPAlignmentCorrectionsDataESSourceXML (const edm::ParameterSet &p)
 
std::unique_ptr< CTPPSRPAlignmentCorrectionsDataproduceMeasured (const CTPPSRPAlignmentCorrectionsDataRcd &)
 
std::unique_ptr< CTPPSRPAlignmentCorrectionsDataproduceMisaligned (const RPMisalignedAlignmentRecord &)
 
std::unique_ptr< CTPPSRPAlignmentCorrectionsDataproduceReal (const RPRealAlignmentRecord &)
 
 ~CTPPSRPAlignmentCorrectionsDataESSourceXML () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESProxyIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
 ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete
 
const ESProxyFactoryProduceroperator= (const ESProxyFactoryProducer &)=delete
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 
- Public Member Functions inherited from edm::EventSetupRecordIntervalFinder
bool concurrentFinder () const
 
const eventsetup::ComponentDescriptiondescriptionForFinder () const
 
 EventSetupRecordIntervalFinder ()
 
 EventSetupRecordIntervalFinder (const EventSetupRecordIntervalFinder &)=delete
 
std::set< eventsetup::EventSetupRecordKeyfindingForRecords () const
 
const ValidityIntervalfindIntervalFor (const eventsetup::EventSetupRecordKey &, const IOVSyncValue &)
 
bool nonconcurrentAndIOVNeedsUpdate (const eventsetup::EventSetupRecordKey &key, const IOVSyncValue &syncValue) const
 
const EventSetupRecordIntervalFinderoperator= (const EventSetupRecordIntervalFinder &)=delete
 
void resetInterval (const eventsetup::EventSetupRecordKey &)
 
void setDescriptionForFinder (const eventsetup::ComponentDescription &iDescription)
 
virtual ~EventSetupRecordIntervalFinder () noexcept(false)
 

Protected Member Functions

CTPPSRPAlignmentCorrectionsDataSequence Merge (const std::vector< CTPPSRPAlignmentCorrectionsDataSequence > &) const
 merges an array of sequences to one More...
 
void PrepareSequence (const std::string &label, CTPPSRPAlignmentCorrectionsDataSequence &seq, const std::vector< std::string > &files) const
 builds a sequence of corrections from provided sources and runs a few checks More...
 
void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedProxiesVector registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 
- Protected Member Functions inherited from edm::EventSetupRecordIntervalFinder
template<class T >
void findingRecord ()
 
void findingRecordWithKey (const eventsetup::EventSetupRecordKey &)
 

Static Protected Member Functions

static edm::EventID nextLS (const edm::EventID &src)
 
static edm::EventID previousLS (const edm::EventID &src)
 

Protected Attributes

CTPPSRPAlignmentCorrectionsData acMeasured
 
CTPPSRPAlignmentCorrectionsData acMisaligned
 
CTPPSRPAlignmentCorrectionsData acReal
 
CTPPSRPAlignmentCorrectionsDataSequence acsMeasured
 
CTPPSRPAlignmentCorrectionsDataSequence acsMisaligned
 
CTPPSRPAlignmentCorrectionsDataSequence acsReal
 
unsigned int verbosity
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProxyFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >>
 

Detailed Description

Loads alignment corrections to EventSetup.

Definition at line 35 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

Constructor & Destructor Documentation

◆ CTPPSRPAlignmentCorrectionsDataESSourceXML()

CTPPSRPAlignmentCorrectionsDataESSourceXML::CTPPSRPAlignmentCorrectionsDataESSourceXML ( const edm::ParameterSet p)

Definition at line 91 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

92  : verbosity(pSet.getUntrackedParameter<unsigned int>("verbosity", 0)) {
93  std::vector<std::string> measuredFiles;
94  for (const auto &f : pSet.getParameter<vector<string> >("MeasuredFiles"))
95  measuredFiles.push_back(edm::FileInPath(f).fullPath());
96  PrepareSequence("Measured", acsMeasured, measuredFiles);
97 
98  std::vector<std::string> realFiles;
99  for (const auto &f : pSet.getParameter<vector<string> >("RealFiles"))
100  realFiles.push_back(edm::FileInPath(f).fullPath());
101  PrepareSequence("Real", acsReal, realFiles);
102 
103  std::vector<std::string> misalignedFiles;
104  for (const auto &f : pSet.getParameter<vector<string> >("MisalignedFiles"))
105  misalignedFiles.push_back(edm::FileInPath(f).fullPath());
106  PrepareSequence("Misaligned", acsMisaligned, misalignedFiles);
107 
111 
112  findingRecord<CTPPSRPAlignmentCorrectionsDataRcd>();
113  findingRecord<RPRealAlignmentRecord>();
114  findingRecord<RPMisalignedAlignmentRecord>();
115 }

References acsMeasured, acsMisaligned, acsReal, f, contentValuesFiles::fullPath, edm::ParameterSet::getParameter(), PrepareSequence(), produceMeasured(), produceMisaligned(), produceReal(), and edm::ESProducer::setWhatProduced().

◆ ~CTPPSRPAlignmentCorrectionsDataESSourceXML()

CTPPSRPAlignmentCorrectionsDataESSourceXML::~CTPPSRPAlignmentCorrectionsDataESSourceXML ( )
override

Definition at line 119 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

119 {}

Member Function Documentation

◆ Merge()

CTPPSRPAlignmentCorrectionsDataSequence CTPPSRPAlignmentCorrectionsDataESSourceXML::Merge ( const std::vector< CTPPSRPAlignmentCorrectionsDataSequence > &  seqs) const
protected

merges an array of sequences to one

Definition at line 123 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

124  {
125  // find interval boundaries
126  map<edm::EventID, vector<pair<bool, const CTPPSRPAlignmentCorrectionsData *> > > bounds;
127 
128  for (const auto &seq : seqs) {
129  for (const auto &p : seq) {
130  const ValidityInterval &iov = p.first;
131  const CTPPSRPAlignmentCorrectionsData *corr = &p.second;
132 
133  const EventID &event_first = iov.first().eventID();
134  bounds[event_first].emplace_back(pair<bool, const CTPPSRPAlignmentCorrectionsData *>(true, corr));
135 
136  const EventID &event_after = nextLS(iov.last().eventID());
137  bounds[event_after].emplace_back(pair<bool, const CTPPSRPAlignmentCorrectionsData *>(false, corr));
138  }
139  }
140 
141  // build correction sums per interval
142  set<const CTPPSRPAlignmentCorrectionsData *> accumulator;
144  for (map<EventID, vector<pair<bool, const CTPPSRPAlignmentCorrectionsData *> > >::const_iterator tit = bounds.begin();
145  tit != bounds.end();
146  ++tit) {
147  for (const auto &cit : tit->second) {
148  bool add = cit.first;
149  const CTPPSRPAlignmentCorrectionsData *corr = cit.second;
150 
151  if (add)
152  accumulator.insert(corr);
153  else
154  accumulator.erase(corr);
155  }
156 
157  auto tit_next = tit;
158  tit_next++;
159  if (tit_next == bounds.end())
160  break;
161 
162  const EventID &event_first = tit->first;
163  const EventID &event_last = previousLS(tit_next->first);
164 
165  if (verbosity) {
166  LogVerbatim("CTPPSRPAlignmentCorrectionsDataESSourceXML")
169  << ": alignment blocks " << accumulator.size();
170  }
171 
173  for (auto sit : accumulator)
174  corr_sum.addCorrections(*sit);
175 
176  result.insert(edm::ValidityInterval(edm::IOVSyncValue(event_first), edm::IOVSyncValue(event_last)), corr_sum);
177  }
178 
179  return result;
180 }

References mixOne_premix_on_sim_cfi::accumulator, PVValHelper::add(), CTPPSRPAlignmentCorrectionsData::addCorrections(), alignCSCRings::corr, edm::IOVSyncValue::eventID(), edm::ValidityInterval::first(), CTPPSRPAlignmentCorrectionsMethods::iovValueToString(), edm::ValidityInterval::last(), genParticles_cff::map, nextLS(), AlCaHLTBitMon_ParallelJobs::p, previousLS(), mps_fire::result, cmsswSequenceInfo::seq, cmsswSequenceInfo::seqs, trackerHitRTTI::vector, and verbosity.

Referenced by PrepareSequence().

◆ nextLS()

static edm::EventID CTPPSRPAlignmentCorrectionsDataESSourceXML::nextLS ( const edm::EventID src)
inlinestaticprotected

Definition at line 69 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

Referenced by Merge().

◆ PrepareSequence()

void CTPPSRPAlignmentCorrectionsDataESSourceXML::PrepareSequence ( const std::string &  label,
CTPPSRPAlignmentCorrectionsDataSequence seq,
const std::vector< std::string > &  files 
) const
protected

builds a sequence of corrections from provided sources and runs a few checks

Definition at line 184 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

186  {
187  if (verbosity)
188  LogVerbatim(">> CTPPSRPAlignmentCorrectionsDataESSourceXML")
189  << "CTPPSRPAlignmentCorrectionsDataESSourceXML::PrepareSequence(" << label << ")";
190 
191  vector<CTPPSRPAlignmentCorrectionsDataSequence> sequences;
192  sequences.reserve(files.size());
193  for (const auto &file : files)
194  sequences.emplace_back(CTPPSRPAlignmentCorrectionsMethods::loadFromXML(file));
195 
196  seq = Merge(sequences);
197 }

References FrontierConditions_GlobalTag_cff::file, submitPVResolutionJobs::files, label, CTPPSRPAlignmentCorrectionsMethods::loadFromXML(), Merge(), cmsswSequenceInfo::seq, and verbosity.

Referenced by CTPPSRPAlignmentCorrectionsDataESSourceXML().

◆ previousLS()

static edm::EventID CTPPSRPAlignmentCorrectionsDataESSourceXML::previousLS ( const edm::EventID src)
inlinestaticprotected

Definition at line 59 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

63  {
64  if (src.luminosityBlock() == edm::EventID::maxLuminosityBlockNumber()) {
65  if (src.run() == edm::EventID::maxRunNumber())
66  return src;
67 

Referenced by Merge(), and setIntervalFor().

◆ produceMeasured()

std::unique_ptr< CTPPSRPAlignmentCorrectionsData > CTPPSRPAlignmentCorrectionsDataESSourceXML::produceMeasured ( const CTPPSRPAlignmentCorrectionsDataRcd iRecord)

Definition at line 201 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

202  {
203  return std::make_unique<CTPPSRPAlignmentCorrectionsData>(acMeasured);
204 }

References acMeasured.

Referenced by CTPPSRPAlignmentCorrectionsDataESSourceXML().

◆ produceMisaligned()

std::unique_ptr< CTPPSRPAlignmentCorrectionsData > CTPPSRPAlignmentCorrectionsDataESSourceXML::produceMisaligned ( const RPMisalignedAlignmentRecord iRecord)

Definition at line 215 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

216  {
217  return std::make_unique<CTPPSRPAlignmentCorrectionsData>(acMisaligned);
218 }

References acMisaligned.

Referenced by CTPPSRPAlignmentCorrectionsDataESSourceXML().

◆ produceReal()

std::unique_ptr< CTPPSRPAlignmentCorrectionsData > CTPPSRPAlignmentCorrectionsDataESSourceXML::produceReal ( const RPRealAlignmentRecord iRecord)

Definition at line 208 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

209  {
210  return std::make_unique<CTPPSRPAlignmentCorrectionsData>(acReal);
211 }

References acReal.

Referenced by CTPPSRPAlignmentCorrectionsDataESSourceXML().

◆ setIntervalFor()

void CTPPSRPAlignmentCorrectionsDataESSourceXML::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey key,
const edm::IOVSyncValue iosv,
edm::ValidityInterval valInt 
)
overrideprotectedvirtual

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 222 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

224  {
225  if (verbosity) {
226  time_t unixTime = iosv.time().unixTime();
227  char timeStr[50];
228  strftime(timeStr, 50, "%F %T", localtime(&unixTime));
229 
230  LogVerbatim("CTPPSRPAlignmentCorrectionsDataESSourceXML")
231  << ">> CTPPSRPAlignmentCorrectionsDataESSourceXML::setIntervalFor(" << key.name() << ")";
232 
233  LogVerbatim("CTPPSRPAlignmentCorrectionsDataESSourceXML")
234  << " event=" << iosv.eventID() << ", UNIX timestamp=" << unixTime << " (" << timeStr << ")";
235  }
236 
237  // // determine what sequence and corrections should be used
239  CTPPSRPAlignmentCorrectionsData *p_corr = nullptr;
240 
241  if (strcmp(key.name(), "CTPPSRPAlignmentCorrectionsDataRcd") == 0) {
242  p_seq = &acsMeasured;
243  p_corr = &acMeasured;
244  }
245 
246  if (strcmp(key.name(), "RPRealAlignmentRecord") == 0) {
247  p_seq = &acsReal;
248  p_corr = &acReal;
249  }
250 
251  if (strcmp(key.name(), "RPMisalignedAlignmentRecord") == 0) {
252  p_seq = &acsMisaligned;
253  p_corr = &acMisaligned;
254  }
255 
256  if (p_corr == nullptr)
257  throw cms::Exception("CTPPSRPAlignmentCorrectionsDataESSourceXML::setIntervalFor")
258  << "Unknown record " << key.name();
259 
260  // // find the corresponding interval
261  bool next_exists = false;
262  const edm::EventID &event_curr = iosv.eventID();
264 
265  for (const auto &it : *p_seq) {
266  const auto &it_event_first = it.first.first().eventID();
267  const auto &it_event_last = it.first.last().eventID();
268 
269  bool it_contained_lo = ((it_event_first.run() < event_curr.run()) ||
270  ((it_event_first.run() == event_curr.run()) &&
271  (it_event_first.luminosityBlock() <= event_curr.luminosityBlock())));
272 
273  bool it_contained_up = ((it_event_last.run() > event_curr.run()) ||
274  ((it_event_last.run() == event_curr.run()) &&
275  (it_event_last.luminosityBlock() >= event_curr.luminosityBlock())));
276 
277  if (it_contained_lo && it_contained_up) {
278  valInt = it.first;
279  *p_corr = it.second;
280 
281  if (verbosity) {
282  LogVerbatim("CTPPSRPAlignmentCorrectionsDataESSourceXML")
283  << " setting validity interval [" << CTPPSRPAlignmentCorrectionsMethods::iovValueToString(valInt.first())
285  }
286 
287  return;
288  }
289 
290  bool it_in_future = ((it_event_first.run() > event_curr.run()) ||
291  ((it_event_first.run() == event_curr.run() &&
292  (it_event_first.luminosityBlock() > event_curr.luminosityBlock()))));
293 
294  if (it_in_future) {
295  next_exists = true;
296  if (event_next_start > it_event_first)
297  event_next_start = it_event_first;
298  }
299  }
300 
301  // no interval found, set empty corrections
303 
304  if (!next_exists) {
305  valInt = ValidityInterval(iosv, iosv.endOfTime());
306  } else {
307  const EventID &event_last = previousLS(event_next_start);
308  valInt = ValidityInterval(iosv, IOVSyncValue(event_last));
309  }
310 
311  if (verbosity) {
312  LogVerbatim("CTPPSRPAlignmentCorrectionsDataESSourceXML")
313  << " setting validity interval [" << CTPPSRPAlignmentCorrectionsMethods::iovValueToString(valInt.first())
315  << "] (empty alignment corrections)";
316  }
317 }

References acMeasured, acMisaligned, acReal, acsMeasured, acsMisaligned, acsReal, edm::IOVSyncValue::endOfTime(), edm::IOVSyncValue::eventID(), Exception, edm::ValidityInterval::first(), CTPPSRPAlignmentCorrectionsMethods::iovValueToString(), crabWrapper::key, edm::ValidityInterval::last(), edm::EventID::luminosityBlock(), edm::EventID::maxLuminosityBlockNumber(), edm::EventID::maxRunNumber(), previousLS(), edm::EventID::run(), edm::IOVSyncValue::time(), edm::Timestamp::unixTime(), and verbosity.

Member Data Documentation

◆ acMeasured

CTPPSRPAlignmentCorrectionsData CTPPSRPAlignmentCorrectionsDataESSourceXML::acMeasured
protected

◆ acMisaligned

CTPPSRPAlignmentCorrectionsData CTPPSRPAlignmentCorrectionsDataESSourceXML::acMisaligned
protected

◆ acReal

CTPPSRPAlignmentCorrectionsData CTPPSRPAlignmentCorrectionsDataESSourceXML::acReal
protected

Definition at line 53 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

Referenced by produceReal(), and setIntervalFor().

◆ acsMeasured

CTPPSRPAlignmentCorrectionsDataSequence CTPPSRPAlignmentCorrectionsDataESSourceXML::acsMeasured
protected

◆ acsMisaligned

CTPPSRPAlignmentCorrectionsDataSequence CTPPSRPAlignmentCorrectionsDataESSourceXML::acsMisaligned
protected

◆ acsReal

CTPPSRPAlignmentCorrectionsDataSequence CTPPSRPAlignmentCorrectionsDataESSourceXML::acsReal
protected

◆ verbosity

unsigned int CTPPSRPAlignmentCorrectionsDataESSourceXML::verbosity
protected
CTPPSRPAlignmentCorrectionsDataESSourceXML::acMisaligned
CTPPSRPAlignmentCorrectionsData acMisaligned
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:53
CTPPSRPAlignmentCorrectionsMethods::iovValueToString
static std::string iovValueToString(const edm::IOVSyncValue &)
Definition: CTPPSRPAlignmentCorrectionsMethods.cc:90
cmsswSequenceInfo.seq
seq
Definition: cmsswSequenceInfo.py:539
CTPPSRPAlignmentCorrectionsDataESSourceXML::produceMeasured
std::unique_ptr< CTPPSRPAlignmentCorrectionsData > produceMeasured(const CTPPSRPAlignmentCorrectionsDataRcd &)
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:201
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
edm::EventID::maxRunNumber
static RunNumber_t maxRunNumber()
Definition: EventID.h:92
CTPPSRPAlignmentCorrectionsDataESSourceXML::produceReal
std::unique_ptr< CTPPSRPAlignmentCorrectionsData > produceReal(const RPRealAlignmentRecord &)
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:208
contentValuesFiles.fullPath
fullPath
Definition: contentValuesFiles.py:64
CTPPSRPAlignmentCorrectionsDataESSourceXML::previousLS
static edm::EventID previousLS(const edm::EventID &src)
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:59
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CTPPSRPAlignmentCorrectionsDataESSourceXML::nextLS
static edm::EventID nextLS(const edm::EventID &src)
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:69
edm::Timestamp::unixTime
unsigned int unixTime() const
Time in seconds since January 1, 1970.
Definition: Timestamp.h:40
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
edm::ValidityInterval::last
const IOVSyncValue & last() const
Definition: ValidityInterval.h:38
edm::ValidityInterval
Definition: ValidityInterval.h:28
CTPPSRPAlignmentCorrectionsDataESSourceXML::acsMisaligned
CTPPSRPAlignmentCorrectionsDataSequence acsMisaligned
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:52
edm::ValidityInterval::first
const IOVSyncValue & first() const
Definition: ValidityInterval.h:37
CTPPSRPAlignmentCorrectionsDataESSourceXML::acsReal
CTPPSRPAlignmentCorrectionsDataSequence acsReal
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:52
edm::EventID::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: EventID.h:39
CTPPSRPAlignmentCorrectionsData::addCorrections
void addCorrections(const CTPPSRPAlignmentCorrectionsData &, bool sumErrors=true, bool addSh=true, bool addRot=true)
adds (merges) corrections on top of the current values
Definition: CTPPSRPAlignmentCorrectionsData.cc:101
CTPPSRPAlignmentCorrectionsDataESSourceXML::acReal
CTPPSRPAlignmentCorrectionsData acReal
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:53
CTPPSRPAlignmentCorrectionsDataESSourceXML::PrepareSequence
void PrepareSequence(const std::string &label, CTPPSRPAlignmentCorrectionsDataSequence &seq, const std::vector< std::string > &files) const
builds a sequence of corrections from provided sources and runs a few checks
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:184
edm::FileInPath
Definition: FileInPath.h:64
edm::EventID::maxLuminosityBlockNumber
static LuminosityBlockNumber_t maxLuminosityBlockNumber()
Definition: EventID.h:94
submitPVResolutionJobs.files
files
Definition: submitPVResolutionJobs.py:373
alignCSCRings.corr
dictionary corr
Definition: alignCSCRings.py:124
CTPPSRPAlignmentCorrectionsDataESSourceXML::acMeasured
CTPPSRPAlignmentCorrectionsData acMeasured
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:53
edm::IOVSyncValue
Definition: IOVSyncValue.h:31
edm::EventID::run
RunNumber_t run() const
Definition: EventID.h:38
edm::IOVSyncValue::eventID
const EventID & eventID() const
Definition: IOVSyncValue.h:40
CTPPSRPAlignmentCorrectionsDataESSourceXML::Merge
CTPPSRPAlignmentCorrectionsDataSequence Merge(const std::vector< CTPPSRPAlignmentCorrectionsDataSequence > &) const
merges an array of sequences to one
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:123
TrackRefitter_38T_cff.src
src
Definition: TrackRefitter_38T_cff.py:24
edm::IOVSyncValue::endOfTime
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
PVValHelper::add
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
Definition: PVValidationHelpers.cc:12
CTPPSRPAlignmentCorrectionsDataESSourceXML::acsMeasured
CTPPSRPAlignmentCorrectionsDataSequence acsMeasured
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:52
FrontierConditions_GlobalTag_cff.file
file
Definition: FrontierConditions_GlobalTag_cff.py:13
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
CTPPSRPAlignmentCorrectionsDataESSourceXML::produceMisaligned
std::unique_ptr< CTPPSRPAlignmentCorrectionsData > produceMisaligned(const RPMisalignedAlignmentRecord &)
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:215
mixOne_premix_on_sim_cfi.accumulator
accumulator
Definition: mixOne_premix_on_sim_cfi.py:167
edm::IOVSyncValue::time
const Timestamp & time() const
Definition: IOVSyncValue.h:42
cond::ValidityInterval
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:17
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
Exception
Definition: hltDiff.cc:246
CTPPSRPAlignmentCorrectionsData
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
Definition: CTPPSRPAlignmentCorrectionsData.h:24
mps_fire.result
result
Definition: mps_fire.py:311
genParticles_cff.map
map
Definition: genParticles_cff.py:11
edm::EventID
Definition: EventID.h:31
crabWrapper.key
key
Definition: crabWrapper.py:19
CTPPSRPAlignmentCorrectionsMethods::loadFromXML
static CTPPSRPAlignmentCorrectionsDataSequence loadFromXML(const std::string &fileName)
loads sequence of alignment corrections from XML file
Definition: CTPPSRPAlignmentCorrectionsMethods.cc:104
cmsswSequenceInfo.seqs
seqs
Definition: cmsswSequenceInfo.py:526
label
const char * label
Definition: PFTauDecayModeTools.cc:11
CTPPSRPAlignmentCorrectionsDataESSourceXML::verbosity
unsigned int verbosity
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:51
CTPPSRPAlignmentCorrectionsDataSequence
Time sequence of alignment corrections. I/O methods have been factored out to: CondFormats/PPSObjects...
Definition: CTPPSRPAlignmentCorrectionsDataSequence.h:22