CMS 3D CMS Logo

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

#include <BeamSpotProblemMonitor.h>

Inheritance diagram for BeamSpotProblemMonitor:
DQMOneLumiEDAnalyzer<> DQMOneEDAnalyzer< edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, Args... > edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 BeamSpotProblemMonitor (const edm::ParameterSet &)
 
- Public Member Functions inherited from DQMOneLumiEDAnalyzer<>
void accumulate (edm::Event const &event, edm::EventSetup const &setup) override
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
 DQMOneLumiEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
bool getCanSaveByLumi () override
 
- Public Member Functions inherited from DQMOneEDAnalyzer< edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, Args... >
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
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () 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
 
std::vector< bool > const & recordProvenanceList () 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)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (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::vector< ModuleDescription const * > &modules, 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
 
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 &)
 
- 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 Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c) override
 
void bookHistograms (DQMStore::IBooker &i, const edm::Run &r, const edm::EventSetup &c) override
 
void dqmBeginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
 
void dqmEndLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
 
void dqmEndRun (const edm::Run &r, const edm::EventSetup &c) override
 
- Protected Member Functions inherited from DQMOneEDAnalyzer< edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, Args... >
virtual void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)=0
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
- Protected Member Functions inherited from edm::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- 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>
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)
 
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)
 

Private Member Functions

void fillPlots (int &, int &, int)
 

Private Attributes

const int alarmOFFThreshold_
 
bool alarmOn_
 
const int alarmONThreshold_
 
MonitorElementbeamSpotError_ = nullptr
 
int beamSpotFromDB_
 
double beamSpotStatus_
 
MonitorElementbeamSpotStatusLumi_ = nullptr
 
MonitorElementbeamSpotStatusLumiAll_ = nullptr
 
const edm::EDGetTokenT< DcsStatusCollectiondcsStatus_
 
const bool debug_
 
const bool doTest_
 
const int fitNLumi_
 
int lastlumi_
 
std::string monitorName_
 
const int nCosmicTrk_
 
int nextlumi_
 
int nTracks_
 
const bool onlineMode_
 
bool processed_
 
const edm::EDGetTokenT< BeamSpotOnlineCollectionscalertag_
 
const edm::EDGetTokenT< reco::TrackCollectiontrkSrc_
 

Additional Inherited Members

- Public Types inherited from DQMOneEDAnalyzer< edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, Args... >
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
 
- Protected Attributes inherited from DQMOneLumiEDAnalyzer<>
edm::EDPutTokenT< DQMTokenlumiToken_
 
- Protected Attributes inherited from DQMOneEDAnalyzer< edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, Args... >
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 26 of file BeamSpotProblemMonitor.h.

Constructor & Destructor Documentation

◆ BeamSpotProblemMonitor()

BeamSpotProblemMonitor::BeamSpotProblemMonitor ( const edm::ParameterSet ps)
explicit

Definition at line 30 of file BeamSpotProblemMonitor.cc.

31  : dcsStatus_{consumes<DcsStatusCollection>(ps.getUntrackedParameter<InputTag>("DCSStatus"))},
32  scalertag_{consumes<BeamSpotOnlineCollection>(ps.getUntrackedParameter<InputTag>("scalarBSCollection"))},
33  trkSrc_{consumes<reco::TrackCollection>(ps.getUntrackedParameter<InputTag>("pixelTracks"))},
34  nTracks_{0},
35  nCosmicTrk_{ps.getUntrackedParameter<int>("nCosmicTrk")},
36  fitNLumi_{1},
37  debug_{ps.getUntrackedParameter<bool>("Debug")},
38  onlineMode_{ps.getUntrackedParameter<bool>("OnlineMode")},
39  doTest_{ps.getUntrackedParameter<bool>("doTest")},
40  alarmONThreshold_{ps.getUntrackedParameter<int>("AlarmONThreshold")},
41  alarmOFFThreshold_{ps.getUntrackedParameter<int>("AlarmOFFThreshold")},
42  lastlumi_{0},
43  nextlumi_{0},
44  processed_{false},
45  alarmOn_{false},
46  beamSpotStatus_{0},
47  beamSpotFromDB_{0} {
48  monitorName_ = ps.getUntrackedParameter<string>("monitorName");
49 
50  if (not monitorName_.empty())
51  monitorName_ += "/";
52 }

