|
|
Go to the documentation of this file.
21 desc.addUntracked<
bool>(
"doDigiOccupancy",
true);
22 desc.addUntracked<
bool>(
"doHitOccupancy",
true);
23 descriptions.
add(
"gemOfflineMonitorDefault",
desc);
29 if (not
gem.isValid()) {
45 const int region_id =
station->region();
46 const int station_id =
station->station();
48 const auto&& name_suffix =
getSuffixName(region_id, station_id);
51 const auto&& superchambers =
station->superChambers();
58 const int num_superchambers = superchambers.size();
59 const int num_chambers = num_superchambers * superchambers.front()->nChambers();
65 const int num_vfat = num_etas * max_vfat;
68 "Digi Occupancy" + title_suffix,
83 const int region_id =
station->region();
84 const int station_id =
station->station();
87 const auto&& name_suffix =
getSuffixName(region_id, station_id);
90 const auto&& superchambers =
station->superChambers();
97 const int num_superchambers = superchambers.size();
98 const int num_chambers = num_superchambers * superchambers.front()->nChambers();
103 "Hit Occupancy" + title_suffix,
118 if (not digi_collection.
isValid()) {
127 if (not rechit_collection.
isValid()) {
135 if (not
gem.isValid()) {
149 for (
auto range_iter = digi_collection->begin(); range_iter != digi_collection->end(); range_iter++) {
150 const GEMDetId& gem_id = (*range_iter).first;
154 for (
auto digi =
range.first; digi !=
range.second; ++digi) {
165 for (
auto hit = rechit_collection->begin();
hit != rechit_collection->end();
hit++) {
TString getSuffixName(Int_t)
virtual void setCurrentFolder(std::string const &fullpath)
TString getSuffixTitle(Int_t)
void doDigiOccupancy(const edm::ESHandle< GEMGeometry > &, const edm::Handle< GEMDigiCollection > &)
int getVFATNumberByStrip(const int, const int, const int)
int getMaxVFAT(const int)
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())
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)