CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
GEMRecHitSource Class Reference

#include <GEMRecHitSource.h>

Inheritance diagram for GEMRecHitSource:
GEMDQMBase DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

 GEMRecHitSource (const edm::ParameterSet &cfg)
 
 ~GEMRecHitSource () 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
< DQMEDAnalyzerGlobalCache
initializeGlobalCache (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 getIEtaFromVFATGE11 (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 ProcessWithMEMap2 (BookingHelper &bh, ME2IdsKey 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 ProcessWithMEMap2AbsReWithEta (BookingHelper &bh, ME3IdsKey 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

std::unordered_map< UInt_t,
MonitorElement * > 
DigisFired_vs_eta_
 
Float_t fRadiusMax_
 
Float_t fRadiusMin_
 
MEMap3Inf mapCLSAverage_
 
MEMap3Inf mapCLSOver5_
 
MEMap4Inf mapCLSPerCh_
 
MEMap3Inf mapCLSRecHit_ieta_
 
MEMap3Inf mapRecHitOcc_ieta_
 
MEMap3Inf mapRecHitOcc_phi_
 
MEMap3Inf mapRecHitWheel_layer_
 
MEMap3Inf mapRecHitXY_layer_
 
MEMap3Inf mapTotalRecHitPerEvtIEta_
 
MEMap3Inf mapTotalRecHitPerEvtLayer_
 
Int_t nCLSMax_
 
int nClusterSizeBinNum_
 
int nIdxFirstDigi_
 
int nNumDivideEtaPartitionInRPhi_
 
std::unordered_map< UInt_t,
MonitorElement * > 
recGlobalPos
 
std::unordered_map< UInt_t,
MonitorElement * > 
recHitME_
 
std::unordered_map< UInt_t,
MonitorElement * > 
rh_vs_eta_
 
std::string strFolderMain_
 
edm::EDGetToken tagRecHit_
 
std::unordered_map< UInt_t,
MonitorElement * > 
VFAT_vs_ClusterSize_
 

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,
ME2IdsKey
MEMap2Inf
 
typedef MEMapInfT< MEMap3Ids,
ME3IdsKey
MEMap3Inf
 
typedef MEMapInfT< MEMap4Ids,
ME4IdsKey
MEMap4Inf
 
- 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,
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_
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 14 of file GEMRecHitSource.h.

Constructor & Destructor Documentation

GEMRecHitSource::GEMRecHitSource ( const edm::ParameterSet cfg)
explicit

Definition at line 6 of file GEMRecHitSource.cc.

References edm::ParameterSet::getParameter(), nCLSMax_, nClusterSizeBinNum_, nIdxFirstDigi_, nNumDivideEtaPartitionInRPhi_, and tagRecHit_.

6  : GEMDQMBase(cfg) {
7  tagRecHit_ = consumes<GEMRecHitCollection>(cfg.getParameter<edm::InputTag>("recHitsInputLabel"));
8 
9  nIdxFirstDigi_ = cfg.getParameter<int>("idxFirstDigi");
10  nNumDivideEtaPartitionInRPhi_ = cfg.getParameter<int>("numDivideEtaPartitionInRPhi");
11  nCLSMax_ = cfg.getParameter<int>("clsMax");
12  nClusterSizeBinNum_ = cfg.getParameter<int>("ClusterSizeBinNum");
13 }
int nNumDivideEtaPartitionInRPhi_
edm::EDGetToken tagRecHit_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
GEMDQMBase(const edm::ParameterSet &cfg)
Definition: GEMDQMBase.cc:7
GEMRecHitSource::~GEMRecHitSource ( )
inlineoverride

Definition at line 17 of file GEMRecHitSource.h.

17 {};

Member Function Documentation

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

Reimplemented from DQMEDAnalyzer.

Definition at line 182 of file GEMRecHitSource.cc.

References funct::abs(), b, GEMDetId::chamber(), GEMDQMBase::MEMapInfT< M, K >::Fill(), GEMDQMBase::MEStationInfo::fMinPhi_, GEMDQMBase::gemChambers_, GEMDQMBase::GEMGeometry_, muonGEMRecHitPSet::gemRecHit, gemRecHits_cfi::gemRecHits, GEMGeometry::idToDet(), GEMDetId::ieta(), edm::HandleBase::isValid(), submitPVResolutionJobs::key, GEMDQMBase::key4Tokey3(), GEMDQMBase::keyToIEta(), GEMDetId::layer(), GEMDQMBase::log_category_, M_PI, mapCLSAverage_, mapCLSOver5_, mapCLSPerCh_, mapCLSRecHit_ieta_, mapRecHitOcc_ieta_, mapRecHitOcc_phi_, mapRecHitWheel_layer_, mapRecHitXY_layer_, GEMDQMBase::mapStationInfo_, mapTotalRecHitPerEvtIEta_, mapTotalRecHitPerEvtLayer_, SiStripPI::max, SiStripPI::min, nCLSMax_, nNumDivideEtaPartitionInRPhi_, PV3DBase< T, PVType, FrameType >::phi(), GEMDetId::region(), GEMDQMBase::restrictAngle(), GEMDetId::station(), tagRecHit_, GeomDet::toGlobal(), PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().

182  {
184  event.getByToken(this->tagRecHit_, gemRecHits);
185  if (!gemRecHits.isValid()) {
186  edm::LogError(log_category_) << "GEM RecHit is not valid.\n";
187  return;
188  }
189 
190  std::map<ME3IdsKey, Int_t> total_rechit_layer;
191  std::map<ME3IdsKey, Int_t> total_rechit_iEta;
192  std::map<ME4IdsKey, std::map<Int_t, Bool_t>> mapCLSOver5;
193 
194  for (const auto& ch : gemChambers_) {
195  GEMDetId gid = ch.id();
196  auto chamber = gid.chamber();
197  ME3IdsKey key3{gid.region(), gid.station(), gid.layer()};
198  ME4IdsKey key4Ch{gid.region(), gid.station(), gid.layer(), gid.chamber()};
199  MEStationInfo& stationInfo = mapStationInfo_[key3];
200  for (auto iEta : ch.etaPartitions()) {
201  GEMDetId eId = iEta->id();
202  ME3IdsKey key3IEta{gid.region(), gid.station(), eId.ieta()};
203  ME3IdsKey key3AbsReIEta{std::abs(gid.region()), gid.station(), eId.ieta()};
204  ME4IdsKey key4IEta{gid.region(), gid.station(), gid.layer(), eId.ieta()};
205 
206  if (total_rechit_layer.find(key3) == total_rechit_layer.end())
207  total_rechit_layer[key3] = 0;
208 
209  const auto& recHitsRange = gemRecHits->get(eId);
210  auto gemRecHit = recHitsRange.first;
211  for (auto hit = gemRecHit; hit != recHitsRange.second; ++hit) {
212  LocalPoint recHitLP = hit->localPosition();
213  GlobalPoint recHitGP = GEMGeometry_->idToDet(hit->gemId())->surface().toGlobal(recHitLP);
214 
215  // Filling of XY occupancy
216  mapRecHitXY_layer_.Fill(key3, recHitGP.x(), recHitGP.y());
217 
218  // Filling of R-Phi occupancy
219  // Trick: It would be efficient to find a phi-partition of the eta partition
220  // in which the recHit places from the 'strip position' of the recHit position
221  Int_t nOffset = chamber * nNumDivideEtaPartitionInRPhi_;
222  Float_t fStripRecHit = iEta->strip(recHitLP);
223  Int_t nStripRecHit = Int_t(fStripRecHit / iEta->nstrips() * nNumDivideEtaPartitionInRPhi_);
224  nStripRecHit = std::min(std::max(0, nStripRecHit), nNumDivideEtaPartitionInRPhi_ - 1);
225  mapRecHitWheel_layer_.Fill(key3, nOffset + nStripRecHit, eId.ieta());
226 
227  // Filling of RecHit (iEta)
228  mapRecHitOcc_ieta_.Fill(key3, eId.ieta());
229 
230  // Filling of RecHit (phi)
231  Float_t fPhi = recHitGP.phi();
232  Float_t fPhiShift = restrictAngle(fPhi, stationInfo.fMinPhi_);
233  Float_t fPhiDeg = fPhiShift * 180.0 / M_PI;
234  mapRecHitOcc_phi_.Fill(key3, fPhiDeg);
235 
236  // For total RecHits
237  total_rechit_layer[key3]++;
238  total_rechit_iEta[key3IEta]++;
239 
240  // Filling of cluster size (CLS)
241  Int_t nCLS = hit->clusterSize();
242  Int_t nCLSCutOff = std::min(nCLS, nCLSMax_); // For overflow
243  mapCLSRecHit_ieta_.Fill(key3AbsReIEta, nCLSCutOff);
244  mapCLSPerCh_.Fill(key4Ch, nCLSCutOff, eId.ieta());
245  mapCLSAverage_.Fill(key3, (Double_t)chamber, (Double_t)eId.ieta(), nCLS);
246  if (nCLS > 5)
247  mapCLSOver5[key4IEta][chamber] = true;
248  }
249  }
250  }
251  for (auto [key, num_total_rechit] : total_rechit_layer) {
252  mapTotalRecHitPerEvtLayer_.Fill(key, num_total_rechit);
253  }
254  for (auto [key, num_total_rechit] : total_rechit_iEta) {
255  mapTotalRecHitPerEvtIEta_.Fill(key, num_total_rechit);
256  }
257  for (auto [key, mapSub] : mapCLSOver5) {
258  for (auto [chamber, b] : mapSub) {
260  }
261  }
262 }
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
Definition: GeomDet.h:49
std::tuple< Int_t, Int_t, Int_t, Int_t > ME4IdsKey
const GeomDet * idToDet(DetId) const override
Definition: GEMGeometry.cc:25
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
T y() const
Definition: PV3DBase.h:60
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:585
Log< level::Error, false > LogError
MEMap3Inf mapRecHitOcc_ieta_
int Fill(K key, Double_t x)
Definition: GEMDQMBase.h:380
int nNumDivideEtaPartitionInRPhi_
std::string log_category_
Definition: GEMDQMBase.h:518
constexpr int ieta() const
Definition: GEMDetId.h:199
MEMap3Inf mapCLSOver5_
MEMap3Inf mapRecHitXY_layer_
MEMap3Inf mapTotalRecHitPerEvtIEta_
constexpr int region() const
Definition: GEMDetId.h:171
Float_t restrictAngle(const Float_t fTheta, const Float_t fStart)
Definition: GEMDQMBase.h:639
std::vector< GEMChamber > gemChambers_
Definition: GEMDQMBase.h:574
tuple key
prepare the HTCondor submission files and eventually submit them
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
edm::EDGetToken tagRecHit_
MEMap3Inf mapRecHitOcc_phi_
bool isValid() const
Definition: HandleBase.h:70
MEMap3Inf mapRecHitWheel_layer_
MEMap4Inf mapCLSPerCh_
#define M_PI
MEMap3Inf mapCLSAverage_
MEMap3Inf mapCLSRecHit_ieta_
const GEMGeometry * GEMGeometry_
Definition: GEMDQMBase.h:571
MEMap3Inf mapTotalRecHitPerEvtLayer_
constexpr int chamber() const
Definition: GEMDetId.h:183
constexpr int layer() const
Definition: GEMDetId.h:190
constexpr int station() const
Definition: GEMDetId.h:179
double b
Definition: hdecay.h:118
ME3IdsKey key4Tokey3(ME4IdsKey key)
Definition: GEMDQMBase.h:549
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
T x() const
Definition: PV3DBase.h:59
int keyToIEta(ME3IdsKey key)
Definition: GEMDQMBase.h:541
void GEMRecHitSource::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  ,
edm::EventSetup const &  iSetup 
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 30 of file GEMRecHitSource.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, mapCLSAverage_, mapCLSOver5_, mapCLSPerCh_, mapCLSRecHit_ieta_, mapRecHitOcc_ieta_, mapRecHitOcc_phi_, mapRecHitWheel_layer_, mapRecHitXY_layer_, mapTotalRecHitPerEvtIEta_, mapTotalRecHitPerEvtLayer_, nCLSMax_, GEMDQMBase::nRunType_, dqm::implementation::NavigatorBase::setCurrentFolder(), GEMDQMBase::MEMapInfT< M, K >::SetNoUnderOverflowBin(), strFolderMain_, and GEMDQMBase::MEMapInfT< M, K >::TurnOff().

30  {
31  std::vector<GEMDetId> listLayerOcc;
32 
33  initGeometry(iSetup);
34  if (GEMGeometry_ == nullptr)
35  return;
36  loadChambers();
37 
38  strFolderMain_ = "GEM/RecHits";
39 
40  ibooker.cd();
42 
43  fRadiusMin_ = 120.0;
44  fRadiusMax_ = 250.0;
45  float radS = -5.0 / 180 * M_PI;
46  float radL = 355.0 / 180 * M_PI;
47 
49  MEMap3Inf(this, "occ_rphi", "RecHit R-Phi Occupancy", 360, radS, radL, 8, 0, 8, "Phi-direction division", "iEta");
51  MEMap3Inf(this, "occ_xy", "RecHit xy Occupancy", 160, -250, 250, 160, -250, 250, "X [cm]", "Y [cm]");
52  mapRecHitOcc_ieta_ = MEMap3Inf(this, "occ_ieta", "RecHit iEta Occupancy", 8, 0.5, 8.5, "iEta", "Number of RecHits");
54  MEMap3Inf(this, "occ_phi", "RecHit Phi Occupancy", 72, -5, 355, "#phi (degree)", "Number of RecHits");
56  "rechits_per_layer",
57  "Total number of RecHits per event for each layers",
58  2000,
59  -0.5,
60  2000 - 0.5,
61  "Number of RecHits",
62  "Events");
65  "rechits_per_ieta",
66  "Total number of RecHits per event for each eta partitions",
67  300,
68  -0.5,
69  300 - 0.5,
70  "Number of RecHits",
71  "Events");
74  this, "cls", "Cluster size of RecHits", nCLSMax_, 0.5, nCLSMax_ + 0.5, "Cluster size", "Number of RecHits");
75  mapCLSAverage_ = MEMap3Inf(this, // TProfile2D
76  "rechit_average",
77  "Average of Cluster Sizes",
78  36,
79  0.5,
80  36.5,
81  8,
82  0.5,
83  8.5,
84  0,
85  400, // For satefy, larger than 384
86  "Chamber",
87  "iEta");
89  this, "largeCls_occ", "Occupancy of Large Clusters (>5)", 36, 0.5, 36.5, 8, 0.5, 8.5, "Chamber", "iEta");
90 
92  this, "cls", "Cluster size of RecHits", nCLSMax_, 0.5, nCLSMax_ + 0.5, 1, 0.5, 1.5, "Cluster size", "iEta");
93 
98  }
99 
105  }
106 
109  }
110 
115  }
116 
120  }
121 
122  GenerateMEPerChamber(ibooker);
123 }
MEMapInfT< MEMap4Ids, ME4IdsKey > MEMap4Inf
Definition: GEMDQMBase.h:460
Int_t nRunType_
Definition: GEMDQMBase.h:516
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:31
int loadChambers()
Definition: GEMDQMBase.cc:62
MEMap3Inf mapRecHitOcc_ieta_
MEMap3Inf mapCLSOver5_
MEMap3Inf mapRecHitXY_layer_
MEMap3Inf mapTotalRecHitPerEvtIEta_
int GenerateMEPerChamber(DQMStore::IBooker &ibooker)
Definition: GEMDQMBase.cc:174
MEMap3Inf mapRecHitOcc_phi_
MEMap3Inf mapRecHitWheel_layer_
std::string strFolderMain_
MEMap4Inf mapCLSPerCh_
#define M_PI
MEMap3Inf mapCLSAverage_
MEMap3Inf mapCLSRecHit_ieta_
const GEMGeometry * GEMGeometry_
Definition: GEMDQMBase.h:571
MEMap3Inf mapTotalRecHitPerEvtLayer_
void SetNoUnderOverflowBin()
Definition: GEMDQMBase.h:247
void GEMRecHitSource::dqmBeginRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverrideprotectedvirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 21 of file GEMRecHitSource.h.

