CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Types | Private Attributes
AlcaBeamMonitor Class Reference

#include <AlcaBeamMonitor.h>

Inheritance diagram for AlcaBeamMonitor:
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

 AlcaBeamMonitor (const edm::ParameterSet &)
 
 ~AlcaBeamMonitor () override
 
- 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)
 

Protected Member Functions

void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void dqmBeginLuminosityBlock (const edm::LuminosityBlock &iLumi, const edm::EventSetup &iSetup) override
 
void dqmEndLuminosityBlock (const edm::LuminosityBlock &iLumi, const edm::EventSetup &iSetup) 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 &)
 
virtual void dqmEndRun (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 Types

typedef std::map< std::string, reco::BeamSpotBeamSpotContainer
 
typedef std::map< std::string, std::map< std::string, std::map< std::string, MonitorElement * > > > HistosContainer
 
typedef std::map< std::string, std::map< std::string, std::map< std::string, int > > > PositionContainer
 

Private Attributes

edm::InputTag beamSpotLabel_
 
BeamSpotContainer beamSpotsMap_
 
MonitorElementhD0Phi0_
 
MonitorElementhDxyBS_
 
std::multimap< std::string, std::string > histoByCategoryNames_
 
HistosContainer histosMap_
 
std::string monitorName_
 
int numberOfValuesToSave_
 
edm::ParameterSet parameters_
 
PositionContainer positionsMap_
 
edm::EDGetTokenT< reco::VertexCollectionprimaryVertexLabel_
 
edm::EDGetTokenT< reco::BeamSpotscalerLabel_
 
BeamFittertheBeamFitter_
 
PVFitterthePVFitter_
 
MonitorElementtheValuesContainer_
 
edm::EDGetTokenT< reco::TrackCollectiontrackLabel_
 
std::vector< std::string > varNamesV_
 
std::vector< reco::VertexCollectionvertices_
 

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

Detailed Description

Definition at line 27 of file AlcaBeamMonitor.h.

Member Typedef Documentation

◆ BeamSpotContainer

typedef std::map<std::string, reco::BeamSpot> AlcaBeamMonitor::BeamSpotContainer
private

Definition at line 41 of file AlcaBeamMonitor.h.

◆ HistosContainer

typedef std::map<std::string, std::map<std::string, std::map<std::string, MonitorElement*> > > AlcaBeamMonitor::HistosContainer
private

Definition at line 43 of file AlcaBeamMonitor.h.

◆ PositionContainer

typedef std::map<std::string, std::map<std::string, std::map<std::string, int> > > AlcaBeamMonitor::PositionContainer
private

Definition at line 45 of file AlcaBeamMonitor.h.

Constructor & Destructor Documentation

◆ AlcaBeamMonitor()

AlcaBeamMonitor::AlcaBeamMonitor ( const edm::ParameterSet ps)

Definition at line 31 of file AlcaBeamMonitor.cc.

32  : parameters_(ps),
33  monitorName_(parameters_.getUntrackedParameter<string>("MonitorName", "YourSubsystemName")),
35  consumes<VertexCollection>(parameters_.getUntrackedParameter<InputTag>("PrimaryVertexLabel"))),
36  trackLabel_(consumes<reco::TrackCollection>(parameters_.getUntrackedParameter<InputTag>("TrackLabel"))),
37  scalerLabel_(consumes<BeamSpot>(parameters_.getUntrackedParameter<InputTag>("ScalerLabel"))),
40  if (!monitorName_.empty())
41  monitorName_ = monitorName_ + "/";
42 
48 
50 
51  varNamesV_.push_back("x");
52  varNamesV_.push_back("y");
53  varNamesV_.push_back("z");
54  varNamesV_.push_back("sigmaX");
55  varNamesV_.push_back("sigmaY");
56  varNamesV_.push_back("sigmaZ");
57 
58  histoByCategoryNames_.insert(pair<string, string>("run", "Coordinate"));
59  histoByCategoryNames_.insert(pair<string, string>("run", "PrimaryVertex fit-DataBase"));
60  histoByCategoryNames_.insert(pair<string, string>("run", "PrimaryVertex fit-BeamFit"));
61  histoByCategoryNames_.insert(pair<string, string>("run", "PrimaryVertex fit-Scalers"));
62  histoByCategoryNames_.insert(pair<string, string>("run", "PrimaryVertex-DataBase"));
63  histoByCategoryNames_.insert(pair<string, string>("run", "PrimaryVertex-BeamFit"));
64  histoByCategoryNames_.insert(pair<string, string>("run", "PrimaryVertex-Scalers"));
65 
66  histoByCategoryNames_.insert(pair<string, string>("lumi", "Lumibased BeamSpotFit"));
67  histoByCategoryNames_.insert(pair<string, string>("lumi", "Lumibased PrimaryVertex"));
68  histoByCategoryNames_.insert(pair<string, string>("lumi", "Lumibased DataBase"));
69  histoByCategoryNames_.insert(pair<string, string>("lumi", "Lumibased Scalers"));
70  histoByCategoryNames_.insert(pair<string, string>("lumi", "Lumibased PrimaryVertex-DataBase fit"));
71  histoByCategoryNames_.insert(pair<string, string>("lumi", "Lumibased PrimaryVertex-Scalers fit"));
72  histoByCategoryNames_.insert(pair<string, string>("validation", "Lumibased Scalers-DataBase fit"));
73  histoByCategoryNames_.insert(pair<string, string>("validation", "Lumibased PrimaryVertex-DataBase"));
74  histoByCategoryNames_.insert(pair<string, string>("validation", "Lumibased PrimaryVertex-Scalers"));
75 
76  for (vector<string>::iterator itV = varNamesV_.begin(); itV != varNamesV_.end(); itV++) {
77  for (multimap<string, string>::iterator itM = histoByCategoryNames_.begin(); itM != histoByCategoryNames_.end();
78  itM++) {
79  if (itM->first == "run") {
80  histosMap_[*itV][itM->first][itM->second] = nullptr;
81  } else {
82  positionsMap_[*itV][itM->first][itM->second] = 3 * numberOfValuesToSave_; //value, error, ok
84  }
85  }
86  }
87 
88  // beamSpotsMap_["BF"] = map<LuminosityBlockNumber_t,BeamSpot>();//For each lumi the beamfitter will have a result
89  // beamSpotsMap_["PV"] = map<LuminosityBlockNumber_t,BeamSpot>();//For each lumi the PVfitter will have a result
90  // beamSpotsMap_["DB"] = map<LuminosityBlockNumber_t,BeamSpot>();//For each lumi we take the values that are stored in the database, already collapsed then
91  // beamSpotsMap_["SC"] = map<LuminosityBlockNumber_t,BeamSpot>();//For each lumi we take the beamspot value in the file that is the same as the scaler for the alca reco stream
92  // beamSpotsMap_["BF"] = 0;//For each lumi the beamfitter will have a result
93  // beamSpotsMap_["PV"] = 0;//For each lumi the PVfitter will have a result
94  // beamSpotsMap_["DB"] = 0;//For each lumi we take the values that are stored in the database, already collapsed then
95  // beamSpotsMap_["SC"] = 0;//For each lumi we take the beamspot value in the file that is the same as the scaler for the alca reco stream
96 }

