1 #ifndef DQM_GEM_GEMDQMEfficiencySourceBase_h 2 #define DQM_GEM_GEMDQMEfficiencySourceBase_h 20 using MEMap = std::map<GEMDetId, MonitorElement*>;
74 for (
T* each : refs) {
75 if (each ==
nullptr) {
100 return GEMDetId{
id.
region(), 1,
id.station(),
id.layer(),
id.chamber() % 2, 0};
104 return GEMDetId{
id.
region(), 1,
id.station(),
id.layer(),
id.chamber() % 2,
id.ieta()};
107 #endif // DQM_GEM_GEMDQMEfficiencySourceBase_h const bool kMaskChamberWithError_
constexpr int region() const
bool skipGEMStation(const int)
MonitorElement * bookChamberEtaPartition(DQMStore::IBooker &, const TString &, const TString &, const GEMStation *)
MonitorElement * bookNumerator2D(DQMStore::IBooker &, MonitorElement *)
void fillMEWithinLimits(MonitorElement *, const double)
GEMDetId getReStLaChKey(const GEMDetId &)
std::tuple< bool, int, int > getEtaPartitionRange(const GEMStation *)
bool maskChamberWithError(const GEMDetId &chamber_id, const GEMOHStatusCollection *, const GEMVFATStatusCollection *)
const edm::EDGetTokenT< GEMVFATStatusCollection > kGEMVFATStatusCollectionToken_
std::map< GEMDetId, MonitorElement * > MEMap
void fillME(MEMap &, const GEMDetId &, const double)
MonitorElement * bookNumerator1D(DQMStore::IBooker &, MonitorElement *)
MonitorElement * bookChamber(DQMStore::IBooker &, const TString &, const TString &, const GEMStation *)
const std::string kLogCategory_
GEMDetId getReStKey(const int, const int)
std::string nameNumerator(const std::string &)
GEMDetId getKey(const GEMDetId &)
const edm::EDGetTokenT< GEMOHStatusCollection > kGEMOHStatusCollectionToken_
std::tuple< bool, int, int > getChamberRange(const GEMStation *)
bool checkRefs(const std::vector< T *> &)
bool hasMEKey(const MEMap &, const GEMDetId &)
double clampWithAxis(const double, const TAxis *axis)
GEMDetId getReStLaKey(const GEMDetId &)
GEMDetId getReStEtKey(const GEMDetId &)
GEMDQMEfficiencySourceBase(const edm::ParameterSet &)
A container for a generic type of digis indexed by some index, implemented with a map<IndexType...