|
|
Go to the documentation of this file.
23 desc.addUntracked<
bool>(
"doDigiOccupancy",
true);
24 desc.addUntracked<
bool>(
"doHitOccupancy",
true);
25 descriptions.
add(
"gemOfflineMonitorDefault",
desc);
32 if (not
gem.isValid()) {
48 const int region_id =
station->region();
49 const int station_id =
station->station();
54 const auto&& superchambers =
station->superChambers();
61 const int num_superchambers = superchambers.size();
62 const int num_chambers = num_superchambers * superchambers.front()->nChambers();
68 const int num_vfat = num_etas * max_vfat;
71 "Digi Occupancy" + title_suffix,
86 const int region_id =
station->region();
87 const int station_id =
station->station();
93 const auto&& superchambers =
station->superChambers();
100 const int num_superchambers = superchambers.size();
101 const int num_chambers = num_superchambers * superchambers.front()->nChambers();
106 "Hit Occupancy" + title_suffix,
121 if (not digi_collection.
isValid()) {
130 if (not rechit_collection.
isValid()) {
139 if (not
gem.isValid()) {
153 for (
auto range_iter = digi_collection->begin(); range_iter != digi_collection->end(); range_iter++) {
154 const GEMDetId& gem_id = (*range_iter).first;
158 for (
auto digi =
range.first; digi !=
range.second; ++digi) {
169 for (
auto hit = rechit_collection->begin();
hit != rechit_collection->end();
hit++) {
virtual void setCurrentFolder(std::string const &fullpath)
void doDigiOccupancy(const edm::ESHandle< GEMGeometry > &, const edm::Handle< GEMDigiCollection > &)
int getVFATNumberByStrip(const int, const int, const int)
int getMaxVFAT(const int)
TString getSuffixName(Int_t region_id)
std::string log_category_
void setDetLabelsEta(MonitorElement *, const GEMStation *)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
int getNumEtaPartitions(const GEMStation *)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
GEMOfflineMonitor(const edm::ParameterSet &)
const edm::ESGetToken< GEMGeometry, MuonGeometryRecord > gemToken_
bool checkRefs(const std::vector< T * > &)
constexpr int roll() const
void setDetLabelsVFAT(MonitorElement *, const GEMStation *)
edm::EDGetTokenT< GEMRecHitCollection > rechit_token_
Log< level::Error, false > LogError
edm::EDGetTokenT< GEMDigiCollection > digi_token_
void bookHitOccupancy(DQMStore::IBooker &, const edm::ESHandle< GEMGeometry > &)
GEMDetId getReStKey(const int, const int)
void fillME(MEMap &me_map, const GEMDetId &key, const float x)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
TString getSuffixTitle(Int_t region_id)
static void fillDescriptions(edm::ConfigurationDescriptions &)
int chamber_bin(int station, int ring, int chamber)
std::pair< const_iterator, const_iterator > Range
void bookDigiOccupancy(DQMStore::IBooker &, const edm::ESHandle< GEMGeometry > &)
constexpr int station() const
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
~GEMOfflineMonitor() override
void doHitOccupancy(const edm::ESHandle< GEMGeometry > &, const edm::Handle< GEMRecHitCollection > &)
int getDetOccXBin(const int, const int, const int)