References edm::ParameterSet::getUntrackedParameter().

Member Function Documentation

◆ analyze()

void BeamSpotProblemMonitor::analyze ( const edm::Event e,
const edm::EventSetup c 
)
overrideprotectedvirtual

Reimplemented from DQMOneEDAnalyzer< edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, Args... >.

Definition at line 124 of file BeamSpotProblemMonitor.cc.

124  {
125  const int nthlumi = iEvent.luminosityBlock();
126 
127  if (onlineMode_ && (nthlumi < nextlumi_)) {
128  edm::LogInfo("BeamSpotProblemMonitor") << "analyze:: Spilt event from previous lumi section!" << std::endl;
129  return;
130  }
131  if (onlineMode_ && (nthlumi > nextlumi_)) {
132  edm::LogInfo("BeamSpotProblemMonitor") << "analyze:: Spilt event from next lumi section!!!" << std::endl;
133  return;
134  }
135 
136  beamSpotStatus_ = 0.;
137 
138  // Checking TK status
140  iEvent.getByToken(dcsStatus_, dcsStatus);
141  std::array<bool, 6> dcsTk;
142  for (auto& e : dcsTk) {
143  e = true;
144  }
145  for (auto const& status : *dcsStatus) {
146  if (!status.ready(DcsStatus::BPIX))
147  dcsTk[0] = false;
148  if (!status.ready(DcsStatus::FPIX))
149  dcsTk[1] = false;
150  if (!status.ready(DcsStatus::TIBTID))
151  dcsTk[2] = false;
152  if (!status.ready(DcsStatus::TOB))
153  dcsTk[3] = false;
154  if (!status.ready(DcsStatus::TECp))
155  dcsTk[4] = false;
156  if (!status.ready(DcsStatus::TECm))
157  dcsTk[5] = false;
158  }
159 
160  bool allTkOn = true;
161  for (auto status : dcsTk) {
162  if (!status) {
163  allTkOn = false;
164  break;
165  }
166  }
167 
168  //If tracker is ON and collision is going on then must be few track ther
170  iEvent.getByToken(trkSrc_, trackCollection);
171  for (auto const& track : *trackCollection) {
172  if (track.pt() > 1.0)
173  nTracks_++;
174  if (nTracks_ > 200)
175  break;
176  }
177 
178  // get scalar collection and BeamSpot
180  iEvent.getByToken(scalertag_, handleScaler);
181 
182  // beam spot scalar object
183  BeamSpotOnline spotOnline;
184 
185  bool fallBackToDB = false;
186  alarmOn_ = false;
187 
188  if (!handleScaler->empty()) {
189  spotOnline = *(handleScaler->begin());
190 
191  // check if we have a valid beam spot fit result from online DQM thrugh scalars
192  if (spotOnline.x() == 0. && spotOnline.y() == 0. && spotOnline.z() == 0. && spotOnline.width_x() == 0. &&
193  spotOnline.width_y() == 0.) {
194  fallBackToDB = true;
195  }
196  }
197 
198  //For testing set it false for every LSs
199  if (doTest_)
200  fallBackToDB = true;
201 
202  //based on last event of this lumi only as it overwrite it
203  if (allTkOn && fallBackToDB) {
204  beamSpotStatus_ = -1.;
205  } //i.e,from DB
206  if (allTkOn && (!fallBackToDB)) {
207  beamSpotStatus_ = 1.;
208  } //i.e,from online DQM
209 
210  //when collision at least few tracks should be there otherwise it give false ALARM
211  if (allTkOn && nTracks_ < nCosmicTrk_)
212  beamSpotStatus_ = 0.;
213 
214  processed_ = true;
215 }

