CMS 3D CMS Logo

SiStripGain.cc

Go to the documentation of this file.
00001  // -*- C++ -*-
00002 //
00003 // Package:     SiStripObjects
00004 // Class  :     SiStripGain
00005 // Implementation:
00006 //     <Notes on implementation>
00007 // Original Author:  gbruno
00008 //         Created:  Wed Mar 22 12:24:33 CET 2006
00009 // $Id: SiStripGain.cc,v 1.3 2008/02/06 16:40:42 bainbrid Exp $
00010 
00011 #include "FWCore/Framework/interface/eventsetupdata_registration_macro.h"
00012 #include "CalibFormats/SiStripObjects/interface/SiStripGain.h"
00013 //#include "FWCore/MessageLogger/interface/MessageLogger.h"
00014 
00015 using namespace std;
00016 
00017 
00018 SiStripGain::SiStripGain()
00019 {
00020 }
00021 
00022 
00023 
00024 SiStripGain::~SiStripGain()
00025 {
00026 }
00027 
00028 
00029 SiStripGain::SiStripGain(const SiStripApvGain& apvgain, double factor) : apvgain_(&apvgain), norm_(factor)
00030 {
00031 
00032 }
00033 
00034 float SiStripGain::getStripGain(const uint16_t& strip, const SiStripApvGain::Range& range) const{
00035 
00036   return (apvgain_->getStripGain(strip,range))/norm_;
00037 
00038 }
00039 float SiStripGain::getApvGain(const uint16_t& apv, const SiStripApvGain::Range& range) const {
00040 
00041   return (apvgain_->getApvGain(apv,range))/norm_;
00042 
00043 }
00044 
00045 
00046 void SiStripGain::getDetIds(std::vector<uint32_t>& DetIds_) const {
00047 
00048   return apvgain_->getDetIds(DetIds_);
00049 
00050 }
00051 
00052 const SiStripApvGain::Range SiStripGain::getRange(const uint32_t& DetId) const {
00053   return apvgain_->getRange(DetId);
00054 
00055 }
00056 
00057 

Generated on Tue Jun 9 17:25:26 2009 for CMSSW by  doxygen 1.5.4