CMS 3D CMS Logo

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

List of all members.

Public Member Functions

 FakeAlignmentSource (const edm::ParameterSet &)
std::auto_ptr< AlignmentsproduceCSCAli (const CSCAlignmentRcd &)
 CSC and its APE.
std::auto_ptr< AlignmentErrorsproduceCSCAliErr (const CSCAlignmentErrorRcd &)
std::auto_ptr< AlignmentsproduceDTAli (const DTAlignmentRcd &)
 DT and its APE.
std::auto_ptr< AlignmentErrorsproduceDTAliErr (const DTAlignmentErrorRcd &)
std::auto_ptr< AlignmentsproduceGlobals (const GlobalPositionRcd &)
 GlobalPositions.
std::auto_ptr< AlignmentsproduceTkAli (const TrackerAlignmentRcd &)
 Tracker and its APE.
std::auto_ptr< AlignmentErrorsproduceTkAliErr (const TrackerAlignmentErrorRcd &)
std::auto_ptr
< AlignmentSurfaceDeformations
produceTrackerSurfaceDeformation (const TrackerSurfaceDeformationRcd &)
 Tracker surface deformations.
 ~FakeAlignmentSource ()

Protected Member Functions

virtual void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &ioSyncVal, edm::ValidityInterval &iov)
 provide (dummy) IOV

Private Attributes

bool produceCSC_
bool produceDT_
bool produceGlobalPosition_
bool produceTracker_
bool produceTrackerSurfaceDeformation_

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_, 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.

{}

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().

                                                                {
    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());
}

Member Data Documentation

Definition at line 95 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

Definition at line 94 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

Definition at line 96 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

Definition at line 93 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().

Definition at line 97 of file FakeAlignmentSource.cc.

Referenced by FakeAlignmentSource().