References alarmOn_, beamSpotStatus_, DcsStatus::BPIX, dcsStatus_, doTest_, MillePedeFileConverter_cfg::e, DcsStatus::FPIX, iEvent, nCosmicTrk_, nextlumi_, nTracks_, onlineMode_, processed_, scalertag_, mps_update::status, DcsStatus::TECm, DcsStatus::TECp, DcsStatus::TIBTID, DcsStatus::TOB, HLT_2018_cff::track, duplicaterechits_cfi::trackCollection, trkSrc_, BeamSpotOnline::width_x(), BeamSpotOnline::width_y(), BeamSpotOnline::x(), BeamSpotOnline::y(), and BeamSpotOnline::z().

◆ bookHistograms()

void BeamSpotProblemMonitor::bookHistograms ( DQMStore::IBooker i,
const edm::Run r,
const edm::EventSetup c 
)
overrideprotected

Definition at line 71 of file BeamSpotProblemMonitor.cc.

71  {
72  // create and cd into new folder
73  iB.setCurrentFolder(monitorName_ + "FitFromScalars");
74 
75  const string coord{"BeamSpotStatus"};
76 
77  string histName(coord + "_lumi");
78  string histTitle(coord);
79  const string ytitle("Problem (-1) / OK (1)");
80  const string xtitle("Lumisection");
81 
82  beamSpotStatusLumi_ = iB.book1D(histName, histTitle, 40, 0.5, 40.5);
85 
86  histName += "_all";
87  histTitle += " all";
88  beamSpotStatusLumiAll_ = iB.book1D(histName, histTitle, 40, 0.5, 40.5);
89  beamSpotStatusLumiAll_->getTH1()->SetCanExtend(TH1::kAllAxes);
92 
93  //NOTE: This in principal should be a Lumi only histogram since it gets reset at every
94  // dqmBeginLuminosityBlock call. However, it is also filled at that time and the DQMStore
95  // clears all lumi histograms at postGlobalBeginLuminosityBlock!
96  beamSpotError_ = iB.book1D("BeamSpotError", "ERROR: Beamspot missing from scalars", 20, 0.5, 20.5);
97  beamSpotError_->setAxisTitle("# of consecutive LSs with problem", 1);
98  beamSpotError_->setAxisTitle("Problem with scalar BeamSpot", 2);
99 }

References beamSpotError_, beamSpotStatusLumi_, beamSpotStatusLumiAll_, dqm::impl::MonitorElement::getTH1(), B2GTnPMonitor_cfi::histTitle, monitorName_, dqm::impl::MonitorElement::setAxisTitle(), hgcalPlots::xtitle, and hgcalPlots::ytitle.

◆ dqmBeginLuminosityBlock()

void BeamSpotProblemMonitor::dqmBeginLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup context 
)
overrideprotectedvirtual

Reimplemented from DQMOneLumiEDAnalyzer<>.

Definition at line 102 of file BeamSpotProblemMonitor.cc.

102  {
103  const int nthlumi = lumiSeg.luminosityBlock();
104 
105  if (onlineMode_) {
106  if (nthlumi > nextlumi_) {
107  fillPlots(lastlumi_, nextlumi_, nthlumi);
108  nextlumi_ = nthlumi;
109  edm::LogInfo("BeamSpotProblemMonitor") << "dqmBeginLuminosityBlock:: Next Lumi to Fit: " << nextlumi_ << endl;
110  }
111  } else {
112  if (processed_)
113  fillPlots(lastlumi_, nextlumi_, nthlumi);
114  nextlumi_ = nthlumi;
115  edm::LogInfo("BeamSpotProblemMonitor") << " dqmBeginLuminosityBlock:: Next Lumi to Fit: " << nextlumi_ << endl;
116  }
117 
118  if (processed_)
119  processed_ = false;
120  edm::LogInfo("BeamSpotProblemMonitor") << " dqmBeginLuminosityBlock:: Begin of Lumi: " << nthlumi << endl;
121 }

References fillPlots(), lastlumi_, edm::LuminosityBlockBase::luminosityBlock(), nextlumi_, onlineMode_, and processed_.

◆ dqmEndLuminosityBlock()

void BeamSpotProblemMonitor::dqmEndLuminosityBlock ( const edm::LuminosityBlock lumiSeg,
const edm::EventSetup c 
)
overrideprotectedvirtual