References AlcaBeamMonitor_cfi::BeamFitter, edm::EDConsumerBase::consumesCollector(), histoByCategoryNames_, histosMap_, monitorName_, numberOfValuesToSave_, parameters_, positionsMap_, AlcaBeamMonitor_cfi::PVFitter, BeamFitter::resetLSRange(), BeamFitter::resetPVFitter(), BeamFitter::resetRefTime(), BeamFitter::resetTrkVector(), theBeamFitter_, thePVFitter_, and varNamesV_.

◆ ~AlcaBeamMonitor()

AlcaBeamMonitor::~AlcaBeamMonitor ( )
override

Definition at line 98 of file AlcaBeamMonitor.cc.

98  {
99  if (theBeamFitter_ != nullptr) {
100  delete theBeamFitter_;
101  }
102 
103  if (thePVFitter_ != nullptr) {
104  delete thePVFitter_;
105  }
106 }

References theBeamFitter_, and thePVFitter_.

Member Function Documentation

◆ analyze()

void AlcaBeamMonitor::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprotectedvirtual

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

Definition at line 253 of file AlcaBeamMonitor.cc.

253  {
254  //------ BeamFitter
256  //------ PVFitter
258 
259  if (beamSpotsMap_.find("DB") != beamSpotsMap_.end()) {
260  //------ Tracks
262  iEvent.getByToken(trackLabel_, TrackCollection);
263  const reco::TrackCollection* tracks = TrackCollection.product();
264  for (reco::TrackCollection::const_iterator track = tracks->begin(); track != tracks->end(); ++track) {
265  hD0Phi0_->Fill(track->phi(), -1 * track->dxy());
266  hDxyBS_->Fill(-1 * track->dxy(beamSpotsMap_["DB"].position()));
267  }
268  }
269 
270  //------ Primary Vertices
272  if (iEvent.getByToken(primaryVertexLabel_, PVCollection)) {
273  vertices_.push_back(*PVCollection.product());
274  }
275 
276  if (beamSpotsMap_.find("SC") == beamSpotsMap_.end()) {
277  //BeamSpot from file for this stream is = to the scalar BeamSpot
278  Handle<BeamSpot> recoBeamSpotHandle;
279  try {
280  iEvent.getByToken(scalerLabel_, recoBeamSpotHandle);
281  } catch (cms::Exception& exception) {
282  LogInfo("AlcaBeamMonitor") << exception.what();
283  return;
284  }
285  beamSpotsMap_["SC"] = *recoBeamSpotHandle;
286  if (beamSpotsMap_["SC"].BeamWidthX() != 0) {
287  beamSpotsMap_["SC"].setType(reco::BeamSpot::Tracker);
288  } else {
289  beamSpotsMap_["SC"].setType(reco::BeamSpot::Fake);
290  }
291  }
292 }

References beamSpotsMap_, cppFunctionSkipper::exception, reco::BeamSpot::Fake, dqm::impl::MonitorElement::Fill(), hD0Phi0_, hDxyBS_, iEvent, primaryVertexLabel_, L1TEGammaOffline_cfi::PVCollection, BeamFitter::readEvent(), PVFitter::readEvent(), scalerLabel_, theBeamFitter_, thePVFitter_, HLT_2018_cff::track, reco::BeamSpot::Tracker, trackLabel_, PDWG_EXOHSCP_cff::tracks, and vertices_.

◆ bookHistograms()

void AlcaBeamMonitor::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overrideprotected

Definition at line 109 of file AlcaBeamMonitor.cc.

