CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
SiStripCondObjBuilderFromDb Class Reference

#include <SiStripCondObjBuilderFromDb.h>

Public Types

typedef std::vector
< pair_apvpairconn >::iterator 
i_apvpairconn
 
typedef std::vector
< pair_detcon >::iterator 
i_trackercon
 
typedef std::pair< uint32_t,
FedChannelConnection
pair_apvpairconn
 
typedef std::pair< uint32_t,
v_apvpairconn
pair_detcon
 
typedef std::vector< pair_detcontrackercon
 
typedef std::vector
< pair_apvpairconn
v_apvpairconn
 

Public Member Functions

void buildAnalysisRelatedObjects (SiStripConfigDb *const db, const trackercon &tc)
 
void buildCondObj ()
 
void buildFECRelatedObjects (SiStripConfigDb *const db, const trackercon &tc)
 
void buildFEDRelatedObjects (SiStripConfigDb *const db, const trackercon &tc)
 
void buildStripRelatedObjects (SiStripConfigDb *const db, const SiStripDetCabling &det_cabling)
 
bool checkForCompatibility (std::stringstream &input, std::stringstream &output, std::string &label)
 
const SiStripDbParamsdbParams () const
 
SiStripApvGaingetApvGain ()
 
SiStripLatencygetApvLatency ()
 
SiStripFedCablinggetFedCabling ()
 
SiStripNoisesgetNoises ()
 
SiStripPedestalsgetPedestals ()
 
SiStripQualitygetQuality ()
 
SiStripThresholdgetThreshold ()
 
void getValue (SiStripFedCabling *&val)
 
void getValue (SiStripPedestals *&val)
 
void getValue (SiStripNoises *&val)
 
void getValue (SiStripThreshold *&val)
 
void getValue (SiStripQuality *&val)
 
void getValue (SiStripBadStrip *&val)
 
void getValue (SiStripApvGain *&val)
 
void getValue (SiStripLatency *&val)
 
 SiStripCondObjBuilderFromDb ()
 
 SiStripCondObjBuilderFromDb (const edm::ParameterSet &, const edm::ActivityRegistry &)
 
virtual ~SiStripCondObjBuilderFromDb ()
 

Protected Member Functions

vector< const
FedChannelConnection * > 
buildConnections (const SiStripDetCabling &det_cabling, uint32_t det_id)
 
void checkUpdate ()
 
vector< uint32_t > retrieveActiveDetIds (const SiStripDetCabling &det_cabling)
 
bool retrieveFedDescriptions (SiStripConfigDb *const db)
 
uint16_t retrieveNumberAPVPairs (uint32_t det_id)
 
bool retrieveTimingAnalysisDescriptions (SiStripConfigDb *const db)
 
void setDefaultValuesApvLatency (SiStripLatency &latency_, const FedChannelConnection &ipair, uint32_t detid, uint16_t apvnr)
 
void setDefaultValuesApvTiming ()
 
void setDefaultValuesCabling (uint16_t apvPair)
 
bool setValuesApvLatency (SiStripLatency &latency_, SiStripConfigDb *const db, FedChannelConnection &ipair, uint32_t detid, uint16_t apvnr, SiStripConfigDb::DeviceDescriptionsRange apvs)
 
bool setValuesApvTiming (SiStripConfigDb *const db, FedChannelConnection &ipair)
 
bool setValuesCabling (SiStripConfigDb::FedDescriptionsRange &descriptions, FedChannelConnection &ipair, uint32_t detid)
 
void storeNoise (uint32_t det_id)
 
void storePedestals (uint32_t det_id)
 
void storeQuality (uint32_t det_id)
 
void storeThreshold (uint32_t det_id)
 
void storeTiming (uint32_t det_id)
 

Protected Attributes

edm::Service< SiStripConfigDbdb_
 
SiStripDbParams dbParams_
 
SiStripFedCablingfed_cabling_
 
SiStripApvGaingain_
 
SiStripApvGain::InputVector inputApvGain
 
SiStripNoises::InputVector inputNoises
 
SiStripPedestals::InputVector inputPedestals
 
SiStripQuality::InputVector inputQuality
 
SiStripThreshold::InputVector inputThreshold
 
SiStripLatencylatency_
 
bool m_debug
 
uint16_t m_defaultapvlatencyvalue
 
uint16_t m_defaultapvmodevalue
 
float m_defaultnoisevalue
 
float m_defaultpedestalvalue
 
float m_defaultthresholdhighvalue
 
float m_defaultthresholdlowvalue
 
float m_defaulttickheightvalue
 
float m_gaincalibrationfactor
 
bool m_useanalysis
 
bool m_usefec
 
bool m_usefed
 
SiStripNoisesnoises_
 
pair_apvpairconn p_apvpcon
 
pair_detcon p_detcon
 
SiStripPedestalspedestals_
 
SiStripQualityquality_
 
SiStripThresholdthreshold_
 
v_apvpairconn v_apvpcon
 
trackercon v_trackercon
 

Detailed Description

Definition at line 43 of file SiStripCondObjBuilderFromDb.h.

Member Typedef Documentation

Definition at line 54 of file SiStripCondObjBuilderFromDb.h.

Definition at line 53 of file SiStripCondObjBuilderFromDb.h.

Definition at line 48 of file SiStripCondObjBuilderFromDb.h.

Definition at line 50 of file SiStripCondObjBuilderFromDb.h.

Definition at line 51 of file SiStripCondObjBuilderFromDb.h.

Definition at line 49 of file SiStripCondObjBuilderFromDb.h.

Constructor & Destructor Documentation

SiStripCondObjBuilderFromDb::SiStripCondObjBuilderFromDb ( )

Definition at line 53 of file SiStripCondObjBuilderFromDb.cc.

References LogTrace, and sistrip::mlESSources_.

54 {
56  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
57  << " Constructing object...";
58 }
#define LogTrace(id)
static const char mlESSources_[]
SiStripCondObjBuilderFromDb::SiStripCondObjBuilderFromDb ( const edm::ParameterSet pset,
const edm::ActivityRegistry  
)

Definition at line 31 of file SiStripCondObjBuilderFromDb.cc.

References LogTrace, and sistrip::mlESSources_.

