1 #ifndef SiStripObjects_SiStripGain_h
2 #define SiStripObjects_SiStripGain_h
51 multiply(apvgain, factor, std::make_pair(
"",
""));
55 const std::pair<std::string, std::string> & recordLabelPair) :
58 multiply(apvgain, factor, recordLabelPair);
63 const std::pair<std::string, std::string> & recordLabelPair);
85 void getDetIds(std::vector<uint32_t>& DetIds_)
const;
110 const SiStripApvGain * apvgain2 = 0,
const double & factor2 = 1.);
void multiply(const SiStripApvGain &apvgain, const double &factor, const std::pair< std::string, std::string > &recordLabelPair)
Used to input additional gain values that will be multiplied to the first one.
void printDebug(std::stringstream &ss) const
std::string getLabelName(const uint32_t index) const
std::vector< const SiStripApvGain * > apvgainVector_
size_t getNumberOfTags() const
float getApvGain(const uint16_t &apv, const SiStripApvGain::Range &range) const
std::auto_ptr< SiStripApvGain > apvgainAutoPtr_
std::vector< double > normVector_
std::vector< std::pair< std::string, std::string > > recordLabelPair_
float getStripGain(const uint16_t &strip, const SiStripApvGain::Range &range) const
const SiStripApvGain * apvgain_
std::string getRcdName(const uint32_t index) const
const SiStripGain & operator=(const SiStripGain &)
std::pair< ContainerIterator, ContainerIterator > Range
void getDetIds(std::vector< uint32_t > &DetIds_) const
ATTENTION: we assume the detIds are the same as those from the first gain.
double getTagNorm(const uint32_t index) const
SiStripGain(const SiStripApvGain &apvgain, const double &factor)
Kept for compatibility.
void printSummary(std::stringstream &ss) const
void fillNewGain(const SiStripApvGain *apvgain, const double &factor, const SiStripApvGain *apvgain2=0, const double &factor2=1.)
const SiStripApvGain::Range getRange(const uint32_t &detID) const
SiStripGain(const SiStripApvGain &apvgain, const double &factor, const std::pair< std::string, std::string > &recordLabelPair)