CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static 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)
 
int readGeometryPhiInfoChamber (const GEMStation *station, MEStationInfo &stationInfo)
 
int readGeometryRadiusInfoChamber (const GEMStation *station, MEStationInfo &stationInfo)
 
 ~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< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (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 getIEtaFromVFATGE0 (const int vfat)
 
int getIEtaFromVFATGE11 (const int vfat)
 
int getIEtaFromVFATGE21 (const int vfat)
 
int getMaxVFAT (const int)
 
std::string getNameDirLayer (ME3IdsKey key3)
 
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

Float_t fRadiusMax_
 
Float_t fRadiusMin_
 
edm::EDGetTokenT< LumiScalersCollectionlumiScalers_
 
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_
 
std::string strFolderMain_
 
edm::EDGetToken tagDigi_
 

Static Private Attributes

static const int nNumBitDigiOcc_ = 16384
 

Additional Inherited Members

- Public Types inherited from GEMDQMBase
enum  {
  GEMDQM_RUNTYPE_ONLINE, GEMDQM_RUNTYPE_OFFLINE, GEMDQM_RUNTYPE_RELVAL, GEMDQM_RUNTYPE_ALLPLOTS,
  GEMDQM_RUNTYPE_NONE = -1
}
 
typedef MEMapInfT< MEMap2Ids, ME2IdsKeyMEMap2Inf
 
typedef MEMapInfT< MEMap3Ids, ME3IdsKeyMEMap3Inf
 
typedef MEMapInfT< MEMap4Ids, ME4IdsKeyMEMap4Inf
 
- 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_
 
Int_t nRunType_
 
- Protected Attributes inherited from GEMDQMBase
std::vector< GEMChambergemChambers_
 
const GEMGeometryGEMGeometry_
 
edm::ESGetToken< GEMGeometry, MuonGeometryRecordgeomToken_
 
std::map< ME3IdsKey, MEStationInfomapStationInfo_
 
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_
 
- 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::GEMDigiSource ( const edm::ParameterSet cfg)
explicit

Definition at line 6 of file GEMDigiSource.cc.

References looper::cfg, HLT_2022v12_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  nBXMin_ = cfg.getParameter<int>("bxMin");
11  nBXMax_ = cfg.getParameter<int>("bxMax");
12 }
edm::EDGetTokenT< LumiScalersCollection > lumiScalers_
Definition: GEMDigiSource.h:51
edm::EDGetToken tagDigi_
Definition: GEMDigiSource.h:49
GEMDQMBase(const edm::ParameterSet &cfg)
Definition: GEMDQMBase.cc:7

◆ ~GEMDigiSource()

GEMDigiSource::~GEMDigiSource ( )
inlineoverride

Definition at line 33 of file GEMDigiSource.h.

33 {};

Member Function Documentation

◆ analyze()

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

Reimplemented from DQMEDAnalyzer.

Definition at line 152 of file GEMDigiSource.cc.

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

