L1TDTTPGClient

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 56 57 58 59
#ifndef DQM_L1TMONITORCLIENT_L1TDTTPG_H
#define DQM_L1TMONITORCLIENT_L1TDTTPG_H

#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/DQMEDHarvester.h"

#include <memory>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <map>
#include <TH1F.h>
#include <TH2F.h>
#include <TProfile2D.h>

class L1TDTTPGClient : public DQMEDHarvester {
public:
  /// Constructor
  L1TDTTPGClient(const edm::ParameterSet &ps);

  /// Destructor
  ~L1TDTTPGClient() override;

protected:
  void dqmEndJob(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter) override;

private:
  void initialize();
  void makeRatioHisto(DQMStore::IGetter &igetter, MonitorElement *ratioME, std::string &nName, std::string &dName);
  void setMapPhLabel(MonitorElement *me);
  void setMapThLabel(MonitorElement *me);
  TH1F *get1DHisto(std::string meName, DQMStore::IGetter &igetter);
  TH2F *get2DHisto(std::string meName, DQMStore::IGetter &igetter);
  TProfile2D *get2DProfile(std::string meName, DQMStore::IGetter &igetter);
  TProfile *get1DProfile(std::string meName, DQMStore::IGetter &igetter);

  edm::ParameterSet parameters_;
  std::string monitorName_;
  std::string input_dir_;
  std::string output_dir_;
  int counterLS_;    ///counter
  int counterEvt_;   ///counter
  int prescaleLS_;   ///units of lumi sections
  int prescaleEvt_;  ///prescale on number of events

  // -------- member data --------
  //  MonitorElement * clientHisto;
  MonitorElement *dttpgphmapcorrf;
  MonitorElement *dttpgphmap2ndf;
  MonitorElement *dttpgphmapbxf[3];
  MonitorElement *dttpgthmaphf;
  MonitorElement *dttpgthmapbxf[3];
};

#endif