CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
FakeAlignmentSource Class Reference

#include <Alignment/FakeAlignmentProducer/plugins/FakeAlignmentSource.cc>

Inheritance diagram for FakeAlignmentSource:
edm::ESProducer edm::EventSetupRecordIntervalFinder edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 FakeAlignmentSource (const edm::ParameterSet &)
 
std::auto_ptr< AlignmentsproduceCSCAli (const CSCAlignmentRcd &)
 CSC and its APE. More...
 
std::auto_ptr
< AlignmentErrorsExtended
produceCSCAliErr (const CSCAlignmentErrorExtendedRcd &)
 
std::auto_ptr< AlignmentsproduceDTAli (const DTAlignmentRcd &)
 DT and its APE. More...
 
std::auto_ptr
< AlignmentErrorsExtended
produceDTAliErr (const DTAlignmentErrorExtendedRcd &)
 
std::auto_ptr< AlignmentsproduceGlobals (const GlobalPositionRcd &)
 GlobalPositions. More...
 
std::auto_ptr< AlignmentsproduceTkAli (const TrackerAlignmentRcd &)
 Tracker and its APE. More...
 
std::auto_ptr
< AlignmentErrorsExtended
produceTkAliErr (const TrackerAlignmentErrorExtendedRcd &)
 
std::auto_ptr
< AlignmentSurfaceDeformations
produceTrackerSurfaceDeformation (const TrackerSurfaceDeformationRcd &)
 Tracker surface deformations. More...
 
 ~FakeAlignmentSource ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider ()
 
- Public Member Functions inherited from edm::EventSetupRecordIntervalFinder
const
eventsetup::ComponentDescription
descriptionForFinder () const
 
 EventSetupRecordIntervalFinder ()
 
std::set
< eventsetup::EventSetupRecordKey
findingForRecords () const
 
const ValidityIntervalfindIntervalFor (const eventsetup::EventSetupRecordKey &, const IOVSyncValue &)
 
void setDescriptionForFinder (const eventsetup::ComponentDescription &iDescription)
 
virtual ~EventSetupRecordIntervalFinder ()
 

Protected Member Functions

virtual void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &ioSyncVal, edm::ValidityInterval &iov) override
 provide (dummy) IOV More...
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 
- Protected Member Functions inherited from edm::EventSetupRecordIntervalFinder
template<class T >
void findingRecord ()
 
void findingRecordWithKey (const eventsetup::EventSetupRecordKey &)
 

Private Attributes

bool produceCSC_
 
bool produceDT_
 
bool produceGlobalPosition_
 
bool produceTracker_
 
bool produceTrackerSurfaceDeformation_
 

Additional Inherited Members

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey,
edm::propagate_const
< std::shared_ptr< DataProxy > > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Description: Producer of fake alignment data for all geometries (currently: Tracker, DT and CSC) (including IOV, in contrast to FakeAlignmentProducer)

Implementation: The alignment objects are filled with dummy/empty data, reconstruction Geometry should notice that and not pass to GeometryAligner.

Definition at line 46 of file FakeAlignmentSource.cc.

Constructor & Destructor Documentation

FakeAlignmentSource::FakeAlignmentSource ( const edm::ParameterSet iConfig)

Definition at line 104 of file FakeAlignmentSource.cc.

References edm::ParameterSet::getParameter(), produceCSC_, produceCSCAli(), produceCSCAliErr(), produceDT_, produceDTAli(), produceDTAliErr(), produceGlobalPosition_, produceGlobals(), produceTkAli(), produceTkAliErr(), produceTracker_, produceTrackerSurfaceDeformation(), produceTrackerSurfaceDeformation_, edm::ESProducer::setWhatProduced(), and AlCaHLTBitMon_QueryRunRegistry::string.