32  :
33  m_gaincalibrationfactor(static_cast<float>(pset.getUntrackedParameter<double>("GainNormalizationFactor",690.))),
34  m_defaultpedestalvalue(static_cast<float>(pset.getUntrackedParameter<double>("DefaultPedestal",0.))),
35  m_defaultnoisevalue(static_cast<float>(pset.getUntrackedParameter<double>("DefaultNoise",0.))),
36  m_defaultthresholdhighvalue(static_cast<float>(pset.getUntrackedParameter<double>("DefaultThresholdHigh",0.))),
37  m_defaultthresholdlowvalue(static_cast<float>(pset.getUntrackedParameter<double>("DefaultThresholdLow",0.))),
38  m_defaultapvmodevalue(static_cast<uint16_t>(pset.getUntrackedParameter<uint32_t>("DefaultAPVMode",37))),
39  m_defaultapvlatencyvalue(static_cast<uint16_t>(pset.getUntrackedParameter<uint32_t>("DefaultAPVLatency",142))),
40  m_defaulttickheightvalue(static_cast<float>(pset.getUntrackedParameter<double>("DefaultTickHeight",690.))),
41  m_useanalysis(static_cast<bool>(pset.getUntrackedParameter<bool>("UseAnalysis",false))),
42  m_usefed(static_cast<bool>(pset.getUntrackedParameter<bool>("UseFED",false))),
43  m_usefec(static_cast<bool>(pset.getUntrackedParameter<bool>("UseFEC",false))),
44  m_debug(static_cast<bool>(pset.getUntrackedParameter<bool>("DebugMode",false)))
45 {
47  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
48  << " Constructing object...";
49 }
T getUntrackedParameter(std::string const &, T const &) const
#define LogTrace(id)
static const char mlESSources_[]
SiStripCondObjBuilderFromDb::~SiStripCondObjBuilderFromDb ( )
virtual

Definition at line 62 of file SiStripCondObjBuilderFromDb.cc.

References LogTrace, and sistrip::mlESSources_.

62  {
64  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
65  << " Destructing object...";
66 }
#define LogTrace(id)
static const char mlESSources_[]

Member Function Documentation

void SiStripCondObjBuilderFromDb::buildAnalysisRelatedObjects ( SiStripConfigDb *const  db,
const trackercon tc 
)

Definition at line 552 of file SiStripCondObjBuilderFromDb.cc.

References gather_cfg::cout, db_, cond::rpcobgas::detid, end, gain_, m_defaulttickheightvalue, m_gaincalibrationfactor, sistrip::mlESSources_, retrieveTimingAnalysisDescriptions(), setDefaultValuesApvTiming(), setValuesApvTiming(), and storeTiming().

Referenced by buildCondObj().

552  {
553  trackercon tc = _tc;
554  std::cout << "Entering [SiStripCondObjBuilderFromDb::"<<__func__ <<"]"<<std::endl;
555  //data container
556  gain_= new SiStripApvGain();
557 
558  //check if Timing analysis description is found, otherwise quit
561  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
562  << " NULL pointer to AnalysisDescriptions returned by SiStripConfigDb!"
563  << " Cannot build Analysis object! QUIT";
564  // some values have to be set, otherwise PopCon will crash
566  storeTiming(4711);
567  return;
568  }
569 
570  i_trackercon detids_end=tc.end();
571 
572  //loop detids
573  for(i_trackercon detids=tc.begin();detids!=detids_end;detids++){
574  uint32_t detid = (*detids).first;
575  i_apvpairconn connections_end=((*detids).second).end();
576 
577  //loop connections
578  for(i_apvpairconn connections=((*detids).second).begin();connections!=connections_end;connections++){
579  uint32_t apvPair =(*connections).first;
580  FedChannelConnection ipair =(*connections).second;
581 
582 
583  //no connection for apvPair found
584  if(apvPair>=100){
586  continue;
587  }
588 
589  //fill data
590  if(!setValuesApvTiming(db, ipair)){
591  std::cout
592  << "\n "
593  << " Unable to find Timing Analysis Description"
594  << " Writing default values for DetId: " << detid
595  << " Value: " << m_defaulttickheightvalue/m_gaincalibrationfactor << std::endl;
597  }
598  }//connections
599  storeTiming(detid);
600  }//detids
601 
602 }
edm::Service< SiStripConfigDb > db_
Class containning control, module, detector and connection information, at the level of a FED channel...
std::vector< pair_detcon > trackercon
#define end
Definition: vmac.h:37
bool retrieveTimingAnalysisDescriptions(SiStripConfigDb *const db)
tuple cout
Definition: gather_cfg.py:121
static const char mlESSources_[]
std::vector< pair_detcon >::iterator i_trackercon
std::vector< pair_apvpairconn >::iterator i_apvpairconn
bool setValuesApvTiming(SiStripConfigDb *const db, FedChannelConnection &ipair)
void SiStripCondObjBuilderFromDb::buildCondObj ( )

Builds pedestals using FED descriptions and cabling info retrieved from configuration database.

Definition at line 113 of file SiStripCondObjBuilderFromDb.cc.

References buildAnalysisRelatedObjects(), SiStripFedCablingBuilderFromDb::buildFecCabling(), buildFECRelatedObjects(), buildFEDRelatedObjects(), buildStripRelatedObjects(), sistrip::CABLING_FROM_CONNS, SiStripConfigDb::databaseCache(), db_, SiStripConfigDb::deviceFactory(), fed_cabling_, SiStripFedCablingBuilderFromDb::getFedCabling(), LogTrace, m_useanalysis, m_usefec, m_usefed, sistrip::mlESSources_, and v_trackercon.

Referenced by checkUpdate().

113  {
115  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]";
116 
117  // Check if DB connection is made
118  if ( db_ ) {
119 
120  // Check if DB connection is made
121  if ( db_->deviceFactory() ||
122  db_->databaseCache() ) {
123 
124  // Build FEC cabling object
125  SiStripFecCabling fec_cabling;
126 
128  fec_cabling,
131 
133  SiStripDetCabling det_cabling( *fed_cabling_ );
134  buildStripRelatedObjects( &*db_, det_cabling );
135 
136 
140 
141 
142 
143  } else {
145  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
146  << " NULL pointer to DeviceFactory returned by SiStripConfigDb!"
147  << " Cannot build Pedestals object!";
148  }
149  } else {
151  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
152  << " NULL pointer to SiStripConfigDb returned by DB \"service\"!"
153  << " Cannot build Pedestals object!";
154  }
155 }
void buildAnalysisRelatedObjects(SiStripConfigDb *const db, const trackercon &tc)
DeviceFactory *const deviceFactory(std::string method_name="") const
edm::Service< SiStripConfigDb > db_
void buildFECRelatedObjects(SiStripConfigDb *const db, const trackercon &tc)
void buildStripRelatedObjects(SiStripConfigDb *const db, const SiStripDetCabling &det_cabling)
static void buildFecCabling(SiStripConfigDb *const, SiStripFecCabling &, const sistrip::CablingSource &)
void buildFEDRelatedObjects(SiStripConfigDb *const db, const trackercon &tc)
#define LogTrace(id)
DbClient *const databaseCache(std::string method_name="") const
static void getFedCabling(const SiStripFecCabling &in, SiStripFedCabling &out)
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
static const char mlESSources_[]
vector< const FedChannelConnection * > SiStripCondObjBuilderFromDb::buildConnections ( const SiStripDetCabling det_cabling,
uint32_t  det_id 
)
protected

