CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Attributes

SiPixelFakeQualityESSource Class Reference

#include <CalibTracker/SiPixelESProducer/src/SiPixelFakeQualityESSource.cc>

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

List of all members.

Public Member Functions

virtual std::auto_ptr
< SiPixelQuality
produce (const SiPixelQualityFromDbRcd &)
 SiPixelFakeQualityESSource (const edm::ParameterSet &)
 ~SiPixelFakeQualityESSource ()

Protected Member Functions

virtual void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)

Private Attributes

edm::FileInPath fp_

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 37 of file SiPixelFakeQualityESSource.h.


Constructor & Destructor Documentation

SiPixelFakeQualityESSource::SiPixelFakeQualityESSource ( const edm::ParameterSet conf_)

Definition at line 29 of file SiPixelFakeQualityESSource.cc.

References edm::ESProducer::setWhatProduced().

                                                                                   : fp_(conf_.getParameter<edm::FileInPath>("file"))
{
        edm::LogInfo("SiPixelFakeQualityESSource::SiPixelFakeQualityESSource");
        //the following line is needed to tell the framework what
        // data is being produced
        setWhatProduced(this);
        findingRecord<SiPixelQualityFromDbRcd>();
}
SiPixelFakeQualityESSource::~SiPixelFakeQualityESSource ( )

Definition at line 38 of file SiPixelFakeQualityESSource.cc.

{
 
   // do anything here that needs to be done at desctruction time
   // (e.g. close files, deallocate resources etc.)

}

Member Function Documentation

std::auto_ptr< SiPixelQuality > SiPixelFakeQualityESSource::produce ( const SiPixelQualityFromDbRcd ) [virtual]

Definition at line 46 of file SiPixelFakeQualityESSource.cc.

References SiPixelQuality::addDisabledModule(), SiPixelQuality::disabledModuleType::BadRocs, SiPixelQuality::disabledModuleType::DetID, SiPixelQuality::disabledModuleType::errorType, and VarParsing::obj.

{


      //  errortype "whole" = int 0 in DB  BadRocs = 65535 //
      //  errortype "tbmA" = int 1 in DB  BadRocs = 255    //
      //  errortype "tbmB" = int 2 in DB  Bad Rocs = 65280 //
      //  errortype "none" = int 3 in DB                   //
  
    SiPixelQuality * obj = new SiPixelQuality();

    SiPixelQuality::disabledModuleType BadModule;
    BadModule.DetID = 1; BadModule.errorType = 0; BadModule.BadRocs = 65535; obj->addDisabledModule(BadModule);

    return std::auto_ptr<SiPixelQuality>(obj);

}
void SiPixelFakeQualityESSource::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey ,
const edm::IOVSyncValue iosv,
edm::ValidityInterval oValidity 
) [protected, virtual]

Member Data Documentation

Definition at line 56 of file SiPixelFakeQualityESSource.h.