CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
GEMDigiSource Class Reference

#include <GEMDigiSource.h>

Inheritance diagram for GEMDigiSource:
GEMDQMBase DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

 GEMDigiSource (const edm::ParameterSet &cfg)
 
 ~GEMDigiSource () override
 
- Public Member Functions inherited from GEMDQMBase
 GEMDQMBase (const edm::ParameterSet &cfg)
 
 ~GEMDQMBase () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
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
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr
< DQMEDAnalyzerGlobalCache
initializeGlobalCache (edm::ParameterSet const &)
 

Protected Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &eSetup) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from GEMDQMBase
template<typename T >
bool checkRefs (const std::vector< T * > &)
 
dqm::impl::MonitorElementCreateSummaryHist (DQMStore::IBooker &ibooker, TString strName)
 
int GenerateMEPerChamber (DQMStore::IBooker &ibooker)
 
int getDetOccXBin (const int, const int, const int)
 
int getIEtaFromVFAT (const int station, const int vfat)
 
int getIEtaFromVFATGE11 (const int vfat)
 
int getMaxVFAT (const int)
 
int getNumEtaPartitions (const GEMStation *)
 
int getVFATNumber (const int, const int, const int)
 
int getVFATNumberByDigi (const int, const int, const int)
 
int getVFATNumberGE11 (const int, const int, const int)
 
int initGeometry (edm::EventSetup const &iSetup)
 
ME2IdsKey key3Tokey2 (ME3IdsKey key)
 
ME3IdsKey key4Tokey3 (ME4IdsKey key)
 
int keyToChamber (ME4IdsKey key)
 
int keyToIEta (ME3IdsKey key)
 
int keyToIEta (ME4IdsKey key)
 
int keyToLayer (ME3IdsKey key)
 
int keyToLayer (ME4IdsKey key)
 
int keyToRegion (ME2IdsKey key)
 
int keyToRegion (ME3IdsKey key)
 
int keyToRegion (ME4IdsKey key)
 
int keyToStation (ME2IdsKey key)
 
int keyToStation (ME3IdsKey key)
 
int keyToStation (ME4IdsKey key)
 
int loadChambers ()
 
virtual int ProcessWithMEMap2AbsReWithEta (BookingHelper &bh, ME3IdsKey key)
 
virtual int ProcessWithMEMap4 (BookingHelper &bh, ME4IdsKey key)
 
Float_t restrictAngle (const Float_t fTheta, const Float_t fStart)
 
int SortingLayers (std::vector< ME3IdsKey > &listLayers)
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 

Private Member Functions

int ProcessWithMEMap2 (BookingHelper &bh, ME2IdsKey key) override
 
int ProcessWithMEMap2WithEta (BookingHelper &bh, ME3IdsKey key) override
 
int ProcessWithMEMap3 (BookingHelper &bh, ME3IdsKey key) override
 
int ProcessWithMEMap3WithChamber (BookingHelper &bh, ME4IdsKey key) override
 

Private Attributes

Bool_t bModeRelVal_
 
Float_t fRadiusMax_
 
Float_t fRadiusMin_
 
MonitorElementh2SummaryOcc_
 
edm::EDGetTokenT
< LumiScalersCollection
lumiScalers_
 
MEMap2Inf mapBX_
 
MEMap3Inf mapDigiOcc_ieta_
 
MEMap3Inf mapDigiOcc_phi_
 
MEMap4Inf mapDigiOccPerCh_
 
MEMap3Inf mapDigiWheel_layer_
 
MEMap3Inf mapTotalDigi_layer_
 
MEMap3Inf mapTotalDigiPerEvtIEta_
 
MEMap3Inf mapTotalDigiPerEvtLayer_
 
Int_t nBXMax_
 
Int_t nBXMin_
 
edm::EDGetToken tagDigi_
 

Additional Inherited Members

- Public Types inherited from GEMDQMBase
typedef MEMapInfT< MEMap2Ids,
ME2IdsKey
MEMap2Inf
 