Definition at line 210 of file SiStripCondObjBuilderFromDb.cc.

References SiStripDetCabling::getConnections(), and sistrip::mlESSources_.

Referenced by buildStripRelatedObjects().

210  {
211  vector<const FedChannelConnection *> conns = det_cabling.getConnections(det_id);
212  if (conns.size()==0){
214  << "SiStripCondObjBuilderFromDb::" << __func__ << "]"
215  << " Unable to build condition object!"
216  << " No FED channel connections found for detid "<< det_id;
217  }
218  return conns;
219 }
const std::vector< const FedChannelConnection * > & getConnections(uint32_t det_id) const
static const char mlESSources_[]
void SiStripCondObjBuilderFromDb::buildFECRelatedObjects ( SiStripConfigDb *const  db,
const trackercon tc 
)

Definition at line 606 of file SiStripCondObjBuilderFromDb.cc.

References SiStripLatency::compress(), gather_cfg::cout, cond::rpcobgas::detid, end, SiStripConfigDb::getDeviceDescriptions(), latency_, SiStripLatency::printDebug(), SiStripLatency::printSummary(), and setValuesApvLatency().

Referenced by buildCondObj().

606  {
607  trackercon tc = _tc;
608  std::cout << "Entering [SiStripCondObjBuilderFromDb::"<<__func__ <<"]"<<std::endl;
609  //data container
610  latency_ = new SiStripLatency();
611 
612  i_trackercon detids_end=tc.end();
613 
614  // get APV DeviceDescriptions
616 
617 
618  //loop detids
619  for(i_trackercon detids=tc.begin();detids!=detids_end;detids++){
620  uint32_t detid = (*detids).first;
621  uint16_t apvnr=1;
622  i_apvpairconn connections_end=((*detids).second).end();
623 
624 
625  //loop connections
626  for(i_apvpairconn connections=((*detids).second).begin();connections!=connections_end;connections++){
627  uint32_t apvPair =(*connections).first;
628  FedChannelConnection ipair =(*connections).second;
629 
630  //no connection for apvPair found
631  if(apvPair>=100){
632  //setDefaultValuesApvLatency((*latency_),ipair, detid, apvnr);
633  std::cout << "[SiStripCondObjBuilderFromDb::" << __func__ << "] No FEDConnection for DetId " << detid << " ApvPair " << apvPair-100 << " found, skipping Latency Insertion!" << std::endl;
634  continue;
635  }
636 
637  //fill data
638  if(!setValuesApvLatency((*latency_),db, ipair, detid, apvnr, apvs)){
639  std::cout
640  << "\n "
641  << " Unable to find FEC Description"
642  << " Skipping Insertion for DetId: " << detid << std::endl;
643  //setDefaultValuesApvLatency((*latency_),ipair, detid, apvnr);
644  }
645  apvnr+=2;
646  }//connections
647  // compact Latency Object
648 
649  }//detids
650  latency_->compress();
651  std::stringstream ss;
652  // latency debug output
653  latency_->printSummary(ss);
654  latency_->printDebug(ss);
655  std::cout << ss.str() << std::endl;
656 }
bool setValuesApvLatency(SiStripLatency &latency_, SiStripConfigDb *const db, FedChannelConnection &ipair, uint32_t detid, uint16_t apvnr, SiStripConfigDb::DeviceDescriptionsRange apvs)
Class containning control, module, detector and connection information, at the level of a FED channel...
DeviceDescriptions::range DeviceDescriptionsRange
std::vector< pair_detcon > trackercon
#define end
Definition: vmac.h:37
void printSummary(std::stringstream &ss) const
Prints the number of ranges as well as the value of singleLatency and singleMode. ...
void printDebug(std::stringstream &ss) const
Prints the full list of all ranges and corresponding values of latency and mode.
tuple cout
Definition: gather_cfg.py:121
DeviceDescriptionsRange getDeviceDescriptions(std::string partition="")
std::vector< pair_detcon >::iterator i_trackercon
std::vector< pair_apvpairconn >::iterator i_apvpairconn
void SiStripCondObjBuilderFromDb::buildFEDRelatedObjects ( SiStripConfigDb *const  db,
const trackercon tc 
)

Definition at line 660 of file SiStripCondObjBuilderFromDb.cc.

References gather_cfg::cout, cond::rpcobgas::detid, end, FedChannelConnection::fedId(), SiStripConfigDb::getFedDescriptions(), noises_, pedestals_, quality_, setDefaultValuesCabling(), setValuesCabling(), AlCaHarvesting_cff::SiStripQuality, storeNoise(), storePedestals(), storeQuality(), storeThreshold(), and threshold_.

Referenced by buildCondObj().

660  {
661  trackercon tc = _tc;
662  std::cout << "Entering [SiStripCondObjBuilderFromDb::"<<__func__ <<"]"<<std::endl;
663 
664  //data containers
666  noises_ = new SiStripNoises();
668  quality_ = new SiStripQuality();
669 
670  i_trackercon detids_end=tc.end();
671 
672  //Build FED Descriptions out of db object
674 
675  //loop detids
676  for(i_trackercon detids=tc.begin();detids!=detids_end;detids++){
677  uint32_t detid = (*detids).first;
678  i_apvpairconn connections_end=((*detids).second).end();
679 
680  //loop connections
681  for(i_apvpairconn connections=((*detids).second).begin();connections!=connections_end;connections++){
682  uint32_t apvPair =(*connections).first;
683  FedChannelConnection ipair =(*connections).second;
684 
685  //no connection for apvPair found
686  if(apvPair>=100){
687  std::cout
688  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
689  << " Unable to find FED description for FED id: " << ipair.fedId()
690  << " detid : " << detid << " APV pair number " << apvPair
691  << " Writing default values"<< std::endl;
692  setDefaultValuesCabling((apvPair-100));
693  continue;
694  }
695  // if(!setValuesCabling(db, ipair, detid)){
696  if(!setValuesCabling(descriptions, ipair, detid)){
697  std::cout
698  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
699  << " Unable to find FED description for FED id: " << ipair.fedId()
700  << " detid : " << detid << " APV pair number " << apvPair
701  << " Writing default values"<< std::endl;
702  setDefaultValuesCabling(apvPair);
703  }
704  }//connections
705  storePedestals(detid);
706  storeNoise(detid);
707  storeThreshold(detid);
708  storeQuality(detid);
709  }//detids
710 }
FedDescriptionsRange getFedDescriptions(std::string partition="")
FedDescriptions::range FedDescriptionsRange
const uint16_t & fedId() const
void setDefaultValuesCabling(uint16_t apvPair)
Class containning control, module, detector and connection information, at the level of a FED channel...
std::vector< pair_detcon > trackercon
#define end
Definition: vmac.h:37
bool setValuesCabling(SiStripConfigDb::FedDescriptionsRange &descriptions, FedChannelConnection &ipair, uint32_t detid)
tuple cout
Definition: gather_cfg.py:121
std::vector< pair_detcon >::iterator i_trackercon
std::vector< pair_apvpairconn >::iterator i_apvpairconn
void SiStripCondObjBuilderFromDb::buildStripRelatedObjects ( SiStripConfigDb *const  db,
const SiStripDetCabling det_cabling 
)