Reimplemented from DQMOneLumiEDAnalyzer<>.

Definition at line 281 of file BeamSpotProblemMonitor.cc.

281  {
282  const int nthlumi = lumiSeg.id().luminosityBlock();
283  edm::LogInfo("BeamSpotProblemMonitor")
284  << "dqmEndLuminosityBlock:: Lumi of the last event before dqmEndLuminosityBlock: " << nthlumi << endl;
285 }

References edm::LuminosityBlockBase::id(), and edm::LuminosityBlockID::luminosityBlock().

◆ dqmEndRun()

void BeamSpotProblemMonitor::dqmEndRun ( const edm::Run r,
const edm::EventSetup c 
)
overrideprotectedvirtual

Reimplemented from DQMOneEDAnalyzer< edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, Args... >.

Definition at line 288 of file BeamSpotProblemMonitor.cc.

288  {
289  if (debug_)
290  edm::LogInfo("BeamSpotProblemMonitor") << "dqmEndRun:: Clearing all the Maps " << endl;
291  //Reset it end of job
293 }

References beamSpotError_, debug_, and dqm::impl::MonitorElement::Reset().

◆ fillDescriptions()

void BeamSpotProblemMonitor::fillDescriptions ( edm::ConfigurationDescriptions oDesc)
static

Definition at line 54 of file BeamSpotProblemMonitor.cc.

54  {
56  desc.addUntracked<string>("monitorName", "BeamSpotProblemMonitor");
57  desc.addUntracked<InputTag>("DCSStatus", edm::InputTag("scalersRawToDigi"));
58  desc.addUntracked<InputTag>("scalarBSCollection", edm::InputTag("scalersRawToDigi"));
59  desc.addUntracked<InputTag>("pixelTracks", edm::InputTag("pixelTracks"));
60  desc.addUntracked<int>("nCosmicTrk", 10);
61  desc.addUntracked<bool>("Debug", false);
62  desc.addUntracked<bool>("OnlineMode", true);
63  desc.addUntracked<bool>("doTest", false);
64  desc.addUntracked<int>("AlarmONThreshold", 10);
65  desc.addUntracked<int>("AlarmOFFThreshold", 40);
66 
67  oDesc.add("dqmBeamSpotProblemMonitor", desc);
68 }

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addUntracked(), and HLT_2018_cff::InputTag.

◆ fillPlots()

void BeamSpotProblemMonitor::fillPlots ( int &  lastlumi,
int &  nextlumi,
int  nthlumi 
)
private

Definition at line 218 of file BeamSpotProblemMonitor.cc.

218  {
219  if (onlineMode_ && (nthlumi <= nextlumi))
220  return;
221 
222  int currentlumi = nextlumi;
223  lastlumi = currentlumi;
224 
225  //Chcek status and if lumi are in succession when fall to DB
226  if (beamSpotStatus_ == -1. && (lastlumi + 1) == nthlumi) {
227  beamSpotFromDB_++;
228  } else {
229  beamSpotFromDB_ = 0; //if not in succesion or status is ok then set zero
230  }
231 
233  alarmOn_ = true; //set the audio alarm true after N successive LSs
234  }
235 
237  alarmOn_ = false; //set the audio alarm true after 10 successive LSs
238  beamSpotFromDB_ = 0; //reset it for new incident
239  }
240 
241  if (onlineMode_) { // filling LS gap For status plot
242 
243  const int countLS_bs = beamSpotStatusLumi_->getTH1()->GetEntries();
244  int LSgap_bs = currentlumi / fitNLumi_ - countLS_bs;
245  if (currentlumi % fitNLumi_ == 0)
246  LSgap_bs--;
247 
248  // filling previous fits if LS gap ever exists
249  for (int ig = 0; ig < LSgap_bs; ig++) {
250  beamSpotStatusLumi_->ShiftFillLast(0., 0., fitNLumi_); //x0 , x0err, fitNLumi_; see DQMCore....
251  }
252 
255  0.,
256  fitNLumi_); //beamSpotStatus_ =>0. (no collision, no tracks); =>1 (OK from scaler), =>-1 (No scalar results)
258 
259  } else {
261  } //onlineMode_
262 
263  //Reset it here for next lumi
265  if (alarmOn_)
267 
268  //Get quality report
269  const QReport* beamSpotQReport = beamSpotError_->getQReport("BeamSpotOnlineTest");
270 
271  if (beamSpotQReport) {
272  /* S.Dutta : Commenting out these variables are not used and giving error with "-Werror=unused-variable" option
273  float qtresult = BeamSpotQReport->getQTresult();
274  int qtstatus = BeamSpotQReport->getStatus() ; // get QT status value (see table below) */
275  }
276 
277  nTracks_ = 0;
278 }