109  {
110  string name;
111  string title;
112  ibooker.setCurrentFolder(monitorName_ + "Debug");
113  for (HistosContainer::iterator itM = histosMap_.begin(); itM != histosMap_.end(); itM++) {
114  for (map<string, MonitorElement*>::iterator itMM = itM->second["run"].begin(); itMM != itM->second["run"].end();
115  itMM++) {
116  name = string("h") + itM->first + itMM->first;
117  title = itM->first + "_{0} " + itMM->first;
118  if (itM->first == "x" || itM->first == "y") {
119  if (itMM->first == "Coordinate") {
120  itMM->second = ibooker.book1D(name, title, 1001, -0.2525, 0.2525);
121  } else if (itMM->first == "PrimaryVertex fit-DataBase" || itMM->first == "PrimaryVertex fit-BeamFit" ||
122  itMM->first == "PrimaryVertex fit-Scalers" || itMM->first == "PrimaryVertex-DataBase" ||
123  itMM->first == "PrimaryVertex-BeamFit" || itMM->first == "PrimaryVertex-Scalers") {
124  itMM->second = ibooker.book1D(name, title, 1001, -0.02525, 0.02525);
125  } else {
126  //assert(0);
127  }
128  } else if (itM->first == "z") {
129  if (itMM->first == "Coordinate") {
130  itMM->second = ibooker.book1D(name, title, 101, -5.05, 5.05);
131  } else if (itMM->first == "PrimaryVertex fit-DataBase" || itMM->first == "PrimaryVertex fit-BeamFit" ||
132  itMM->first == "PrimaryVertex fit-Scalers") {
133  itMM->second = ibooker.book1D(name, title, 101, -0.505, 0.505);
134  } else if (itMM->first == "PrimaryVertex-DataBase" || itMM->first == "PrimaryVertex-BeamFit" ||
135  itMM->first == "PrimaryVertex-Scalers") {
136  itMM->second = ibooker.book1D(name, title, 1001, -5.005, 5.005);
137  } else {
138  //assert(0);
139  }
140  } else if (itM->first == "sigmaX" || itM->first == "sigmaY") {
141  if (itMM->first == "Coordinate") {
142  itMM->second = ibooker.book1D(name, title, 100, 0, 0.015);
143  } else if (itMM->first == "PrimaryVertex fit-DataBase" || itMM->first == "PrimaryVertex fit-BeamFit" ||
144  itMM->first == "PrimaryVertex fit-Scalers" || itMM->first == "PrimaryVertex-DataBase" ||
145  itMM->first == "PrimaryVertex-BeamFit" || itMM->first == "PrimaryVertex-Scalers") {
146  itMM->second = nullptr;
147  } else {
148  //assert(0);
149  }
150  } else if (itM->first == "sigmaZ") {
151  if (itMM->first == "Coordinate") {
152  itMM->second = ibooker.book1D(name, title, 110, 0, 11);
153  } else if (itMM->first == "PrimaryVertex fit-DataBase" || itMM->first == "PrimaryVertex fit-BeamFit" ||
154  itMM->first == "PrimaryVertex fit-Scalers" || itMM->first == "PrimaryVertex-DataBase" ||
155  itMM->first == "PrimaryVertex-BeamFit" || itMM->first == "PrimaryVertex-Scalers") {
156  itMM->second = ibooker.book1D(name, title, 101, -5.05, 5.05);
157  } else {
158  //assert(0);
159  }
160  } else {
161  //assert(0);
162  }
163  if (itMM->second != nullptr) {
164  if (itMM->first == "Coordinate") {
165  itMM->second->setAxisTitle(itM->first + "_{0} (cm)", 1);
166  } else if (itMM->first == "PrimaryVertex fit-DataBase" || itMM->first == "PrimaryVertex fit-BeamFit" ||
167  itMM->first == "PrimaryVertex fit-Scalers" || itMM->first == "PrimaryVertex-DataBase" ||
168  itMM->first == "PrimaryVertex-BeamFit" || itMM->first == "PrimaryVertex-Scalers") {
169  itMM->second->setAxisTitle(itMM->first + " " + itM->first + "_{0} (cm)", 1);
170  }
171  itMM->second->setAxisTitle("Entries", 2);
172  }
173  }
174  }
175  ibooker.setCurrentFolder(monitorName_ + "Service");
176  {
177  auto scope = DQMStore::IBooker::UseLumiScope(ibooker);
178  theValuesContainer_ = ibooker.bookProfile("hHistoLumiValues",
179  "Histo Lumi Values",
181  0.,
183  100.,
184  -100.,
185  9000.,
186  " ");
187  }
188 
189  // create and cd into new folder
190  ibooker.setCurrentFolder(monitorName_ + "Validation");
191  //Book histograms
192  hD0Phi0_ = ibooker.bookProfile("hD0Phi0", "d_{0} vs. #phi_{0} (All Tracks)", 63, -3.15, 3.15, 100, -0.5, 0.5, "");
193  hD0Phi0_->setAxisTitle("#phi_{0} (rad)", 1);
194  hD0Phi0_->setAxisTitle("d_{0} (cm)", 2);
195 
196  ibooker.setCurrentFolder(monitorName_ + "Debug");
197  hDxyBS_ = ibooker.book1D("hDxyBS", "dxy_{0} w.r.t. Beam spot (All Tracks)", 100, -0.1, 0.1);
198  hDxyBS_->setAxisTitle("dxy_{0} w.r.t. Beam spot (cm)", 1);
199 }

References hD0Phi0_, hDxyBS_, histosMap_, monitorName_, Skims_PA_cff::name, numberOfValuesToSave_, dqm::impl::MonitorElement::setAxisTitle(), AlCaHLTBitMon_QueryRunRegistry::string, theValuesContainer_, and overlapproblemtsosanalyzer_cfi::title.

◆ dqmBeginLuminosityBlock()

void AlcaBeamMonitor::dqmBeginLuminosityBlock ( const edm::LuminosityBlock iLumi,
const edm::EventSetup iSetup 
)
overrideprotectedvirtual

Reimplemented from DQMOneLumiEDAnalyzer<>.

Definition at line 202 of file AlcaBeamMonitor.cc.

