CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes
CTPPSCommonDQMSource Class Reference
Inheritance diagram for CTPPSCommonDQMSource:
DQMOneEDAnalyzer< edm::LuminosityBlockCache< std::vector< int > > > edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args...> edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Classes

struct  ArmPlots
 plots related to one arm More...
 
struct  GlobalPlots
 plots related to the whole system More...
 

Public Member Functions

 CTPPSCommonDQMSource (const edm::ParameterSet &ps)
 
 ~CTPPSCommonDQMSource () override
 
- Public Member Functions inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< std::vector< int > > >
void accumulate (edm::Event const &event, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
 DQMOneEDAnalyzer ()
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args...>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector
< edm::ProductResolverIndex >
const & 
indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector
< edm::ProductResolverIndex >
const & 
putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () noexcept(false) 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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
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)
 

Protected Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &eSetup) override
 
void analyzeCTPPSRecord (edm::Event const &event, edm::EventSetup const &eventSetup)
 
void analyzeProtons (edm::Event const &event, edm::EventSetup const &eventSetup)
 
void analyzeTracks (edm::Event const &event, edm::EventSetup const &eventSetup)
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
std::shared_ptr< std::vector
< int > > 
globalBeginLuminosityBlock (const edm::LuminosityBlock &iLumi, const edm::EventSetup &c) const override
 
void globalEndLuminosityBlock (const edm::LuminosityBlock &iLumi, const edm::EventSetup &c) override
 
- Protected Member Functions inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< std::vector< int > > >
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
virtual void dqmEndRun (edm::Run const &, edm::EventSetup const &)
 
- Protected Member Functions inherited from edm::ProducerBase
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
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<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
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...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Private Attributes

std::map< unsigned int, ArmPlotsarmPlots
 
const edm::EDGetTokenT
< CTPPSRecord
ctppsRecordToken
 
int currentLS
 
int endLS
 
GlobalPlots globalPlots
 
bool makeProtonRecoPlots_
 
bool perLSsaving_
 
std::vector< int > rpstate
 
const edm::EDGetTokenT
< std::vector
< CTPPSLocalTrackLite > > 
tokenLocalTrackLite
 
const edm::EDGetTokenT
< std::vector
< reco::ForwardProton > > 
tokenRecoProtons
 
const unsigned int verbosity
 

Static Private Attributes

static constexpr int MAX_LUMIS = 6000
 
static constexpr int MAX_VBINS = 18
 

Additional Inherited Members

- Public Types inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< std::vector< int > > >
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Attributes inherited from DQMOneEDAnalyzer< edm::LuminosityBlockCache< std::vector< int > > >
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 29 of file CTPPSCommonDQMSource.cc.

Constructor & Destructor Documentation

CTPPSCommonDQMSource::CTPPSCommonDQMSource ( const edm::ParameterSet ps)

Definition at line 297 of file CTPPSCommonDQMSource.cc.

References currentLS, endLS, and rpstate.

298  : verbosity(ps.getUntrackedParameter<unsigned int>("verbosity", 0)),
299  ctppsRecordToken(consumes<CTPPSRecord>(ps.getUntrackedParameter<edm::InputTag>("ctppsmetadata"))),
300  tokenLocalTrackLite(consumes<vector<CTPPSLocalTrackLite>>(ps.getParameter<edm::InputTag>("tagLocalTrackLite"))),
301  tokenRecoProtons(consumes<std::vector<reco::ForwardProton>>(ps.getParameter<InputTag>("tagRecoProtons"))),
302  makeProtonRecoPlots_(ps.getParameter<bool>("makeProtonRecoPlots")),
303  perLSsaving_(ps.getUntrackedParameter<bool>("perLSsaving", false)) {
304  currentLS = 0;
305  endLS = 0;
306  rpstate.clear();
307 }
T getUntrackedParameter(std::string const &, T const &) const
const unsigned int verbosity
std::vector< int > rpstate
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const edm::EDGetTokenT< std::vector< reco::ForwardProton > > tokenRecoProtons
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
const edm::EDGetTokenT< std::vector< CTPPSLocalTrackLite > > tokenLocalTrackLite
const edm::EDGetTokenT< CTPPSRecord > ctppsRecordToken
CTPPSCommonDQMSource::~CTPPSCommonDQMSource ( )
override