21 {};
void GEMRecHitSource::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 15 of file GEMRecHitSource.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

15  {
17  desc.add<edm::InputTag>("recHitsInputLabel", edm::InputTag("gemRecHits", ""));
18  desc.addUntracked<std::string>("runType", "online");
19 
20  desc.add<int>("idxFirstDigi", 0);
21  desc.add<int>("numDivideEtaPartitionInRPhi", 10);
22  desc.add<int>("clsMax", 10);
23  desc.add<int>("ClusterSizeBinNum", 9);
24 
25  desc.addUntracked<std::string>("logCategory", "GEMRecHitSource");
26 
27  descriptions.add("GEMRecHitSource", desc);
28 }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
int GEMRecHitSource::ProcessWithMEMap2AbsReWithEta ( BookingHelper bh,
ME3IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 131 of file GEMRecHitSource.cc.

References GEMDQMBase::MEMapInfT< M, K >::bookND(), and mapCLSRecHit_ieta_.

131  {
133 
134  return 0;
135 }
tuple key
prepare the HTCondor submission files and eventually submit them
MEMap3Inf mapCLSRecHit_ieta_
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:307
int GEMRecHitSource::ProcessWithMEMap2WithEta ( BookingHelper bh,
ME3IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 125 of file GEMRecHitSource.cc.

References GEMDQMBase::MEMapInfT< M, K >::bookND(), and mapTotalRecHitPerEvtIEta_.

125  {
127 
128  return 0;
129 }
MEMap3Inf mapTotalRecHitPerEvtIEta_
tuple key
prepare the HTCondor submission files and eventually submit them
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:307
int GEMRecHitSource::ProcessWithMEMap3 ( BookingHelper bh,
ME3IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 137 of file GEMRecHitSource.cc.

References GEMDQMBase::MEMapInfT< M, K >::bookND(), GEMDQMBase::MEStationInfo::fMinPhi_, submitPVResolutionJobs::key, M_PI, mapCLSAverage_, mapCLSOver5_, mapRecHitOcc_ieta_, mapRecHitOcc_phi_, mapRecHitWheel_layer_, mapRecHitXY_layer_, GEMDQMBase::mapStationInfo_, mapTotalRecHitPerEvtLayer_, GEMDQMBase::MEStationInfo::nNumChambers_, nNumDivideEtaPartitionInRPhi_, GEMDQMBase::MEStationInfo::nNumEtaPartitions_, GEMDQMBase::MEMapInfT< M, K >::SetBinConfX(), GEMDQMBase::MEMapInfT< M, K >::SetBinHighEdgeX(), GEMDQMBase::MEMapInfT< M, K >::SetBinLowEdgeX(), GEMDQMBase::MEMapInfT< M, K >::SetLabelForChambers(), GEMDQMBase::MEMapInfT< M, K >::SetLabelForIEta(), and GEMDQMBase::MEMapInfT< M, K >::SetNbinsY().

137  {
138  MEStationInfo& stationInfo = mapStationInfo_[key];
139 
140  Int_t nNumPartX = stationInfo.nNumChambers_ * nNumDivideEtaPartitionInRPhi_;
142  mapRecHitWheel_layer_.SetNbinsY(stationInfo.nNumEtaPartitions_);
144 
146 
147  mapRecHitOcc_ieta_.SetBinConfX(stationInfo.nNumEtaPartitions_);
150 
151  mapRecHitOcc_phi_.SetBinLowEdgeX(stationInfo.fMinPhi_ * 180 / M_PI);
152  mapRecHitOcc_phi_.SetBinHighEdgeX(stationInfo.fMinPhi_ * 180 / M_PI + 360);
154 
156 
158  mapCLSOver5_.bookND(bh, key);
163 
164  return 0;
165 }
int SetLabelForChambers(K key, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:337
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:585
void SetBinHighEdgeX(Double_t dXH)
Definition: GEMDQMBase.h:266
MEMap3Inf mapRecHitOcc_ieta_
int nNumDivideEtaPartitionInRPhi_
MEMap3Inf mapCLSOver5_
MEMap3Inf mapRecHitXY_layer_
void SetBinLowEdgeX(Double_t dXL)
Definition: GEMDQMBase.h:264
tuple key
prepare the HTCondor submission files and eventually submit them
void SetNbinsY(Int_t nBinsY)
Definition: GEMDQMBase.h:270
MEMap3Inf mapRecHitOcc_phi_
MEMap3Inf mapRecHitWheel_layer_
#define M_PI
MEMap3Inf mapCLSAverage_
MEMap3Inf mapTotalRecHitPerEvtLayer_
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 SetBinConfX(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
Definition: GEMDQMBase.h:281
int GEMRecHitSource::ProcessWithMEMap3WithChamber ( BookingHelper bh,
ME4IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 167 of file GEMRecHitSource.cc.

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

167  {
168  ME3IdsKey key3 = key4Tokey3(key);
169  MEStationInfo& stationInfo = mapStationInfo_[key3];
170 
171  bh.getBooker()->setCurrentFolder(strFolderMain_ + "/clusterSize_" + getNameDirLayer(key3));
172 
173  mapCLSPerCh_.SetBinConfY(stationInfo.nNumEtaPartitions_);
174  mapCLSPerCh_.bookND(bh, key);
176 
177  bh.getBooker()->setCurrentFolder(strFolderMain_);
178 
179  return 0;
180 }
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:585
tuple key
prepare the HTCondor submission files and eventually submit them
std::string strFolderMain_
MEMap4Inf mapCLSPerCh_
int SetLabelForIEta(K key, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:357
std::string getNameDirLayer(ME3IdsKey key3)
Definition: GEMDQMBase.h:645
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:307
ME3IdsKey key4Tokey3(ME4IdsKey key)
Definition: GEMDQMBase.h:549
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
void SetBinConfY(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
Definition: GEMDQMBase.h:289

Member Data Documentation

std::unordered_map<UInt_t, MonitorElement*> GEMRecHitSource::DigisFired_vs_eta_
private

Definition at line 57 of file GEMRecHitSource.h.

Float_t GEMRecHitSource::fRadiusMax_
private

Definition at line 53 of file GEMRecHitSource.h.

Referenced by bookHistograms().

Float_t GEMRecHitSource::fRadiusMin_
private

Definition at line 52 of file GEMRecHitSource.h.

Referenced by bookHistograms().

MEMap3Inf GEMRecHitSource::mapCLSAverage_
private

Definition at line 44 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapCLSOver5_
private

Definition at line 45 of file GEMRecHitSource.h.

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

MEMap4Inf GEMRecHitSource::mapCLSPerCh_
private

Definition at line 47 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapCLSRecHit_ieta_
private

Definition at line 43 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapRecHitOcc_ieta_
private

Definition at line 39 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapRecHitOcc_phi_
private

Definition at line 40 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapRecHitWheel_layer_
private

Definition at line 38 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapRecHitXY_layer_
private

Definition at line 37 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapTotalRecHitPerEvtIEta_
private

Definition at line 42 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapTotalRecHitPerEvtLayer_
private

Definition at line 41 of file GEMRecHitSource.h.

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

Int_t GEMRecHitSource::nCLSMax_
private

Definition at line 51 of file GEMRecHitSource.h.

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

int GEMRecHitSource::nClusterSizeBinNum_
private

Definition at line 34 of file GEMRecHitSource.h.

Referenced by GEMRecHitSource().

int GEMRecHitSource::nIdxFirstDigi_
private

Definition at line 33 of file GEMRecHitSource.h.

Referenced by GEMRecHitSource().

int GEMRecHitSource::nNumDivideEtaPartitionInRPhi_
private

Definition at line 35 of file GEMRecHitSource.h.

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

std::unordered_map<UInt_t, MonitorElement*> GEMRecHitSource::recGlobalPos
private

Definition at line 59 of file GEMRecHitSource.h.

std::unordered_map<UInt_t, MonitorElement*> GEMRecHitSource::recHitME_
private

Definition at line 55 of file GEMRecHitSource.h.

std::unordered_map<UInt_t, MonitorElement*> GEMRecHitSource::rh_vs_eta_
private

Definition at line 58 of file GEMRecHitSource.h.

std::string GEMRecHitSource::strFolderMain_
private

Definition at line 49 of file GEMRecHitSource.h.

Referenced by bookHistograms(), and ProcessWithMEMap3WithChamber().

edm::EDGetToken GEMRecHitSource::tagRecHit_
private

Definition at line 31 of file GEMRecHitSource.h.

Referenced by analyze(), and GEMRecHitSource().

std::unordered_map<UInt_t, MonitorElement*> GEMRecHitSource::VFAT_vs_ClusterSize_
private

Definition at line 56 of file GEMRecHitSource.h.