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)
 
 ~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)
 
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

Bool_t bModeRelVal_
 
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 mapTotalRecHit_layer_
 
MEMap3Inf mapTotalRecHitPerEvtIEta_
 
MEMap3Inf mapTotalRecHitPerEvtLayer_
 
Int_t nCLSMax_
 
int nClusterSizeBinNum_
 
int nIdxFirstDigi_
 
std::unordered_map< UInt_t,
MonitorElement * > 
recGlobalPos
 
std::unordered_map< UInt_t,
MonitorElement * > 
recHitME_
 
std::unordered_map< UInt_t,
MonitorElement * > 
rh_vs_eta_
 
edm::EDGetToken tagRecHit_
 
std::unordered_map< UInt_t,
MonitorElement * > 
VFAT_vs_ClusterSize_
 

Additional Inherited Members

- Public Types inherited from GEMDQMBase
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_
 
- 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 bModeRelVal_, edm::ParameterSet::getParameter(), nCLSMax_, nClusterSizeBinNum_, nIdxFirstDigi_, and tagRecHit_.

6  : GEMDQMBase(cfg) {
7  tagRecHit_ = consumes<GEMRecHitCollection>(cfg.getParameter<edm::InputTag>("recHitsInputLabel"));
8 
9  nIdxFirstDigi_ = cfg.getParameter<int>("idxFirstDigi");
10  nCLSMax_ = cfg.getParameter<int>("clsMax");
11  nClusterSizeBinNum_ = cfg.getParameter<int>("ClusterSizeBinNum");
12  bModeRelVal_ = cfg.getParameter<bool>("modeRelVal");
13 }
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 172 of file GEMRecHitSource.cc.

References funct::abs(), b, GEMDetId::chamber(), GEMDQMBase::MEMapInfT< M, K >::Fill(), GEMDQMBase::MEStationInfo::fMinPhi_, fRadiusMax_, fRadiusMin_, 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_, GEMDQMBase::mapStationInfo_, mapTotalRecHit_layer_, mapTotalRecHitPerEvtIEta_, mapTotalRecHitPerEvtLayer_, SiStripPI::min, nCLSMax_, GEMDQMBase::MEStationInfo::nNumEtaPartitions_, PV3DBase< T, PVType, FrameType >::phi(), GEMDetId::region(), GEMDQMBase::restrictAngle(), GEMDetId::station(), tagRecHit_, and GeomDet::toGlobal().