References alarmOFFThreshold_, alarmOn_, alarmONThreshold_, beamSpotError_, beamSpotFromDB_, beamSpotStatus_, beamSpotStatusLumi_, beamSpotStatusLumiAll_, dqm::impl::MonitorElement::Fill(), fitNLumi_, dqm::impl::MonitorElement::getQReport(), dqm::impl::MonitorElement::getTH1(), nTracks_, onlineMode_, dqm::impl::MonitorElement::Reset(), dqm::impl::MonitorElement::setBinContent(), and dqm::impl::MonitorElement::ShiftFillLast().

Referenced by dqmBeginLuminosityBlock().

Member Data Documentation

◆ alarmOFFThreshold_

const int BeamSpotProblemMonitor::alarmOFFThreshold_
private

Definition at line 56 of file BeamSpotProblemMonitor.h.

Referenced by fillPlots().

◆ alarmOn_

bool BeamSpotProblemMonitor::alarmOn_
private

Definition at line 63 of file BeamSpotProblemMonitor.h.

Referenced by analyze(), and fillPlots().

◆ alarmONThreshold_

const int BeamSpotProblemMonitor::alarmONThreshold_
private

Definition at line 55 of file BeamSpotProblemMonitor.h.

Referenced by fillPlots().

◆ beamSpotError_

MonitorElement* BeamSpotProblemMonitor::beamSpotError_ = nullptr
private

Definition at line 70 of file BeamSpotProblemMonitor.h.

Referenced by bookHistograms(), dqmEndRun(), and fillPlots().

◆ beamSpotFromDB_

int BeamSpotProblemMonitor::beamSpotFromDB_
private

Definition at line 65 of file BeamSpotProblemMonitor.h.

Referenced by fillPlots().

◆ beamSpotStatus_

double BeamSpotProblemMonitor::beamSpotStatus_
private

Definition at line 64 of file BeamSpotProblemMonitor.h.

Referenced by analyze(), and fillPlots().

◆ beamSpotStatusLumi_

MonitorElement* BeamSpotProblemMonitor::beamSpotStatusLumi_ = nullptr
private

Definition at line 68 of file BeamSpotProblemMonitor.h.

Referenced by bookHistograms(), and fillPlots().

◆ beamSpotStatusLumiAll_

MonitorElement* BeamSpotProblemMonitor::beamSpotStatusLumiAll_ = nullptr
private

Definition at line 69 of file BeamSpotProblemMonitor.h.

Referenced by bookHistograms(), and fillPlots().

◆ dcsStatus_

const edm::EDGetTokenT<DcsStatusCollection> BeamSpotProblemMonitor::dcsStatus_
private

Definition at line 45 of file BeamSpotProblemMonitor.h.

Referenced by analyze().

◆ debug_

const bool BeamSpotProblemMonitor::debug_
private

Definition at line 52 of file BeamSpotProblemMonitor.h.

Referenced by dqmEndRun().

◆ doTest_

const bool BeamSpotProblemMonitor::doTest_
private

Definition at line 54 of file BeamSpotProblemMonitor.h.

Referenced by analyze().

◆ fitNLumi_

const int BeamSpotProblemMonitor::fitNLumi_
private

Definition at line 51 of file BeamSpotProblemMonitor.h.

Referenced by fillPlots().

◆ lastlumi_

int BeamSpotProblemMonitor::lastlumi_
private