Definition at line 461 of file SiStripCondObjBuilderFromDb.cc.

References SiStripDetCabling::addActiveDetectorsRawIds(), buildConnections(), gather_cfg::cout, sistrip::invalid32_, sistrip::invalid_, sistrip::mlESSources_, p_apvpcon, p_detcon, retrieveFedDescriptions(), retrieveNumberAPVPairs(), v_apvpcon, and v_trackercon.

Referenced by buildCondObj().

462  {
463  //variables needed in this function
464  uint16_t nApvPairs;
465  vector<uint32_t>::const_iterator det_id;
466  vector<uint32_t> det_ids;
467 
469  << "\n[SiStripCondObjBuilderFromDb::" << __func__ << "] first call to this method";
470 
471  //Check if FedDescriptions exist, if not return
472  if (!retrieveFedDescriptions(db)) {std::cout<< "Found no FedDescription!" << std::endl;return;}
473  // Retrieve list of active DetIds
474  det_cabling.addActiveDetectorsRawIds(det_ids);
475  if ( det_ids.empty() ) {
476  std::cout
477  << "SiStripCondObjBuilderFromDb::" << __func__ << "]"
478  << " Unable to build Pedestals object!"
479  << " No DetIds found!" << std::endl;
480  return;
481  }
482  std::cout << "\n\nSiStripCondObjBuilderFromDb::" << __func__ << "]"
483  << " Found " << det_ids.size() << " active DetIds";
484 
485  // Loop Active DetIds
486  det_id = det_ids.begin();
487  for ( ; det_id != det_ids.end(); det_id++ ) {
488  std::stringstream ssMessage;
489 
490  // Ignore NULL DetIds
491  if ( !(*det_id) ) { continue; }
492  if ( *det_id == sistrip::invalid32_ ) { continue; }
493 
494 
495  //build connections per DetId
496  const vector<const FedChannelConnection *>& conns=buildConnections(det_cabling, *det_id);
497 
498  vector<const FedChannelConnection *>::const_iterator ipair = conns.begin();
499  if(conns.size() ==0 ) continue;
500 
501  //retrieve number of APV pairs per detid
502  nApvPairs=retrieveNumberAPVPairs(*det_id);
503 
504 
505  //loop connections and check if APVPair is connected
506  vector< vector<const FedChannelConnection *>::const_iterator > listConns(nApvPairs,conns.end());
507 
508  for ( ; ipair != conns.end(); ++ipair ){
509  // Check if the ApvPair is connected
510  if ((*ipair)->fedId()!=sistrip::invalid_ && (*ipair)->apvPairNumber()<3){
511  // (*ipair)->print(ssMessage);
512  // ssMessage<< std::endl;
513  listConns[ipair-conns.begin()]=ipair;
514  } else {
515  std::cout
516  << "\n impossible to assign connection position in listConns " << std::endl;
517  // (*ipair)->print(ssMessage);
518  // ssMessage << std::endl;
519  }
520  }
521 
522  // get data
523  // vector< vector<const FedChannelConnection *>::const_iterator >::const_iterator ilistConns=listConns.begin();
524  for (uint16_t apvPair=0;apvPair<listConns.size();++apvPair){
525  ipair=listConns[apvPair];
526  if ( ipair == conns.end() ) {
527  // Fill object with default values
528  std::cout
529  << "\n "
530  << " Unable to find FED connection for detid : " << std::dec << *det_id << " APV pair number " << apvPair
531  << " Writing default values" << std::endl;
532  (*ipair)->print(ssMessage);
533  //If no connection was found, add 100 to apvpair
534  apvPair+=100;
535  std::cout << " Put apvPair+100:" << apvPair << " into vector!" << std::endl;
536  p_apvpcon=std::make_pair(apvPair,**ipair);
537  v_apvpcon.push_back(p_apvpcon);
538  apvPair=apvPair-100;
539  continue;
540  }
541  p_apvpcon=std::make_pair(apvPair,**ipair);
542  v_apvpcon.push_back(p_apvpcon);
543  } //conns loop
544  p_detcon=std::make_pair(*det_id,v_apvpcon);
545  v_trackercon.push_back(p_detcon);
546  v_apvpcon.clear();
547  } // det id loop
548 }
void addActiveDetectorsRawIds(std::vector< uint32_t > &) const
static const uint32_t invalid32_
Definition: Constants.h:15
bool retrieveFedDescriptions(SiStripConfigDb *const db)
uint16_t retrieveNumberAPVPairs(uint32_t det_id)
vector< const FedChannelConnection * > buildConnections(const SiStripDetCabling &det_cabling, uint32_t det_id)
static const uint16_t invalid_
Definition: Constants.h:16
tuple cout
Definition: gather_cfg.py:121
static const char mlESSources_[]
bool SiStripCondObjBuilderFromDb::checkForCompatibility ( std::stringstream &  input,
std::stringstream &  output,
std::string &  label 
)

Definition at line 81 of file SiStripCondObjBuilderFromDb.cc.

References SiStripPartition::apvTimingVersion(), SiStripPartition::cabVersion(), dbParams(), SiStripPartition::fecVersion(), SiStripPartition::fedVersion(), SiStripPartition::maskVersion(), SiStripPartition::partitionName(), and SiStripDbParams::partitions().

Referenced by popcon::SiStripPopConConfigDbObjHandler< T >::isTransferNeeded().

81  {
82 
83 
84  //get current config DB parameter
85 
87 
88  SiStripDbParams::SiStripPartitions::const_iterator ipart = partitionsRange.begin();
89  SiStripDbParams::SiStripPartitions::const_iterator ipartEnd = partitionsRange.end();
90  for ( ; ipart != ipartEnd; ++ipart ) {
91  SiStripPartition partition=ipart->second;
92  output << "@ "
93  << " Partition " << partition.partitionName() ;
94  if (label!="Cabling" && label !="ApvLatency")
95  output << " FedVer " << partition.fedVersion().first << "." << partition.fedVersion().second;
96  if(label=="Cabling")
97  output << " CabVer " << partition.cabVersion().first << "." << partition.cabVersion().second
98  << " MaskVer " << partition.maskVersion().first << "." << partition.maskVersion().second;
99  if(label=="ApvTiming")
100  output<< " ApvTimingVer " << partition.apvTimingVersion().first << "." << partition.apvTimingVersion().second;
101  if(label=="ApvLatency")
102  output<< " FecVersion " << partition.fecVersion().first << "." << partition.fecVersion().second;
103  }
104 
105  if (!strcmp(output.str().c_str(),input.str().c_str()))
106  return false;
107 
108  return true;
109 }
Versions maskVersion() const
std::string partitionName() const
static std::string const input
Definition: EdmProvDump.cc:44
const_iterator_range partitions() const
Versions apvTimingVersion() const
Container class for database partition parameters.
const SiStripDbParams & dbParams() const
boost::iterator_range< SiStripPartitions::const_iterator > const_iterator_range
Versions fecVersion() const
Versions cabVersion() const
Versions fedVersion() const
void SiStripCondObjBuilderFromDb::checkUpdate ( )
protected
const SiStripDbParams& SiStripCondObjBuilderFromDb::dbParams ( ) const
inline

