DTLocalTriggerEfficiencyTest

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
#ifndef DTLocalTriggerEfficiencyTest_H
#define DTLocalTriggerEfficiencyTest_H

/** \class DTLocalTriggerEfficiencyTest
 * *
 *  DQM Test Client
 *
 *  \author  C. Battilana S. Marcellini - INFN Bologna
 *
 *  threadsafe version (//-) oct/nov 2014 - WATWanAbdullah ncpp-um-my
 *
 *   
 */

#include "DQM/DTMonitorClient/src/DTLocalTriggerBaseTest.h"

class DTTrigGeomUtils;

class DTLocalTriggerEfficiencyTest : public DTLocalTriggerBaseTest {
public:
  /// Constructor
  DTLocalTriggerEfficiencyTest(const edm::ParameterSet& ps);

  /// Destructor
  ~DTLocalTriggerEfficiencyTest() override;

protected:
  /// Book the new MEs (for each chamber)
  void bookChambHistos(DQMStore::IBooker&, DTChamberId chambId, std::string htype);

  /// Compute efficiency plots
  void makeEfficiencyME(TH1D* numerator, TH1D* denominator, MonitorElement* result);

  /// Compute 2D efficiency plots
  void makeEfficiencyME2D(TH2F* numerator, TH2F* denominator, MonitorElement* result);

  /// BeginRun
  void beginRun(const edm::Run& r, const edm::EventSetup& c) override;

  /// DQM Client Diagnostic

  void runClientDiagnostic(DQMStore::IBooker&, DQMStore::IGetter&) override;
  void Bookings(DQMStore::IBooker&, DQMStore::IGetter&);

  const int wheelArrayShift = 3;

private:
  std::map<uint32_t, std::map<std::string, MonitorElement*> > chambME;
  DTTrigGeomUtils* trigGeomUtils;

  bool bookingdone;
};

#endif