Definition at line 58 of file BeamSpotProblemMonitor.h.

Referenced by dqmBeginLuminosityBlock().

◆ monitorName_

std::string BeamSpotProblemMonitor::monitorName_
private

Definition at line 44 of file BeamSpotProblemMonitor.h.

Referenced by bookHistograms().

◆ nCosmicTrk_

const int BeamSpotProblemMonitor::nCosmicTrk_
private

Definition at line 50 of file BeamSpotProblemMonitor.h.

Referenced by analyze().

◆ nextlumi_

int BeamSpotProblemMonitor::nextlumi_
private

Definition at line 59 of file BeamSpotProblemMonitor.h.

Referenced by analyze(), and dqmBeginLuminosityBlock().

◆ nTracks_

int BeamSpotProblemMonitor::nTracks_
private

Definition at line 49 of file BeamSpotProblemMonitor.h.

Referenced by analyze(), and fillPlots().

◆ onlineMode_

const bool BeamSpotProblemMonitor::onlineMode_
private

Definition at line 53 of file BeamSpotProblemMonitor.h.

Referenced by analyze(), dqmBeginLuminosityBlock(), and fillPlots().

◆ processed_

bool BeamSpotProblemMonitor::processed_
private

Definition at line 60 of file BeamSpotProblemMonitor.h.

Referenced by analyze(), and dqmBeginLuminosityBlock().

◆ scalertag_

const edm::EDGetTokenT<BeamSpotOnlineCollection> BeamSpotProblemMonitor::scalertag_
private

Definition at line 46 of file BeamSpotProblemMonitor.h.

Referenced by analyze().

◆ trkSrc_

const edm::EDGetTokenT<reco::TrackCollection> BeamSpotProblemMonitor::trkSrc_
private

Definition at line 47 of file BeamSpotProblemMonitor.h.

Referenced by analyze().

