|
|
Go to the documentation of this file.
18 desc.add<
int>(
"idxFirstDigi", 0);
19 desc.add<
int>(
"ClusterSizeBinNum", 9);
20 desc.add<
bool>(
"modeRelVal",
false);
24 descriptions.
add(
"GEMRecHitSource",
desc);
28 std::vector<GEMDetId> listLayerOcc;
41 float radS = -5.0 / 180 * 3.141592;
42 float radL = 355.0 / 180 * 3.141592;
44 mapTotalRecHit_layer_ =
MEMap3Inf(
this,
"det",
"RecHit Occupancy", 36, 0.5, 36.5, 8, 0.5, 8.5,
"Chamber",
"iEta");
46 this,
"rphi_occ",
"RecHit R-Phi Occupancy", 108, radS, radL, 8,
fRadiusMin_,
fRadiusMax_,
"#phi (rad)",
"R [cm]");
49 MEMap3Inf(
this,
"occ_phi",
"RecHit Phi Occupancy", 108, -5, 355,
"#phi (degree)",
"Number of RecHits");
52 "Total number of RecHits per event for each layers",
60 "Total number of RecHits per event for each eta partitions",
67 this,
"cls",
"Cluster size of RecHits",
nCLSMax_, 0.5,
nCLSMax_ + 0.5,
"Cluster size",
"Number of RecHits");
70 "Average of Cluster Sizes",
82 this,
"largeCls_occ",
"Occupancy of Large Clusters (>5)", 36, 0.5, 36.5, 8, 0.5, 8.5,
"Chamber",
"iEta");
85 this,
"cls",
"Cluster size of RecHits",
nCLSMax_, 0.5,
nCLSMax_ + 0.5, 1, 0.5, 1.5,
"Cluster size",
"iEta");
157 event.getByToken(this->
tagRecHit_, gemRecHits);
163 std::map<ME3IdsKey, Int_t> total_rechit_layer;
164 std::map<ME3IdsKey, Int_t> total_rechit_iEta;
165 std::map<ME4IdsKey, std::map<Int_t, Bool_t>> mapCLSOver5;
173 for (
auto ieta : ch.etaPartitions()) {
179 if (total_rechit_layer.find(key3) == total_rechit_layer.end())
180 total_rechit_layer[key3] = 0;
182 const auto& recHitsRange =
gemRecHits->get(eId);
186 Float_t fPhi = recHitGP.
phi();
187 if (fPhi < -5.0 / 180.0 * 3.141592)
188 fPhi += 2 * 3.141592;
201 Float_t fPhiDeg = fPhi * 180.0 / 3.141592;
205 total_rechit_layer[key3]++;
206 total_rechit_iEta[key3IEta]++;
209 Int_t nCLS =
hit->clusterSize();
215 mapCLSOver5[key4IEta][
chamber] =
true;
219 for (
auto [
key, num_total_rechit] : total_rechit_layer) {
222 for (
auto [
key, num_total_rechit] : total_rechit_iEta) {
225 for (
auto [
key, mapSub] : mapCLSOver5) {
void SetBinConfX(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< GEMChamber > gemChambers_
MEMap3Inf mapTotalRecHitPerEvtLayer_
MEMap3Inf mapCLSRecHit_ieta_
int ProcessWithMEMap3WithChamber(BookingHelper &bh, ME4IdsKey key) override
MEMap3Inf mapTotalRecHit_layer_
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
MEMap3Inf mapRecHitWheel_layer_
MEMap3Inf mapRecHitOcc_ieta_
virtual void setCurrentFolder(std::string const &fullpath)
GEMRecHitSource(const edm::ParameterSet &cfg)
int Fill(K key, Double_t x)
ME3IdsKey key4Tokey3(ME4IdsKey key)
edm::EDGetToken tagRecHit_
int SetLabelForChambers(K key, Int_t nAxis, Int_t nNumBin=-1)
int keyToIEta(ME3IdsKey key)
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void SetBinLowEdgeX(Double_t dXL)
void SetNbinsY(Int_t nBinsY)
void SetBinHighEdgeX(Double_t dXH)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
constexpr int chamber() const
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
MEMap3Inf mapRecHitOcc_phi_
int initGeometry(edm::EventSetup const &iSetup)
MEMapInfT< MEMap4Ids, ME4IdsKey > MEMap4Inf
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
MEMap3Inf mapTotalRecHitPerEvtIEta_
int SetLabelForIEta(K key, Int_t nAxis, Int_t nNumBin=-1)
Log< level::Error, false > LogError
MEMapInfT< MEMap3Ids, ME3IdsKey > MEMap3Inf
std::string log_category_
int ProcessWithMEMap3(BookingHelper &bh, ME3IdsKey key) override
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
void SetBinConfY(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
int ProcessWithMEMap2AbsReWithEta(BookingHelper &bh, ME3IdsKey key) override
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
int ProcessWithMEMap2WithEta(BookingHelper &bh, ME3IdsKey key) override
constexpr int station() const
void SetNbinsX(Int_t nBinsX)
Abs< T >::type abs(const T &t)
constexpr int ieta() const
int bookND(BookingHelper &bh, K key)
Geom::Phi< T > phi() const
int GenerateMEPerChamber(DQMStore::IBooker &ibooker)