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 // System
23 #include <memory>
24 
25 // Framework
29 
30 // Alignment
40 
42 public:
44  ~FakeAlignmentProducer() override {}
45 
46  std::unique_ptr<Alignments> produceTkAli(const TrackerAlignmentRcd&) { return std::make_unique<Alignments>(); }
47  std::unique_ptr<Alignments> produceDTAli(const DTAlignmentRcd&) { return std::make_unique<Alignments>(); }
48  std::unique_ptr<Alignments> produceCSCAli(const CSCAlignmentRcd&) { return std::make_unique<Alignments>(); }
49  std::unique_ptr<Alignments> produceGlobals(const GlobalPositionRcd&) { return std::make_unique<Alignments>(); }
50 
51  std::unique_ptr<AlignmentErrorsExtended> produceTkAliErr(const TrackerAlignmentErrorExtendedRcd&) {
52  return std::make_unique<AlignmentErrorsExtended>();
53  }
54  std::unique_ptr<AlignmentErrorsExtended> produceDTAliErr(const DTAlignmentErrorExtendedRcd&) {
55  return std::make_unique<AlignmentErrorsExtended>();
56  }
57  std::unique_ptr<AlignmentErrorsExtended> produceCSCAliErr(const CSCAlignmentErrorExtendedRcd&) {
58  return std::make_unique<AlignmentErrorsExtended>();
59  }
60 };
61 
63  // This 'appendToDataLabel' is used by the framework to distinguish providers
64  // with different settings and to request a special one by e.g.
65  // iSetup.get<TrackerDigiGeometryRecord>().get("theLabel", tkGeomHandle);
66  edm::LogInfo("Alignments") << "@SUB=FakeAlignmentProducer"
67  << "Providing data with label '" << iConfig.getParameter<std::string>("appendToDataLabel")
68  << "'.";
69 
77 }
78 
79 //define this as a plug-in
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
FakeAlignmentProducer(const edm::ParameterSet &)
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
std::unique_ptr< AlignmentErrorsExtended > produceTkAliErr(const TrackerAlignmentErrorExtendedRcd &)
std::unique_ptr< Alignments > produceGlobals(const GlobalPositionRcd &)
std::unique_ptr< Alignments > produceCSCAli(const CSCAlignmentRcd &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61
std::unique_ptr< Alignments > produceTkAli(const TrackerAlignmentRcd &)
Log< level::Info, false > LogInfo
std::unique_ptr< AlignmentErrorsExtended > produceCSCAliErr(const CSCAlignmentErrorExtendedRcd &)
std::unique_ptr< AlignmentErrorsExtended > produceDTAliErr(const DTAlignmentErrorExtendedRcd &)
std::unique_ptr< Alignments > produceDTAli(const DTAlignmentRcd &)