BeamSpotOnline::x
float x() const
Definition: BeamSpotOnline.h:48
BeamSpotProblemMonitor::monitorName_
std::string monitorName_
Definition: BeamSpotProblemMonitor.h:44
DcsStatus::TIBTID
Definition: DcsStatus.h:51
BeamSpotProblemMonitor::doTest_
const bool doTest_
Definition: BeamSpotProblemMonitor.h:54
BeamSpotProblemMonitor::beamSpotStatus_
double beamSpotStatus_
Definition: BeamSpotProblemMonitor.h:64
mps_update.status
status
Definition: mps_update.py:69
BeamSpotOnline::y
float y() const
Definition: BeamSpotOnline.h:49
BeamSpotProblemMonitor::fitNLumi_
const int fitNLumi_
Definition: BeamSpotProblemMonitor.h:51
edm::LogInfo
Definition: MessageLogger.h:254
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
BeamSpotProblemMonitor::trkSrc_
const edm::EDGetTokenT< reco::TrackCollection > trkSrc_
Definition: BeamSpotProblemMonitor.h:47
BeamSpotOnline::width_x
float width_x() const
Definition: BeamSpotOnline.h:58
BeamSpotProblemMonitor::processed_
bool processed_
Definition: BeamSpotProblemMonitor.h:60
edm::Handle
Definition: AssociativeIterator.h:50
BeamSpotProblemMonitor::beamSpotFromDB_
int beamSpotFromDB_
Definition: BeamSpotProblemMonitor.h:65
BeamSpotProblemMonitor::nextlumi_
int nextlumi_
Definition: BeamSpotProblemMonitor.h:59
BeamSpotProblemMonitor::dcsStatus_
const edm::EDGetTokenT< DcsStatusCollection > dcsStatus_
Definition: BeamSpotProblemMonitor.h:45
ScalersEventRecordRaw_v4::dcsStatus
struct DcsStatusRaw_v4 dcsStatus
Definition: ScalersRaw.h:216
BeamSpotProblemMonitor::nCosmicTrk_
const int nCosmicTrk_
Definition: BeamSpotProblemMonitor.h:50
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
edm::LuminosityBlockBase::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: LuminosityBlockBase.h:40
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
BeamSpotProblemMonitor::alarmOFFThreshold_
const int alarmOFFThreshold_
Definition: BeamSpotProblemMonitor.h:56
dqm::impl::MonitorElement::Reset
virtual void Reset()
Remove all data from the ME, keept the empty histogram with all its settings.
Definition: MonitorElement.cc:354
dqm::impl::MonitorElement::ShiftFillLast
DQM_DEPRECATED void ShiftFillLast(double y, double ye=0., int32_t xscale=1)
Definition: MonitorElement.cc:256
BeamSpotProblemMonitor::beamSpotError_
MonitorElement * beamSpotError_
Definition: BeamSpotProblemMonitor.h:70
DcsStatus::TECm
Definition: DcsStatus.h:54
BeamSpotProblemMonitor::lastlumi_
int lastlumi_
Definition: BeamSpotProblemMonitor.h:58
hgcalPlots.xtitle
xtitle
Definition: hgcalPlots.py:94
dqm::impl::MonitorElement::getTH1
virtual TH1 * getTH1()
Definition: MonitorElement.cc:969
dqm::impl::MonitorElement::getQReport
const MonitorElementData::QReport * getQReport(const std::string &qtname) const
get QReport corresponding to <qtname> (null pointer if QReport does not exist)
Definition: MonitorElement.cc:481
BeamSpotProblemMonitor::scalertag_
const edm::EDGetTokenT< BeamSpotOnlineCollection > scalertag_
Definition: BeamSpotProblemMonitor.h:46
edm::ParameterSetDescription::addUntracked
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:100
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
BeamSpotProblemMonitor::beamSpotStatusLumi_
MonitorElement * beamSpotStatusLumi_
Definition: BeamSpotProblemMonitor.h:68
duplicaterechits_cfi.trackCollection
trackCollection
Definition: duplicaterechits_cfi.py:4
B2GTnPMonitor_cfi.histTitle
histTitle
Definition: B2GTnPMonitor_cfi.py:112
MonitorElementData::QReport
Definition: MonitorElementCollection.h:55
iEvent
int iEvent
Definition: GenABIO.cc:224
BeamSpotProblemMonitor::debug_
const bool debug_
Definition: BeamSpotProblemMonitor.h:52
BeamSpotProblemMonitor::nTracks_
int nTracks_
Definition: BeamSpotProblemMonitor.h:49
edm::LuminosityBlockID::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: LuminosityBlockID.h:42
edm::LuminosityBlockBase::id
LuminosityBlockID id() const
Definition: LuminosityBlockBase.h:44
DcsStatus::TECp
Definition: DcsStatus.h:53
BeamSpotOnline
Definition: BeamSpotOnline.h:28
DcsStatus::FPIX
Definition: DcsStatus.h:56
dqm::impl::MonitorElement::setBinContent
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
Definition: MonitorElement.cc:691
DcsStatus::TOB
Definition: DcsStatus.h:52
BeamSpotOnline::width_y
float width_y() const
Definition: BeamSpotOnline.h:59
BeamSpotProblemMonitor::beamSpotStatusLumiAll_
MonitorElement * beamSpotStatusLumiAll_
Definition: BeamSpotProblemMonitor.h:69
BeamSpotProblemMonitor::fillPlots
void fillPlots(int &, int &, int)
Definition: BeamSpotProblemMonitor.cc:218
DcsStatus::BPIX
Definition: DcsStatus.h:55
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
BeamSpotProblemMonitor::onlineMode_
const bool onlineMode_
Definition: BeamSpotProblemMonitor.h:53
BeamSpotOnline::z
float z() const
Definition: BeamSpotOnline.h:50
dqm::impl::MonitorElement::setAxisTitle
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
Definition: MonitorElement.cc:800
edm::InputTag
Definition: InputTag.h:15
BeamSpotProblemMonitor::alarmONThreshold_
const int alarmONThreshold_
Definition: BeamSpotProblemMonitor.h:55
BeamSpotProblemMonitor::alarmOn_
bool alarmOn_
Definition: BeamSpotProblemMonitor.h:63
hgcalPlots.ytitle
ytitle
Definition: hgcalPlots.py:1410
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37