|
|
#include <GEMRecHitSource.h>
|
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 |
|
template<typename T > |
bool | checkRefs (const std::vector< T * > &) |
|
dqm::impl::MonitorElement * | CreateSummaryHist (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 | ProcessWithMEMap2 (BookingHelper &bh, ME2IdsKey key) |
|
virtual int | ProcessWithMEMap4 (BookingHelper &bh, ME4IdsKey key) |
|
int | readRadiusEtaPartition (int nRegion, int nStation) |
|
int | SortingLayers (std::vector< ME3IdsKey > &listLayers) |
|
uint64_t | meId () const |
|
|
typedef MEMapInfT< MEMap2Ids, ME2IdsKey > | MEMap2Inf |
|
typedef MEMapInfT< MEMap3Ids, ME3IdsKey > | MEMap3Inf |
|
typedef MEMapInfT< MEMap4Ids, ME4IdsKey > | MEMap4Inf |
|
typedef dqm::reco::DQMStore | DQMStore |
|
typedef dqm::reco::MonitorElement | MonitorElement |
|
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 |
|
std::string | log_category_ |
|
std::vector< GEMChamber > | gemChambers_ |
|
const GEMGeometry * | GEMGeometry_ |
|
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_ |
|
edm::EDPutTokenT< DQMToken > | lumiToken_ |
|
edm::EDPutTokenT< DQMToken > | runToken_ |
|
unsigned int | streamId_ |
|
Definition at line 14 of file GEMRecHitSource.h.
◆ GEMRecHitSource()
◆ ~GEMRecHitSource()
GEMRecHitSource::~GEMRecHitSource |
( |
| ) |
|
|
inlineoverride |
◆ analyze()
Reimplemented from DQMEDAnalyzer.
Definition at line 155 of file GEMRecHitSource.cc.
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) {
References funct::abs(), b, relativeConstraints::chamber, GEMDetId::chamber(), GEMDQMBase::MEMapInfT< M, K >::Fill(), hydjet2DefaultParameters_cff::fR, fRadiusMax_, fRadiusMin_, GEMDQMBase::gemChambers_, GEMDQMBase::GEMGeometry_, muonGEMRecHitPSet::gemRecHit, gemRecHits_cfi::gemRecHits, GEMGeometry::idToDet(), LEDCalibrationChannels::ieta, GEMDetId::ieta(), crabWrapper::key, GEMDQMBase::key4Tokey3(), GEMDQMBase::keyToIEta(), GEMDetId::layer(), GEMDQMBase::log_category_, mapCLSAverage_, mapCLSOver5_, mapCLSPerCh_, mapCLSRecHit_ieta_, mapRecHitOcc_ieta_, mapRecHitOcc_phi_, mapRecHitWheel_layer_, GEMDQMBase::mapStationInfo_, mapTotalRecHit_layer_, mapTotalRecHitPerEvtIEta_, mapTotalRecHitPerEvtLayer_, min(), nCLSMax_, GEMDQMBase::MEStationInfo::nNumEtaPartitions_, PV3DBase< T, PVType, FrameType >::phi(), GEMDetId::region(), GEMDetId::station(), tagRecHit_, and GeomDet::toGlobal().
◆ bookHistograms()
Implements DQMEDAnalyzer.
Definition at line 27 of file GEMRecHitSource.cc.
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");
References bModeRelVal_, dqm::implementation::NavigatorBase::cd(), fRadiusMax_, fRadiusMin_, GEMDQMBase::GEMGeometry_, GEMDQMBase::GenerateMEPerChamber(), GEMDQMBase::initGeometry(), GEMDQMBase::loadChambers(), mapCLSAverage_, mapCLSOver5_, mapCLSPerCh_, mapCLSRecHit_ieta_, mapRecHitOcc_ieta_, mapRecHitOcc_phi_, mapRecHitWheel_layer_, mapTotalRecHit_layer_, mapTotalRecHitPerEvtIEta_, mapTotalRecHitPerEvtLayer_, nCLSMax_, dqm::implementation::NavigatorBase::setCurrentFolder(), and GEMDQMBase::MEMapInfT< M, K >::TurnOff().
◆ dqmBeginRun()
|
inlineoverrideprotectedvirtual |
◆ fillDescriptions()
◆ ProcessWithMEMap2AbsReWithEta()
◆ ProcessWithMEMap2WithEta()
◆ ProcessWithMEMap3()
Reimplemented from GEMDQMBase.
Definition at line 110 of file GEMRecHitSource.cc.
113 Int_t nNumVFATPerEta = stationInfo.nMaxVFAT_ / stationInfo.nNumEtaPartitions_;
References GEMDQMBase::MEMapInfT< M, K >::bookND(), crabWrapper::key, mapCLSAverage_, mapCLSOver5_, mapRecHitOcc_ieta_, mapRecHitOcc_phi_, mapRecHitWheel_layer_, GEMDQMBase::mapStationInfo_, mapTotalRecHit_layer_, mapTotalRecHitPerEvtLayer_, 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 >::SetNbinsX(), and GEMDQMBase::MEMapInfT< M, K >::SetNbinsY().
◆ ProcessWithMEMap3WithChamber()
Reimplemented from GEMDQMBase.
Definition at line 144 of file GEMRecHitSource.cc.
References GEMDQMBase::MEMapInfT< M, K >::bookND(), crabWrapper::key, GEMDQMBase::key4Tokey3(), mapCLSPerCh_, GEMDQMBase::mapStationInfo_, GEMDQMBase::MEStationInfo::nNumEtaPartitions_, GEMDQMBase::MEMapInfT< M, K >::SetBinConfY(), and GEMDQMBase::MEMapInfT< M, K >::SetLabelForIEta().
◆ bModeRelVal_
Bool_t GEMRecHitSource::bModeRelVal_ |
|
private |
◆ DigisFired_vs_eta_
std::unordered_map<UInt_t, MonitorElement*> GEMRecHitSource::DigisFired_vs_eta_ |
|
private |
◆ fRadiusMax_
Float_t GEMRecHitSource::fRadiusMax_ |
|
private |
◆ fRadiusMin_
Float_t GEMRecHitSource::fRadiusMin_ |
|
private |
◆ mapCLSAverage_
◆ mapCLSOver5_
◆ mapCLSPerCh_
◆ mapCLSRecHit_ieta_
MEMap3Inf GEMRecHitSource::mapCLSRecHit_ieta_ |
|
private |
◆ mapRecHitOcc_ieta_
MEMap3Inf GEMRecHitSource::mapRecHitOcc_ieta_ |
|
private |
◆ mapRecHitOcc_phi_
◆ mapRecHitWheel_layer_
MEMap3Inf GEMRecHitSource::mapRecHitWheel_layer_ |
|
private |
◆ mapTotalRecHit_layer_
MEMap3Inf GEMRecHitSource::mapTotalRecHit_layer_ |
|
private |
◆ mapTotalRecHitPerEvtIEta_
MEMap3Inf GEMRecHitSource::mapTotalRecHitPerEvtIEta_ |
|
private |
◆ mapTotalRecHitPerEvtLayer_
MEMap3Inf GEMRecHitSource::mapTotalRecHitPerEvtLayer_ |
|
private |
◆ nCLSMax_
Int_t GEMRecHitSource::nCLSMax_ |
|
private |
◆ nClusterSizeBinNum_
int GEMRecHitSource::nClusterSizeBinNum_ |
|
private |
◆ nIdxFirstDigi_
int GEMRecHitSource::nIdxFirstDigi_ |
|
private |
◆ recGlobalPos
std::unordered_map<UInt_t, MonitorElement*> GEMRecHitSource::recGlobalPos |
|
private |
◆ recHitME_
std::unordered_map<UInt_t, MonitorElement*> GEMRecHitSource::recHitME_ |
|
private |
◆ rh_vs_eta_
std::unordered_map<UInt_t, MonitorElement*> GEMRecHitSource::rh_vs_eta_ |
|
private |
◆ tagRecHit_
◆ VFAT_vs_ClusterSize_
std::unordered_map<UInt_t, MonitorElement*> GEMRecHitSource::VFAT_vs_ClusterSize_ |
|
private |
void SetBinConfX(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
std::vector< GEMChamber > gemChambers_
MEMap3Inf mapTotalRecHitPerEvtLayer_
MEMap3Inf mapCLSRecHit_ieta_
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)
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)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void SetBinLowEdgeX(Double_t dXL)
void SetNbinsY(Int_t nBinsY)
GEMDQMBase(const edm::ParameterSet &cfg)
void SetBinHighEdgeX(Double_t dXH)
constexpr int chamber() const
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
int initGeometry(edm::EventSetup const &iSetup)
MEMap3Inf mapRecHitOcc_phi_
MEMapInfT< MEMap4Ids, ME4IdsKey > MEMap4Inf
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_
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
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)