105  :produceTracker_(iConfig.getParameter<bool>("produceTracker")),
106  produceDT_(iConfig.getParameter<bool>("produceDT")),
107  produceCSC_(iConfig.getParameter<bool>("produceCSC")),
108  produceGlobalPosition_(iConfig.getParameter<bool>("produceGlobalPosition")),
109  produceTrackerSurfaceDeformation_(iConfig.getParameter<bool>("produceTrackerSurfaceDeformation"))
110 {
111  // This 'appendToDataLabel' is used by the framework to distinguish providers
112  // with different settings and to request a special one by e.g.
113  // iSetup.get<TrackerDigiGeometryRecord>().get("theLabel", tkGeomHandle);
114 
115  edm::LogInfo("Alignments")
116  << "@SUB=FakeAlignmentSource" << "Providing data with label '"
117  << iConfig.getParameter<std::string>("appendToDataLabel") << "'.";
118 
119  // Tell framework what data is produced by which method:
120  if (produceTracker_) {
123  }
124  if (produceDT_) {
127  }
128  if (produceCSC_) {
131  }
134  }
137  }
138 
139  // Tell framework to provide IOV for the above data:
140  if (produceTracker_) {
141  this->findingRecord<TrackerAlignmentRcd>();
142  this->findingRecord<TrackerAlignmentErrorExtendedRcd>();
143  }
144  if (produceDT_) {
145  this->findingRecord<DTAlignmentRcd>();
146  this->findingRecord<DTAlignmentErrorExtendedRcd>();
147  }
148  if (produceCSC_) {
149  this->findingRecord<CSCAlignmentRcd>();
150  this->findingRecord<CSCAlignmentErrorExtendedRcd>();
151  }
153  this->findingRecord<GlobalPositionRcd>();
154  }
156  this->findingRecord<TrackerSurfaceDeformationRcd>();
157  }
158 }
T getParameter(std::string const &) const
std::auto_ptr< AlignmentErrorsExtended > produceTkAliErr(const TrackerAlignmentErrorExtendedRcd &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::auto_ptr< AlignmentErrorsExtended > produceDTAliErr(const DTAlignmentErrorExtendedRcd &)
std::auto_ptr< Alignments > produceGlobals(const GlobalPositionRcd &)
GlobalPositions.
std::auto_ptr< AlignmentErrorsExtended > produceCSCAliErr(const CSCAlignmentErrorExtendedRcd &)
std::auto_ptr< AlignmentSurfaceDeformations > produceTrackerSurfaceDeformation(const TrackerSurfaceDeformationRcd &)
Tracker surface deformations.
std::auto_ptr< Alignments > produceTkAli(const TrackerAlignmentRcd &)
Tracker and its APE.
std::auto_ptr< Alignments > produceDTAli(const DTAlignmentRcd &)
DT and its APE.
std::auto_ptr< Alignments > produceCSCAli(const CSCAlignmentRcd &)
CSC and its APE.
FakeAlignmentSource::~FakeAlignmentSource ( )
inline

Definition at line 49 of file FakeAlignmentSource.cc.

49 {}

Member Function Documentation

std::auto_ptr<Alignments> FakeAlignmentSource::produceCSCAli ( const CSCAlignmentRcd )
inline

CSC and its APE.

Definition at line 68 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

68  {
69  return std::auto_ptr<Alignments>(new Alignments);
70  }
std::auto_ptr<AlignmentErrorsExtended> FakeAlignmentSource::produceCSCAliErr ( const CSCAlignmentErrorExtendedRcd )
inline

Definition at line 71 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

71  {
72  return std::auto_ptr<AlignmentErrorsExtended>(new AlignmentErrorsExtended);
73  }
std::auto_ptr<Alignments> FakeAlignmentSource::produceDTAli ( const DTAlignmentRcd )
inline

DT and its APE.

Definition at line 60 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

60  {
61  return std::auto_ptr<Alignments>(new Alignments);
62  }
std::auto_ptr<AlignmentErrorsExtended> FakeAlignmentSource::produceDTAliErr ( const DTAlignmentErrorExtendedRcd )
inline

Definition at line 63 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

63  {
64  return std::auto_ptr<AlignmentErrorsExtended>(new AlignmentErrorsExtended);
65  }
std::auto_ptr<Alignments> FakeAlignmentSource::produceGlobals ( const GlobalPositionRcd )
inline

GlobalPositions.

Definition at line 76 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

76  {
77  return std::auto_ptr<Alignments>(new Alignments);
78  }
std::auto_ptr<Alignments> FakeAlignmentSource::produceTkAli ( const TrackerAlignmentRcd )
inline

Tracker and its APE.

Definition at line 52 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

52  {
53  return std::auto_ptr<Alignments>(new Alignments);
54  }
std::auto_ptr<AlignmentErrorsExtended> FakeAlignmentSource::produceTkAliErr ( const TrackerAlignmentErrorExtendedRcd )
inline

Definition at line 55 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

55  {
56  return std::auto_ptr<AlignmentErrorsExtended>(new AlignmentErrorsExtended);
57  }
std::auto_ptr<AlignmentSurfaceDeformations> FakeAlignmentSource::produceTrackerSurfaceDeformation ( const TrackerSurfaceDeformationRcd )
inline

Tracker surface deformations.

Definition at line 82 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

82  {
83  return std::auto_ptr<AlignmentSurfaceDeformations>(new AlignmentSurfaceDeformations);
84  }
void FakeAlignmentSource::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey ,
const edm::IOVSyncValue ioSyncVal,
edm::ValidityInterval iov 
)
overrideprotectedvirtual

provide (dummy) IOV

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 160 of file FakeAlignmentSource.cc.

References edm::IOVSyncValue::beginOfTime(), and edm::IOVSyncValue::endOfTime().

163 {
164  // Implementation copied from SiStripGainFakeESSource: unlimited IOV
165  outValidity = edm::ValidityInterval(ioSyncVal.beginOfTime(), ioSyncVal.endOfTime());
166 }
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
static const IOVSyncValue & beginOfTime()

Member Data Documentation

bool FakeAlignmentSource::produceCSC_
private

Definition at line 95 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

bool FakeAlignmentSource::produceDT_
private

Definition at line 94 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

bool FakeAlignmentSource::produceGlobalPosition_
private

Definition at line 96 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

bool FakeAlignmentSource::produceTracker_
private

Definition at line 93 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

bool FakeAlignmentSource::produceTrackerSurfaceDeformation_
private

Definition at line 97 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().