152  {
154  event.getByToken(this->tagDigi_, gemDigis);
156  event.getByToken(lumiScalers_, lumiScalers);
157 
158  std::map<ME3IdsKey, Int_t> total_digi_layer;
159  std::map<ME3IdsKey, Int_t> total_digi_eta;
160  for (const auto& ch : gemChambers_) {
161  GEMDetId gid = ch.id();
162  ME2IdsKey key2{gid.region(), gid.station()};
163  ME3IdsKey key3{gid.region(), gid.station(), gid.layer()};
164  ME4IdsKey key4Ch{gid.region(), gid.station(), gid.layer(), gid.chamber()};
165  std::map<Int_t, bool> bTagVFAT;
166  bTagVFAT.clear();
167  MEStationInfo& stationInfo = mapStationInfo_[key3];
168  const BoundPlane& surface = GEMGeometry_->idToDet(gid)->surface();
169  if (total_digi_layer.find(key3) == total_digi_layer.end())
170  total_digi_layer[key3] = 0;
171  for (auto iEta : ch.etaPartitions()) {
172  GEMDetId eId = iEta->id();
173  ME3IdsKey key3IEta{gid.region(), gid.station(), eId.ieta()};
174  if (total_digi_eta.find(key3IEta) == total_digi_eta.end())
175  total_digi_eta[key3IEta] = 0;
176  const auto& digis_in_det = gemDigis->get(eId);
177  for (auto d = digis_in_det.first; d != digis_in_det.second; ++d) {
178  // Filling of digi occupancy
179  Int_t nIdxVFAT = getVFATNumberByDigi(gid.station(), eId.ieta(), d->strip());
180  mapTotalDigi_layer_.Fill(key3, gid.chamber(), nIdxVFAT);
181 
182  // Filling of digi
183  mapDigiOcc_ieta_.Fill(key3, eId.ieta()); // Eta (partition)
184 
185  GlobalPoint digi_global_pos = surface.toGlobal(iEta->centreOfStrip(d->strip()));
186  Float_t fPhi = (Float_t)digi_global_pos.phi();
187  Float_t fPhiShift = restrictAngle(fPhi, stationInfo.fMinPhi_);
188  Float_t fPhiDeg = fPhiShift * 180.0 / M_PI;
189  mapDigiOcc_phi_.Fill(key3, fPhiDeg); // Phi
190 
191  // Filling of R-Phi occupancy
192  Float_t fR = fRadiusMin_ + (fRadiusMax_ - fRadiusMin_) * (eId.ieta() - 0.5) / stationInfo.nNumEtaPartitions_;
193  mapDigiWheel_layer_.Fill(key3, fPhiShift, fR);
194 
195  mapDigiOccPerCh_.Fill(key4Ch, d->strip(), eId.ieta()); // Per chamber
196 
197  // For total digis
198  total_digi_layer[key3]++;
199  total_digi_eta[key3IEta]++;
200 
201  // Filling of bx
202  Int_t nBX = std::min(std::max((Int_t)d->bx(), nBXMin_), nBXMax_); // For under/overflow
203  if (bTagVFAT.find(nIdxVFAT) == bTagVFAT.end()) {
204  mapBX_.Fill(key2, nBX);
205  }
206 
207  bTagVFAT[nIdxVFAT] = true;
208  }
209  }
210  }
211  for (auto [key, num_total_digi] : total_digi_layer)
212  mapTotalDigiPerEvtLayer_.Fill(key, num_total_digi);
213  for (auto [key, num_total_digi] : total_digi_eta)
214  mapTotalDigiPerEvtIEta_.Fill(key, num_total_digi);
215 }
constexpr int station() const
Definition: GEMDetId.h:179
constexpr int region() const
Definition: GEMDetId.h:171
MEMap3Inf mapTotalDigiPerEvtLayer_
Definition: GEMDigiSource.h:57
int getVFATNumberByDigi(const int, const int, const int)
Definition: GEMDQMBase.h:624
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
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:67
MEMap3Inf mapDigiOcc_ieta_
Definition: GEMDigiSource.h:55
MEMap4Inf mapDigiOccPerCh_
Definition: GEMDigiSource.h:61
MEMap3Inf mapDigiOcc_phi_
Definition: GEMDigiSource.h:56
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:589
edm::EDGetTokenT< LumiScalersCollection > lumiScalers_
Definition: GEMDigiSource.h:51
constexpr int layer() const
Definition: GEMDetId.h:190
int Fill(K key, Double_t x)
Definition: GEMDQMBase.h:380
edm::EDGetToken tagDigi_
Definition: GEMDigiSource.h:49
MEMap3Inf mapTotalDigiPerEvtIEta_
Definition: GEMDigiSource.h:58
constexpr int chamber() const
Definition: GEMDetId.h:183
MEMap3Inf mapTotalDigi_layer_
Definition: GEMDigiSource.h:53
MEMap2Inf mapBX_
Definition: GEMDigiSource.h:59
Float_t restrictAngle(const Float_t fTheta, const Float_t fStart)
Definition: GEMDQMBase.h:655
std::vector< GEMChamber > gemChambers_
Definition: GEMDQMBase.h:578
d
Definition: ztail.py:151
#define M_PI
constexpr int ieta() const
Definition: GEMDetId.h:199
const GEMGeometry * GEMGeometry_
Definition: GEMDQMBase.h:575
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
std::tuple< Int_t, Int_t > ME2IdsKey
Float_t fRadiusMin_
Definition: GEMDigiSource.h:66
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
MEMap3Inf mapDigiWheel_layer_
Definition: GEMDigiSource.h:54