typedef MEMapInfT< MEMap3Ids,
ME3IdsKey
MEMap3Inf
 
typedef MEMapInfT< MEMap4Ids,
ME4IdsKey
MEMap4Inf
 
- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
using CacheTypes = CacheContexts< T...>
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T...>
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Public Attributes inherited from GEMDQMBase
std::string log_category_
 
- Protected Attributes inherited from GEMDQMBase
std::vector< GEMChambergemChambers_
 
const GEMGeometryGEMGeometry_
 
edm::ESGetToken< GEMGeometry,
MuonGeometryRecord
geomToken_
 
std::map< ME3IdsKey,
MEStationInfo
mapStationInfo_
 
std::map< ME3IdsKey, int > mapStationToIdx_
 
std::map< ME3IdsKey, bool > MEMap2AbsReWithEtaCheck_
 
std::map< ME2IdsKey, bool > MEMap2Check_
 
std::map< ME3IdsKey, bool > MEMap2WithEtaCheck_
 
std::map< ME3IdsKey, bool > MEMap3Check_
 
std::map< ME4IdsKey, bool > MEMap3WithChCheck_
 
std::map< ME4IdsKey, bool > MEMap4Check_
 
int nMaxNumCh_
 
Int_t nNumEtaPartitionGE0_
 
Int_t nNumEtaPartitionGE11_
 
Int_t nNumEtaPartitionGE21_
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 30 of file GEMDigiSource.h.

Constructor & Destructor Documentation

GEMDigiSource::GEMDigiSource ( const edm::ParameterSet cfg)
explicit

Definition at line 6 of file GEMDigiSource.cc.

References bModeRelVal_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HLT_FULL_cff::InputTag, lumiScalers_, nBXMax_, nBXMin_, and tagDigi_.

6  : GEMDQMBase(cfg) {
7  tagDigi_ = consumes<GEMDigiCollection>(cfg.getParameter<edm::InputTag>("digisInputLabel"));
8  lumiScalers_ = consumes<LumiScalersCollection>(
9  cfg.getUntrackedParameter<edm::InputTag>("lumiCollection", edm::InputTag("scalersRawToDigi")));
10  bModeRelVal_ = cfg.getParameter<bool>("modeRelVal");
11  nBXMin_ = cfg.getParameter<int>("bxMin");
12  nBXMax_ = cfg.getParameter<int>("bxMax");
13 }
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< LumiScalersCollection > lumiScalers_
Definition: GEMDigiSource.h:49
edm::EDGetToken tagDigi_
Definition: GEMDigiSource.h:47
Bool_t bModeRelVal_
Definition: GEMDigiSource.h:67
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
GEMDQMBase(const edm::ParameterSet &cfg)
Definition: GEMDQMBase.cc:7
GEMDigiSource::~GEMDigiSource ( )
inlineoverride

Definition at line 33 of file GEMDigiSource.h.

33 {};

Member Function Documentation

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

Reimplemented from DQMEDAnalyzer.

Definition at line 139 of file GEMDigiSource.cc.

References GEMDetId::chamber(), ztail::d, dqm::impl::MonitorElement::Fill(), GEMDQMBase::MEMapInfT< M, K >::Fill(), GEMDQMBase::MEStationInfo::fMinPhi_, fRadiusMax_, fRadiusMin_, GEMDQMBase::gemChambers_, GEMDQMBase::GEMGeometry_, GEMDQMBase::getVFATNumberByDigi(), h2SummaryOcc_, GEMGeometry::idToDet(), GEMDetId::ieta(), submitPVResolutionJobs::key, GEMDetId::layer(), lumiScalers_, M_PI, mapBX_, mapDigiOcc_ieta_, mapDigiOcc_phi_, mapDigiOccPerCh_, mapDigiWheel_layer_, GEMDQMBase::mapStationInfo_, GEMDQMBase::mapStationToIdx_, mapTotalDigi_layer_, mapTotalDigiPerEvtIEta_, mapTotalDigiPerEvtLayer_, SiStripPI::max, min(), nBXMax_, nBXMin_, GEMDQMBase::MEStationInfo::nNumEtaPartitions_, PV3DBase< T, PVType, FrameType >::phi(), GEMDetId::region(), GEMDQMBase::restrictAngle(), GEMDetId::station(), GeomDet::surface(), and tagDigi_.

