Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:43:11

0001 #ifndef SiPixelPhase1ResidualsExtra_SiPixelPhase1ResidualsExtra_h
0002 #define SiPixelPhase1ResidualsExtra_SiPixelPhase1ResidualsExtra_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     SiPixelPhase1ResidualsExtra
0006 // Class  :     SiPixelPhase1ResidualsExtra
0007 //
0008 /*
0009 
0010  Description: Introduce some computation over the PixelPhase1 residuals distributions
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Alessandro Rossi
0018 //         Created:  21st May 2021
0019 //
0020 
0021 //#include <memory>
0022 
0023 // user include files
0024 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0025 #include "DQMServices/Core/interface/DQMStore.h"
0026 #include "FWCore/Framework/interface/Event.h"
0027 #include "FWCore/Framework/interface/Frameworkfwd.h"
0028 #include "FWCore/Framework/interface/MakerMacros.h"
0029 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0030 
0031 class SiPixelPhase1ResidualsExtra : public DQMEDHarvester {
0032 public:
0033   explicit SiPixelPhase1ResidualsExtra(const edm::ParameterSet& conf);
0034   ~SiPixelPhase1ResidualsExtra() override;
0035 
0036 protected:
0037   // BeginRun
0038   void beginRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
0039 
0040   // EndJob
0041   void dqmEndJob(DQMStore::IBooker& iBooker, DQMStore::IGetter& iGetter) override;
0042 
0043 private:
0044   std::string topFolderName_;
0045   int minHits_;
0046   edm::ParameterSet conf_;
0047 
0048   std::map<std::string, MonitorElement*> residuals_;
0049   std::map<std::string, MonitorElement*> DRnR_;
0050 
0051   //Book Monitoring Elements
0052   void bookMEs(DQMStore::IBooker& iBooker);
0053 
0054   //Fill Monitoring Elements
0055   void fillMEs(DQMStore::IBooker& iBooker, DQMStore::IGetter& iGetter);
0056 };
0057 
0058 #endif