Definition at line 311 of file CTPPSCommonDQMSource.cc.

311 {}

Member Function Documentation

void CTPPSCommonDQMSource::analyze ( edm::Event const &  e,
edm::EventSetup const &  eSetup 
)
overrideprotectedvirtual

Reimplemented from DQMOneEDAnalyzer< edm::LuminosityBlockCache< std::vector< int > > >.

Definition at line 327 of file CTPPSCommonDQMSource.cc.

References analyzeCTPPSRecord(), analyzeProtons(), analyzeTracks(), and makeProtonRecoPlots_.

327  {
328  analyzeCTPPSRecord(event, eventSetup);
329  analyzeTracks(event, eventSetup);
330 
332  analyzeProtons(event, eventSetup);
333 }
void analyzeTracks(edm::Event const &event, edm::EventSetup const &eventSetup)
void analyzeProtons(edm::Event const &event, edm::EventSetup const &eventSetup)
void analyzeCTPPSRecord(edm::Event const &event, edm::EventSetup const &eventSetup)
void CTPPSCommonDQMSource::analyzeCTPPSRecord ( edm::Event const &  event,
edm::EventSetup const &  eventSetup 
)
protected

Definition at line 337 of file CTPPSCommonDQMSource.cc.

References ctppsRecordToken, edm::Event::getLuminosityBlock(), mps_fire::i, edm::LuminosityBlock::index(), edm::HandleBase::isValid(), rpstate, and verbosity.

Referenced by analyze().

337  {
338  Handle<CTPPSRecord> hCTPPSRecord;
339  event.getByToken(ctppsRecordToken, hCTPPSRecord);
340 
341  if (!hCTPPSRecord.isValid()) {
342  if (verbosity)
343  LogProblem("CTPPSCommonDQMSource") << "ERROR in CTPPSCommonDQMSource::analyzeCTPPSRecord > input not available.";
344 
345  return;
346  }
347 
348  auto &rpstate = *luminosityBlockCache(event.getLuminosityBlock().index());
349  if (rpstate.empty()) {
350  rpstate.reserve(CTPPSRecord::RomanPot::Last);
351  for (uint8_t i = 0; i < CTPPSRecord::RomanPot::Last; ++i)
352  rpstate.push_back(hCTPPSRecord->status(i));
353  }
354 }
const unsigned int verbosity
std::vector< int > rpstate
bool isValid() const
Definition: HandleBase.h:70
const edm::EDGetTokenT< CTPPSRecord > ctppsRecordToken
Log< level::Error, true > LogProblem
void CTPPSCommonDQMSource::analyzeProtons ( edm::Event const &  event,
edm::EventSetup const &  eventSetup 
)
protected

Definition at line 517 of file CTPPSCommonDQMSource.cc.

References armPlots, edm::HandleBase::isValid(), AlCaHLTBitMon_ParallelJobs::p, L1TEGammaDiff_cfi::plots, reco::ForwardProton::sector45, reco::ForwardProton::sector56, tokenRecoProtons, and verbosity.

Referenced by analyze().

517  {
518  // get event data
520  event.getByToken(tokenRecoProtons, hRecoProtons);
521 
522  // check validity
523  if (!hRecoProtons.isValid()) {
524  if (verbosity)
525  LogProblem("CTPPSCommonDQMSource") << "ERROR in CTPPSCommonDQMSource::analyzeProtons > input not available.";
526 
527  return;
528  }
529 
530  // loop over protons
531  for (auto &p : *hRecoProtons) {
532  if (!p.validFit())
533  continue;
534 
535  signed int armIndex = -1;
536  if (p.lhcSector() == reco::ForwardProton::LHCSector::sector45)
537  armIndex = 0;
538  if (p.lhcSector() == reco::ForwardProton::LHCSector::sector56)
539  armIndex = 1;
540  if (armIndex < 0)
541  continue;
542 
543  auto &plots = armPlots[armIndex];
544 
545  plots.h_proton_xi->Fill(p.xi());
546  plots.h_proton_th_x->Fill(p.thetaX());
547  plots.h_proton_th_y->Fill(p.thetaY());
548  plots.h_proton_t->Fill(fabs(p.t()));
549  plots.h_proton_time->Fill(p.time());
550  }
551 }
const unsigned int verbosity
std::map< unsigned int, ArmPlots > armPlots
const edm::EDGetTokenT< std::vector< reco::ForwardProton > > tokenRecoProtons
bool isValid() const
Definition: HandleBase.h:70
Log< level::Error, true > LogProblem
void CTPPSCommonDQMSource::analyzeTracks ( edm::Event const &  event,
edm::EventSetup const &  eventSetup 
)
protected

