CastorRecHitMonitor

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
#ifndef DQM_CASTORMONITOR_CASTORRECHITMONITOR_H
#define DQM_CASTORMONITOR_CASTORRECHITMONITOR_H

#include "DQMServices/Core/interface/DQMStore.h"
//#include "DataFormats/HcalRecHit/interface/CastorRecHit.h"
#include "DataFormats/HcalRecHit/interface/HcalRecHitCollections.h"

#include "DataFormats/CastorReco/interface/CastorCluster.h"
#include "DataFormats/CastorReco/interface/CastorJet.h"
#include "DataFormats/CastorReco/interface/CastorTower.h"
#include "DataFormats/JetReco/interface/BasicJet.h"
#include "DataFormats/JetReco/interface/BasicJetCollection.h"
#include "DataFormats/JetReco/interface/CastorJetID.h"
#include "DataFormats/JetReco/interface/Jet.h"
#include "RecoJets/JetProducers/interface/CastorJetIDHelper.h"

#include "DataFormats/Common/interface/TriggerResults.h"

class CastorRecHitMonitor {
public:
  typedef dqm::legacy::DQMStore DQMStore;
  typedef dqm::legacy::MonitorElement MonitorElement;
  CastorRecHitMonitor(const edm::ParameterSet &ps);
  ~CastorRecHitMonitor();

  void bookHistograms(DQMStore::IBooker &, edm::Run const &);
  void processEvent(const CastorRecHitCollection &castorHits);
  void processEventTowers(const reco::CastorTowerCollection &castorTowers);
  void processEventJets(const reco::BasicJetCollection &Jets);

private:
  int fVerbosity = 0;
  int ievt_;
  float energyInEachChannel[14][16];
  std::string subsystemname;

  MonitorElement *hTowerE;
  MonitorElement *hTowerDepth;
  MonitorElement *h2TowerEMhad;
  MonitorElement *hTowerMultipl;
  MonitorElement *hJetsMultipl;
  MonitorElement *hJetEnergy;
  MonitorElement *hJetEta;
  MonitorElement *hJetPhi;

  TH2F *h2RecHitMap;
  MonitorElement *h2RHchan;
  MonitorElement *h2RHvsSec;
  MonitorElement *h2RHmap;
  MonitorElement *h2RHoccmap;
  MonitorElement *h2RHentriesMap;
  MonitorElement *hRHtime, *hallchan;
};

#endif