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
 
ESProducer const & operator= (const ESProducer &)=delete
 
template<typename Record >
void updateFromMayConsumes (unsigned int iIndex, const Record &iRecord)
 
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={})
 
- 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, 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  for (const auto &file : files)
193  sequences.emplace_back(CTPPSRPAlignmentCorrectionsMethods::loadFromXML(file));
194 
195  seq = Merge(sequences);
196 }

References FrontierConditions_GlobalTag_cff::file, MainPageGenerator::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 200 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

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

References acMeasured.

Referenced by CTPPSRPAlignmentCorrectionsDataESSourceXML().

◆ produceMisaligned()

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

Definition at line 214 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

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

References acMisaligned.

Referenced by CTPPSRPAlignmentCorrectionsDataESSourceXML().

◆ produceReal()

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

Definition at line 207 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

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

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 221 of file CTPPSRPAlignmentCorrectionsDataESSourceXML.cc.

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

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:540
CTPPSRPAlignmentCorrectionsDataESSourceXML::produceMeasured
std::unique_ptr< CTPPSRPAlignmentCorrectionsData > produceMeasured(const CTPPSRPAlignmentCorrectionsDataRcd &)
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:200
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:207
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:138
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:102
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
MainPageGenerator.files
files
Definition: MainPageGenerator.py:256
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
edm::LogVerbatim
Definition: MessageLogger.h:297
CTPPSRPAlignmentCorrectionsDataESSourceXML::produceMisaligned
std::unique_ptr< CTPPSRPAlignmentCorrectionsData > produceMisaligned(const RPMisalignedAlignmentRecord &)
Definition: CTPPSRPAlignmentCorrectionsDataESSourceXML.cc:214
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
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:303
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:527
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