CMS 3D CMS Logo

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

#include <SiStripBaseDelayGenerator.h>

Inheritance diagram for SiStripBaseDelayGenerator:
SiStripCondObjBuilderBase< SiStripBaseDelay >

Public Member Functions

void getObj (SiStripBaseDelay *&obj)
 
 SiStripBaseDelayGenerator (const edm::ParameterSet &, const edm::ActivityRegistry &)
 
 ~SiStripBaseDelayGenerator ()
 
- Public Member Functions inherited from SiStripCondObjBuilderBase< SiStripBaseDelay >
virtual bool checkForCompatibility (std::string ss)
 
virtual void getMetaDataString (std::stringstream &ss)
 
virtual void initialize ()
 
 SiStripCondObjBuilderBase (const edm::ParameterSet &pset)
 
virtual ~SiStripCondObjBuilderBase ()
 

Private Member Functions

SiStripBaseDelaycreateObject ()
 

Additional Inherited Members

- Protected Attributes inherited from SiStripCondObjBuilderBase< SiStripBaseDelay >
edm::ParameterSet _pset
 
SiStripBaseDelayobj_
 

Detailed Description

Fake generator for base delay values stored in the SiStripBaseDelay object.

Definition at line 14 of file SiStripBaseDelayGenerator.h.

Constructor & Destructor Documentation

SiStripBaseDelayGenerator::SiStripBaseDelayGenerator ( const edm::ParameterSet iConfig,
const edm::ActivityRegistry aReg 
)
explicit

Definition at line 10 of file SiStripBaseDelayGenerator.cc.

10  :
12 {
13  edm::LogInfo("SiStripBaseDelayGenerator") << "[SiStripBaseDelayGenerator::SiStripBaseDelayGenerator]";
14 }
SiStripCondObjBuilderBase(const edm::ParameterSet &pset)
SiStripBaseDelayGenerator::~SiStripBaseDelayGenerator ( )

Definition at line 16 of file SiStripBaseDelayGenerator.cc.

17 {
18  edm::LogInfo("SiStripBaseDelayGenerator") << "[SiStripBaseDelayGenerator::~SiStripBaseDelayGenerator]";
19 }

Member Function Documentation

SiStripBaseDelay * SiStripBaseDelayGenerator::createObject ( )
private

Definition at line 21 of file SiStripBaseDelayGenerator.cc.

References SiStripCondObjBuilderBase< SiStripBaseDelay >::_pset, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), getGTfromDQMFile::obj, SiStripBaseDelay::put(), and matplotRender::reader.

Referenced by Vispa.Views.LineDecayView.LineDecayContainer::dropEvent(), and getObj().

22 {
24 
25  // Read the full list of detIds
27  uint16_t coarseDelay = _pset.getParameter<uint32_t>("CoarseDelay");
28  uint16_t fineDelay = _pset.getParameter<uint32_t>("FineDelay");
30  const std::map<uint32_t, SiStripDetInfoFileReader::DetInfo > detInfos = reader.getAllData();
31  if( !detInfos.empty() ) {
32  std::map<uint32_t, SiStripDetInfoFileReader::DetInfo>::const_iterator it = detInfos.begin();
33  for( ; it != detInfos.end(); ++it ) {
34  obj->put(it->first, coarseDelay, fineDelay);
35  }
36  }
37  else {
38  edm::LogError("SiStripBaseDelayGenerator") << "Error: detInfo map is empty." << std::endl;
39  }
40  return obj;
41 }
T getParameter(std::string const &) const
bool put(const uint32_t detId, const uint16_t coarseDelay, const uint16_t fineDelay)
std::string fullPath() const
Definition: FileInPath.cc:184
void SiStripBaseDelayGenerator::getObj ( SiStripBaseDelay *&  obj)
inlinevirtual

Returns the CondObj

Reimplemented from SiStripCondObjBuilderBase< SiStripBaseDelay >.

Definition at line 20 of file SiStripBaseDelayGenerator.h.

References createObject().

20 {obj=createObject();}