202  {
203  // Always create a beamspot group for each lumi weather we have results or not! Each Beamspot will be of unknown type!
204 
205  vertices_.clear();
207  beamSpotsMap_.clear();
208 
209  //Read BeamSpot from DB
210  ESHandle<BeamSpotObjects> bsDBHandle;
211  try {
212  iSetup.get<BeamSpotObjectsRcd>().get(bsDBHandle);
213  } catch (cms::Exception& exception) {
214  LogInfo("AlcaBeamMonitor") << exception.what();
215  return;
216  }
217  if (bsDBHandle.isValid()) { // check the product
218  const BeamSpotObjects* spotDB = bsDBHandle.product();
219 
220  // translate from BeamSpotObjects to reco::BeamSpot
221  BeamSpot::Point apoint(spotDB->GetX(), spotDB->GetY(), spotDB->GetZ());
222 
224  for (int i = 0; i < 7; ++i) {
225  for (int j = 0; j < 7; ++j) {
226  matrix(i, j) = spotDB->GetCovariance(i, j);
227  }
228  }
229 
230  beamSpotsMap_["DB"] =
231  BeamSpot(apoint, spotDB->GetSigmaZ(), spotDB->Getdxdz(), spotDB->Getdydz(), spotDB->GetBeamWidthX(), matrix);
232 
233  BeamSpot* aSpot = &(beamSpotsMap_["DB"]);
234 
235  aSpot->setBeamWidthY(spotDB->GetBeamWidthY());
236  aSpot->setEmittanceX(spotDB->GetEmittanceX());
237  aSpot->setEmittanceY(spotDB->GetEmittanceY());
238  aSpot->setbetaStar(spotDB->GetBetaStar());
239 
240  if (spotDB->GetBeamType() == 2) {
241  aSpot->setType(reco::BeamSpot::Tracker);
242  } else {
243  aSpot->setType(reco::BeamSpot::Fake);
244  }
245  //LogInfo("AlcaBeamMonitor")
246  // << *aSpot << std::endl;
247  } else {
248  LogInfo("AlcaBeamMonitor") << "Database BeamSpot is not valid at lumi: " << iLumi.id().luminosityBlock();
249  }
250 }

References align::BeamSpot, beamSpotsMap_, cppFunctionSkipper::exception, reco::BeamSpot::Fake, edm::EventSetup::get(), get, BeamSpotObjects::GetBeamType(), BeamSpotObjects::GetBeamWidthX(), BeamSpotObjects::GetBeamWidthY(), BeamSpotObjects::GetBetaStar(), BeamSpotObjects::GetCovariance(), BeamSpotObjects::Getdxdz(), BeamSpotObjects::Getdydz(), BeamSpotObjects::GetEmittanceX(), BeamSpotObjects::GetEmittanceY(), BeamSpotObjects::GetSigmaZ(), BeamSpotObjects::GetX(), BeamSpotObjects::GetY(), BeamSpotObjects::GetZ(), mps_fire::i, edm::LuminosityBlockBase::id(), edm::ESHandleBase::isValid(), dqmiolumiharvest::j, edm::LuminosityBlockID::luminosityBlock(), makeMuonMisalignmentScenario::matrix, edm::ESHandle< T >::product(), dqm::impl::MonitorElement::Reset(), reco::BeamSpot::setBeamWidthY(), theValuesContainer_, reco::BeamSpot::Tracker, and vertices_.

◆ dqmEndLuminosityBlock()

void AlcaBeamMonitor::dqmEndLuminosityBlock ( const edm::LuminosityBlock iLumi,
const edm::EventSetup iSetup 
)
overrideprotectedvirtual

Reimplemented from DQMOneLumiEDAnalyzer<>.

Definition at line 295 of file AlcaBeamMonitor.cc.

