|
|
Go to the documentation of this file.
17 desc.add<
bool>(
"modeRelVal",
false);
18 descriptions.
add(
"GEMDigiSource",
desc);
30 mapTotalDigi_layer_ =
MEMap3Inf(
this,
"det",
"Digi Occupancy", 36, 0.5, 36.5, 24, -0.5, 24 - 0.5,
"Chamber",
"VFAT");
33 MEMap3Inf(
this,
"occ_phi",
"Digi Phi Occupancy", 108, -5, 355,
"#phi (degree)",
"Number of fired digis");
36 "Total number of digis per event for each layers",
40 "Number of fired digis",
44 "Total number of digis per event for each eta partitions",
48 "Number of fired digis",
53 mapDigiOccPerCh_ =
MEMap4Inf(
this,
"occ",
"Digi Occupancy", 1, -0.5, 1.5, 1, 0.5, 1.5,
"Digi",
"iEta");
115 event.getByToken(this->
tagDigi_, gemDigis);
119 std::map<ME3IdsKey, Int_t> total_digi_layer;
120 std::map<ME3IdsKey, Int_t> total_digi_eta;
126 std::map<Int_t, bool> bTagVFAT;
129 if (total_digi_layer.find(key3) == total_digi_layer.end())
130 total_digi_layer[key3] = 0;
131 for (
auto iEta : ch.etaPartitions()) {
134 if (total_digi_eta.find(key3IEta) == total_digi_eta.end())
135 total_digi_eta[key3IEta] = 0;
136 const auto& digis_in_det = gemDigis->get(eId);
137 for (
auto d = digis_in_det.first;
d != digis_in_det.second; ++
d) {
145 GlobalPoint digi_global_pos = surface.toGlobal(
iEta->centreOfStrip(
d->strip()));
146 Float_t fPhiDeg = ((Float_t)digi_global_pos.
phi()) * 180.0 / 3.141592;
154 total_digi_layer[key3]++;
155 total_digi_eta[key3IEta]++;
159 if (bTagVFAT.find(nIdxVFAT) == bTagVFAT.end()) {
167 bTagVFAT[nIdxVFAT] =
true;
171 for (
auto [
key, num_total_digi] : total_digi_layer)
173 for (
auto [
key, num_total_digi] : total_digi_eta)
void SetBinConfX(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
MEMap3Inf mapTotalDigiPerEvtIEta_
std::vector< GEMChamber > gemChambers_
std::tuple< Int_t, Int_t > ME2IdsKey
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MEMap3Inf mapTotalDigi_layer_
virtual void setTitle(const std::string &title)
set (ie. change) histogram/profile title
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)
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)
MEMap4Inf mapDigiOccPerCh_
MEMap3Inf mapDigiOcc_ieta_
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)
virtual void setXTitle(std::string const &title)
dqm::impl::MonitorElement * CreateSummaryHist(DQMStore::IBooker &ibooker, TString strName)
int ProcessWithMEMap2WithEta(BookingHelper &bh, ME3IdsKey key) override
constexpr int chamber() const
int initGeometry(edm::EventSetup const &iSetup)
MEMapInfT< MEMap4Ids, ME4IdsKey > MEMap4Inf
int getVFATNumberByDigi(const int, const int, const int)
edm::EDGetTokenT< LumiScalersCollection > lumiScalers_
GEMDigiSource(const edm::ParameterSet &cfg)
int SetLabelForIEta(K key, Int_t nAxis, Int_t nNumBin=-1)
MEMap3Inf mapDigiOcc_phi_
int ProcessWithMEMap3WithChamber(BookingHelper &bh, ME4IdsKey key) override
MEMapInfT< MEMap3Ids, ME3IdsKey > MEMap3Inf
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
MEMap3Inf mapTotalDigiPerEvtLayer_
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
constexpr int ieta() const
int bookND(BookingHelper &bh, K key)
Geom::Phi< T > phi() const
MonitorElement * h2SummaryOcc_
int GenerateMEPerChamber(DQMStore::IBooker &ibooker)