CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/DQM/EcalCommon/interface/Masks.h

Go to the documentation of this file.
00001 #ifndef Masks_H
00002 #define Masks_H
00003 
00012 #include <string>
00013 #include <stdexcept>
00014 #include <vector>
00015 
00016 #include "FWCore/Framework/interface/EventSetup.h"
00017 
00018 #include "DataFormats/EcalDetId/interface/EcalSubdetector.h"
00019 
00020 #include "CommonTools/Utils/interface/Exception.h"
00021 
00022 #include "FWCore/Framework/interface/ESHandle.h"
00023 #include "CondFormats/EcalObjects/interface/EcalDQMChannelStatus.h"
00024 #include "CondFormats/EcalObjects/interface/EcalDQMTowerStatus.h"
00025 #include "CondFormats/EcalObjects/interface/EcalDQMStatusHelper.h"
00026 
00027 class Masks {
00028 
00029  public:
00030 
00031   static void initMasking( const edm::EventSetup& setup, bool verbose = false );
00032 
00033   static bool maskChannel( int ism, int i1, int i2, uint32_t bits, const EcalSubdetector subdet ) throw( cms::Exception );
00034 
00035   static bool maskPn( int ism, int i1, uint32_t bits, const EcalSubdetector subdet ) throw( cms::Exception );
00036 
00037 private:
00038 
00039   Masks() {}; // Hidden to force static use
00040   ~Masks() {}; // Hidden to force static use
00041 
00042   static bool init;
00043 
00044   static const EcalDQMChannelStatus* channelStatus;
00045   static const EcalDQMTowerStatus* towerStatus;
00046 
00047 };
00048 
00049 #endif // Masks_H