◆ bookHistograms()

void GEMDigiSource::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  ,
edm::EventSetup const &  iSetup 
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 24 of file GEMDigiSource.cc.

References dqm::implementation::NavigatorBase::cd(), fRadiusMax_, fRadiusMin_, GEMDQMBase::GEMDQM_RUNTYPE_ALLPLOTS, GEMDQMBase::GEMDQM_RUNTYPE_OFFLINE, GEMDQMBase::GEMDQM_RUNTYPE_RELVAL, GEMDQMBase::GEMGeometry_, GEMDQMBase::GenerateMEPerChamber(), GEMDQMBase::initGeometry(), GEMDQMBase::loadChambers(), M_PI, mapBX_, mapDigiOcc_ieta_, mapDigiOcc_phi_, mapDigiOccPerCh_, mapDigiWheel_layer_, mapTotalDigi_layer_, mapTotalDigiPerEvtIEta_, mapTotalDigiPerEvtLayer_, nBXMax_, nBXMin_, GEMDQMBase::nRunType_, dqm::implementation::NavigatorBase::setCurrentFolder(), GEMDQMBase::MEMapInfT< M, K >::SetNoUnderOverflowBin(), strFolderMain_, and GEMDQMBase::MEMapInfT< M, K >::TurnOff().

24  {
25  initGeometry(iSetup);
26  if (GEMGeometry_ == nullptr)
27  return;
28  loadChambers();
29 
30  strFolderMain_ = "GEM/Digis";
31 
32  fRadiusMin_ = 120.0;
33  fRadiusMax_ = 250.0;
34  float radS = -5.0 / 180 * M_PI;
35  float radL = 355.0 / 180 * M_PI;
36 
37  mapTotalDigi_layer_ = MEMap3Inf(this, "occ", "Digi Occupancy", 36, 0.5, 36.5, 24, -0.5, 24 - 0.5, "Chamber", "VFAT");
39  this, "occ_rphi", "Digi R-Phi Occupancy", 360, radS, radL, 8, fRadiusMin_, fRadiusMax_, "#phi (rad)", "R [cm]");
40  mapDigiOcc_ieta_ = MEMap3Inf(this, "occ_ieta", "Digi iEta Occupancy", 8, 0.5, 8.5, "iEta", "Number of fired digis");
42  MEMap3Inf(this, "occ_phi", "Digi Phi Occupancy", 72, -5, 355, "#phi (degree)", "Number of fired digis");
44  "digis_per_layer",
45  "Total number of digis per event for each layers",
46  50,
47  -0.5,
48  99.5,
49  "Number of fired digis",
50  "Events");
53  "digis_per_ieta",
54  "Total number of digis per event for each eta partitions",
55  50,
56  -0.5,
57  99.5,
58  "Number of fired digis",
59  "Events");
61 
62  mapBX_ = MEMap2Inf(this, "bx", "Digi Bunch Crossing", 21, nBXMin_ - 0.5, nBXMax_ + 0.5, "Bunch crossing");
63 
64  mapDigiOccPerCh_ = MEMap4Inf(this, "occ", "Digi Occupancy", 1, -0.5, 1.5, 1, 0.5, 1.5, "Digi", "iEta");
65 
68  mapBX_.TurnOff();
69  }
70 
75  }
76 
80  }
81 
85  }
86 
87  ibooker.cd();
89  GenerateMEPerChamber(ibooker);
90 }
MEMapInfT< MEMap4Ids, ME4IdsKey > MEMap4Inf
Definition: GEMDQMBase.h:460
Int_t nRunType_
Definition: GEMDQMBase.h:518
MEMap3Inf mapTotalDigiPerEvtLayer_
Definition: GEMDigiSource.h:57
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
MEMapInfT< MEMap3Ids, ME3IdsKey > MEMap3Inf
Definition: GEMDQMBase.h:459
int initGeometry(edm::EventSetup const &iSetup)
Definition: GEMDQMBase.cc:27
Float_t fRadiusMax_
Definition: GEMDigiSource.h:67
MEMap3Inf mapDigiOcc_ieta_
Definition: GEMDigiSource.h:55
MEMap4Inf mapDigiOccPerCh_
Definition: GEMDigiSource.h:61
MEMap3Inf mapDigiOcc_phi_
Definition: GEMDigiSource.h:56
int loadChambers()
Definition: GEMDQMBase.cc:58
std::string strFolderMain_
Definition: GEMDigiSource.h:63
MEMap3Inf mapTotalDigiPerEvtIEta_
Definition: GEMDigiSource.h:58
MEMap3Inf mapTotalDigi_layer_
Definition: GEMDigiSource.h:53
MEMap2Inf mapBX_
Definition: GEMDigiSource.h:59
int GenerateMEPerChamber(DQMStore::IBooker &ibooker)
Definition: GEMDQMBase.cc:174
MEMapInfT< MEMap2Ids, ME2IdsKey > MEMap2Inf
Definition: GEMDQMBase.h:458
#define M_PI
const GEMGeometry * GEMGeometry_
Definition: GEMDQMBase.h:575
void SetNoUnderOverflowBin()
Definition: GEMDQMBase.h:247
Float_t fRadiusMin_
Definition: GEMDigiSource.h:66
MEMap3Inf mapDigiWheel_layer_
Definition: GEMDigiSource.h:54

