#include <SiStripNoiseNormalizedWithApvGainBuilder.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
SiStripNoiseNormalizedWithApvGainBuilder (const edm::ParameterSet &iConfig) | |
~SiStripNoiseNormalizedWithApvGainBuilder () | |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
void | fillParameters (std::map< int, std::vector< double > > &mapToFill, const std::string ¶meterName) const |
Fills the parameters read from cfg and matching the name in the given map. More... | |
void | fillSubDetParameter (std::map< int, std::vector< double > > &mapToFill, const std::vector< double > &v, const int subDet, const unsigned short layers) const |
void | printLog (const uint32_t detId, const unsigned short strip, const double &noise) const |
std::pair< int, int > | subDetAndLayer (const uint32_t detit, const TrackerTopology *tTopo) const |
Given the map and the detid it returns the corresponding layer/ring. More... | |
Private Attributes | |
double | electronsPerADC_ |
edm::FileInPath | fp_ |
double | minimumPosValue_ |
bool | printdebug_ |
uint32_t | printDebug_ |
edm::ParameterSet | pset_ |
bool | stripLengthMode_ |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Produces a noise tag using the same settings as the service used in the DummyDBWriter, but it receives a SiStripApvGain tag from the EventSetup and uses the gain values (per apv) to rescale the noise (per strip).
Definition at line 28 of file SiStripNoiseNormalizedWithApvGainBuilder.h.
|
explicit |
Definition at line 13 of file SiStripNoiseNormalizedWithApvGainBuilder.cc.
|
inline |
Definition at line 34 of file SiStripNoiseNormalizedWithApvGainBuilder.h.
|
virtual |
Implements edm::EDAnalyzer.
Definition at line 23 of file SiStripNoiseNormalizedWithApvGainBuilder.cc.
References cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::beginOfTime(), KineDebug3::count(), cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::currentTime(), electronsPerADC_, cond::service::PoolDBOutputService::endOfTime(), fillParameters(), fp_, edm::FileInPath::fullPath(), edm::EventSetup::get(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), estimatePileup::inputRange, edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), j, minimumPosValue_, HLT_25ns10e33_v2_cff::noise, getGTfromDQMFile::obj, printDebug_, printLog(), edm::ESHandle< class >::product(), pset_, SiStripNoises::put(), matplotRender::reader, SiStripNoises::setData(), stripLengthMode_, and subDetAndLayer().
|
private |
Fills the parameters read from cfg and matching the name in the given map.
Definition at line 152 of file SiStripNoiseNormalizedWithApvGainBuilder.cc.
References fillSubDetParameter(), edm::ParameterSet::getParameter(), pset_, StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, and StripSubdetector::TOB.
Referenced by analyze().
|
private |
Fills the map with the paramters for the given subdetector.
Each vector "v" holds the parameters for the layers/rings, if the vector has only one parameter all the layers/rings get that parameter.
The only other possibility is that the number of parameters equals the number of layers, otherwise an exception of type "Configuration" will be thrown.
Definition at line 165 of file SiStripNoiseNormalizedWithApvGainBuilder.cc.
References Exception, and LayerTriplets::layers().
Referenced by fillParameters().
|
inlineprivate |
Definition at line 52 of file SiStripNoiseNormalizedWithApvGainBuilder.h.
Referenced by analyze().
|
private |
Given the map and the detid it returns the corresponding layer/ring.
Definition at line 130 of file SiStripNoiseNormalizedWithApvGainBuilder.cc.
References DetId::subdetId(), StripSubdetector::TEC, TrackerTopology::tecRing(), StripSubdetector::TIB, TrackerTopology::tibLayer(), StripSubdetector::TID, TrackerTopology::tidRing(), StripSubdetector::TOB, and TrackerTopology::tobLayer().
Referenced by analyze().
|
private |
Definition at line 61 of file SiStripNoiseNormalizedWithApvGainBuilder.h.
Referenced by analyze().
|
private |
Definition at line 57 of file SiStripNoiseNormalizedWithApvGainBuilder.h.
Referenced by analyze().
|
private |
Definition at line 62 of file SiStripNoiseNormalizedWithApvGainBuilder.h.
Referenced by analyze().
|
private |
Definition at line 58 of file SiStripNoiseNormalizedWithApvGainBuilder.h.
|
private |
Definition at line 64 of file SiStripNoiseNormalizedWithApvGainBuilder.h.
Referenced by analyze().
|
private |
Definition at line 59 of file SiStripNoiseNormalizedWithApvGainBuilder.h.
Referenced by analyze(), and fillParameters().
|
private |
Definition at line 63 of file SiStripNoiseNormalizedWithApvGainBuilder.h.
Referenced by analyze().