CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:
48 
49  std::auto_ptr<Alignments>
50  produceTkAli(const TrackerAlignmentRcd&) { return std::auto_ptr<Alignments>(new Alignments);}
51  std::auto_ptr<Alignments>
52  produceDTAli(const DTAlignmentRcd&) { return std::auto_ptr<Alignments>(new Alignments);}
53  std::auto_ptr<Alignments>
54  produceCSCAli(const CSCAlignmentRcd&) { return std::auto_ptr<Alignments>(new Alignments);}
55  std::auto_ptr<Alignments>
56  produceGlobals(const GlobalPositionRcd&) {return std::auto_ptr<Alignments>(new Alignments);}
57 
58  std::auto_ptr<AlignmentErrorsExtended> produceTkAliErr(const TrackerAlignmentErrorExtendedRcd&) {
59  return std::auto_ptr<AlignmentErrorsExtended>(new AlignmentErrorsExtended);
60  }
61  std::auto_ptr<AlignmentErrorsExtended> produceDTAliErr(const DTAlignmentErrorExtendedRcd&) {
62  return std::auto_ptr<AlignmentErrorsExtended>(new AlignmentErrorsExtended);
63  }
64  std::auto_ptr<AlignmentErrorsExtended> produceCSCAliErr(const CSCAlignmentErrorExtendedRcd&) {
65  return std::auto_ptr<AlignmentErrorsExtended>(new 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
std::auto_ptr< AlignmentErrorsExtended > produceCSCAliErr(const CSCAlignmentErrorExtendedRcd &)
FakeAlignmentProducer(const edm::ParameterSet &)
std::auto_ptr< AlignmentErrorsExtended > produceTkAliErr(const TrackerAlignmentErrorExtendedRcd &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::auto_ptr< Alignments > produceDTAli(const DTAlignmentRcd &)
std::auto_ptr< Alignments > produceTkAli(const TrackerAlignmentRcd &)
std::auto_ptr< Alignments > produceCSCAli(const CSCAlignmentRcd &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
std::auto_ptr< Alignments > produceGlobals(const GlobalPositionRcd &)
std::auto_ptr< AlignmentErrorsExtended > produceDTAliErr(const DTAlignmentErrorExtendedRcd &)