295  {
298  }
303 
304  if (thePVFitter_->runFitter()) {
306  }
308 
309  // "PV,BF..." Value,Error
310  map<std::string, pair<double, double> > resultsMap;
311  vector<pair<double, double> > vertexResults;
312  MonitorElement* histo = nullptr;
313  int position = 0;
314  for (vector<string>::iterator itV = varNamesV_.begin(); itV != varNamesV_.end(); itV++) {
315  resultsMap.clear();
316  for (BeamSpotContainer::iterator itBS = beamSpotsMap_.begin(); itBS != beamSpotsMap_.end(); itBS++) {
317  if (itBS->second.type() == BeamSpot::Tracker) {
318  if (*itV == "x") {
319  resultsMap[itBS->first] = pair<double, double>(itBS->second.x0(), itBS->second.x0Error());
320  } else if (*itV == "y") {
321  resultsMap[itBS->first] = pair<double, double>(itBS->second.y0(), itBS->second.y0Error());
322  } else if (*itV == "z") {
323  resultsMap[itBS->first] = pair<double, double>(itBS->second.z0(), itBS->second.z0Error());
324  } else if (*itV == "sigmaX") {
325  resultsMap[itBS->first] = pair<double, double>(itBS->second.BeamWidthX(), itBS->second.BeamWidthXError());
326  } else if (*itV == "sigmaY") {
327  resultsMap[itBS->first] = pair<double, double>(itBS->second.BeamWidthY(), itBS->second.BeamWidthYError());
328  } else if (*itV == "sigmaZ") {
329  resultsMap[itBS->first] = pair<double, double>(itBS->second.sigmaZ(), itBS->second.sigmaZ0Error());
330  } else {
331  LogInfo("AlcaBeamMonitor") << "The histosMap_ has been built with the name " << *itV
332  << " that I can't recognize!";
333  //assert(0);
334  }
335  }
336  }
337  vertexResults.clear();
338  for (vector<VertexCollection>::iterator itPV = vertices_.begin(); itPV != vertices_.end(); itPV++) {
339  if (!itPV->empty()) {
340  for (VertexCollection::const_iterator pv = itPV->begin(); pv != itPV->end(); pv++) {
341  if (pv->isFake() || pv->tracksSize() < 10)
342  continue;
343  if (*itV == "x") {
344  vertexResults.push_back(pair<double, double>(pv->x(), pv->xError()));
345  } else if (*itV == "y") {
346  vertexResults.push_back(pair<double, double>(pv->y(), pv->yError()));
347  } else if (*itV == "z") {
348  vertexResults.push_back(pair<double, double>(pv->z(), pv->zError()));
349  } else if (*itV != "sigmaX" && *itV != "sigmaY" && *itV != "sigmaZ") {
350  LogInfo("AlcaBeamMonitor") << "The histosMap_ has been built with the name " << *itV
351  << " that I can't recognize!";
352  //assert(0);
353  }
354  }
355  }
356  }
357  /*
358  histoByCategoryNames_.insert( pair<string,string>("run", "Coordinate"));
359  histoByCategoryNames_.insert( pair<string,string>("run", "PrimaryVertex fit-DataBase"));
360  histoByCategoryNames_.insert( pair<string,string>("run", "PrimaryVertex fit-BeamFit"));
361  histoByCategoryNames_.insert( pair<string,string>("run", "PrimaryVertex fit-Scalers"));
362  histoByCategoryNames_.insert( pair<string,string>("run", "PrimaryVertex-DataBase"));
363  histoByCategoryNames_.insert( pair<string,string>("run", "PrimaryVertex-BeamFit"));
364  histoByCategoryNames_.insert( pair<string,string>("run", "PrimaryVertex-Scalers"));
365 
366  histoByCategoryNames_.insert( pair<string,string>("lumi", "Lumibased BeamSpotFit"));
367  histoByCategoryNames_.insert( pair<string,string>("lumi", "Lumibased PrimaryVertex"));
368  histoByCategoryNames_.insert( pair<string,string>("lumi", "Lumibased DataBase"));
369  histoByCategoryNames_.insert( pair<string,string>("lumi", "Lumibased Scalers"));
370  histoByCategoryNames_.insert( pair<string,string>("lumi", "Lumibased PrimaryVertex-DataBase fit"));
371  histoByCategoryNames_.insert( pair<string,string>("lumi", "Lumibased PrimaryVertex-Scalers fit"));
372  histoByCategoryNames_.insert( pair<string,string>("validation", "Lumibased Scalers-DataBase fit"));
373  histoByCategoryNames_.insert( pair<string,string>("validation", "Lumibased PrimaryVertex-DataBase"));
374  histoByCategoryNames_.insert( pair<string,string>("validation", "Lumibased PrimaryVertex-Scalers"));
375 */
376  for (multimap<string, string>::iterator itM = histoByCategoryNames_.begin(); itM != histoByCategoryNames_.end();
377  itM++) {
378  if (itM->first == "run" && (histo = histosMap_[*itV][itM->first][itM->second]) == nullptr) {
379  continue;
380  } else if (itM->first != "run") {
381  position = positionsMap_[*itV][itM->first][itM->second];
382  }
383  if (itM->second == "Coordinate") {
384  if (beamSpotsMap_.find("DB") != beamSpotsMap_.end()) {
385  histo->Fill(resultsMap["DB"].first);
386  }
387  } else if (itM->second == "PrimaryVertex fit-DataBase") {
388  if (resultsMap.find("PV") != resultsMap.end() && resultsMap.find("DB") != resultsMap.end()) {
389  histo->Fill(resultsMap["PV"].first - resultsMap["DB"].first);
390  }
391  } else if (itM->second == "PrimaryVertex fit-BeamFit") {
392  if (resultsMap.find("PV") != resultsMap.end() && resultsMap.find("BF") != resultsMap.end()) {
393  histo->Fill(resultsMap["PV"].first - resultsMap["BF"].first);
394  }
395  } else if (itM->second == "PrimaryVertex fit-Scalers") {
396  if (resultsMap.find("PV") != resultsMap.end() && resultsMap.find("SC") != resultsMap.end()) {
397  histo->Fill(resultsMap["PV"].first - resultsMap["SC"].first);
398  }
399  } else if (itM->second == "PrimaryVertex-DataBase") {
400  if (resultsMap.find("PV") != resultsMap.end() && resultsMap.find("DB") != resultsMap.end()) {
401  for (vector<pair<double, double> >::iterator itPV = vertexResults.begin(); itPV != vertexResults.end();
402  itPV++) {
403  histo->Fill(itPV->first - resultsMap["DB"].first);
404  }
405  }
406  } else if (itM->second == "PrimaryVertex-BeamFit") {
407  if (resultsMap.find("PV") != resultsMap.end() && resultsMap.find("BF") != resultsMap.end()) {
408  for (vector<pair<double, double> >::iterator itPV = vertexResults.begin(); itPV != vertexResults.end();
409  itPV++) {
410  histo->Fill(itPV->first - resultsMap["BF"].first);
411  }
412  }
413  } else if (itM->second == "PrimaryVertex-Scalers") {
414  if (resultsMap.find("PV") != resultsMap.end() && resultsMap.find("SC") != resultsMap.end()) {
415  for (vector<pair<double, double> >::iterator itPV = vertexResults.begin(); itPV != vertexResults.end();
416  itPV++) {
417  histo->Fill(itPV->first - resultsMap["SC"].first);
418  }
419  }
420  } else if (itM->second == "Lumibased BeamSpotFit") {
421  if (resultsMap.find("BF") != resultsMap.end()) {
422  theValuesContainer_->Fill(position, resultsMap["BF"].first); //Value
423  theValuesContainer_->Fill(position + 1, resultsMap["BF"].second); //Error
424  theValuesContainer_->Fill(position + 2, 1); //ok
425  }
426  } else if (itM->second == "Lumibased PrimaryVertex") {
427  if (resultsMap.find("PV") != resultsMap.end()) {
428  theValuesContainer_->Fill(position, resultsMap["PV"].first); //Value
429  theValuesContainer_->Fill(position + 1, resultsMap["PV"].second); //Error
430  theValuesContainer_->Fill(position + 2, 1); //ok
431  }
432  } else if (itM->second == "Lumibased DataBase") {
433  if (resultsMap.find("DB") != resultsMap.end()) {
434  theValuesContainer_->Fill(position, resultsMap["DB"].first); //Value
435  theValuesContainer_->Fill(position + 1, resultsMap["DB"].second); //Error
436  theValuesContainer_->Fill(position + 2, 1); //ok
437  }
438  } else if (itM->second == "Lumibased Scalers") {
439  if (resultsMap.find("SC") != resultsMap.end()) {
440  theValuesContainer_->Fill(position, resultsMap["SC"].first); //Value
441  theValuesContainer_->Fill(position + 1, resultsMap["SC"].second); //Error
442  theValuesContainer_->Fill(position + 2, 1); //ok
443  }
444  } else if (itM->second == "Lumibased PrimaryVertex-DataBase fit") {
445  if (resultsMap.find("PV") != resultsMap.end() && resultsMap.find("DB") != resultsMap.end()) {
446  theValuesContainer_->Fill(position, resultsMap["PV"].first - resultsMap["DB"].first); //Value
448  position + 1,
449  std::sqrt(std::pow(resultsMap["PV"].second, 2) + std::pow(resultsMap["DB"].second, 2))); //Error
450  theValuesContainer_->Fill(position + 2, 1); //ok
451  }
452  } else if (itM->second == "Lumibased PrimaryVertex-Scalers fit") {
453  if (resultsMap.find("PV") != resultsMap.end() && resultsMap.find("SC") != resultsMap.end()) {
454  theValuesContainer_->Fill(position, resultsMap["PV"].first - resultsMap["SC"].first); //Value
456  position + 1,
457  std::sqrt(std::pow(resultsMap["PV"].second, 2) + std::pow(resultsMap["SC"].second, 2))); //Error
458  theValuesContainer_->Fill(position + 2, 1); //ok
459  }
460  } else if (itM->second == "Lumibased Scalers-DataBase fit") {
461  if (resultsMap.find("SC") != resultsMap.end() && resultsMap.find("DB") != resultsMap.end()) {
462  theValuesContainer_->Fill(position, resultsMap["SC"].first - resultsMap["DB"].first); //Value
464  position + 1,
465  std::sqrt(std::pow(resultsMap["SC"].second, 2) + std::pow(resultsMap["DB"].second, 2))); //Error
466  theValuesContainer_->Fill(position + 2, 1); //ok
467  }
468  } else if (itM->second == "Lumibased PrimaryVertex-DataBase") {
469  if (resultsMap.find("DB") != resultsMap.end() && !vertexResults.empty()) {
470  for (vector<pair<double, double> >::iterator itPV = vertexResults.begin(); itPV != vertexResults.end();
471  itPV++) {
472  theValuesContainer_->Fill(position, (*itPV).first - resultsMap["DB"].first); //Value
473  }
474  /*
475  double error = 0;
476  if(vertexResults.size() != 0){
477  for(vector<pair<double,double> >::iterator itPV=vertexResults.begin(); itPV!=vertexResults.end(); itPV++){
478  error += std::pow((*itPV).first-resultsMap["DB"].first-theValuesContainer_->getTProfile()->GetBinContent(position+1),2.);
479  }
480  error = std::sqrt(error)/vertexResults.size();
481  }
482 // theValuesContainer_->Fill(position+1,std::sqrt(std::pow((*itPV).second,2)+std::pow(resultsMap["DB"].second,2)));//Error
483  theValuesContainer_->Fill(position+1,error);//Error
484 */
486  theValuesContainer_->getTProfile()->GetBinError(position + 1)); //Error
487  theValuesContainer_->Fill(position + 2, 1); //ok
488  }
489  } else if (itM->second == "Lumibased PrimaryVertex-Scalers") {
490  if (resultsMap.find("SC") != resultsMap.end() && !vertexResults.empty()) {
491  for (vector<pair<double, double> >::iterator itPV = vertexResults.begin(); itPV != vertexResults.end();
492  itPV++) {
493  theValuesContainer_->Fill(position, (*itPV).first - resultsMap["SC"].first); //Value
494  }
495  /*
496  double error = 0;
497  if(vertexResults.size() != 0){
498  for(vector<pair<double,double> >::iterator itPV=vertexResults.begin(); itPV!=vertexResults.end(); itPV++){
499  error += std::pow((*itPV).first-resultsMap["SC"].first-theValuesContainer_->getTProfile()->GetBinContent(position+1),2.);
500  }
501  error = std::sqrt(error)/vertexResults.size();
502  }
503 // theValuesContainer_->Fill(position+1,std::sqrt(std::pow((*itPV).second,2)+std::pow(resultsMap["SC"].second,2)));//Error
504  theValuesContainer_->Fill(position+1,error);//Error
505 */
507  theValuesContainer_->getTProfile()->GetBinError(position + 1)); //Error
508  theValuesContainer_->Fill(position + 2, 1); //ok
509  }
510  }
511  // else if(itM->second == "Lumibased Scalers-DataBase"){
512  // if(resultsMap.find("SC") != resultsMap.end() && resultsMap.find("DB") != resultsMap.end()){
513  // itHHH->second->Fill(bin,resultsMap["SC"].first-resultsMap["DB"].first);
514  // }
515  // }
516  else {
517  LogInfo("AlcaBeamMonitor") << "The histosMap_ have a histogram named " << itM->second
518  << " that I can't recognize in this loop!";
519  //assert(0);
520  }
521  }
522  }
523 }