Returns database connection parameters.

Definition at line 63 of file SiStripCondObjBuilderFromDb.h.

References db_, and SiStripConfigDb::dbParams().

Referenced by checkForCompatibility(), and checkUpdate().

63 {return db_->dbParams();}
edm::Service< SiStripConfigDb > db_
const SiStripDbParams & dbParams() const
SiStripApvGain* SiStripCondObjBuilderFromDb::getApvGain ( )
inline

Definition at line 82 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and gain_.

Referenced by getValue().

SiStripLatency* SiStripCondObjBuilderFromDb::getApvLatency ( )
inline

Definition at line 83 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and latency_.

Referenced by getValue().

SiStripFedCabling* SiStripCondObjBuilderFromDb::getFedCabling ( )
inline

Definition at line 77 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and fed_cabling_.

Referenced by getValue().

SiStripNoises* SiStripCondObjBuilderFromDb::getNoises ( )
inline

Definition at line 79 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and noises_.

Referenced by getValue().

SiStripPedestals* SiStripCondObjBuilderFromDb::getPedestals ( )
inline

Definition at line 78 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and pedestals_.

Referenced by getValue().

SiStripQuality* SiStripCondObjBuilderFromDb::getQuality ( )
inline

Definition at line 81 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and quality_.

Referenced by getValue().

SiStripThreshold* SiStripCondObjBuilderFromDb::getThreshold ( )
inline

Definition at line 80 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and threshold_.

Referenced by getValue().

void SiStripCondObjBuilderFromDb::getValue ( SiStripFedCabling *&  val)
inline
void SiStripCondObjBuilderFromDb::getValue ( SiStripPedestals *&  val)
inline

Definition at line 86 of file SiStripCondObjBuilderFromDb.h.

References getPedestals().

86 { val = getPedestals(); }
void SiStripCondObjBuilderFromDb::getValue ( SiStripNoises *&  val)
inline

Definition at line 87 of file SiStripCondObjBuilderFromDb.h.

References getNoises().

87 { val = getNoises(); }
void SiStripCondObjBuilderFromDb::getValue ( SiStripThreshold *&  val)
inline

Definition at line 88 of file SiStripCondObjBuilderFromDb.h.

References getThreshold().

88 { val = getThreshold(); }
void SiStripCondObjBuilderFromDb::getValue ( SiStripQuality *&  val)
inline

Definition at line 89 of file SiStripCondObjBuilderFromDb.h.

References getQuality().

89 { val = getQuality(); }
void SiStripCondObjBuilderFromDb::getValue ( SiStripBadStrip *&  val)
inline

Definition at line 90 of file SiStripCondObjBuilderFromDb.h.

References getQuality().

void SiStripCondObjBuilderFromDb::getValue ( SiStripApvGain *&  val)
inline

Definition at line 91 of file SiStripCondObjBuilderFromDb.h.

References getApvGain().

91 { val = getApvGain(); }
void SiStripCondObjBuilderFromDb::getValue ( SiStripLatency *&  val)
inline

Definition at line 92 of file SiStripCondObjBuilderFromDb.h.

References getApvLatency().

92 { val = getApvLatency(); }
vector< uint32_t > SiStripCondObjBuilderFromDb::retrieveActiveDetIds ( const SiStripDetCabling det_cabling)
protected

Definition at line 191 of file SiStripCondObjBuilderFromDb.cc.

References SiStripDetCabling::addActiveDetectorsRawIds(), LogTrace, and sistrip::mlESSources_.

191  {
192  vector<uint32_t> det_ids;
193  det_cabling.addActiveDetectorsRawIds(det_ids);
194  if ( det_ids.empty() ) {
196  << "SiStripCondObjBuilderFromDb::" << __func__ << "]"
197  << " Unable to build Pedestals object!"
198  << " No DetIds found!";
199  return det_ids;
200  }
202  << "\n\nSiStripCondObjBuilderFromDb::" << __func__ << "]"
203  << " Found " << det_ids.size() << " active DetIds";
204  return det_ids;
205 }
void addActiveDetectorsRawIds(std::vector< uint32_t > &) const
#define LogTrace(id)
static const char mlESSources_[]
bool SiStripCondObjBuilderFromDb::retrieveFedDescriptions ( SiStripConfigDb *const  db)
protected

Definition at line 160 of file SiStripCondObjBuilderFromDb.cc.

References SiStripConfigDb::getFedDescriptions(), and sistrip::mlESSources_.

Referenced by buildStripRelatedObjects().

160  {
162  if ( descriptions.empty() ) {
164  << "SiStripCondObjBuilderFromDb::" << __func__ << "]"
165  << " No FED descriptions found!";
166 
167  return false;
168  }
169  return true;
170 }
FedDescriptionsRange getFedDescriptions(std::string partition="")
FedDescriptions::range FedDescriptionsRange
static const char mlESSources_[]
uint16_t SiStripCondObjBuilderFromDb::retrieveNumberAPVPairs ( uint32_t  det_id)
protected

Definition at line 224 of file SiStripCondObjBuilderFromDb.cc.

References SiStripDetInfoFileReader::getNumberOfApvsAndStripLength(), and cppFunctionSkipper::operator.

Referenced by buildStripRelatedObjects().

224  {
225  uint16_t nApvPairs;
227  nApvPairs=fr->getNumberOfApvsAndStripLength(det_id).first/2;
228  return nApvPairs;
229 }
bool SiStripCondObjBuilderFromDb::retrieveTimingAnalysisDescriptions ( SiStripConfigDb *const  db)
protected

Definition at line 175 of file SiStripCondObjBuilderFromDb.cc.

References SiStripConfigDb::getAnalysisDescriptions(), and sistrip::mlESSources_.

Referenced by buildAnalysisRelatedObjects().