139  {
141  event.getByToken(this->tagDigi_, gemDigis);
143  event.getByToken(lumiScalers_, lumiScalers);
144 
145  std::map<ME3IdsKey, Int_t> total_digi_layer;
146  std::map<ME3IdsKey, Int_t> total_digi_eta;
147  for (const auto& ch : gemChambers_) {
148  GEMDetId gid = ch.id();
149  ME2IdsKey key2{gid.region(), gid.station()};
150  ME3IdsKey key3{gid.region(), gid.station(), gid.layer()};
151  ME4IdsKey key4Ch{gid.region(), gid.station(), gid.layer(), gid.chamber()};
152  std::map<Int_t, bool> bTagVFAT;
153  bTagVFAT.clear();
154  MEStationInfo& stationInfo = mapStationInfo_[key3];
155  const BoundPlane& surface = GEMGeometry_->idToDet(gid)->surface();
156  if (total_digi_layer.find(key3) == total_digi_layer.end())
157  total_digi_layer[key3] = 0;
158  for (auto iEta : ch.etaPartitions()) {
159  GEMDetId eId = iEta->id();
160  ME3IdsKey key3IEta{gid.region(), gid.station(), eId.ieta()};
161  if (total_digi_eta.find(key3IEta) == total_digi_eta.end())
162  total_digi_eta[key3IEta] = 0;
163  const auto& digis_in_det = gemDigis->get(eId);
164  for (auto d = digis_in_det.first; d != digis_in_det.second; ++d) {
165  // Filling of digi occupancy
166  Int_t nIdxVFAT = getVFATNumberByDigi(gid.station(), eId.ieta(), d->strip());
167  mapTotalDigi_layer_.Fill(key3, gid.chamber(), nIdxVFAT);
168 
169  // Filling of digi
170  mapDigiOcc_ieta_.Fill(key3, eId.ieta()); // Eta (partition)
171 
172  GlobalPoint digi_global_pos = surface.toGlobal(iEta->centreOfStrip(d->strip()));
173  Float_t fPhi = (Float_t)digi_global_pos.phi();
174  Float_t fPhiShift = restrictAngle(fPhi, stationInfo.fMinPhi_);
175  Float_t fPhiDeg = fPhiShift * 180.0 / M_PI;
176  mapDigiOcc_phi_.Fill(key3, fPhiDeg); // Phi
177 
178  // Filling of R-Phi occupancy
179  Float_t fR = fRadiusMin_ + (fRadiusMax_ - fRadiusMin_) * (eId.ieta() - 0.5) / stationInfo.nNumEtaPartitions_;
180  mapDigiWheel_layer_.Fill(key3, fPhiShift, fR);
181 
182  mapDigiOccPerCh_.Fill(key4Ch, d->strip(), eId.ieta()); // Per chamber
183 
184  // For total digis
185  total_digi_layer[key3]++;
186  total_digi_eta[key3IEta]++;
187 
188  // Filling of bx
189  Int_t nBX = std::min(std::max((Int_t)d->bx(), nBXMin_), nBXMax_); // For under/overflow
190  if (bTagVFAT.find(nIdxVFAT) == bTagVFAT.end()) {
191  mapBX_.Fill(key2, nBX);
192  }
193 
194  // Occupancy on a chamber
195  if (h2SummaryOcc_)
197 
198  bTagVFAT[nIdxVFAT] = true;
199  }
200  }
201  }
202  for (auto [key, num_total_digi] : total_digi_layer)
203  mapTotalDigiPerEvtLayer_.Fill(key, num_total_digi);
204  for (auto [key, num_total_digi] : total_digi_eta)
205  mapTotalDigiPerEvtIEta_.Fill(key, num_total_digi);
206 }
MEMap3Inf mapTotalDigiPerEvtLayer_
Definition: GEMDigiSource.h:55
int getVFATNumberByDigi(const int, const int, const int)
Definition: GEMDQMBase.h:601
std::tuple< Int_t, Int_t, Int_t, Int_t > ME4IdsKey
const GeomDet * idToDet(DetId) const override
Definition: GEMGeometry.cc:25
Float_t fRadiusMax_
Definition: GEMDigiSource.h:65
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
MEMap3Inf mapDigiOcc_ieta_
Definition: GEMDigiSource.h:53
MEMap4Inf mapDigiOccPerCh_
Definition: GEMDigiSource.h:59
MEMap3Inf mapDigiOcc_phi_
Definition: GEMDigiSource.h:54
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:564
edm::EDGetTokenT< LumiScalersCollection > lumiScalers_
Definition: GEMDigiSource.h:49
std::map< ME3IdsKey, int > mapStationToIdx_
Definition: GEMDQMBase.h:563
int Fill(K key, Double_t x)
Definition: GEMDQMBase.h:377
edm::EDGetToken tagDigi_
Definition: GEMDigiSource.h:47
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
MEMap3Inf mapTotalDigiPerEvtIEta_
Definition: GEMDigiSource.h:56
constexpr int ieta() const
Definition: GEMDetId.h:199
MEMap3Inf mapTotalDigi_layer_
Definition: GEMDigiSource.h:51
MEMap2Inf mapBX_
Definition: GEMDigiSource.h:57
void Fill(long long x)
tuple d
Definition: ztail.py:151
constexpr int region() const
Definition: GEMDetId.h:171
Float_t restrictAngle(const Float_t fTheta, const Float_t fStart)
Definition: GEMDQMBase.h:618
std::vector< GEMChamber > gemChambers_
Definition: GEMDQMBase.h:553
tuple key
prepare the HTCondor submission files and eventually submit them
T min(T a, T b)
Definition: MathUtil.h:58
#define M_PI
const GEMGeometry * GEMGeometry_
Definition: GEMDQMBase.h:550
constexpr int chamber() const
Definition: GEMDetId.h:183
constexpr int layer() const
Definition: GEMDetId.h:190
constexpr int station() const
Definition: GEMDetId.h:179
std::tuple< Int_t, Int_t > ME2IdsKey
Float_t fRadiusMin_
Definition: GEMDigiSource.h:64
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
MonitorElement * h2SummaryOcc_
Definition: GEMDigiSource.h:61
MEMap3Inf mapDigiWheel_layer_
Definition: GEMDigiSource.h:52
void GEMDigiSource::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  ,
edm::EventSetup const &  iSetup 
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 25 of file GEMDigiSource.cc.

