#include <SiStripApvGainReader.h>
|
void | analyze (const edm::Event &, const edm::EventSetup &) |
|
| SiStripApvGainReader (const edm::ParameterSet &) |
|
| ~SiStripApvGainReader () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Definition at line 19 of file SiStripApvGainReader.h.
Definition at line 15 of file SiStripApvGainReader.cc.
T getUntrackedParameter(std::string const &, T const &) const
std::string formatedOutput_
SiStripApvGainReader::~SiStripApvGainReader |
( |
| ) |
|
Definition at line 23 of file SiStripApvGainReader.cc.
References formatedOutput_, gainType_, edm::EventSetup::get(), SiStripGain::getApvGain(), SiStripGain::getDetIds(), SiStripGain::getRange(), hcalTTPDigis_cfi::id, NULL, and printdebug_.
27 edm::LogInfo(
"SiStripApvGainReader") <<
"[SiStripApvGainReader::analyze] End Reading SiStripApvGain" << std::endl;
29 std::vector<uint32_t> detid;
31 edm::LogInfo(
"Number of detids ") << detid.size() << std::endl;
36 for (
size_t id=0;
id<detid.size();
id++){
40 for(
int it=0;it<range.second-range.first;it++){
41 edm::LogInfo(
"SiStripApvGainReader") <<
"detid " << detid[
id] <<
" \t " << apv++ <<
" \t " << SiStripApvGain_->
getApvGain(it,range) << std::endl;
46 fprintf(pFile,
"%i ",detid[
id]);
47 for(
int it=0;it<range.second-range.first;it++){
48 fprintf(pFile,
"%f ", SiStripApvGain_->
getApvGain(it,range) );
49 }fprintf(pFile,
"\n");
54 if(pFile)fclose(pFile);
static float getApvGain(const uint16_t &apv, const SiStripApvGain::Range &range)
std::pair< ContainerIterator, ContainerIterator > Range
std::string formatedOutput_
void getDetIds(std::vector< uint32_t > &DetIds_) const
ATTENTION: we assume the detIds are the same as those from the first gain.
const SiStripApvGain::Range getRange(uint32_t detID) const
std::string SiStripApvGainReader::formatedOutput_ |
|
private |
uint32_t SiStripApvGainReader::gainType_ |
|
private |
bool SiStripApvGainReader::printdebug_ |
|
private |