175  {
176  SiStripConfigDb::AnalysisDescriptionsRange anal_descriptions =
177  db->getAnalysisDescriptions( CommissioningAnalysisDescription::T_ANALYSIS_TIMING );
178  if ( anal_descriptions.empty() ) {
180  << "SiStripCondObjBuilderFromDb::" << __func__ << "]"
181  << " Unable to build SiStripApvGain object!"
182  << " No timing-scan analysis descriptions found!";
183  return false;
184  }
185  return true;
186 }
AnalysisDescriptionsRange getAnalysisDescriptions(AnalysisType, std::string partition="")
AnalysisDescriptions::range AnalysisDescriptionsRange
static const char mlESSources_[]
void SiStripCondObjBuilderFromDb::setDefaultValuesApvLatency ( SiStripLatency latency_,
const FedChannelConnection ipair,
uint32_t  detid,
uint16_t  apvnr 
)
protected

Definition at line 254 of file SiStripCondObjBuilderFromDb.cc.

References gather_cfg::cout, m_defaultapvlatencyvalue, m_defaultapvmodevalue, and SiStripLatency::put().

254  {
255  std::cout << "[SiStripCondObjBuilderFromDb::"<<__func__<<"]: Set Default Latency for Detid: " << detid << " ApvNr: " << apvnr << std::endl;
257  {
258  std::cout << "[SiStripCondObjBuilderFromDb::"<<__func__<<"]: Unable to fill Latency for Detid: " << detid << " ApvNr: " << apvnr << std::endl;
259  }
260  if(!latency_.put( detid, ++apvnr, m_defaultapvmodevalue, m_defaultapvlatencyvalue))
261  {
262  std::cout << "[SiStripCondObjBuilderFromDb::"<<__func__<<"]: Unable to fill Latency for Detid: " << detid << " ApvNr: " << apvnr << std::endl;
263  }
264 
265 }
bool put(const uint32_t detId, const uint16_t apv, const uint16_t latency, const uint16_t mode)
tuple cout
Definition: gather_cfg.py:121
void SiStripCondObjBuilderFromDb::setDefaultValuesApvTiming ( )
protected
void SiStripCondObjBuilderFromDb::setDefaultValuesCabling ( uint16_t  apvPair)
protected

Definition at line 234 of file SiStripCondObjBuilderFromDb.cc.

References gather_cfg::cout, SiStripBadStrip::encode(), inputNoises, inputPedestals, inputQuality, inputThreshold, m_defaultnoisevalue, m_defaultpedestalvalue, m_defaultthresholdhighvalue, m_defaultthresholdlowvalue, noises_, pedestals_, quality_, SiStripPedestals::setData(), SiStripNoises::setData(), SiStripThreshold::setData(), sistrip::STRIPS_PER_FEDCH, and threshold_.

Referenced by buildFEDRelatedObjects().

234  {
235  uint16_t istrip = apvPair*sistrip::STRIPS_PER_FEDCH;
236  std::cout << "Found disabled FedConnection! APVPair: " << apvPair << " Strips: " << sistrip::STRIPS_PER_FEDCH << std::endl;
237  inputQuality.push_back(quality_->encode(istrip,sistrip::STRIPS_PER_FEDCH));
238  for ( ;istrip < (apvPair+1)*sistrip::STRIPS_PER_FEDCH; ++istrip ){
242  }
243 }
SiStripPedestals::InputVector inputPedestals
SiStripQuality::InputVector inputQuality
SiStripThreshold::InputVector inputThreshold
SiStripNoises::InputVector inputNoises
static const uint16_t STRIPS_PER_FEDCH
void setData(const uint16_t &strip, const float &lTh, const float &hTh, Container &vthr)
void setData(float ped, InputVector &vped)
tuple cout
Definition: gather_cfg.py:121
unsigned int encode(const unsigned short &first, const unsigned short &NconsecutiveBadStrips, const unsigned short &flag=0)
void setData(float noise_, InputVector &vped)
bool SiStripCondObjBuilderFromDb::setValuesApvLatency ( SiStripLatency latency_,
SiStripConfigDb *const  db,
FedChannelConnection ipair,
uint32_t  detid,
uint16_t  apvnr,
SiStripConfigDb::DeviceDescriptionsRange  apvs 
)
protected

Definition at line 301 of file SiStripCondObjBuilderFromDb.cc.

References FedChannelConnection::ccuAddr(), FedChannelConnection::ccuChan(), gather_cfg::cout, FedChannelConnection::fecCrate(), FedChannelConnection::fecRing(), FedChannelConnection::fecSlot(), SiStripDetInfoFileReader::getNumberOfApvsAndStripLength(), FedChannelConnection::i2cAddr(), cppFunctionSkipper::operator, and SiStripLatency::put().

Referenced by buildFECRelatedObjects().

301  {
303  fr->getNumberOfApvsAndStripLength(detid);
304 
305  SiStripConfigDb::DeviceDescriptionsV::const_iterator iapv = apvs.begin();
306  SiStripConfigDb::DeviceDescriptionsV::const_iterator japv = apvs.end();
307  if(iapv==japv) return false;
308  for ( ; iapv != japv; ++iapv ) {
309  apvDescription* apv = dynamic_cast<apvDescription*>( *iapv );
310  if ( !apv ) { continue; }
311  if((apv->getCrateId()) != (ipair.fecCrate())) continue;
312  if((apv->getFecSlot()) != (ipair.fecSlot())) continue;
313  if((apv->getRingSlot()) != (ipair.fecRing())) continue;
314  if((apv->getCcuAddress()) != (ipair.ccuAddr())) continue;
315  if((apv->getChannel()) != (ipair.ccuChan())) continue;
316  // Insert latency values into latency object
317  if((apv->getAddress()) == (ipair.i2cAddr(0))) {
318  if(!latency_.put( detid, apvnr, static_cast<uint16_t>(apv->getLatency()), static_cast<uint16_t>(apv->getApvMode()))){
319  std::cout << "UNABLE APVLatency Put: Detid "<< dec<<detid
320  << " APVNr.: " << apvnr
321  << " Latency Value: " << dec <<static_cast<uint16_t>(apv->getLatency())
322  << " APV Mode: " << dec<< static_cast<uint16_t>(apv->getApvMode())
323  << std::endl;
324  return false;
325  }else{++apvnr;}
326  }
327  if((apv->getAddress()) == (ipair.i2cAddr(1))) {
328  if(!latency_.put( detid, apvnr, static_cast<uint16_t>(apv->getLatency()), static_cast<uint16_t>(apv->getApvMode()))){
329  std::cout << "UNABLE APVLatency Put: Detid "<<dec<< detid
330  << " APVNr.: " << apvnr
331  << " Latency Value: " << dec <<static_cast<uint16_t>(apv->getLatency())
332  << " APV Mode: " << dec <<static_cast<uint16_t>(apv->getApvMode())
333  << std::endl;
334  continue;
335  return false;
336  }else{++apvnr;}
337  }
338  }
339  return true;
340 }
const uint16_t & fecSlot() const
const uint16_t & fecCrate() const
bool put(const uint32_t detId, const uint16_t apv, const uint16_t latency, const uint16_t mode)
const uint16_t & fecRing() const
const uint16_t & ccuChan() const
const uint16_t & ccuAddr() const
tuple cout
Definition: gather_cfg.py:121
const uint16_t & i2cAddr(const uint16_t &apv0_or_1) const
bool SiStripCondObjBuilderFromDb::setValuesApvTiming ( SiStripConfigDb *const  db,
FedChannelConnection ipair 
)
protected