References bModeRelVal_, dqm::implementation::NavigatorBase::cd(), GEMDQMBase::CreateSummaryHist(), fRadiusMax_, fRadiusMin_, GEMDQMBase::GEMGeometry_, GEMDQMBase::GenerateMEPerChamber(), h2SummaryOcc_, GEMDQMBase::initGeometry(), GEMDQMBase::loadChambers(), M_PI, mapBX_, mapDigiOcc_ieta_, mapDigiOcc_phi_, mapDigiOccPerCh_, mapDigiWheel_layer_, mapTotalDigi_layer_, mapTotalDigiPerEvtIEta_, mapTotalDigiPerEvtLayer_, nBXMax_, nBXMin_, dqm::implementation::NavigatorBase::setCurrentFolder(), GEMDQMBase::MEMapInfT< M, K >::SetNoUnderOverflowBin(), dqm::impl::MonitorElement::setTitle(), dqm::impl::MonitorElement::setXTitle(), and GEMDQMBase::MEMapInfT< M, K >::TurnOff().

25  {
26  initGeometry(iSetup);
27  if (GEMGeometry_ == nullptr)
28  return;
29  loadChambers();
30 
31  fRadiusMin_ = 120.0;
32  fRadiusMax_ = 250.0;
33  float radS = -5.0 / 180 * M_PI;
34  float radL = 355.0 / 180 * M_PI;
35 
36  mapTotalDigi_layer_ = MEMap3Inf(this, "det", "Digi Occupancy", 36, 0.5, 36.5, 24, -0.5, 24 - 0.5, "Chamber", "VFAT");
38  this, "rphi_occ", "Digi R-Phi Occupancy", 360, radS, radL, 8, fRadiusMin_, fRadiusMax_, "#phi (rad)", "R [cm]");
39  mapDigiOcc_ieta_ = MEMap3Inf(this, "occ_ieta", "Digi iEta Occupancy", 8, 0.5, 8.5, "iEta", "Number of fired digis");
41  MEMap3Inf(this, "occ_phi", "Digi Phi Occupancy", 108, -5, 355, "#phi (degree)", "Number of fired digis");
43  "digis_per_layer",
44  "Total number of digis per event for each layers",
45  50,
46  -0.5,
47  99.5,
48  "Number of fired digis",
49  "Events");
52  "digis_per_ieta",
53  "Total number of digis per event for each eta partitions",
54  50,
55  -0.5,
56  99.5,
57  "Number of fired digis",
58  "Events");
60 
61  mapBX_ = MEMap2Inf(this, "bx", "Digi Bunch Crossing", 21, nBXMin_ - 0.5, nBXMax_ + 0.5, "Bunch crossing");
62 
63  mapDigiOccPerCh_ = MEMap4Inf(this, "occ", "Digi Occupancy", 1, -0.5, 1.5, 1, 0.5, 1.5, "Digi", "iEta");
64 
65  if (bModeRelVal_) {
69  }
70 
71  ibooker.cd();
72  ibooker.setCurrentFolder("GEM/Digis");
73  GenerateMEPerChamber(ibooker);
74 
75  h2SummaryOcc_ = nullptr;
76  if (!bModeRelVal_) {
77  h2SummaryOcc_ = CreateSummaryHist(ibooker, "summaryOccDigi");
78  h2SummaryOcc_->setTitle("Summary of occupancy on chambers");
79  h2SummaryOcc_->setXTitle("Chamber");
80  }
81 }
virtual void setTitle(const std::string &title)
set (ie. change) histogram/profile title
MEMapInfT< MEMap4Ids, ME4IdsKey > MEMap4Inf
Definition: GEMDQMBase.h:457
dqm::impl::MonitorElement * CreateSummaryHist(DQMStore::IBooker &ibooker, TString strName)
Definition: GEMDQMBase.cc:125
MEMap3Inf mapTotalDigiPerEvtLayer_
Definition: GEMDigiSource.h:55
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
MEMapInfT< MEMap3Ids, ME3IdsKey > MEMap3Inf
Definition: GEMDQMBase.h:456
int initGeometry(edm::EventSetup const &iSetup)
Definition: GEMDQMBase.cc:15
Float_t fRadiusMax_
Definition: GEMDigiSource.h:65
MEMap3Inf mapDigiOcc_ieta_
Definition: GEMDigiSource.h:53
MEMap4Inf mapDigiOccPerCh_
Definition: GEMDigiSource.h:59
MEMap3Inf mapDigiOcc_phi_
Definition: GEMDigiSource.h:54
int loadChambers()
Definition: GEMDQMBase.cc:46
MEMap3Inf mapTotalDigiPerEvtIEta_
Definition: GEMDigiSource.h:56
MEMap3Inf mapTotalDigi_layer_
Definition: GEMDigiSource.h:51
MEMap2Inf mapBX_
Definition: GEMDigiSource.h:57
virtual void setXTitle(std::string const &title)
int GenerateMEPerChamber(DQMStore::IBooker &ibooker)
Definition: GEMDQMBase.cc:161
Bool_t bModeRelVal_
Definition: GEMDigiSource.h:67
MEMapInfT< MEMap2Ids, ME2IdsKey > MEMap2Inf
Definition: GEMDQMBase.h:455
#define M_PI
const GEMGeometry * GEMGeometry_
Definition: GEMDQMBase.h:550
void SetNoUnderOverflowBin()
Definition: GEMDQMBase.h:245
Float_t fRadiusMin_
Definition: GEMDigiSource.h:64
MonitorElement * h2SummaryOcc_
Definition: GEMDigiSource.h:61
MEMap3Inf mapDigiWheel_layer_
Definition: GEMDigiSource.h:52
void GEMDigiSource::dqmBeginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 37 of file GEMDigiSource.h.