172  {
174  event.getByToken(this->tagRecHit_, gemRecHits);
175  if (!gemRecHits.isValid()) {
176  edm::LogError(log_category_) << "GEM RecHit is not valid.\n";
177  return;
178  }
179 
180  std::map<ME3IdsKey, Int_t> total_rechit_layer;
181  std::map<ME3IdsKey, Int_t> total_rechit_iEta;
182  std::map<ME4IdsKey, std::map<Int_t, Bool_t>> mapCLSOver5;
183 
184  for (const auto& ch : gemChambers_) {
185  GEMDetId gid = ch.id();
186  auto chamber = gid.chamber();
187  ME3IdsKey key3{gid.region(), gid.station(), gid.layer()};
188  ME4IdsKey key4Ch{gid.region(), gid.station(), gid.layer(), gid.chamber()};
189  MEStationInfo& stationInfo = mapStationInfo_[key3];
190  for (auto ieta : ch.etaPartitions()) {
191  GEMDetId eId = ieta->id();
192  ME3IdsKey key3IEta{gid.region(), gid.station(), eId.ieta()};
193  ME3IdsKey key3AbsReIEta{std::abs(gid.region()), gid.station(), eId.ieta()};
194  ME4IdsKey key4IEta{gid.region(), gid.station(), gid.layer(), eId.ieta()};
195 
196  if (total_rechit_layer.find(key3) == total_rechit_layer.end())
197  total_rechit_layer[key3] = 0;
198 
199  const auto& recHitsRange = gemRecHits->get(eId);
200  auto gemRecHit = recHitsRange.first;
201  for (auto hit = gemRecHit; hit != recHitsRange.second; ++hit) {
202  GlobalPoint recHitGP = GEMGeometry_->idToDet(hit->gemId())->surface().toGlobal(hit->localPosition());
203  Float_t fPhi = recHitGP.phi();
204 
205  // Filling of RecHit occupancy
206  mapTotalRecHit_layer_.Fill(key3, chamber, eId.ieta());
207 
208  // Filling of R-Phi occupancy
209  Float_t fR = fRadiusMin_ + (fRadiusMax_ - fRadiusMin_) * (eId.ieta() - 0.5) / stationInfo.nNumEtaPartitions_;
210  Float_t fPhiShift = restrictAngle(fPhi, stationInfo.fMinPhi_);
211  Float_t fPhiDeg = fPhiShift * 180.0 / M_PI;
212  mapRecHitWheel_layer_.Fill(key3, fPhiShift, fR);
213 
214  // Filling of RecHit (iEta)
215  mapRecHitOcc_ieta_.Fill(key3, eId.ieta());
216 
217  // Filling of RecHit (phi)
218  mapRecHitOcc_phi_.Fill(key3, fPhiDeg);
219 
220  // For total RecHits
221  total_rechit_layer[key3]++;
222  total_rechit_iEta[key3IEta]++;
223 
224  // Filling of cluster size (CLS)
225  Int_t nCLS = hit->clusterSize();
226  Int_t nCLSCutOff = std::min(nCLS, nCLSMax_); // For overflow
227  mapCLSRecHit_ieta_.Fill(key3AbsReIEta, nCLSCutOff);
228  mapCLSPerCh_.Fill(key4Ch, nCLSCutOff, eId.ieta());
229  mapCLSAverage_.Fill(key3, (Double_t)chamber, (Double_t)eId.ieta(), nCLS);
230  if (nCLS > 5)
231  mapCLSOver5[key4IEta][chamber] = true;
232  }
233  }
234  }
235  for (auto [key, num_total_rechit] : total_rechit_layer) {
236  mapTotalRecHitPerEvtLayer_.Fill(key, num_total_rechit);
237  }
238  for (auto [key, num_total_rechit] : total_rechit_iEta) {
239  mapTotalRecHitPerEvtIEta_.Fill(key, num_total_rechit);
240  }
241  for (auto [key, mapSub] : mapCLSOver5) {
242  for (auto [chamber, b] : mapSub) {
244  }
245  }
246 }
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
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:564
Log< level::Error, false > LogError
MEMap3Inf mapRecHitOcc_ieta_
int Fill(K key, Double_t x)
Definition: GEMDQMBase.h:377
std::string log_category_
Definition: GEMDQMBase.h:496
constexpr int ieta() const
Definition: GEMDetId.h:199
MEMap3Inf mapCLSOver5_
MEMap3Inf mapTotalRecHitPerEvtIEta_
constexpr int region() const
Definition: GEMDetId.h:171
Float_t restrictAngle(const Float_t fTheta, const Float_t fStart)
Definition: GEMDQMBase.h:618
std::vector< GEMChamber > gemChambers_
Definition: GEMDQMBase.h:553
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 mapTotalRecHit_layer_
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:550
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:529
std::tuple< Int_t, Int_t, Int_t > ME3IdsKey
int keyToIEta(ME3IdsKey key)
Definition: GEMDQMBase.h:521
void GEMRecHitSource::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  ,
edm::EventSetup const &  iSetup 
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 29 of file GEMRecHitSource.cc.

References bModeRelVal_, dqm::implementation::NavigatorBase::cd(), fRadiusMax_, fRadiusMin_, GEMDQMBase::GEMGeometry_, GEMDQMBase::GenerateMEPerChamber(), GEMDQMBase::initGeometry(), GEMDQMBase::loadChambers(), M_PI, mapCLSAverage_, mapCLSOver5_, mapCLSPerCh_, mapCLSRecHit_ieta_, mapRecHitOcc_ieta_, mapRecHitOcc_phi_, mapRecHitWheel_layer_, mapTotalRecHit_layer_, mapTotalRecHitPerEvtIEta_, mapTotalRecHitPerEvtLayer_, nCLSMax_, dqm::implementation::NavigatorBase::setCurrentFolder(), GEMDQMBase::MEMapInfT< M, K >::SetNoUnderOverflowBin(), and GEMDQMBase::MEMapInfT< M, K >::TurnOff().