Definition at line 271 of file SiStripCondObjBuilderFromDb.cc.

References SiStripFedKey::fedCh(), FedChannelConnection::fedCh(), FedChannelConnection::fedId(), SiStripConfigDb::getAnalysisDescriptions(), inputApvGain, m_defaulttickheightvalue, m_gaincalibrationfactor, and tmp.

Referenced by buildAnalysisRelatedObjects().

271  {
272  SiStripConfigDb::AnalysisDescriptionsRange anal_descriptions = db->getAnalysisDescriptions( CommissioningAnalysisDescription::T_ANALYSIS_TIMING );
273  SiStripConfigDb::AnalysisDescriptionsV::const_iterator iii = anal_descriptions.begin();
274  SiStripConfigDb::AnalysisDescriptionsV::const_iterator jjj = anal_descriptions.end();
275 
276  while ( iii != jjj ) {
277  CommissioningAnalysisDescription* tmp = *iii;
278  uint16_t fed_id = tmp->getFedId();
279  uint16_t fed_ch = SiStripFedKey::fedCh( tmp->getFeUnit(), tmp->getFeChan() );
280  if ( fed_id == ipair.fedId() && fed_ch == ipair.fedCh() ) { break; }
281  iii++;
282  }
283 
284  TimingAnalysisDescription *anal=0;
285  if ( iii != jjj ) { anal = dynamic_cast<TimingAnalysisDescription*>(*iii); }
286  if ( anal ) {
287  float tick_height = (anal->getHeight() / m_gaincalibrationfactor);
288  inputApvGain.push_back( tick_height ); // APV0
289  inputApvGain.push_back( tick_height); // APV1
290  } else {
293  return false;
294  }
295 
296  return true;
297 }
const uint16_t & fedCh() const
const uint16_t & fedId() const
AnalysisDescriptionsRange getAnalysisDescriptions(AnalysisType, std::string partition="")
AnalysisDescriptions::range AnalysisDescriptionsRange
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
SiStripApvGain::InputVector inputApvGain
static uint16_t fedCh(const uint16_t &fe_unit, const uint16_t &fe_chan)
bool SiStripCondObjBuilderFromDb::setValuesCabling ( SiStripConfigDb::FedDescriptionsRange descriptions,
FedChannelConnection ipair,
uint32_t  detid 
)
protected

Definition at line 345 of file SiStripCondObjBuilderFromDb.cc.

References FedChannelConnection::apvPairNumber(), gather_cfg::cout, idDealer::description, SiStripBadStrip::encode(), FedChannelConnection::fedCh(), FedChannelConnection::fedId(), inputNoises, inputPedestals, inputQuality, inputThreshold, noises_, pedestals_, quality_, SiStripNoises::setData(), SiStripPedestals::setData(), SiStripThreshold::setData(), RecoTauPiZeroBuilderPlugins_cfi::strips, sistrip::STRIPS_PER_FEDCH, and threshold_.

Referenced by buildFEDRelatedObjects().

345  {
346  //SiStripConfigDb::FedDescriptionsRange descriptions = db->getFedDescriptions();
347  SiStripConfigDb::FedDescriptionsV::const_iterator description = descriptions.begin();
348  while ( description != descriptions.end() ) {
349  if ( (*description)->getFedId() ==ipair.fedId() ) { break; }
350  description++;
351  }
352  if ( description == descriptions.end() ) {return false;}
353  // Retrieve Fed9UStrips object from FED description
354  const Fed9U::Fed9UStrips& strips = (*description)->getFedStrips();
355 
356 
357  // Retrieve StripDescriptions for each APV
358  uint16_t jstrip = ipair.apvPairNumber()*sistrip::STRIPS_PER_FEDCH;
359  for ( uint16_t iapv = 2*ipair.fedCh(); iapv < 2*ipair.fedCh()+2; iapv++ ) {
360 
361  // Get StripDescriptions for the given APV
362  Fed9U::Fed9UAddress addr;
363  addr.setFedApv(iapv);
364  vector<Fed9U::Fed9UStripDescription> strip = strips.getApvStrips(addr);
365 
366  vector<Fed9U::Fed9UStripDescription>::const_iterator istrip = strip.begin();
367 
368  for ( ; istrip != strip.end(); istrip++ ) {
369  pedestals_->setData( istrip->getPedestal() , inputPedestals);
370  noises_ ->setData( istrip->getNoise() , inputNoises );
371  threshold_->setData( jstrip, istrip->getLowThresholdFactor(),
372  istrip->getHighThresholdFactor(), inputThreshold );
373  if(istrip->getDisable()){
374  std::cout << "Found disabled strip! Detid: " << detid << " APVNr: " << iapv << " Strips: " << jstrip << std::endl;
375 
376  inputQuality.push_back(quality_->encode(jstrip,1));
377  }
378  jstrip++;
379  }
380  }
381  return true;
382 }
SiStripPedestals::InputVector inputPedestals
const uint16_t & fedCh() const
SiStripQuality::InputVector inputQuality
uint16_t apvPairNumber() const
SiStripThreshold::InputVector inputThreshold
const uint16_t & fedId() const
SiStripNoises::InputVector inputNoises
tuple description
Definition: idDealer.py:66
static const uint16_t STRIPS_PER_FEDCH
void setData(const uint16_t &strip, const float &lTh, const float &hTh, Container &vthr)
void setData(float ped, InputVector &vped)
tuple cout
Definition: gather_cfg.py:121
unsigned int encode(const unsigned short &first, const unsigned short &NconsecutiveBadStrips, const unsigned short &flag=0)
void setData(float noise_, InputVector &vped)
void SiStripCondObjBuilderFromDb::storeNoise ( uint32_t  det_id)
protected

Definition at line 403 of file SiStripCondObjBuilderFromDb.cc.

References gather_cfg::cout, inputNoises, noises_, and SiStripNoises::put().

Referenced by buildFEDRelatedObjects().

403  {
404  // Insert noise values into Noises object
405 
406  if ( !noises_->put(det_id, inputNoises ) ) {
407  std::cout
408  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
409  << " Unable to insert values into SiStripNoises object!"
410  << " DetId already exists!" << std::endl;
411  }
412  inputNoises.clear();
413 
414  }
SiStripNoises::InputVector inputNoises
bool put(const uint32_t &detID, const InputVector &input)
tuple cout
Definition: gather_cfg.py:121
void SiStripCondObjBuilderFromDb::storePedestals ( uint32_t  det_id)
protected

Definition at line 388 of file SiStripCondObjBuilderFromDb.cc.

