DTTTrigT0SegCorrection

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

/** \class DTTTrigT0SegCorrection
 *  Concrete implementation of a DTTTrigBaseCorrection.
 *  Computes t0-seg correction for tTrig
 *
 *  \author A. Vilela Pereira
 */

#include "CalibMuon/DTCalibration/interface/DTTTrigBaseCorrection.h"
#include "CondFormats/DataRecord/interface/DTTtrigRcd.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"

#include <string>

namespace edm {
  class ParameterSet;
  class ConsumesCollector;
}  // namespace edm

class DTTtrig;

class TH1F;
class TFile;

namespace dtCalibration {

  class DTTTrigT0SegCorrection : public DTTTrigBaseCorrection {
  public:
    // Constructor
    DTTTrigT0SegCorrection(const edm::ParameterSet&, edm::ConsumesCollector);

    // Destructor
    ~DTTTrigT0SegCorrection() override;

    void setES(const edm::EventSetup& setup) override;
    DTTTrigData correction(const DTSuperLayerId&) override;

  private:
    const TH1F* getHisto(const DTSuperLayerId&);
    std::string getHistoName(const DTSuperLayerId& slID);

    TFile* rootFile_;

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

}  // namespace dtCalibration
#endif