37 {};
void GEMDigiSource::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 15 of file GEMDigiSource.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

15  {
17  desc.add<edm::InputTag>("digisInputLabel", edm::InputTag("muonGEMDigis", ""));
18  desc.addUntracked<std::string>("logCategory", "GEMDigiSource");
19  desc.add<bool>("modeRelVal", false);
20  desc.add<int>("bxMin", -10);
21  desc.add<int>("bxMax", 10);
22  descriptions.add("GEMDigiSource", desc);
23 }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
int GEMDigiSource::ProcessWithMEMap2 ( BookingHelper bh,
ME2IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 83 of file GEMDigiSource.cc.

References GEMDQMBase::MEMapInfT< M, K >::bookND(), and mapBX_.

83  {
84  mapBX_.bookND(bh, key);
85 
86  return 0;
87 }
MEMap2Inf mapBX_
Definition: GEMDigiSource.h:57
tuple key
prepare the HTCondor submission files and eventually submit them
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:305
int GEMDigiSource::ProcessWithMEMap2WithEta ( BookingHelper bh,
ME3IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 89 of file GEMDigiSource.cc.

References GEMDQMBase::MEMapInfT< M, K >::bookND(), and mapTotalDigiPerEvtIEta_.

89  {
91 
92  return 0;
93 }
MEMap3Inf mapTotalDigiPerEvtIEta_
Definition: GEMDigiSource.h:56
tuple key
prepare the HTCondor submission files and eventually submit them
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:305
int GEMDigiSource::ProcessWithMEMap3 ( BookingHelper bh,
ME3IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 95 of file GEMDigiSource.cc.

References GEMDQMBase::MEMapInfT< M, K >::bookND(), GEMDQMBase::MEStationInfo::fMinPhi_, submitPVResolutionJobs::key, M_PI, mapDigiOcc_ieta_, mapDigiOcc_phi_, mapDigiWheel_layer_, GEMDQMBase::mapStationInfo_, mapTotalDigi_layer_, mapTotalDigiPerEvtLayer_, GEMDQMBase::MEStationInfo::nMaxVFAT_, GEMDQMBase::MEStationInfo::nNumChambers_, GEMDQMBase::MEStationInfo::nNumEtaPartitions_, GEMDQMBase::MEMapInfT< M, K >::SetBinConfX(), GEMDQMBase::MEMapInfT< M, K >::SetBinConfY(), GEMDQMBase::MEMapInfT< M, K >::SetBinHighEdgeX(), GEMDQMBase::MEMapInfT< M, K >::SetBinLowEdgeX(), GEMDQMBase::MEMapInfT< M, K >::SetLabelForChambers(), GEMDQMBase::MEMapInfT< M, K >::SetLabelForIEta(), GEMDQMBase::MEMapInfT< M, K >::SetLabelForVFATs(), GEMDQMBase::MEMapInfT< M, K >::SetNbinsX(), and GEMDQMBase::MEMapInfT< M, K >::SetNbinsY().

95  {
96  MEStationInfo& stationInfo = mapStationInfo_[key];
97 
98  int nNumVFATPerEta = stationInfo.nMaxVFAT_ / stationInfo.nNumEtaPartitions_;
99 
100  mapTotalDigi_layer_.SetBinConfX(stationInfo.nNumChambers_);
101  mapTotalDigi_layer_.SetBinConfY(stationInfo.nMaxVFAT_, -0.5);
104  mapTotalDigi_layer_.SetLabelForVFATs(key, stationInfo.nNumEtaPartitions_, 2);
105 
106  mapDigiWheel_layer_.SetBinLowEdgeX(stationInfo.fMinPhi_);
107  mapDigiWheel_layer_.SetBinHighEdgeX(stationInfo.fMinPhi_ + 2 * M_PI);
108  mapDigiWheel_layer_.SetNbinsX(nNumVFATPerEta * stationInfo.nNumChambers_);
109  mapDigiWheel_layer_.SetNbinsY(stationInfo.nNumEtaPartitions_);
111 
112  mapDigiOcc_ieta_.SetBinConfX(stationInfo.nNumEtaPartitions_);
115 
116  mapDigiOcc_phi_.SetBinLowEdgeX(stationInfo.fMinPhi_ * 180 / M_PI);
117  mapDigiOcc_phi_.SetBinHighEdgeX(stationInfo.fMinPhi_ * 180 / M_PI + 360);
120 
121  return 0;
122 }
MEMap3Inf mapTotalDigiPerEvtLayer_
Definition: GEMDigiSource.h:55
int SetLabelForChambers(K key, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:334
MEMap3Inf mapDigiOcc_ieta_
Definition: GEMDigiSource.h:53
MEMap3Inf mapDigiOcc_phi_
Definition: GEMDigiSource.h:54
int SetLabelForVFATs(K key, Int_t nNumEtaPartitions, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:356
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:564
void SetBinHighEdgeX(Double_t dXH)
Definition: GEMDQMBase.h:264
MEMap3Inf mapTotalDigi_layer_
Definition: GEMDigiSource.h:51
void SetBinLowEdgeX(Double_t dXL)
Definition: GEMDQMBase.h:262
tuple key
prepare the HTCondor submission files and eventually submit them
void SetNbinsY(Int_t nBinsY)
Definition: GEMDQMBase.h:268
#define M_PI
int SetLabelForIEta(K key, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:354
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:305
void SetNbinsX(Int_t nBinsX)
Definition: GEMDQMBase.h:260
void SetBinConfX(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
Definition: GEMDQMBase.h:279
void SetBinConfY(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
Definition: GEMDQMBase.h:287
MEMap3Inf mapDigiWheel_layer_
Definition: GEMDigiSource.h:52
int GEMDigiSource::ProcessWithMEMap3WithChamber ( BookingHelper bh,
ME4IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 124 of file GEMDigiSource.cc.

References GEMDQMBase::MEMapInfT< M, K >::bookND(), GEMDQMBase::key4Tokey3(), mapDigiOccPerCh_, GEMDQMBase::mapStationInfo_, GEMDQMBase::MEStationInfo::nMaxVFAT_, GEMDQMBase::MEStationInfo::nNumDigi_, GEMDQMBase::MEStationInfo::nNumEtaPartitions_, GEMDQMBase::MEMapInfT< M, K >::SetBinConfX(), GEMDQMBase::MEMapInfT< M, K >::SetBinConfY(), and GEMDQMBase::MEMapInfT< M, K >::SetLabelForIEta().

124  {
125  ME3IdsKey key3 = key4Tokey3(key);
126  MEStationInfo& stationInfo = mapStationInfo_[key3];
127 
128  int nNumVFATPerEta = stationInfo.nMaxVFAT_ / stationInfo.nNumEtaPartitions_;
129  int nNumCh = stationInfo.nNumDigi_;
130 
131  mapDigiOccPerCh_.SetBinConfX(nNumCh * nNumVFATPerEta, -0.5);
132  mapDigiOccPerCh_.SetBinConfY(stationInfo.nNumEtaPartitions_);
135 
136  return 0;
137 }
MEMap4Inf mapDigiOccPerCh_
Definition: GEMDigiSource.h:59
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:564
tuple key
prepare the HTCondor submission files and eventually submit them
int SetLabelForIEta(K key, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:354
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:305
ME3IdsKey key4Tokey3(ME4IdsKey key)
Definition: GEMDQMBase.h:529
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
void SetBinConfX(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
Definition: GEMDQMBase.h:279
void SetBinConfY(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
Definition: GEMDQMBase.h:287

Member Data Documentation

Bool_t GEMDigiSource::bModeRelVal_
private

Definition at line 67 of file GEMDigiSource.h.

Referenced by bookHistograms(), and GEMDigiSource().

Float_t GEMDigiSource::fRadiusMax_
private

Definition at line 65 of file GEMDigiSource.h.

Referenced by analyze(), and bookHistograms().

Float_t GEMDigiSource::fRadiusMin_
private

Definition at line 64 of file GEMDigiSource.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDigiSource::h2SummaryOcc_
private

Definition at line 61 of file GEMDigiSource.h.

Referenced by analyze(), and bookHistograms().

edm::EDGetTokenT<LumiScalersCollection> GEMDigiSource::lumiScalers_
private

Definition at line 49 of file GEMDigiSource.h.

Referenced by analyze(), and GEMDigiSource().

MEMap2Inf GEMDigiSource::mapBX_
private

Definition at line 57 of file GEMDigiSource.h.

Referenced by analyze(), bookHistograms(), and ProcessWithMEMap2().

MEMap3Inf GEMDigiSource::mapDigiOcc_ieta_
private

Definition at line 53 of file GEMDigiSource.h.

Referenced by analyze(), bookHistograms(), and ProcessWithMEMap3().

MEMap3Inf GEMDigiSource::mapDigiOcc_phi_
private

Definition at line 54 of file GEMDigiSource.h.

Referenced by analyze(), bookHistograms(), and ProcessWithMEMap3().

MEMap4Inf GEMDigiSource::mapDigiOccPerCh_
private

Definition at line 59 of file GEMDigiSource.h.

Referenced by analyze(), bookHistograms(), and ProcessWithMEMap3WithChamber().

MEMap3Inf GEMDigiSource::mapDigiWheel_layer_
private

Definition at line 52 of file GEMDigiSource.h.

Referenced by analyze(), bookHistograms(), and ProcessWithMEMap3().

MEMap3Inf GEMDigiSource::mapTotalDigi_layer_
private

Definition at line 51 of file GEMDigiSource.h.

Referenced by analyze(), bookHistograms(), and ProcessWithMEMap3().

MEMap3Inf GEMDigiSource::mapTotalDigiPerEvtIEta_
private

Definition at line 56 of file GEMDigiSource.h.

Referenced by analyze(), bookHistograms(), and ProcessWithMEMap2WithEta().

MEMap3Inf GEMDigiSource::mapTotalDigiPerEvtLayer_
private

Definition at line 55 of file GEMDigiSource.h.

Referenced by analyze(), bookHistograms(), and ProcessWithMEMap3().

Int_t GEMDigiSource::nBXMax_
private

Definition at line 63 of file GEMDigiSource.h.

Referenced by analyze(), bookHistograms(), and GEMDigiSource().

Int_t GEMDigiSource::nBXMin_
private

Definition at line 63 of file GEMDigiSource.h.

Referenced by analyze(), bookHistograms(), and GEMDigiSource().

edm::EDGetToken GEMDigiSource::tagDigi_
private

Definition at line 47 of file GEMDigiSource.h.

Referenced by analyze(), and GEMDigiSource().