|
|
Go to the documentation of this file.
22 desc.addUntracked<
bool>(
"doDigiOccupancy",
true);
23 desc.addUntracked<
bool>(
"doHitOccupancy",
true);
24 descriptions.
add(
"gemOfflineMonitorDefault",
desc);
30 if (not
gem.isValid()) {
46 const int region_id =
station->region();
47 const int station_id =
station->station();
52 const auto&& superchambers =
station->superChambers();
59 const int num_superchambers = superchambers.size();
60 const int num_chambers = num_superchambers * superchambers.front()->nChambers();
66 const int num_vfat = num_etas * max_vfat;
69 "Digi Occupancy" + title_suffix,
84 const int region_id =
station->region();
85 const int station_id =
station->station();
91 const auto&& superchambers =
station->superChambers();
98 const int num_superchambers = superchambers.size();
99 const int num_chambers = num_superchambers * superchambers.front()->nChambers();
104 "Hit Occupancy" + title_suffix,
119 if (not digi_collection.
isValid()) {
128 if (not rechit_collection.
isValid()) {
136 if (not
gem.isValid()) {
150 for (
auto range_iter = digi_collection->begin(); range_iter != digi_collection->end(); range_iter++) {
151 const GEMDetId& gem_id = (*range_iter).first;
155 for (
auto digi =
range.first; digi !=
range.second; ++digi) {
166 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 &)
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)