#include <Alignment/FakeAlignmentProducer/plugins/FakeAlignmentSource.cc>
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.
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_, and edm::ESProducer::setWhatProduced().
:produceTracker_(iConfig.getParameter<bool>("produceTracker")), produceDT_(iConfig.getParameter<bool>("produceDT")), produceCSC_(iConfig.getParameter<bool>("produceCSC")), produceGlobalPosition_(iConfig.getParameter<bool>("produceGlobalPosition")), produceTrackerSurfaceDeformation_(iConfig.getParameter<bool>("produceTrackerSurfaceDeformation")) { // This 'appendToDataLabel' is used by the framework to distinguish providers // with different settings and to request a special one by e.g. // iSetup.get<TrackerDigiGeometryRecord>().get("theLabel", tkGeomHandle); edm::LogInfo("Alignments") << "@SUB=FakeAlignmentSource" << "Providing data with label '" << iConfig.getParameter<std::string>("appendToDataLabel") << "'."; // Tell framework what data is produced by which method: if (produceTracker_) { this->setWhatProduced(this, &FakeAlignmentSource::produceTkAli); this->setWhatProduced(this, &FakeAlignmentSource::produceTkAliErr); } if (produceDT_) { this->setWhatProduced(this, &FakeAlignmentSource::produceDTAli); this->setWhatProduced(this, &FakeAlignmentSource::produceDTAliErr); } if (produceCSC_) { this->setWhatProduced(this, &FakeAlignmentSource::produceCSCAli); this->setWhatProduced(this, &FakeAlignmentSource::produceCSCAliErr); } if (produceGlobalPosition_) { this->setWhatProduced(this, &FakeAlignmentSource::produceGlobals); } if (produceTrackerSurfaceDeformation_) { this->setWhatProduced(this, &FakeAlignmentSource::produceTrackerSurfaceDeformation); } // Tell framework to provide IOV for the above data: if (produceTracker_) { this->findingRecord<TrackerAlignmentRcd>(); this->findingRecord<TrackerAlignmentErrorRcd>(); } if (produceDT_) { this->findingRecord<DTAlignmentRcd>(); this->findingRecord<DTAlignmentErrorRcd>(); } if (produceCSC_) { this->findingRecord<CSCAlignmentRcd>(); this->findingRecord<CSCAlignmentErrorRcd>(); } if (produceGlobalPosition_) { this->findingRecord<GlobalPositionRcd>(); } if (produceTrackerSurfaceDeformation_) { this->findingRecord<TrackerSurfaceDeformationRcd>(); } }
FakeAlignmentSource::~FakeAlignmentSource | ( | ) | [inline] |
Definition at line 49 of file FakeAlignmentSource.cc.
{}
std::auto_ptr<Alignments> FakeAlignmentSource::produceCSCAli | ( | const CSCAlignmentRcd & | ) | [inline] |
CSC and its APE.
Definition at line 68 of file FakeAlignmentSource.cc.
Referenced by FakeAlignmentSource().
{ return std::auto_ptr<Alignments>(new Alignments); }
std::auto_ptr<AlignmentErrors> FakeAlignmentSource::produceCSCAliErr | ( | const CSCAlignmentErrorRcd & | ) | [inline] |
Definition at line 71 of file FakeAlignmentSource.cc.
Referenced by FakeAlignmentSource().
{ return std::auto_ptr<AlignmentErrors>(new AlignmentErrors); }
std::auto_ptr<Alignments> FakeAlignmentSource::produceDTAli | ( | const DTAlignmentRcd & | ) | [inline] |
DT and its APE.
Definition at line 60 of file FakeAlignmentSource.cc.
Referenced by FakeAlignmentSource().
{ return std::auto_ptr<Alignments>(new Alignments); }
std::auto_ptr<AlignmentErrors> FakeAlignmentSource::produceDTAliErr | ( | const DTAlignmentErrorRcd & | ) | [inline] |
Definition at line 63 of file FakeAlignmentSource.cc.
Referenced by FakeAlignmentSource().
{ return std::auto_ptr<AlignmentErrors>(new AlignmentErrors); }
std::auto_ptr<Alignments> FakeAlignmentSource::produceGlobals | ( | const GlobalPositionRcd & | ) | [inline] |
GlobalPositions.
Definition at line 76 of file FakeAlignmentSource.cc.
Referenced by FakeAlignmentSource().
{ return std::auto_ptr<Alignments>(new Alignments); }
std::auto_ptr<Alignments> FakeAlignmentSource::produceTkAli | ( | const TrackerAlignmentRcd & | ) | [inline] |
Tracker and its APE.
Definition at line 52 of file FakeAlignmentSource.cc.
Referenced by FakeAlignmentSource().
{ return std::auto_ptr<Alignments>(new Alignments); }
std::auto_ptr<AlignmentErrors> FakeAlignmentSource::produceTkAliErr | ( | const TrackerAlignmentErrorRcd & | ) | [inline] |
Definition at line 55 of file FakeAlignmentSource.cc.
Referenced by FakeAlignmentSource().
{ return std::auto_ptr<AlignmentErrors>(new AlignmentErrors); }
std::auto_ptr<AlignmentSurfaceDeformations> FakeAlignmentSource::produceTrackerSurfaceDeformation | ( | const TrackerSurfaceDeformationRcd & | ) | [inline] |
Tracker surface deformations.
Definition at line 82 of file FakeAlignmentSource.cc.
Referenced by FakeAlignmentSource().
{ return std::auto_ptr<AlignmentSurfaceDeformations>(new AlignmentSurfaceDeformations); }
void FakeAlignmentSource::setIntervalFor | ( | const edm::eventsetup::EventSetupRecordKey & | , |
const edm::IOVSyncValue & | ioSyncVal, | ||
edm::ValidityInterval & | iov | ||
) | [protected, virtual] |
provide (dummy) IOV
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 160 of file FakeAlignmentSource.cc.
References edm::IOVSyncValue::beginOfTime(), and edm::IOVSyncValue::endOfTime().
{ // Implementation copied from SiStripGainFakeESSource: unlimited IOV outValidity = edm::ValidityInterval(ioSyncVal.beginOfTime(), ioSyncVal.endOfTime()); }
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().