References beamSpotsMap_, dqm::impl::MonitorElement::Fill(), dqmdumpme::first, BeamFitter::getBeamSpot(), PVFitter::getBeamSpot(), dqm::impl::MonitorElement::getTProfile(), timingPdfMaker::histo, histoByCategoryNames_, histosMap_, position, positionsMap_, funct::pow(), MetAnalyzer::pv(), PVFitter::resetAll(), BeamFitter::resetLSRange(), BeamFitter::resetPVFitter(), BeamFitter::resetRefTime(), BeamFitter::resetTrkVector(), PVFitter::runFitter(), BeamFitter::runPVandTrkFitter(), edm::second(), mathSSE::sqrt(), theBeamFitter_, thePVFitter_, theValuesContainer_, align::Tracker, varNamesV_, and vertices_.

Member Data Documentation

◆ beamSpotLabel_

edm::InputTag AlcaBeamMonitor::beamSpotLabel_
private

Definition at line 53 of file AlcaBeamMonitor.h.

◆ beamSpotsMap_

BeamSpotContainer AlcaBeamMonitor::beamSpotsMap_
private

Definition at line 66 of file AlcaBeamMonitor.h.

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

◆ hD0Phi0_

MonitorElement* AlcaBeamMonitor::hD0Phi0_
private