29  {
30  std::vector<GEMDetId> listLayerOcc;
31 
32  initGeometry(iSetup);
33  if (GEMGeometry_ == nullptr)
34  return;
35  loadChambers();
36 
37  ibooker.cd();
38  ibooker.setCurrentFolder("GEM/RecHits");
39 
40  fRadiusMin_ = 120.0;
41  fRadiusMax_ = 250.0;
42  float radS = -5.0 / 180 * M_PI;
43  float radL = 355.0 / 180 * M_PI;
44 
45  mapTotalRecHit_layer_ = MEMap3Inf(this, "det", "RecHit Occupancy", 36, 0.5, 36.5, 8, 0.5, 8.5, "Chamber", "iEta");
47  this, "rphi_occ", "RecHit R-Phi Occupancy", 360, radS, radL, 8, fRadiusMin_, fRadiusMax_, "#phi (rad)", "R [cm]");
48  mapRecHitOcc_ieta_ = MEMap3Inf(this, "occ_ieta", "RecHit iEta Occupancy", 8, 0.5, 8.5, "iEta", "Number of RecHits");
50  MEMap3Inf(this, "occ_phi", "RecHit Phi Occupancy", 360, -5, 355, "#phi (degree)", "Number of RecHits");
52  "rechits_per_layer",
53  "Total number of RecHits per event for each layers",
54  2000,
55  -0.5,
56  2000 - 0.5,
57  "Number of RecHits",
58  "Events");
61  "rechits_per_ieta",
62  "Total number of RecHits per event for each eta partitions",
63  300,
64  -0.5,
65  300 - 0.5,
66  "Number of RecHits",
67  "Events");
70  this, "cls", "Cluster size of RecHits", nCLSMax_, 0.5, nCLSMax_ + 0.5, "Cluster size", "Number of RecHits");
71  mapCLSAverage_ = MEMap3Inf(this, // TProfile2D
72  "rechit_average",
73  "Average of Cluster Sizes",
74  36,
75  0.5,
76  36.5,
77  8,
78  0.5,
79  8.5,
80  0,
81  400, // For satefy, larger than 384
82  "Chamber",
83  "iEta");
85  this, "largeCls_occ", "Occupancy of Large Clusters (>5)", 36, 0.5, 36.5, 8, 0.5, 8.5, "Chamber", "iEta");
86 
88  this, "cls", "Cluster size of RecHits", nCLSMax_, 0.5, nCLSMax_ + 0.5, 1, 0.5, 1.5, "Cluster size", "iEta");
89 
90  if (bModeRelVal_) {
96  }
97 
98  GenerateMEPerChamber(ibooker);
99 }
MEMapInfT< MEMap4Ids, ME4IdsKey > MEMap4Inf
Definition: GEMDQMBase.h:457
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
MEMapInfT< MEMap3Ids, ME3IdsKey > MEMap3Inf
Definition: GEMDQMBase.h:456
int initGeometry(edm::EventSetup const &iSetup)
Definition: GEMDQMBase.cc:15
int loadChambers()
Definition: GEMDQMBase.cc:46
MEMap3Inf mapRecHitOcc_ieta_
MEMap3Inf mapCLSOver5_
MEMap3Inf mapTotalRecHitPerEvtIEta_
int GenerateMEPerChamber(DQMStore::IBooker &ibooker)
Definition: GEMDQMBase.cc:161
MEMap3Inf mapTotalRecHit_layer_
MEMap3Inf mapRecHitOcc_phi_
MEMap3Inf mapRecHitWheel_layer_
MEMap4Inf mapCLSPerCh_
#define M_PI
MEMap3Inf mapCLSAverage_
MEMap3Inf mapCLSRecHit_ieta_
const GEMGeometry * GEMGeometry_
Definition: GEMDQMBase.h:550
MEMap3Inf mapTotalRecHitPerEvtLayer_
void SetNoUnderOverflowBin()
Definition: GEMDQMBase.h:245
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 
19  desc.add<int>("idxFirstDigi", 0);
20  desc.add<int>("clsMax", 10);
21  desc.add<int>("ClusterSizeBinNum", 9);
22  desc.add<bool>("modeRelVal", false);
23 
24  desc.addUntracked<std::string>("logCategory", "GEMRecHitSource");
25 
26  descriptions.add("GEMRecHitSource", desc);
27 }
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 117 of file GEMRecHitSource.cc.

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

