Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:27

0001 #ifndef ValidationHcalSimHitsClient_H
0002 #define ValidationHcalSimHitsClient_H
0003 
0004 // -*- C++ -*-
0005 //
0006 //
0007 /*
0008  Description: This is a SImHit CLient code
0009 */
0010 
0011 //
0012 // Originally create by: Bhawna Gomber
0013 //
0014 //
0015 
0016 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0017 #include "DQMServices/Core/interface/DQMStore.h"
0018 #include "DataFormats/Common/interface/Handle.h"
0019 #include "DataFormats/Math/interface/LorentzVector.h"
0020 #include "FWCore/Framework/interface/Event.h"
0021 #include "FWCore/Framework/interface/EventSetup.h"
0022 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0023 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0024 #include "FWCore/ServiceRegistry/interface/Service.h"
0025 #include "Geometry/HcalCommonData/interface/HcalDDDRecConstants.h"
0026 #include "Geometry/Records/interface/HcalRecNumberingRecord.h"
0027 #include <memory>
0028 #include <unistd.h>
0029 
0030 #include <fstream>
0031 #include <iostream>
0032 #include <vector>
0033 
0034 class HcalSimHitsClient : public DQMEDHarvester {
0035 private:
0036   int SimHitsEndjob(const std::vector<MonitorElement *> &hcalMEs);
0037   std::vector<std::string> getHistogramTypes();
0038 
0039   const std::string dirName_;
0040   const bool verbose_;
0041   const edm::ESGetToken<HcalDDDRecConstants, HcalRecNumberingRecord> tok_HRNDC_;
0042   static const int nTime = 4;
0043   static const int nType1 = 4;
0044   const HcalDDDRecConstants *hcons;
0045   int maxDepthHB_, maxDepthHE_, maxDepthHO_, maxDepthHF_;
0046 
0047 public:
0048   explicit HcalSimHitsClient(const edm::ParameterSet &);
0049   ~HcalSimHitsClient() override = default;
0050 
0051   void beginRun(edm::Run const &run, edm::EventSetup const &c) override;
0052   virtual void runClient_(DQMStore::IBooker &, DQMStore::IGetter &);
0053   void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
0054 };
0055 
0056 #endif