Definition at line 61 of file AlcaBeamMonitor.h.

Referenced by analyze(), and bookHistograms().

◆ hDxyBS_

MonitorElement* AlcaBeamMonitor::hDxyBS_
private

Definition at line 62 of file AlcaBeamMonitor.h.

Referenced by analyze(), and bookHistograms().

◆ histoByCategoryNames_

std::multimap<std::string, std::string> AlcaBeamMonitor::histoByCategoryNames_
private

Definition at line 70 of file AlcaBeamMonitor.h.

Referenced by AlcaBeamMonitor(), and dqmEndLuminosityBlock().

◆ histosMap_

HistosContainer AlcaBeamMonitor::histosMap_
private

Definition at line 67 of file AlcaBeamMonitor.h.

Referenced by AlcaBeamMonitor(), bookHistograms(), and dqmEndLuminosityBlock().

◆ monitorName_

std::string AlcaBeamMonitor::monitorName_
private

Definition at line 49 of file AlcaBeamMonitor.h.

Referenced by AlcaBeamMonitor(), and bookHistograms().

◆ numberOfValuesToSave_

int AlcaBeamMonitor::numberOfValuesToSave_
private

Definition at line 56 of file AlcaBeamMonitor.h.

Referenced by AlcaBeamMonitor(), and bookHistograms().

◆ parameters_

edm::ParameterSet AlcaBeamMonitor::parameters_
private

◆ positionsMap_

PositionContainer AlcaBeamMonitor::positionsMap_
private

Definition at line 68 of file AlcaBeamMonitor.h.

Referenced by AlcaBeamMonitor(), and dqmEndLuminosityBlock().

◆ primaryVertexLabel_

edm::EDGetTokenT<reco::VertexCollection> AlcaBeamMonitor::primaryVertexLabel_
private

Definition at line 50 of file AlcaBeamMonitor.h.

Referenced by analyze().

◆ scalerLabel_

edm::EDGetTokenT<reco::BeamSpot> AlcaBeamMonitor::scalerLabel_
private

Definition at line 52 of file AlcaBeamMonitor.h.

Referenced by analyze().

◆ theBeamFitter_

BeamFitter* AlcaBeamMonitor::theBeamFitter_
private

◆ thePVFitter_

PVFitter* AlcaBeamMonitor::thePVFitter_
private

◆ theValuesContainer_

MonitorElement* AlcaBeamMonitor::theValuesContainer_
private

◆ trackLabel_

edm::EDGetTokenT<reco::TrackCollection> AlcaBeamMonitor::trackLabel_
private

Definition at line 51 of file AlcaBeamMonitor.h.

Referenced by analyze().

◆ varNamesV_

std::vector<std::string> AlcaBeamMonitor::varNamesV_
private

Definition at line 69 of file AlcaBeamMonitor.h.

Referenced by AlcaBeamMonitor(), and dqmEndLuminosityBlock().

◆ vertices_

std::vector<reco::VertexCollection> AlcaBeamMonitor::vertices_
private

Definition at line 71 of file AlcaBeamMonitor.h.

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

edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
BeamSpotObjects::GetBeamWidthY
double GetBeamWidthY() const
get average transverse beam width
Definition: BeamSpotObjects.h:77
BeamFitter::runPVandTrkFitter
bool runPVandTrkFitter()
Definition: BeamFitter.cc:412
BeamSpotObjects::Getdxdz
double Getdxdz() const
get dxdz slope, crossing angle in XZ
Definition: BeamSpotObjects.h:79
BeamFitter::resetRefTime
void resetRefTime()
Definition: BeamFitter.h:58
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
mps_fire.i
i
Definition: mps_fire.py:355
BeamFitter::resetPVFitter
void resetPVFitter()
Definition: BeamFitter.h:69
reco::BeamSpot::setBeamWidthY
void setBeamWidthY(double v)
Definition: BeamSpot.h:105
BeamFitter::resetTrkVector
void resetTrkVector()
Definition: BeamFitter.h:55
AlcaBeamMonitor_cfi.BeamFitter
BeamFitter
Definition: AlcaBeamMonitor_cfi.py:11
makeMuonMisalignmentScenario.matrix
list matrix
Definition: makeMuonMisalignmentScenario.py:141
align::BeamSpot
Definition: StructureType.h:89
AlcaBeamMonitor::primaryVertexLabel_
edm::EDGetTokenT< reco::VertexCollection > primaryVertexLabel_
Definition: AlcaBeamMonitor.h:50
AlcaBeamMonitor::vertices_
std::vector< reco::VertexCollection > vertices_
Definition: AlcaBeamMonitor.h:71
BeamSpotObjects::GetSigmaZ
double GetSigmaZ() const
get sigma Z, RMS bunch length
Definition: BeamSpotObjects.h:73
PVFitter::resetAll
void resetAll()
Definition: PVFitter.h:80
edm::LogInfo
Definition: MessageLogger.h:254
BeamSpotObjects::GetBeamType
int GetBeamType() const
get beam type
Definition: BeamSpotObjects.h:101
BeamSpotObjects::GetZ
double GetZ() const
get Z beam position
Definition: BeamSpotObjects.h:71
timingPdfMaker.histo
histo
Definition: timingPdfMaker.py:279
BeamFitter::readEvent
void readEvent(const edm::Event &iEvent)
Definition: BeamFitter.cc:224
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:215
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:71
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
edm::Handle< reco::TrackCollection >
AlcaBeamMonitor::monitorName_
std::string monitorName_
Definition: AlcaBeamMonitor.h:49
dqmdumpme.first
first
Definition: dqmdumpme.py:55
align::Tracker
Definition: StructureType.h:70
AlcaBeamMonitor::varNamesV_
std::vector< std::string > varNamesV_
Definition: AlcaBeamMonitor.h:69
AlcaBeamMonitor::trackLabel_
edm::EDGetTokenT< reco::TrackCollection > trackLabel_
Definition: AlcaBeamMonitor.h:51
AlcaBeamMonitor::theBeamFitter_
BeamFitter * theBeamFitter_
Definition: AlcaBeamMonitor.h:57
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
AlcaBeamMonitor::scalerLabel_
edm::EDGetTokenT< reco::BeamSpot > scalerLabel_
Definition: AlcaBeamMonitor.h:52
AlcaBeamMonitor::beamSpotsMap_
BeamSpotContainer beamSpotsMap_
Definition: AlcaBeamMonitor.h:66
L1TEGammaOffline_cfi.PVCollection
PVCollection
Definition: L1TEGammaOffline_cfi.py:34
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
PVFitter::readEvent
void readEvent(const edm::Event &iEvent)
Definition: PVFitter.cc:97
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
reco::BeamSpot
Definition: BeamSpot.h:21
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
reco::BeamSpot::Tracker
Definition: BeamSpot.h:24
edm::ESHandle
Definition: DTSurvey.h:22
BeamSpotObjects::GetCovariance
double GetCovariance(int i, int j) const
get i,j element of the full covariance matrix 7x7
Definition: BeamSpotObjects.h:83
AlcaBeamMonitor::numberOfValuesToSave_
int numberOfValuesToSave_
Definition: AlcaBeamMonitor.h:56
reco::BeamSpot::Fake
Definition: BeamSpot.h:24
AlcaBeamMonitor::thePVFitter_
PVFitter * thePVFitter_
Definition: AlcaBeamMonitor.h:58
AlcaBeamMonitor::beamSpotLabel_
edm::InputTag beamSpotLabel_
Definition: AlcaBeamMonitor.h:53
BeamFitter::getBeamSpot
reco::BeamSpot getBeamSpot()
Definition: BeamFitter.h:90
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
AlcaBeamMonitor_cfi.PVFitter
PVFitter
Definition: AlcaBeamMonitor_cfi.py:39
AlcaBeamMonitor::hD0Phi0_
MonitorElement * hD0Phi0_
Definition: AlcaBeamMonitor.h:61
cppFunctionSkipper.exception
exception
Definition: cppFunctionSkipper.py:10
BeamSpotObjects::GetBetaStar
double GetBetaStar() const
get beta star
Definition: BeamSpotObjects.h:107
BeamSpotObjects::GetEmittanceX
double GetEmittanceX() const
get emittance
Definition: BeamSpotObjects.h:103
BeamSpotObjects::GetY
double GetY() const
get Y beam position
Definition: BeamSpotObjects.h:69
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
MetAnalyzer.pv
def pv(vc)
Definition: MetAnalyzer.py:7
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::LuminosityBlockID::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: LuminosityBlockID.h:42
edm::LuminosityBlockBase::id
LuminosityBlockID id() const
Definition: LuminosityBlockBase.h:44
BeamFitter::resetLSRange
void resetLSRange()
Definition: BeamFitter.h:57
dqm::impl::MonitorElement::getTProfile
virtual TProfile * getTProfile()
Definition: MonitorElement.cc:1016
dqm::implementation::IBooker::UseLumiScope
UseScope< MonitorElementData::Scope::LUMI > UseLumiScope
Definition: DQMStore.h:463
BeamSpotObjectsRcd
Definition: BeamSpotObjectsRcd.h:24
BeamSpotObjects
Definition: BeamSpotObjects.h:20
reco::BeamSpot::CovarianceMatrix
math::Error< dimension >::type CovarianceMatrix
Definition: BeamSpot.h:29
get
#define get
edm::ESHandleBase::isValid
bool isValid() const
Definition: ESHandle.h:44
AlcaBeamMonitor::histoByCategoryNames_
std::multimap< std::string, std::string > histoByCategoryNames_
Definition: AlcaBeamMonitor.h:70
overlapproblemtsosanalyzer_cfi.title
title
Definition: overlapproblemtsosanalyzer_cfi.py:7
BeamSpotObjects::GetBeamWidthX
double GetBeamWidthX() const
get average transverse beam width
Definition: BeamSpotObjects.h:75
BeamSpotObjects::GetEmittanceY
double GetEmittanceY() const
get emittance
Definition: BeamSpotObjects.h:105
AlcaBeamMonitor::positionsMap_
PositionContainer positionsMap_
Definition: AlcaBeamMonitor.h:68
BeamSpotObjects::Getdydz
double Getdydz() const
get dydz slope, crossing angle in YZ
Definition: BeamSpotObjects.h:81
AlcaBeamMonitor::histosMap_
HistosContainer histosMap_
Definition: AlcaBeamMonitor.h:67
AlcaBeamMonitor::theValuesContainer_
MonitorElement * theValuesContainer_
Definition: AlcaBeamMonitor.h:63
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
AlcaBeamMonitor::parameters_
edm::ParameterSet parameters_
Definition: AlcaBeamMonitor.h:48
cms::Exception
Definition: Exception.h:70
reco::BeamSpot::Point
math::XYZPoint Point
point in the space
Definition: BeamSpot.h:27
PVFitter::runFitter
bool runFitter()
Definition: PVFitter.cc:307
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
AlcaBeamMonitor::hDxyBS_
MonitorElement * hDxyBS_
Definition: AlcaBeamMonitor.h:62
BeamSpotObjects::GetX
double GetX() const
get X beam position
Definition: BeamSpotObjects.h:67
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
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
PVFitter::getBeamSpot
reco::BeamSpot getBeamSpot()
Definition: PVFitter.h:91