Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:13:02

0001 #ifndef MuonTrackResidualsTest_H
0002 #define MuonTrackResidualsTest_H
0003 
0004 /** \class MuonTrackResidualsTest
0005  * *
0006  *  DQMOffline Test Client
0007  *       check the residuals of the track parameters comparing STA/tracker only/global muons
0008  *
0009  *  \author  G. Mila - INFN Torino
0010  *   
0011  */
0012 
0013 #include "FWCore/Framework/interface/Frameworkfwd.h"
0014 #include "DataFormats/Common/interface/Handle.h"
0015 #include <FWCore/Framework/interface/ESHandle.h>
0016 #include <FWCore/Framework/interface/Event.h>
0017 #include <FWCore/Framework/interface/MakerMacros.h>
0018 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0019 #include <FWCore/Framework/interface/LuminosityBlock.h>
0020 
0021 #include "DQMServices/Core/interface/DQMStore.h"
0022 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0023 
0024 #include "FWCore/ServiceRegistry/interface/Service.h"
0025 #include "FWCore/Framework/interface/Run.h"
0026 
0027 #include <memory>
0028 #include <iostream>
0029 #include <string>
0030 #include <vector>
0031 #include <map>
0032 
0033 class MuonTrackResidualsTest : public DQMEDHarvester {
0034 public:
0035   /// Constructor
0036   MuonTrackResidualsTest(const edm::ParameterSet& ps);
0037 
0038   /// Destructor
0039   ~MuonTrackResidualsTest() override{};
0040 
0041 protected:
0042   void dqmEndRun(DQMStore::IBooker&, DQMStore::IGetter&, edm::Run const&, edm::EventSetup const&) override;
0043   void dqmEndJob(DQMStore::IBooker&, DQMStore::IGetter&) override{};
0044 
0045 private:
0046   // Switch for verbosity
0047   std::string metname;
0048   edm::ParameterSet parameters;
0049 
0050   // source residuals histograms
0051   int prescaleFactor;
0052   std::string GaussianCriterionName;
0053   std::string MeanCriterionName;
0054   std::string SigmaCriterionName;
0055 
0056   std::map<std::string, std::vector<std::string> > histoNames;
0057 
0058   // test histograms
0059   std::map<std::string, MonitorElement*> MeanHistos;
0060   std::map<std::string, MonitorElement*> SigmaHistos;
0061 };
0062 
0063 #endif