CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/DPGAnalysis/SiStripTools/interface/DigiCollectionProfiler.h

Go to the documentation of this file.
00001 #ifndef DPGAnalysis_SiStripTools_DigiCollectionProfile_H
00002 #define DPGAnalysis_SiStripTools_DigiCollectionProfile_H
00003 
00004 #include <vector>
00005 
00006 class TProfile;
00007 class TH2F;
00008 class DetId;
00009 
00010 class SiStripDigi;
00011 
00012 class DigiCollectionProfiler {
00013 
00014  public:
00015   DigiCollectionProfiler();
00016   DigiCollectionProfiler(TProfile* tibprof,
00017                          TProfile* tobprof,
00018                          TProfile* tecpprof,
00019                          TProfile* tecmprof,
00020                          TH2F* tib2d,
00021                          TH2F* tob2d,
00022                          TH2F* tecp2d,
00023                          TH2F* tecm2d);
00024 
00025   ~DigiCollectionProfiler() {};
00026 
00027   void analyze(edm::Handle<edm::DetSetVector<SiStripDigi> > digis);
00028   void setMaskedModules(std::vector<unsigned int> maskedmod);
00029 
00030  private:
00031 
00032   int ismasked(const DetId& mod) const;
00033 
00034   unsigned int m_nevent;
00035 
00036   TProfile* m_tibprof;
00037   TProfile* m_tobprof;
00038   TProfile* m_tecpprof;
00039   TProfile* m_tecmprof;
00040   TH2F* m_tib2d;
00041   TH2F* m_tob2d;
00042   TH2F* m_tecp2d;
00043   TH2F* m_tecm2d;
00044 
00045   std::vector<unsigned int> m_maskedmod;
00046 
00047 };
00048 
00049 #endif // DPGAnalysis_SiStripTools_DigiCollectionProfile_H