Definition at line 358 of file CTPPSCommonDQMSource.cc.

References CTPPSDetId::arm(), armPlots, edm::EventBase::bunchCrossing(), CTPPSCommonDQMSource::GlobalPlots::events_per_bx, CTPPSCommonDQMSource::GlobalPlots::events_per_bx_short, dqm::impl::MonitorElement::Fill(), globalPlots, CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_hor, CTPPSCommonDQMSource::GlobalPlots::h_trackCorr_vert, edm::HandleBase::isValid(), AlCaHLTBitMon_ParallelJobs::p, L1TEGammaDiff_cfi::plots, CTPPSDetId::rp(), tokenLocalTrackLite, and verbosity.

Referenced by analyze().

358  {
359  // get event data
361  event.getByToken(tokenLocalTrackLite, hTracks);
362 
363  // check validity
364  if (!hTracks.isValid()) {
365  if (verbosity)
366  LogProblem("CTPPSCommonDQMSource") << "ERROR in CTPPSCommonDQMSource::analyzeTracks > input not available.";
367 
368  return;
369  }
370 
371  //------------------------------
372  // collect indeces of RP with tracks, for each correlation plot
373  set<signed int> s_rp_idx_global_hor, s_rp_idx_global_vert;
374  map<unsigned int, set<signed int>> ms_rp_idx_arm;
375 
376  for (auto &tr : *hTracks) {
377  const CTPPSDetId rpId(tr.rpId());
378  const unsigned int arm = rpId.arm();
379  const unsigned int stNum = rpId.station();
380  const unsigned int rpNum = rpId.rp();
381  const unsigned int stRPNum = stNum * 10 + rpNum;
382 
383  {
384  signed int idx = -1;
385  if (stRPNum == 3)
386  idx = 0;
387  if (stRPNum == 22)
388  idx = 1;
389  if (stRPNum == 16)
390  idx = 2;
391  if (stRPNum == 23)
392  idx = 3;
393 
394  if (idx >= 0)
395  s_rp_idx_global_hor.insert(4 * arm + idx);
396  }
397 
398  {
399  signed int idx = -1;
400  if (stRPNum == 4)
401  idx = 0;
402  if (stRPNum == 5)
403  idx = 1;
404  if (stRPNum == 24)
405  idx = 2;
406  if (stRPNum == 25)
407  idx = 3;
408 
409  if (idx >= 0)
410  s_rp_idx_global_vert.insert(4 * arm + idx);
411  }
412 
413  {
414  signed int idx = -1;
415  if (stRPNum == 3)
416  idx = 0;
417  if (stRPNum == 4)
418  idx = 1;
419  if (stRPNum == 5)
420  idx = 2;
421  if (stRPNum == 22)
422  idx = 3;
423  if (stRPNum == 16)
424  idx = 4;
425  if (stRPNum == 23)
426  idx = 5;
427  if (stRPNum == 24)
428  idx = 6;
429  if (stRPNum == 25)
430  idx = 7;
431 
432  const signed int hor = ((rpNum == 2) || (rpNum == 3) || (rpNum == 6)) ? 1 : 0;
433 
434  if (idx >= 0)
435  ms_rp_idx_arm[arm].insert(idx * 10 + hor);
436  }
437  }
438 
439  //------------------------------
440  // Global Plots
441 
442  globalPlots.events_per_bx->Fill(event.bunchCrossing());
443  globalPlots.events_per_bx_short->Fill(event.bunchCrossing());
444 
445  for (const auto &idx1 : s_rp_idx_global_hor)
446  for (const auto &idx2 : s_rp_idx_global_hor)
447  globalPlots.h_trackCorr_hor->Fill(idx1, idx2);
448 
449  for (const auto &idx1 : s_rp_idx_global_vert)
450  for (const auto &idx2 : s_rp_idx_global_vert)
451  globalPlots.h_trackCorr_vert->Fill(idx1, idx2);
452 
453  //------------------------------
454  // Arm Plots
455 
456  map<unsigned int, set<unsigned int>> mTop, mHor, mBot;
457 
458  for (auto &tr : *hTracks) {
459  CTPPSDetId rpId(tr.rpId());
460  const unsigned int rpNum = rpId.rp();
461  const unsigned int armIdx = rpId.arm();
462 
463  if (rpNum == 0 || rpNum == 4)
464  mTop[armIdx].insert(rpId);
465  if (rpNum == 2 || rpNum == 3 || rpNum == 6)
466  mHor[armIdx].insert(rpId);
467  if (rpNum == 1 || rpNum == 5)
468  mBot[armIdx].insert(rpId);
469 
470  auto &ap = armPlots[rpId.arm()];
471  unsigned int rpDecId = rpId.arm() * 100 + rpId.station() * 10 + rpId.rp();
472 
473  // fill in reference tracking-RP plots
474  {
475  auto it = ap.trackingRPPlots.find(rpDecId);
476  if (it != ap.trackingRPPlots.end()) {
477  it->second.h_x->Fill(tr.x());
478  it->second.h_y->Fill(tr.y());
479  }
480  }
481 
482  // fill in reference timing-RP plots
483  {
484  auto it = ap.timingRPPlots.find(rpDecId);
485  if (it != ap.timingRPPlots.end()) {
486  it->second.h_x->Fill(tr.x());
487  it->second.h_time->Fill(tr.time());
488  }
489  }
490  }
491 
492  for (auto &p : armPlots) {
493  p.second.h_numRPWithTrack_top->Fill(mTop[p.first].size());
494  p.second.h_numRPWithTrack_hor->Fill(mHor[p.first].size());
495  p.second.h_numRPWithTrack_bot->Fill(mBot[p.first].size());
496  }
497 
498  //------------------------------
499  // Correlation plots
500 
501  for (const auto &ap : ms_rp_idx_arm) {
502  auto &plots = armPlots[ap.first];
503 
504  for (const auto &idx1 : ap.second) {
505  for (const auto &idx2 : ap.second) {
506  plots.h_trackCorr->Fill(idx1 / 10, idx2 / 10);
507 
508  if ((idx1 % 10) != (idx2 % 10))
509  plots.h_trackCorr_overlap->Fill(idx1 / 10, idx2 / 10);
510  }
511  }
512  }
513 }
const unsigned int verbosity
std::map< unsigned int, ArmPlots > armPlots
void Fill(long long x)
uint32_t arm() const
Definition: CTPPSDetId.h:51
bool isValid() const
Definition: HandleBase.h:70
Base class for CTPPS detector IDs.
Definition: CTPPSDetId.h:32
const edm::EDGetTokenT< std::vector< CTPPSLocalTrackLite > > tokenLocalTrackLite
Log< level::Error, true > LogProblem
uint32_t rp() const
Definition: CTPPSDetId.h:65
void CTPPSCommonDQMSource::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprotectedvirtual

