Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-13 23:26:52

0001 #ifndef DQM_CASTORMONITOR_CASTORRECHITMONITOR_H
0002 #define DQM_CASTORMONITOR_CASTORRECHITMONITOR_H
0003 
0004 #include "DQMServices/Core/interface/DQMStore.h"
0005 //#include "DataFormats/HcalRecHit/interface/CastorRecHit.h"
0006 #include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h"
0007 
0008 #include "DataFormats/CastorReco/interface/CastorCluster.h"
0009 #include "DataFormats/CastorReco/interface/CastorJet.h"
0010 #include "DataFormats/CastorReco/interface/CastorTower.h"
0011 #include "DataFormats/JetReco/interface/BasicJet.h"
0012 #include "DataFormats/JetReco/interface/BasicJetCollection.h"
0013 #include "DataFormats/JetReco/interface/CastorJetID.h"
0014 #include "DataFormats/JetReco/interface/Jet.h"
0015 #include "RecoJets/JetProducers/interface/CastorJetIDHelper.h"
0016 
0017 #include "DataFormats/Common/interface/TriggerResults.h"
0018 
0019 class CastorRecHitMonitor {
0020 public:
0021   typedef dqm::legacy::DQMStore DQMStore;
0022   typedef dqm::legacy::MonitorElement MonitorElement;
0023   CastorRecHitMonitor(const edm::ParameterSet &ps);
0024   ~CastorRecHitMonitor();
0025 
0026   void bookHistograms(DQMStore::IBooker &, edm::Run const &);
0027   void processEvent(const CastorRecHitCollection &castorHits);
0028   void processEventTowers(const reco::CastorTowerCollection &castorTowers);
0029   void processEventJets(const reco::BasicJetCollection &Jets);
0030 
0031 private:
0032   int fVerbosity = 0;
0033   int ievt_;
0034   float energyInEachChannel[14][16];
0035   std::string subsystemname;
0036 
0037   MonitorElement *hTowerE;
0038   MonitorElement *hTowerDepth;
0039   MonitorElement *h2TowerEMhad;
0040   MonitorElement *hTowerMultipl;
0041   MonitorElement *hJetsMultipl;
0042   MonitorElement *hJetEnergy;
0043   MonitorElement *hJetEta;
0044   MonitorElement *hJetPhi;
0045 
0046   TH2F *h2RecHitMap;
0047   MonitorElement *h2RHchan;
0048   MonitorElement *h2RHvsSec;
0049   MonitorElement *h2RHmap;
0050   MonitorElement *h2RHoccmap;
0051   MonitorElement *h2RHentriesMap;
0052   MonitorElement *hRHtime, *hallchan;
0053 };
0054 
0055 #endif