File indexing completed on 2024-04-06 11:58:27
0001 #ifndef CalibMuon_DTT0ChamberReferenceCorrection_H
0002 #define CalibMuon_DTT0ChamberReferenceCorrection_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include "CalibMuon/DTCalibration/interface/DTT0BaseCorrection.h"
0013 #include "DataFormats/MuonDetId/interface/DTChamberId.h"
0014 #include "FWCore/Framework/interface/ConsumesCollector.h"
0015 #include "FWCore/Utilities/interface/ESGetToken.h"
0016 #include "CondFormats/DataRecord/interface/DTT0Rcd.h"
0017 #include "CondFormats/DTObjects/interface/DTT0.h"
0018
0019 #include <string>
0020
0021 namespace edm {
0022 class ParameterSet;
0023 }
0024
0025 class DTT0;
0026
0027 namespace dtCalibration {
0028
0029 class DTT0ChamberReferenceCorrection : public DTT0BaseCorrection {
0030 public:
0031
0032 DTT0ChamberReferenceCorrection(const edm::ParameterSet&, edm::ConsumesCollector);
0033
0034
0035 ~DTT0ChamberReferenceCorrection() override;
0036
0037 void setES(const edm::EventSetup& setup) override;
0038 DTT0Data correction(const DTWireId&) override;
0039
0040 private:
0041 DTT0Data defaultT0(const DTWireId&);
0042
0043 std::string calibChamber_;
0044
0045 DTChamberId chosenChamberId_;
0046 const DTT0* t0Map_;
0047 edm::ESGetToken<DTT0, DTT0Rcd> t0Token_;
0048 };
0049
0050 }
0051 #endif