Implements DQMOneEDAnalyzer< edm::LuminosityBlockCache< std::vector< int > > >.

Definition at line 315 of file CTPPSCommonDQMSource.cc.

References armPlots, globalPlots, CTPPSCommonDQMSource::GlobalPlots::Init(), and makeProtonRecoPlots_.

315  {
316  // global plots
317  globalPlots.Init(ibooker);
318 
319  // loop over arms
320  for (unsigned int arm = 0; arm < 2; arm++) {
321  armPlots[arm] = ArmPlots(ibooker, arm, makeProtonRecoPlots_);
322  }
323 }
std::map< unsigned int, ArmPlots > armPlots
void Init(DQMStore::IBooker &ibooker)
std::shared_ptr< std::vector< int > > CTPPSCommonDQMSource::globalBeginLuminosityBlock ( const edm::LuminosityBlock iLumi,
const edm::EventSetup c 
) const
overrideprotected

Definition at line 555 of file CTPPSCommonDQMSource.cc.

556  {
557  return std::make_shared<std::vector<int>>();
558 }
void CTPPSCommonDQMSource::globalEndLuminosityBlock ( const edm::LuminosityBlock iLumi,
const edm::EventSetup c 
)
overrideprotected

Definition at line 562 of file CTPPSCommonDQMSource.cc.

