CMS 3D CMS Logo

FakeAlignmentProducer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: FakeAlignmentProducer
4 // Class: FakeAlignmentProducer
5 //
15 //
16 // Original Author: Frederic Ronga
17 // Created: Fri Feb 9 19:24:38 CET 2007
18 // $Id: FakeAlignmentProducer.cc,v 1.6 2008/06/26 10:00:35 flucke Exp $
19 //
20 //
21 
22 
23 // System
24 #include <memory>
25 
26 // Framework
30 
31 
32 
33 // Alignment
43 
45 public:
47  ~FakeAlignmentProducer() override {}
48 
49  std::unique_ptr<Alignments>
50  produceTkAli(const TrackerAlignmentRcd&) { return std::make_unique<Alignments>();}
51  std::unique_ptr<Alignments>
52  produceDTAli(const DTAlignmentRcd&) { return std::make_unique<Alignments>();}
53  std::unique_ptr<Alignments>
54  produceCSCAli(const CSCAlignmentRcd&) { return std::make_unique<Alignments>();}
55  std::unique_ptr<Alignments>
56  produceGlobals(const GlobalPositionRcd&) {return std::make_unique<Alignments>();}
57 
58  std::unique_ptr<AlignmentErrorsExtended> produceTkAliErr(const TrackerAlignmentErrorExtendedRcd&) {
59  return std::make_unique<AlignmentErrorsExtended>();
60  }
61  std::unique_ptr<AlignmentErrorsExtended> produceDTAliErr(const DTAlignmentErrorExtendedRcd&) {
62  return std::make_unique<AlignmentErrorsExtended>();
63  }
64  std::unique_ptr<AlignmentErrorsExtended> produceCSCAliErr(const CSCAlignmentErrorExtendedRcd&) {
65  return std::make_unique<AlignmentErrorsExtended>();
66  }
67 
68 };
69 
71 {
72  // This 'appendToDataLabel' is used by the framework to distinguish providers
73  // with different settings and to request a special one by e.g.
74  // iSetup.get<TrackerDigiGeometryRecord>().get("theLabel", tkGeomHandle);
75  edm::LogInfo("Alignments")
76  << "@SUB=FakeAlignmentProducer" << "Providing data with label '"
77  << iConfig.getParameter<std::string>("appendToDataLabel") << "'.";
78 
86 
87 }
88 
89 
90 //define this as a plug-in
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:116
FakeAlignmentProducer(const edm::ParameterSet &)
std::unique_ptr< AlignmentErrorsExtended > produceTkAliErr(const TrackerAlignmentErrorExtendedRcd &)
std::unique_ptr< Alignments > produceGlobals(const GlobalPositionRcd &)
std::unique_ptr< Alignments > produceCSCAli(const CSCAlignmentRcd &)
std::unique_ptr< Alignments > produceTkAli(const TrackerAlignmentRcd &)
std::unique_ptr< AlignmentErrorsExtended > produceCSCAliErr(const CSCAlignmentErrorExtendedRcd &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
std::unique_ptr< AlignmentErrorsExtended > produceDTAliErr(const DTAlignmentErrorExtendedRcd &)
std::unique_ptr< Alignments > produceDTAli(const DTAlignmentRcd &)