DTTTrigCorrectionFirst

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

/** \class DTTTrigCorrection
 *  Class which read a ttrig DB and correct it with
 *  the near SL (or the global average)
 *
 *  \author S. Maselli - INFN Torino
 */

#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "Geometry/Records/interface/MuonGeometryRecord.h"
#include "CondFormats/DataRecord/interface/DTTtrigRcd.h"

#include <string>

class DTTtrig;
class DTGeometry;

class DTTTrigCorrectionFirst : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
public:
  /// Constructor
  DTTTrigCorrectionFirst(const edm::ParameterSet& pset);

  /// Destructor
  ~DTTTrigCorrectionFirst() override;

  // Operations

  void beginJob() override {}
  void beginRun(const edm::Run& run, const edm::EventSetup& setup) override;
  void analyze(const edm::Event& event, const edm::EventSetup& setup) override {}

  void endRun(const edm::Run& run, const edm::EventSetup& setup) override {}
  void endJob() override;

protected:
private:
  edm::ESHandle<DTGeometry> muonGeom;
  const edm::ESGetToken<DTGeometry, MuonGeometryRecord> dtGeomToken_;

  const DTTtrig* tTrigMap;
  const edm::ESGetToken<DTTtrig, DTTtrigRcd> ttrigToken_;

  bool debug;
  double ttrigMin, ttrigMax, rmsLimit;
};
#endif