References currentLS, globalPlots, mps_fire::i, edm::LuminosityBlockBase::id(), edm::LuminosityBlock::index(), edm::LuminosityBlockID::luminosityBlock(), perLSsaving_, rpstate, CTPPSCommonDQMSource::GlobalPlots::RPState, and dqm::impl::MonitorElement::setBinContent().

562  {
563  auto const &rpstate = *luminosityBlockCache(iLumi.index());
564  auto currentLS = iLumi.id().luminosityBlock();
565  if (!perLSsaving_) {
566  for (std::vector<int>::size_type i = 0; i < rpstate.size(); i++)
567  globalPlots.RPState->setBinContent(currentLS, i + 1, rpstate[i]);
568  }
569 }
LuminosityBlockID id() const
LuminosityBlockIndex index() const
uint16_t size_type
std::vector< int > rpstate
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
LuminosityBlockNumber_t luminosityBlock() const

Member Data Documentation

std::map<unsigned int, ArmPlots> CTPPSCommonDQMSource::armPlots
private

Definition at line 100 of file CTPPSCommonDQMSource.cc.

Referenced by analyzeProtons(), analyzeTracks(), and bookHistograms().

const edm::EDGetTokenT<CTPPSRecord> CTPPSCommonDQMSource::ctppsRecordToken
private

Definition at line 50 of file CTPPSCommonDQMSource.cc.

Referenced by analyzeCTPPSRecord().

int CTPPSCommonDQMSource::currentLS
private

Definition at line 57 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource(), and globalEndLuminosityBlock().

int CTPPSCommonDQMSource::endLS
private

Definition at line 58 of file CTPPSCommonDQMSource.cc.

Referenced by CTPPSCommonDQMSource().

GlobalPlots CTPPSCommonDQMSource::globalPlots
private

Definition at line 71 of file CTPPSCommonDQMSource.cc.

Referenced by analyzeTracks(), bookHistograms(), and globalEndLuminosityBlock().

bool CTPPSCommonDQMSource::makeProtonRecoPlots_
private

Definition at line 54 of file CTPPSCommonDQMSource.cc.

Referenced by analyze(), and bookHistograms().

const int CTPPSCommonDQMSource::MAX_LUMIS = 6000
staticprivate

Definition at line 47 of file CTPPSCommonDQMSource.cc.

const int CTPPSCommonDQMSource::MAX_VBINS = 18
staticprivate

Definition at line 48 of file CTPPSCommonDQMSource.cc.

bool CTPPSCommonDQMSource::perLSsaving_
private

Definition at line 55 of file CTPPSCommonDQMSource.cc.

Referenced by globalEndLuminosityBlock().

std::vector<int> CTPPSCommonDQMSource::rpstate
private
const edm::EDGetTokenT<std::vector<CTPPSLocalTrackLite> > CTPPSCommonDQMSource::tokenLocalTrackLite
private

Definition at line 51 of file CTPPSCommonDQMSource.cc.

Referenced by analyzeTracks().

const edm::EDGetTokenT<std::vector<reco::ForwardProton> > CTPPSCommonDQMSource::tokenRecoProtons
private

Definition at line 52 of file CTPPSCommonDQMSource.cc.

Referenced by analyzeProtons().

const unsigned int CTPPSCommonDQMSource::verbosity
private

Definition at line 46 of file CTPPSCommonDQMSource.cc.

Referenced by analyzeCTPPSRecord(), analyzeProtons(), and analyzeTracks().