117  {
119 
120  return 0;
121 }
tuple key
prepare the HTCondor submission files and eventually submit them
MEMap3Inf mapCLSRecHit_ieta_
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:305
int GEMRecHitSource::ProcessWithMEMap2WithEta ( BookingHelper bh,
ME3IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 111 of file GEMRecHitSource.cc.

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

111  {
113 
114  return 0;
115 }
MEMap3Inf mapTotalRecHitPerEvtIEta_
tuple key
prepare the HTCondor submission files and eventually submit them
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:305
int GEMRecHitSource::ProcessWithMEMap3 ( BookingHelper bh,
ME3IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 123 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_, 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().

123  {
124  MEStationInfo& stationInfo = mapStationInfo_[key];
125 
126  Int_t nNumVFATPerEta = stationInfo.nMaxVFAT_ / stationInfo.nNumEtaPartitions_;
127 
128  mapTotalRecHit_layer_.SetBinConfX(stationInfo.nNumChambers_);
129  mapTotalRecHit_layer_.SetBinConfY(stationInfo.nNumEtaPartitions_);
133 
134  mapRecHitWheel_layer_.SetBinLowEdgeX(stationInfo.fMinPhi_);
135  mapRecHitWheel_layer_.SetBinHighEdgeX(stationInfo.fMinPhi_ + 2 * M_PI);
136  mapRecHitWheel_layer_.SetNbinsX(nNumVFATPerEta * stationInfo.nNumChambers_);
137  mapRecHitWheel_layer_.SetNbinsY(stationInfo.nNumEtaPartitions_);
139  //SetupRPhiPlot(key);
140 
141  mapRecHitOcc_ieta_.SetBinConfX(stationInfo.nNumEtaPartitions_);
144 
145  mapRecHitOcc_phi_.SetBinLowEdgeX(stationInfo.fMinPhi_ * 180 / M_PI);
146  mapRecHitOcc_phi_.SetBinHighEdgeX(stationInfo.fMinPhi_ * 180 / M_PI + 360);
148 
150 
152  mapCLSOver5_.bookND(bh, key);
157 
158  return 0;
159 }
int SetLabelForChambers(K key, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:334
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:564
void SetBinHighEdgeX(Double_t dXH)
Definition: GEMDQMBase.h:264
MEMap3Inf mapRecHitOcc_ieta_
MEMap3Inf mapCLSOver5_
void SetBinLowEdgeX(Double_t dXL)
Definition: GEMDQMBase.h:262
tuple key
prepare the HTCondor submission files and eventually submit them
MEMap3Inf mapTotalRecHit_layer_
void SetNbinsY(Int_t nBinsY)
Definition: GEMDQMBase.h:268
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:354
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:305
void SetNbinsX(Int_t nBinsX)
Definition: GEMDQMBase.h:260
void SetBinConfX(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
Definition: GEMDQMBase.h:279
void SetBinConfY(Int_t nBins, Double_t dL=0.5, Double_t dH=-1048576.0)
Definition: GEMDQMBase.h:287
int GEMRecHitSource::ProcessWithMEMap3WithChamber ( BookingHelper bh,
ME4IdsKey  key 
)
overrideprivatevirtual

Reimplemented from GEMDQMBase.

Definition at line 161 of file GEMRecHitSource.cc.

References GEMDQMBase::MEMapInfT< M, K >::bookND(), GEMDQMBase::key4Tokey3(), mapCLSPerCh_, GEMDQMBase::mapStationInfo_, GEMDQMBase::MEStationInfo::nNumEtaPartitions_, GEMDQMBase::MEMapInfT< M, K >::SetBinConfY(), and GEMDQMBase::MEMapInfT< M, K >::SetLabelForIEta().

161  {
162  ME3IdsKey key3 = key4Tokey3(key);
163  MEStationInfo& stationInfo = mapStationInfo_[key3];
164 
165  mapCLSPerCh_.SetBinConfY(stationInfo.nNumEtaPartitions_);
166  mapCLSPerCh_.bookND(bh, key);
168 
169  return 0;
170 }
std::map< ME3IdsKey, MEStationInfo > mapStationInfo_
Definition: GEMDQMBase.h:564
tuple key
prepare the HTCondor submission files and eventually submit them
MEMap4Inf mapCLSPerCh_
int SetLabelForIEta(K key, Int_t nAxis, Int_t nNumBin=-1)
Definition: GEMDQMBase.h:354
int bookND(BookingHelper &bh, K key)
Definition: GEMDQMBase.h:305
ME3IdsKey key4Tokey3(ME4IdsKey key)
Definition: GEMDQMBase.h:529
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:287

Member Data Documentation

Bool_t GEMRecHitSource::bModeRelVal_
private

Definition at line 58 of file GEMRecHitSource.h.

Referenced by bookHistograms(), and GEMRecHitSource().

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

Definition at line 54 of file GEMRecHitSource.h.

Float_t GEMRecHitSource::fRadiusMax_
private

Definition at line 50 of file GEMRecHitSource.h.

Referenced by analyze(), and bookHistograms().

Float_t GEMRecHitSource::fRadiusMin_
private

Definition at line 49 of file GEMRecHitSource.h.

Referenced by analyze(), and bookHistograms().

MEMap3Inf GEMRecHitSource::mapCLSAverage_
private

Definition at line 43 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapCLSOver5_
private

Definition at line 44 of file GEMRecHitSource.h.

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

MEMap4Inf GEMRecHitSource::mapCLSPerCh_
private

Definition at line 46 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapCLSRecHit_ieta_
private

Definition at line 42 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapRecHitOcc_ieta_
private

Definition at line 38 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapRecHitOcc_phi_
private

Definition at line 39 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapRecHitWheel_layer_
private

Definition at line 37 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapTotalRecHit_layer_
private

Definition at line 36 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapTotalRecHitPerEvtIEta_
private

Definition at line 41 of file GEMRecHitSource.h.

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

MEMap3Inf GEMRecHitSource::mapTotalRecHitPerEvtLayer_
private

Definition at line 40 of file GEMRecHitSource.h.

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

Int_t GEMRecHitSource::nCLSMax_
private

Definition at line 48 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().

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

Definition at line 56 of file GEMRecHitSource.h.

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

Definition at line 52 of file GEMRecHitSource.h.

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

Definition at line 55 of file GEMRecHitSource.h.

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 53 of file GEMRecHitSource.h.