◆ dqmBeginRun()

void GEMDigiSource::dqmBeginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 37 of file GEMDigiSource.h.

37 {};

◆ fillDescriptions()

void GEMDigiSource::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 14 of file GEMDigiSource.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, HLT_2022v12_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

14  {
16  desc.add<edm::InputTag>("digisInputLabel", edm::InputTag("muonGEMDigis", ""));
17  desc.addUntracked<std::string>("runType", "online");
18  desc.addUntracked<std::string>("logCategory", "GEMDigiSource");
19  desc.add<int>("bxMin", -10);
20  desc.add<int>("bxMax", 10);
21  descriptions.add("GEMDigiSource", desc);
22 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ ProcessWithMEMap2()

int GEMDigiSource::ProcessWithMEMap2 ( BookingHelper bh,
ME2IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 92 of file GEMDigiSource.cc.

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

92  {
93  mapBX_.bookND(bh, key);
94 
95  return 0;
96 }
MEMap2Inf mapBX_
Definition: GEMDigiSource.h:59
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:307

◆ ProcessWithMEMap2WithEta()

int GEMDigiSource::ProcessWithMEMap2WithEta ( BookingHelper bh,
ME3IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 98 of file GEMDigiSource.cc.

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

98  {
100 
101  return 0;
102 }
MEMap3Inf mapTotalDigiPerEvtIEta_
Definition: GEMDigiSource.h:58
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:307

◆ ProcessWithMEMap3()

int GEMDigiSource::ProcessWithMEMap3 ( BookingHelper bh,
ME3IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 104 of file GEMDigiSource.cc.

References GEMDQMBase::MEMapInfT< M, K >::bookND(), GEMDQMBase::MEStationInfo::fMinPhi_, crabWrapper::key, M_PI, mapDigiOcc_ieta_, mapDigiOcc_phi_, mapDigiWheel_layer_, GEMDQMBase::mapStationInfo_, mapTotalDigi_layer_, mapTotalDigiPerEvtLayer_, GEMDQMBase::MEStationInfo::nMaxVFAT_, GEMDQMBase::MEStationInfo::nMinIdxChamber_, 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().

104  {
105  MEStationInfo& stationInfo = mapStationInfo_[key];
106 
107  int nNumVFATPerEta = stationInfo.nMaxVFAT_ / stationInfo.nNumEtaPartitions_;
108 
109  mapTotalDigi_layer_.SetBinConfX(stationInfo.nNumChambers_);
110  mapTotalDigi_layer_.SetBinConfY(stationInfo.nMaxVFAT_, -0.5);
112  mapTotalDigi_layer_.SetLabelForChambers(key, 1, -1, stationInfo.nMinIdxChamber_);
113  mapTotalDigi_layer_.SetLabelForVFATs(key, stationInfo.nNumEtaPartitions_, 2);
114 
115  mapDigiWheel_layer_.SetBinLowEdgeX(stationInfo.fMinPhi_);
116  mapDigiWheel_layer_.SetBinHighEdgeX(stationInfo.fMinPhi_ + 2 * M_PI);
117  mapDigiWheel_layer_.SetNbinsX(nNumVFATPerEta * stationInfo.nNumChambers_);
118  mapDigiWheel_layer_.SetNbinsY(stationInfo.nNumEtaPartitions_);
120 
121  mapDigiOcc_ieta_.SetBinConfX(stationInfo.nNumEtaPartitions_);
124 
125  mapDigiOcc_phi_.SetBinLowEdgeX(stationInfo.fMinPhi_ * 180 / M_PI);
126  mapDigiOcc_phi_.SetBinHighEdgeX(stationInfo.fMinPhi_ * 180 / M_PI + 360);
129 
130  return 0;
131 }
MEMap3Inf mapTotalDigiPerEvtLayer_
Definition: GEMDigiSource.h:57
int SetLabelForChambers(K key, Int_t nAxis, Int_t nNumBin=-1, Int_t nIdxStart=1)
Definition: GEMDQMBase.h:337
MEMap3Inf mapDigiOcc_ieta_
Definition: GEMDigiSource.h:55
MEMap3Inf mapDigiOcc_phi_
Definition: GEMDigiSource.h:56
int SetLabelForVFATs(K key, Int_t nNumEtaPartitions, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:359
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:589
void SetBinHighEdgeX(Double_t dXH)
Definition: GEMDQMBase.h:266
MEMap3Inf mapTotalDigi_layer_
Definition: GEMDigiSource.h:53
void SetBinLowEdgeX(Double_t dXL)
Definition: GEMDQMBase.h:264
void SetNbinsY(Int_t nBinsY)
Definition: GEMDQMBase.h:270
#define M_PI
int SetLabelForIEta(K key, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:357
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:307
void SetNbinsX(Int_t nBinsX)
Definition: GEMDQMBase.h:262
void SetBinConfX(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
Definition: GEMDQMBase.h:281
void SetBinConfY(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
Definition: GEMDQMBase.h:289
MEMap3Inf mapDigiWheel_layer_
Definition: GEMDigiSource.h:54

◆ ProcessWithMEMap3WithChamber()

int GEMDigiSource::ProcessWithMEMap3WithChamber ( BookingHelper bh,
ME4IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 133 of file GEMDigiSource.cc.

References GEMDQMBase::MEMapInfT< M, K >::bookND(), GEMDQMBase::BookingHelper::getBooker(), GEMDQMBase::getNameDirLayer(), crabWrapper::key, GEMDQMBase::key4Tokey3(), mapDigiOccPerCh_, GEMDQMBase::mapStationInfo_, GEMDQMBase::MEStationInfo::nMaxVFAT_, GEMDQMBase::MEStationInfo::nNumDigi_, GEMDQMBase::MEStationInfo::nNumEtaPartitions_, GEMDQMBase::MEMapInfT< M, K >::SetBinConfX(), GEMDQMBase::MEMapInfT< M, K >::SetBinConfY(), dqm::implementation::NavigatorBase::setCurrentFolder(), GEMDQMBase::MEMapInfT< M, K >::SetLabelForIEta(), and strFolderMain_.

133  {
134  ME3IdsKey key3 = key4Tokey3(key);
135  MEStationInfo& stationInfo = mapStationInfo_[key3];
136 
137  bh.getBooker()->setCurrentFolder(strFolderMain_ + "/occupancy_" + getNameDirLayer(key3));
138 
139  int nNumVFATPerEta = stationInfo.nMaxVFAT_ / stationInfo.nNumEtaPartitions_;
140  int nNumCh = stationInfo.nNumDigi_;
141 
142  mapDigiOccPerCh_.SetBinConfX(nNumCh * nNumVFATPerEta, -0.5);
143  mapDigiOccPerCh_.SetBinConfY(stationInfo.nNumEtaPartitions_);
146 
147  bh.getBooker()->setCurrentFolder(strFolderMain_);
148 
149  return 0;
150 }
MEMap4Inf mapDigiOccPerCh_
Definition: GEMDigiSource.h:61
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:589
std::string strFolderMain_
Definition: GEMDigiSource.h:63
int SetLabelForIEta(K key, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:357
std::string getNameDirLayer(ME3IdsKey key3)
Definition: GEMDQMBase.h:661
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:307
ME3IdsKey key4Tokey3(ME4IdsKey key)
Definition: GEMDQMBase.h:551
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:281
void SetBinConfY(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
Definition: GEMDQMBase.h:289

Member Data Documentation

◆ fRadiusMax_

Float_t GEMDigiSource::fRadiusMax_
private

Definition at line 67 of file GEMDigiSource.h.

Referenced by analyze(), and bookHistograms().

◆ fRadiusMin_

Float_t GEMDigiSource::fRadiusMin_
private

Definition at line 66 of file GEMDigiSource.h.

Referenced by analyze(), and bookHistograms().

◆ lumiScalers_

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

Definition at line 51 of file GEMDigiSource.h.

Referenced by analyze(), and GEMDigiSource().

◆ mapBX_

MEMap2Inf GEMDigiSource::mapBX_
private

Definition at line 59 of file GEMDigiSource.h.

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

◆ mapDigiOcc_ieta_

MEMap3Inf GEMDigiSource::mapDigiOcc_ieta_
private

Definition at line 55 of file GEMDigiSource.h.

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

◆ mapDigiOcc_phi_

MEMap3Inf GEMDigiSource::mapDigiOcc_phi_
private

Definition at line 56 of file GEMDigiSource.h.

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

◆ mapDigiOccPerCh_

MEMap4Inf GEMDigiSource::mapDigiOccPerCh_
private

Definition at line 61 of file GEMDigiSource.h.

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

◆ mapDigiWheel_layer_

MEMap3Inf GEMDigiSource::mapDigiWheel_layer_
private

Definition at line 54 of file GEMDigiSource.h.

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

◆ mapTotalDigi_layer_

MEMap3Inf GEMDigiSource::mapTotalDigi_layer_
private

Definition at line 53 of file GEMDigiSource.h.

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

◆ mapTotalDigiPerEvtIEta_

MEMap3Inf GEMDigiSource::mapTotalDigiPerEvtIEta_
private

Definition at line 58 of file GEMDigiSource.h.

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

◆ mapTotalDigiPerEvtLayer_

MEMap3Inf GEMDigiSource::mapTotalDigiPerEvtLayer_
private

Definition at line 57 of file GEMDigiSource.h.

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

◆ nBXMax_

Int_t GEMDigiSource::nBXMax_
private

Definition at line 65 of file GEMDigiSource.h.

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

◆ nBXMin_

Int_t GEMDigiSource::nBXMin_
private

Definition at line 65 of file GEMDigiSource.h.

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

◆ nNumBitDigiOcc_

const int GEMDigiSource::nNumBitDigiOcc_ = 16384
staticprivate

Definition at line 47 of file GEMDigiSource.h.

◆ strFolderMain_

std::string GEMDigiSource::strFolderMain_
private

Definition at line 63 of file GEMDigiSource.h.

Referenced by bookHistograms(), and ProcessWithMEMap3WithChamber().

◆ tagDigi_

edm::EDGetToken GEMDigiSource::tagDigi_
private

Definition at line 49 of file GEMDigiSource.h.

Referenced by analyze(), and GEMDigiSource().