19 #include "CLHEP/Random/RandGauss.h"
29 edm::LogInfo(
"SiStripGainRandomCalculator::SiStripGainRandomCalculator");
49 edm::LogInfo(
"SiStripGainRandomCalculator::~SiStripGainRandomCalculator");
66 edm::LogInfo(
"SiStripGainRandomCalculator::algoAnalyze - got new geometry ")<<std::endl;
70 edm::LogInfo(
"SiStripGainCalculator") <<
" There are "<<pDD->detUnits().size() <<
" detectors"<<std::endl;
72 for(TrackerGeometry::DetUnitContainer::const_iterator it = pDD->detUnits().begin(); it != pDD->detUnits().end(); it++){
74 if( dynamic_cast<StripGeomDetUnit*>((*it))!=0){
75 uint32_t
detid=((*it)->geographicalId()).rawId();
77 unsigned short NAPVs = p.
nstrips()/128;
78 if(NAPVs<1 || NAPVs>6 ) {
79 edm::LogError(
"SiStripGainCalculator")<<
" Problem with Number of strips in detector.. "<< p.
nstrips() <<
" Exiting program"<<endl;
82 detid_apvs_.push_back( pair<uint32_t,unsigned short>(detid,NAPVs) );
84 edm::LogInfo(
"SiStripGainCalculator")<<
"detid " << detid <<
" apvs " << NAPVs;
95 std::cout<<
"SiStripGainRandomCalculator::getNewObject called"<<std::endl;
99 for(std::vector< pair<uint32_t,unsigned short> >::const_iterator it =
detid_apvs_.begin(); it !=
detid_apvs_.end(); it++){
101 std::vector<float> theSiStripVector;
102 for(
unsigned short j=0;
j<it->second;
j++){
112 edm::LogInfo(
"SiStripGainCalculator") <<
"detid " << it->first <<
" \t"
113 <<
" apv " <<
j <<
" \t"
116 theSiStripVector.push_back(gain);
121 if ( ! obj->
put(it->first,range) )
122 edm::LogError(
"SiStripGainCalculator")<<
"[SiStripGainCalculator::beginJob] detid already exists"<<std::endl;
T getParameter(std::string const &) const
virtual int nstrips() const =0
T getUntrackedParameter(std::string const &, T const &) const
~SiStripGainRandomCalculator()
bool put(const uint32_t &detID, Range input)
void algoAnalyze(const edm::Event &, const edm::EventSetup &)
std::pair< ContainerIterator, ContainerIterator > Range
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
SiStripGainRandomCalculator(const edm::ParameterSet &)
std::vector< std::pair< uint32_t, unsigned short > > detid_apvs_
SiStripApvGain * getNewObject()
unsigned long long m_cacheID_