Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-01 22:41:17

0001 #ifndef Validation_MuonCSCDigis_MuonCSCDigisHarvestor_h
0002 #define Validation_MuonCSCDigis_MuonCSCDigisHarvestor_h
0003 
0004 #include "FWCore/PluginManager/interface/ModuleDef.h"
0005 #include "FWCore/Framework/interface/MakerMacros.h"
0006 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0007 #include "DataFormats/MuonDetId/interface/CSCDetId.h"
0008 #include "Validation/MuonGEMHits/interface/MuonGEMBaseHarvestor.h"
0009 
0010 class MuonCSCDigisHarvestor : public MuonGEMBaseHarvestor {
0011 public:
0012   /// constructor
0013   explicit MuonCSCDigisHarvestor(const edm::ParameterSet&);
0014   /// destructor
0015   ~MuonCSCDigisHarvestor() override {}
0016 
0017   void dqmEndJob(DQMStore::IBooker&, DQMStore::IGetter&) override;
0018 
0019 private:
0020 };
0021 
0022 MuonCSCDigisHarvestor::MuonCSCDigisHarvestor(const edm::ParameterSet& pset)
0023     : MuonGEMBaseHarvestor(pset, "MuonGEMDigisHarvestor") {}
0024 
0025 void MuonCSCDigisHarvestor::dqmEndJob(DQMStore::IBooker& booker, DQMStore::IGetter& getter) {
0026   for (int i = 1; i <= 10; ++i) {
0027     const std::string cn(CSCDetId::chamberName(i));
0028 
0029     std::string occ_folder = "MuonCSCDigisV/CSCDigiTask/ALCT/Occupancy/";
0030     std::string d1 = occ_folder + "ALCTEtaDenom_" + cn;
0031     std::string n1 = occ_folder + "ALCTEtaNum_" + cn;
0032     std::string e1 = "ALCTEtaEff_" + cn;
0033 
0034     occ_folder = "MuonCSCDigisV/CSCDigiTask/CLCT/Occupancy/";
0035     std::string d2 = occ_folder + "CLCTEtaDenom_" + cn;
0036     std::string n2 = occ_folder + "CLCTEtaNum_" + cn;
0037     std::string e2 = "CLCTEtaEff_" + cn;
0038 
0039     occ_folder = "MuonCSCDigisV/CSCDigiTask/LCT/Occupancy/";
0040     std::string d3 = occ_folder + "LCTEtaDenom_" + cn;
0041     std::string n3 = occ_folder + "LCTEtaNum_" + cn;
0042     std::string e3 = "LCTEtaEff_" + cn;
0043 
0044     std::string eff_folder = "MuonCSCDigisV/CSCDigiTask/ALCT/Efficiency/";
0045     bookEff1D(booker, getter, n1, d1, eff_folder, e1, cn + " ALCT Efficiency;True Muon |#eta|;Efficiency");
0046     eff_folder = "MuonCSCDigisV/CSCDigiTask/CLCT/Efficiency/";
0047     bookEff1D(booker, getter, n2, d2, eff_folder, e2, cn + " CLCT Efficiency;True Muon |#eta|;Efficiency");
0048     eff_folder = "MuonCSCDigisV/CSCDigiTask/LCT/Efficiency/";
0049     bookEff1D(booker, getter, n3, d3, eff_folder, e3, cn + " LCT Efficiency;True Muon |#eta|;Efficiency");
0050   }
0051 }
0052 
0053 DEFINE_FWK_MODULE(MuonCSCDigisHarvestor);
0054 #endif