|
![CMS Logo](/cmsdoxygen/common/rightImage.jpg) |
Go to the documentation of this file.
73 descriptions.
add(
"GEMDigiSource",
desc);
85 mapTotalDigi_layer_ =
MEMap3Inf(
this,
"digi_det",
"Digi Occupancy", 36, 0.5, 36.5, 24, 0.5, 24.5,
"Chamber",
"VFAT");
87 this,
"strip_ieta_occ",
"Strip Digi Occupancy per eta partition", 8, 0.5, 8.5,
"iEta",
"Number of fired strips");
90 "Strip Digi Phi (degree) Occupancy ",
95 "Number of fired strips");
97 "total_strips_per_event",
98 "Total number of strip digis per event for each layers ",
102 "Number of fired strips",
107 mapStripOccPerCh_ =
MEMap4Inf(
this,
"strip_occ",
"Strip Digi Occupancy ", 1, 0.5, 1.5, 1, 0.5, 1.5,
"Strip",
"iEta");
110 "Strip Digi Bunch Crossing ",
169 event.getByToken(this->
tagDigi_, gemDigis);
173 std::map<ME3IdsKey, Int_t> total_strip_layer;
179 std::map<Int_t, bool> bTagVFAT;
182 if (total_strip_layer.find(key3) == total_strip_layer.end())
183 total_strip_layer[key3] = 0;
184 for (
auto roll : ch.etaPartitions()) {
186 const auto& digis_in_det = gemDigis->get(rId);
187 for (
auto d = digis_in_det.first;
d != digis_in_det.second; ++
d) {
195 GlobalPoint strip_global_pos = surface.toGlobal(roll->centreOfStrip(
d->strip()));
196 Float_t fPhiDeg = ((Float_t)strip_global_pos.
phi()) * 180.0 / 3.141592;
204 total_strip_layer[key3]++;
208 if (bTagVFAT.find(nIdxVFAT) == bTagVFAT.end()) {
216 bTagVFAT[nIdxVFAT] =
true;
220 for (
auto [
key, num_total_strip] : total_strip_layer)
void SetBinConfX(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
std::vector< GEMChamber > gemChambers_
std::tuple< Int_t, Int_t > ME2IdsKey
MEMap3Inf mapStripOcc_phi_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MEMap3Inf mapTotalDigi_layer_
MEMap4Inf mapStripOccPerCh_
int ProcessWithMEMap3(BookingHelper &bh, ME3IdsKey key) override
constexpr int layer() const
const GeomDet * idToDet(DetId) const override
constexpr int region() const
const GEMGeometry * GEMGeometry_
std::tuple< Int_t, Int_t, Int_t, Int_t > ME4IdsKey
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
virtual void setCurrentFolder(std::string const &fullpath)
MEMap3Inf mapTotalStripPerEvt_
MonitorElement * h2SummaryOcc
int Fill(K key, Double_t x)
ME3IdsKey key4Tokey3(ME4IdsKey key)
int SetLabelForVFATs(K key, Int_t nNumEtaPartitions, Int_t nAxis, Int_t nNumBin=-1)
int SetLabelForChambers(K key, Int_t nAxis, Int_t nNumBin=-1)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const Plane & surface() const
The nominal surface of the GeomDet.
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
MEMap3Inf mapStripOcc_ieta_
MonitorElement * h2SummaryMal
dqm::impl::MonitorElement * CreateSummaryHist(DQMStore::IBooker &ibooker, TString strName)
~GEMDigiSource() override
constexpr int chamber() const
int initGeometry(edm::EventSetup const &iSetup)
MEMapInfT< MEMap4Ids, ME4IdsKey > MEMap4Inf
constexpr int roll() const
edm::EDGetTokenT< LumiScalersCollection > lumiScalers_
GEMDigiSource(const edm::ParameterSet &cfg)
int getVFATNumberByStrip(const int, const int, const int)
int ProcessWithMEMap3WithChamber(BookingHelper &bh, ME4IdsKey key) override
MEMapInfT< MEMap3Ids, ME3IdsKey > MEMap3Inf
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
void SetBinConfY(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
std::map< ME3IdsKey, int > mapStationToIdx_
constexpr int station() const
int bookND(BookingHelper &bh, K key)
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
Geom::Phi< T > phi() const
int GenerateMEPerChamber(DQMStore::IBooker &ibooker)