References gather_cfg::cout, inputPedestals, pedestals_, and SiStripPedestals::put().

Referenced by buildFEDRelatedObjects().

388  {
389  if ( !pedestals_->put(det_id, inputPedestals ) ) {
390  std::cout
391  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
392  << " Unable to insert values into SiStripPedestals object!"
393  << " DetId already exists!" << std::endl;
394  }
395  inputPedestals.clear();
396 
397  }
SiStripPedestals::InputVector inputPedestals
bool put(const uint32_t &detID, InputVector &input)
tuple cout
Definition: gather_cfg.py:121
void SiStripCondObjBuilderFromDb::storeQuality ( uint32_t  det_id)
protected

Definition at line 431 of file SiStripCondObjBuilderFromDb.cc.

References SiStripQuality::compact(), gather_cfg::cout, inputQuality, SiStripBadStrip::put(), and quality_.

Referenced by buildFEDRelatedObjects().

431  {
432  // Insert quality values into Quality object
433  if (inputQuality.size()){
434  quality_->compact(det_id,inputQuality);
435  if ( !quality_->put(det_id, inputQuality ) ) {
436  std::cout
437  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
438  << " Unable to insert values into SiStripQuality object!"
439  << " DetId already exists!" << std::endl;
440  }
441  }
442  inputQuality.clear();
443 }
SiStripQuality::InputVector inputQuality
void compact(unsigned int &, std::vector< unsigned int > &)
tuple cout
Definition: gather_cfg.py:121
bool put(const uint32_t &detID, const InputVector &vect)
void SiStripCondObjBuilderFromDb::storeThreshold ( uint32_t  det_id)
protected

Definition at line 418 of file SiStripCondObjBuilderFromDb.cc.

References gather_cfg::cout, inputThreshold, SiStripThreshold::put(), and threshold_.

Referenced by buildFEDRelatedObjects().

418  {
419  // Insert threshold values into Threshold object
420  if ( !threshold_->put(det_id, inputThreshold ) ) {
421  std::cout
422  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
423  << " Unable to insert values into SiStripThreshold object!"
424  << " DetId already exists!" << std::endl;
425  }
426  inputThreshold.clear();
427 }
bool put(const uint32_t &detID, const InputVector &vect)
SiStripThreshold::InputVector inputThreshold
tuple cout
Definition: gather_cfg.py:121
void SiStripCondObjBuilderFromDb::storeTiming ( uint32_t  det_id)
protected

Definition at line 447 of file SiStripCondObjBuilderFromDb.cc.

References gain_, inputApvGain, sistrip::mlESSources_, and SiStripApvGain::put().

Referenced by buildAnalysisRelatedObjects().

447  {
448  // Insert tick height values into Gain object
449  SiStripApvGain::Range range( inputApvGain.begin(), inputApvGain.end() );
450  if ( !gain_->put( det_id, range ) ) {
452  << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
453  << " Unable to insert values into SiStripApvGain object!"
454  << " DetId already exists!";
455  }
456  inputApvGain.clear();
457 }
bool put(const uint32_t &detID, Range input)
std::pair< ContainerIterator, ContainerIterator > Range
SiStripApvGain::InputVector inputApvGain
static const char mlESSources_[]

Member Data Documentation

edm::Service<SiStripConfigDb> SiStripCondObjBuilderFromDb::db_
protected

Access to the configuration DB interface class.

Definition at line 101 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildAnalysisRelatedObjects(), buildCondObj(), and dbParams().

SiStripDbParams SiStripCondObjBuilderFromDb::dbParams_
protected

Container for DB connection parameters.

Definition at line 104 of file SiStripCondObjBuilderFromDb.h.

Referenced by checkUpdate().

SiStripFedCabling* SiStripCondObjBuilderFromDb::fed_cabling_
protected

Definition at line 105 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildCondObj(), and getFedCabling().

SiStripApvGain* SiStripCondObjBuilderFromDb::gain_
protected
SiStripApvGain::InputVector SiStripCondObjBuilderFromDb::inputApvGain
protected
SiStripNoises::InputVector SiStripCondObjBuilderFromDb::inputNoises
protected
SiStripPedestals::InputVector SiStripCondObjBuilderFromDb::inputPedestals
protected
SiStripQuality::InputVector SiStripCondObjBuilderFromDb::inputQuality
protected
SiStripThreshold::InputVector SiStripCondObjBuilderFromDb::inputThreshold
protected
SiStripLatency* SiStripCondObjBuilderFromDb::latency_
protected

Definition at line 111 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildFECRelatedObjects(), and getApvLatency().

bool SiStripCondObjBuilderFromDb::m_debug
protected

Definition at line 148 of file SiStripCondObjBuilderFromDb.h.

uint16_t SiStripCondObjBuilderFromDb::m_defaultapvlatencyvalue
protected

Definition at line 143 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesApvLatency().

uint16_t SiStripCondObjBuilderFromDb::m_defaultapvmodevalue
protected

Definition at line 142 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesApvLatency().

float SiStripCondObjBuilderFromDb::m_defaultnoisevalue
protected

Definition at line 139 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesCabling().

float SiStripCondObjBuilderFromDb::m_defaultpedestalvalue
protected

Definition at line 138 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesCabling().

float SiStripCondObjBuilderFromDb::m_defaultthresholdhighvalue
protected

Definition at line 140 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesCabling().

float SiStripCondObjBuilderFromDb::m_defaultthresholdlowvalue
protected

Definition at line 141 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesCabling().

float SiStripCondObjBuilderFromDb::m_defaulttickheightvalue
protected
float SiStripCondObjBuilderFromDb::m_gaincalibrationfactor
protected
bool SiStripCondObjBuilderFromDb::m_useanalysis
protected

Definition at line 145 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildCondObj().

bool SiStripCondObjBuilderFromDb::m_usefec
protected

Definition at line 147 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildCondObj().

bool SiStripCondObjBuilderFromDb::m_usefed
protected

Definition at line 146 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildCondObj().

SiStripNoises* SiStripCondObjBuilderFromDb::noises_
protected
pair_apvpairconn SiStripCondObjBuilderFromDb::p_apvpcon
protected

Definition at line 159 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildStripRelatedObjects().

pair_detcon SiStripCondObjBuilderFromDb::p_detcon
protected

Definition at line 161 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildStripRelatedObjects().

SiStripPedestals* SiStripCondObjBuilderFromDb::pedestals_
protected
SiStripQuality* SiStripCondObjBuilderFromDb::quality_
protected
SiStripThreshold* SiStripCondObjBuilderFromDb::threshold_
protected
v_apvpairconn SiStripCondObjBuilderFromDb::v_apvpcon
protected

Definition at line 160 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildStripRelatedObjects().

trackercon SiStripCondObjBuilderFromDb::v_trackercon
protected

Definition at line 162 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildCondObj(), and buildStripRelatedObjects().