CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
SiStripCondObjBuilderFromDb Class Reference

#include <SiStripCondObjBuilderFromDb.h>

Classes

class  SkipDeviceDescription
 

Public Types

typedef std::vector< pair_apvpairconn >::iterator i_apvpairconn
 
typedef std::vector< pair_detcon >::iterator i_trackercon
 
typedef std::pair< uint32_t, FedChannelConnectionpair_apvpairconn
 
typedef std::pair< uint32_t, v_apvpairconnpair_detcon
 
typedef std::vector< pair_detcontrackercon
 
typedef std::vector< pair_apvpairconnv_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)
 
TrackerTopologybuildTrackerTopology ()
 
bool checkForCompatibility (std::stringstream &input, std::stringstream &output, std::string &label)
 
const SiStripDbParamsdbParams () const
 
SiStripApvGaingetApvGain ()
 
SiStripLatencygetApvLatency ()
 
std::string getConfigString (const std::type_info &typeInfo)
 
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)
 
void setLastIovGain (std::shared_ptr< SiStripApvGain > gain)
 
 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 (uint32_t detid, uint32_t apvPair)
 
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_
 
std::shared_ptr< SiStripApvGaingain_last_
 
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
 
SiStripDetInfo m_detInfo
 
float m_gaincalibrationfactor
 
edm::VParameterSet m_skippedDevices
 
float m_tickmarkThreshold
 
bool m_useanalysis
 
bool m_usefec
 
bool m_usefed
 
edm::VParameterSet m_whitelistedDevices
 
SiStripNoisesnoises_
 
pair_apvpairconn p_apvpcon
 
pair_detcon p_detcon
 
SiStripPedestalspedestals_
 
SiStripQualityquality_
 
std::vector< uint32_t > skippedDetIds
 
std::vector< SkipDeviceDescriptionskippedDevices
 
SiStripThresholdthreshold_
 
TrackerTopologytTopo
 
v_apvpairconn v_apvpcon
 
trackercon v_trackercon
 
std::vector< uint32_t > whitelistedDetIds
 
std::vector< SkipDeviceDescriptionwhitelistedDevices
 

Detailed Description

Definition at line 45 of file SiStripCondObjBuilderFromDb.h.

Member Typedef Documentation

◆ i_apvpairconn

Definition at line 54 of file SiStripCondObjBuilderFromDb.h.

◆ i_trackercon

Definition at line 53 of file SiStripCondObjBuilderFromDb.h.

◆ pair_apvpairconn

Definition at line 48 of file SiStripCondObjBuilderFromDb.h.

◆ pair_detcon

Definition at line 50 of file SiStripCondObjBuilderFromDb.h.

◆ trackercon

Definition at line 51 of file SiStripCondObjBuilderFromDb.h.

◆ v_apvpairconn

Definition at line 49 of file SiStripCondObjBuilderFromDb.h.

Constructor & Destructor Documentation

◆ SiStripCondObjBuilderFromDb() [1/2]

SiStripCondObjBuilderFromDb::SiStripCondObjBuilderFromDb ( )

Definition at line 61 of file SiStripCondObjBuilderFromDb.cc.

References LogTrace, and sistrip::mlESSources_.

62  LogTrace(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
63  << " Constructing object...";
64 }
#define LogTrace(id)
static const char mlESSources_[]

◆ SiStripCondObjBuilderFromDb() [2/2]

SiStripCondObjBuilderFromDb::SiStripCondObjBuilderFromDb ( const edm::ParameterSet pset,
const edm::ActivityRegistry  
)

Definition at line 31 of file SiStripCondObjBuilderFromDb.cc.

References LogTrace, m_skippedDevices, m_whitelistedDevices, sistrip::mlESSources_, muonDTDigis_cfi::pset, skippedDevices, and whitelistedDevices.

32  : m_skippedDevices(pset.getUntrackedParameter<edm::VParameterSet>("SkippedDevices", edm::VParameterSet())),
33  m_whitelistedDevices(pset.getUntrackedParameter<edm::VParameterSet>("WhitelistedDevices", edm::VParameterSet())),
34  m_tickmarkThreshold(static_cast<float>(pset.getUntrackedParameter<double>("TickmarkThreshold", 50.))),
35  m_gaincalibrationfactor(static_cast<float>(pset.getUntrackedParameter<double>("GainNormalizationFactor", 640.))),
36  m_defaultpedestalvalue(static_cast<float>(pset.getUntrackedParameter<double>("DefaultPedestal", 0.))),
37  m_defaultnoisevalue(static_cast<float>(pset.getUntrackedParameter<double>("DefaultNoise", 0.))),
38  m_defaultthresholdhighvalue(static_cast<float>(pset.getUntrackedParameter<double>("DefaultThresholdHigh", 0.))),
39  m_defaultthresholdlowvalue(static_cast<float>(pset.getUntrackedParameter<double>("DefaultThresholdLow", 0.))),
40  m_defaultapvmodevalue(static_cast<uint16_t>(pset.getUntrackedParameter<uint32_t>("DefaultAPVMode", 37))),
41  m_defaultapvlatencyvalue(static_cast<uint16_t>(pset.getUntrackedParameter<uint32_t>("DefaultAPVLatency", 142))),
42  m_defaulttickheightvalue(static_cast<float>(pset.getUntrackedParameter<double>("DefaultTickHeight", 690.))),
43  m_useanalysis(static_cast<bool>(pset.getUntrackedParameter<bool>("UseAnalysis", false))),
44  m_usefed(static_cast<bool>(pset.getUntrackedParameter<bool>("UseFED", false))),
45  m_usefec(static_cast<bool>(pset.getUntrackedParameter<bool>("UseFEC", false))),
46  m_debug(static_cast<bool>(pset.getUntrackedParameter<bool>("DebugMode", false))),
47  m_detInfo(SiStripDetInfoFileReader::read(pset.getParameter<edm::FileInPath>("SiStripDetInfoFile").fullPath())),
49  LogTrace(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
50  << " Constructing object...";
51  for (const auto& pset : m_skippedDevices) {
52  skippedDevices.emplace_back(pset);
53  }
54  for (const auto& pset : m_whitelistedDevices) {
55  whitelistedDevices.emplace_back(pset);
56  }
57 }
std::string fullPath() const
Definition: FileInPath.cc:161
std::vector< ParameterSet > VParameterSet
Definition: ParameterSet.h:35
std::vector< SkipDeviceDescription > whitelistedDevices
#define LogTrace(id)
SiStripDetInfo read(std::string filePath)
static const char mlESSources_[]
std::vector< SkipDeviceDescription > skippedDevices

◆ ~SiStripCondObjBuilderFromDb()

SiStripCondObjBuilderFromDb::~SiStripCondObjBuilderFromDb ( )
virtual

Definition at line 68 of file SiStripCondObjBuilderFromDb.cc.

References LogTrace, sistrip::mlESSources_, and tTopo.

68  {
69  LogTrace(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
70  << " Destructing object...";
71  delete tTopo;
72 }
#define LogTrace(id)
static const char mlESSources_[]

Member Function Documentation

◆ buildAnalysisRelatedObjects()

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

Definition at line 734 of file SiStripCondObjBuilderFromDb.cc.

References gather_cfg::cout, dqmiodatasetharvest::db, db_, Exception, gain_, SiStripDetInfo::getAllData(), triggerObjects_cff::id, sistrip::invalid32_, m_detInfo, sistrip::mlESSources_, AlCaHLTBitMon_ParallelJobs::p, retrieveTimingAnalysisDescriptions(), setDefaultValuesApvTiming(), setValuesApvTiming(), optionsL1T::skip, skippedDetIds, contentValuesCheck::ss, storeTiming(), and whitelistedDetIds.

Referenced by buildCondObj().

734  {
735  trackercon tc = _tc;
736  std::cout << "Entering [SiStripCondObjBuilderFromDb::" << __func__ << "]" << std::endl;
737  //data container
738  gain_ = new SiStripApvGain();
739 
740  //check if Timing analysis description is found, otherwise quit
742  edm::LogWarning(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
743  << " NULL pointer to AnalysisDescriptions returned by SiStripConfigDb!"
744  << " Cannot build Analysis object! QUIT";
745  throw cms::Exception("Cannot build Analysis object!");
746  }
747 
748  // Get all detIds from the ideal geometry to build the payload
749  for (const auto& it : m_detInfo.getAllData()) {
750  // check if det id is correct and if it is actually cabled in the detector
751  if (it.first == 0 || it.first == sistrip::invalid32_) {
752  edm::LogError("DetIdNotGood") << "@SUB=analyze"
753  << "Invalid detid: " << it.first << " ... neglecting!" << std::endl;
754  continue;
755  }
756 
757  uint32_t detid = it.first;
758  bool update_ = true;
759  i_trackercon det_iter =
760  std::find_if(tc.begin(), tc.end(), [detid](const pair_detcon& p) { return p.first == detid; });
761  if (det_iter == tc.end()) {
762  update_ = false; // do not update if it is not connected in cabling
763  }
764 
765  if (update_) {
766  //loop connections
767  for (i_apvpairconn connections = det_iter->second.begin(); connections != det_iter->second.end(); connections++) {
768  uint32_t apvPair = (*connections).first;
769  FedChannelConnection ipair = (*connections).second;
770 
771  //no connection for apvPair found
772  if (apvPair >= 100) {
773  setDefaultValuesApvTiming(detid, apvPair - 100);
774  continue;
775  }
776 
777  //fill data
778  if (!setValuesApvTiming(db, ipair)) {
779  // either not found in analysis table or low tickmark height
780  setDefaultValuesApvTiming(detid, apvPair);
781  }
782  } //connections
783 
784  } else {
785  uint32_t nApvPairs = it.second.nApvs / 2;
786  for (uint32_t apvPair = 0; apvPair < nApvPairs; ++apvPair) {
787  setDefaultValuesApvTiming(detid, apvPair);
788  }
789  }
790 
791  storeTiming(detid);
792 
793  } // end loop detids
794 
795  //print out skipped modules
796  std::stringstream ss;
797  for (const auto& id : whitelistedDetIds) {
798  ss << "\n" << id;
799  }
800  edm::LogInfo(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
801  << " [ApvGainSummary] " << whitelistedDetIds.size()
802  << " modules are in the whitelist, updates will be ensured: " << ss.str();
803 
804  ss.str(""); // clear it!
805  for (const auto& skip : skippedDetIds) {
806  ss << "\n" << skip;
807  }
808  edm::LogInfo(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
809  << " [ApvGainSummary] Skipped " << skippedDetIds.size() << " modules: " << ss.str();
810 }
static const uint32_t invalid32_
Definition: Constants.h:15
std::pair< uint32_t, v_apvpairconn > pair_detcon
Log< level::Error, false > LogError
edm::Service< SiStripConfigDb > db_
Class containning control, module, detector and connection information, at the level of a FED channel...
std::vector< pair_detcon > trackercon
Log< level::Info, false > LogInfo
bool retrieveTimingAnalysisDescriptions(SiStripConfigDb *const db)
const std::map< uint32_t, DetInfo > & getAllData() const noexcept
std::vector< uint32_t > whitelistedDetIds
void setDefaultValuesApvTiming(uint32_t detid, uint32_t apvPair)
Log< level::Warning, false > LogWarning
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)

◆ buildCondObj()

void SiStripCondObjBuilderFromDb::buildCondObj ( )

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

Definition at line 231 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_, tTopo, and v_trackercon.

Referenced by checkUpdate().

231  {
232  LogTrace(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]";
233 
234  // Check if DB connection is made
235  if (db_) {
236  // Check if DB connection is made
237  if (db_->deviceFactory() || db_->databaseCache()) {
238  // Build FEC cabling object
239  SiStripFecCabling fec_cabling;
240 
243 
245  SiStripDetCabling det_cabling(*fed_cabling_, tTopo);
246  buildStripRelatedObjects(&*db_, det_cabling);
247 
248  if (m_useanalysis)
250  if (m_usefed)
252  if (m_usefec)
254 
255  } else {
256  edm::LogWarning(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
257  << " NULL pointer to DeviceFactory returned by SiStripConfigDb!"
258  << " Cannot build Pedestals object!";
259  }
260  } else {
261  edm::LogWarning(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
262  << " NULL pointer to SiStripConfigDb returned by DB \"service\"!"
263  << " Cannot build Pedestals object!";
264  }
265 }
void buildAnalysisRelatedObjects(SiStripConfigDb *const db, const trackercon &tc)
DbClient *const databaseCache(std::string method_name="") const
#define LogTrace(id)
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)
static void getFedCabling(const SiStripFecCabling &in, SiStripFedCabling &out)
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
Log< level::Warning, false > LogWarning
static const char mlESSources_[]
DeviceFactory *const deviceFactory(std::string method_name="") const

◆ buildConnections()

vector< const FedChannelConnection * > SiStripCondObjBuilderFromDb::buildConnections ( const SiStripDetCabling det_cabling,
uint32_t  det_id 
)
protected

Definition at line 316 of file SiStripCondObjBuilderFromDb.cc.

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

Referenced by buildStripRelatedObjects().

317  {
318  vector<const FedChannelConnection*> conns = det_cabling.getConnections(det_id);
319  if (conns.empty()) {
320  edm::LogWarning(mlESSources_) << "SiStripCondObjBuilderFromDb::" << __func__ << "]"
321  << " Unable to build condition object!"
322  << " No FED channel connections found for detid " << det_id;
323  }
324  return conns;
325 }
const std::vector< const FedChannelConnection * > & getConnections(uint32_t det_id) const
Log< level::Warning, false > LogWarning
static const char mlESSources_[]

◆ buildFECRelatedObjects()

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

Definition at line 814 of file SiStripCondObjBuilderFromDb.cc.

References SiStripLatency::compress(), gather_cfg::cout, dqmiodatasetharvest::db, mps_fire::end, latency_, SiStripLatency::printDebug(), SiStripLatency::printSummary(), setValuesApvLatency(), contentValuesCheck::ss, and tTopo.

Referenced by buildCondObj().

814  {
815  trackercon tc = _tc;
816  std::cout << "Entering [SiStripCondObjBuilderFromDb::" << __func__ << "]" << std::endl;
817  //data container
818  latency_ = new SiStripLatency();
819 
820  i_trackercon detids_end = tc.end();
821 
822  // get APV DeviceDescriptions
823  SiStripConfigDb::DeviceDescriptionsRange apvs = db->getDeviceDescriptions(APV25);
824  ;
825 
826  //loop detids
827  for (i_trackercon detids = tc.begin(); detids != detids_end; detids++) {
828  uint32_t detid = (*detids).first;
829  uint16_t apvnr = 1;
830  i_apvpairconn connections_end = ((*detids).second).end();
831 
832  //loop connections
833  for (i_apvpairconn connections = ((*detids).second).begin(); connections != connections_end; connections++) {
834  uint32_t apvPair = (*connections).first;
835  FedChannelConnection ipair = (*connections).second;
836 
837  //no connection for apvPair found
838  if (apvPair >= 100) {
839  //setDefaultValuesApvLatency((*latency_),ipair, detid, apvnr);
840  std::cout << "[SiStripCondObjBuilderFromDb::" << __func__ << "] No FEDConnection for DetId " << detid
841  << " ApvPair " << apvPair - 100 << " found, skipping Latency Insertion!" << std::endl;
842  continue;
843  }
844 
845  //fill data
846  if (!setValuesApvLatency((*latency_), db, ipair, detid, apvnr, apvs)) {
847  std::cout << "\n "
848  << " Unable to find FEC Description"
849  << " Skipping Insertion for DetId: " << detid << std::endl;
850  //setDefaultValuesApvLatency((*latency_),ipair, detid, apvnr);
851  }
852  apvnr += 2;
853  } //connections
854  // compact Latency Object
855 
856  } //detids
857  latency_->compress();
858  std::stringstream ss;
859  // latency debug output
862  std::cout << ss.str() << std::endl;
863 }
void printDebug(std::stringstream &ss, const TrackerTopology *trackerTopo) const
Prints the full list of all ranges and corresponding values of latency and mode.
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
void printSummary(std::stringstream &ss, const TrackerTopology *trackerTopo) const
Prints the number of ranges as well as the value of singleLatency and singleMode. ...
std::vector< pair_detcon >::iterator i_trackercon
std::vector< pair_apvpairconn >::iterator i_apvpairconn

◆ buildFEDRelatedObjects()

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

Definition at line 867 of file SiStripCondObjBuilderFromDb.cc.

References gather_cfg::cout, dqmiodatasetharvest::db, mps_fire::end, FedChannelConnection::fedId(), m_detInfo, noises_, pedestals_, quality_, setDefaultValuesCabling(), setValuesCabling(), AlCaHarvesting_cff::SiStripQuality, storeNoise(), storePedestals(), storeQuality(), storeThreshold(), and threshold_.

Referenced by buildCondObj().

867  {
868  trackercon tc = _tc;
869  std::cout << "Entering [SiStripCondObjBuilderFromDb::" << __func__ << "]" << std::endl;
870 
871  //data containers
873  noises_ = new SiStripNoises();
876 
877  i_trackercon detids_end = tc.end();
878 
879  //Build FED Descriptions out of db object
880  SiStripConfigDb::FedDescriptionsRange descriptions = db->getFedDescriptions();
881 
882  //loop detids
883  for (i_trackercon detids = tc.begin(); detids != detids_end; detids++) {
884  uint32_t detid = (*detids).first;
885  i_apvpairconn connections_end = ((*detids).second).end();
886 
887  //loop connections
888  for (i_apvpairconn connections = ((*detids).second).begin(); connections != connections_end; connections++) {
889  uint32_t apvPair = (*connections).first;
890  FedChannelConnection ipair = (*connections).second;
891 
892  //no connection for apvPair found
893  if (apvPair >= 100) {
894  std::cout << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
895  << " Unable to find FED description for FED id: " << ipair.fedId() << " detid : " << detid
896  << " APV pair number " << apvPair << " Writing default values" << std::endl;
897  setDefaultValuesCabling((apvPair - 100));
898  continue;
899  }
900  // if(!setValuesCabling(db, ipair, detid)){
901  if (!setValuesCabling(descriptions, ipair, detid)) {
902  std::cout << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
903  << " Unable to find FED description for FED id: " << ipair.fedId() << " detid : " << detid
904  << " APV pair number " << apvPair << " Writing default values" << std::endl;
905  setDefaultValuesCabling(apvPair);
906  }
907  } //connections
908  storePedestals(detid);
909  storeNoise(detid);
910  storeThreshold(detid);
911  storeQuality(detid);
912  } //detids
913 }
FedDescriptions::range FedDescriptionsRange
void setDefaultValuesCabling(uint16_t apvPair)
Class containning control, module, detector and connection information, at the level of a FED channel...
const uint16_t & fedId() const
std::vector< pair_detcon > trackercon
bool setValuesCabling(SiStripConfigDb::FedDescriptionsRange &descriptions, FedChannelConnection &ipair, uint32_t detid)
std::vector< pair_detcon >::iterator i_trackercon
std::vector< pair_apvpairconn >::iterator i_apvpairconn

◆ buildStripRelatedObjects()

void SiStripCondObjBuilderFromDb::buildStripRelatedObjects ( SiStripConfigDb *const  db,
const SiStripDetCabling det_cabling 
)

Definition at line 637 of file SiStripCondObjBuilderFromDb.cc.

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

Referenced by buildCondObj().

638  {
639  //variables needed in this function
640  uint16_t nApvPairs;
641  vector<uint32_t>::const_iterator det_id;
642  vector<uint32_t> det_ids;
643 
644  edm::LogInfo(mlESSources_) << "\n[SiStripCondObjBuilderFromDb::" << __func__ << "] first call to this method";
645 
646  //Check if FedDescriptions exist, if not return
647  if (!retrieveFedDescriptions(db)) {
648  std::cout << "Found no FedDescription!" << std::endl;
649  return;
650  }
651  // Retrieve list of active DetIds
652  det_cabling.addActiveDetectorsRawIds(det_ids);
653  if (det_ids.empty()) {
654  std::cout << "SiStripCondObjBuilderFromDb::" << __func__ << "]"
655  << " Unable to build Pedestals object!"
656  << " No DetIds found!" << std::endl;
657  return;
658  }
659  std::cout << "\n\nSiStripCondObjBuilderFromDb::" << __func__ << "]"
660  << " Found " << det_ids.size() << " active DetIds";
661 
662  // Loop Active DetIds
663  det_id = det_ids.begin();
664  for (; det_id != det_ids.end(); det_id++) {
665  std::stringstream ssMessage;
666 
667  // Ignore NULL DetIds
668  if (!(*det_id)) {
669  continue;
670  }
671  if (*det_id == sistrip::invalid32_) {
672  continue;
673  }
674 
675  //build connections per DetId
676  const vector<const FedChannelConnection*>& conns = buildConnections(det_cabling, *det_id);
677 
678  vector<const FedChannelConnection*>::const_iterator ipair = conns.begin();
679  if (conns.empty())
680  continue;
681 
682  //retrieve number of APV pairs per detid
683  nApvPairs = retrieveNumberAPVPairs(*det_id);
684 
685  //loop connections and check if APVPair is connected
686  vector<vector<const FedChannelConnection*>::const_iterator> listConns(nApvPairs, conns.end());
687 
688  for (; ipair != conns.end(); ++ipair) {
689  // Check if the ApvPair is connected
690  if (!(*ipair))
691  continue;
692  if ((*ipair)->fedId() != sistrip::invalid_ && (*ipair)->apvPairNumber() < 3) {
693  // (*ipair)->print(ssMessage);
694  // ssMessage<< std::endl;
695  listConns[ipair - conns.begin()] = ipair;
696  } else {
697  std::cout << "\n impossible to assign connection position in listConns " << std::endl;
698  // (*ipair)->print(ssMessage);
699  // ssMessage << std::endl;
700  }
701  }
702 
703  // get data
704  // vector< vector<const FedChannelConnection *>::const_iterator >::const_iterator ilistConns=listConns.begin();
705  for (uint16_t apvPair = 0; apvPair < listConns.size(); ++apvPair) {
706  ipair = listConns[apvPair];
707  if (ipair == conns.end()) {
708  // Fill object with default values
709  std::cout << "\n "
710  << " Unable to find FED connection for detid : " << std::dec << *det_id << " APV pair number "
711  << apvPair << " Writing default values" << std::endl;
712  // (*ipair)->print(ssMessage); // this will crash!
713  //If no connection was found, add 100 to apvpair
714  apvPair += 100;
715  std::cout << " Put apvPair+100:" << apvPair << " into vector!" << std::endl;
716  // use dummy FedChannelConnection since it's not used in this case
718  p_apvpcon = std::make_pair(apvPair, dummy);
719  v_apvpcon.push_back(p_apvpcon);
720  apvPair = apvPair - 100;
721  continue;
722  }
723  p_apvpcon = std::make_pair(apvPair, **ipair);
724  v_apvpcon.push_back(p_apvpcon);
725  } //conns loop
726  p_detcon = std::make_pair(*det_id, v_apvpcon);
727  v_trackercon.push_back(p_detcon);
728  v_apvpcon.clear();
729  } // det id loop
730 }
static const uint32_t invalid32_
Definition: Constants.h:15
bool retrieveFedDescriptions(SiStripConfigDb *const db)
Class containning control, module, detector and connection information, at the level of a FED channel...
uint16_t retrieveNumberAPVPairs(uint32_t det_id)
vector< const FedChannelConnection * > buildConnections(const SiStripDetCabling &det_cabling, uint32_t det_id)
Log< level::Info, false > LogInfo
static const uint16_t invalid_
Definition: Constants.h:16
static const char mlESSources_[]
void addActiveDetectorsRawIds(std::vector< uint32_t > &) const

◆ buildTrackerTopology()

TrackerTopology * SiStripCondObjBuilderFromDb::buildTrackerTopology ( )

Definition at line 84 of file SiStripCondObjBuilderFromDb.cc.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, TrackerTopology::PixelBarrelValues::ladderMask_, TrackerTopology::PixelBarrelValues::ladderStartBit_, TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::TIBValues::layerMask_, TrackerTopology::TOBValues::layerMask_, TrackerTopology::PixelBarrelValues::layerStartBit_, TrackerTopology::TIBValues::layerStartBit_, TrackerTopology::TOBValues::layerStartBit_, TrackerTopology::TIDValues::module_fw_bwMask_, TrackerTopology::TIDValues::module_fw_bwStartBit_, TrackerTopology::PixelBarrelValues::moduleMask_, TrackerTopology::PixelEndcapValues::moduleMask_, TrackerTopology::TECValues::moduleMask_, TrackerTopology::TIBValues::moduleMask_, TrackerTopology::TIDValues::moduleMask_, TrackerTopology::TOBValues::moduleMask_, TrackerTopology::PixelBarrelValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::moduleStartBit_, TrackerTopology::TECValues::moduleStartBit_, TrackerTopology::TIBValues::moduleStartBit_, TrackerTopology::TIDValues::moduleStartBit_, TrackerTopology::TOBValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, TrackerTopology::TECValues::petal_fw_bwMask_, TrackerTopology::TECValues::petal_fw_bwStartBit_, TrackerTopology::TECValues::petalMask_, TrackerTopology::TECValues::petalStartBit_, TrackerTopology::TECValues::ringMask_, TrackerTopology::TIDValues::ringMask_, TrackerTopology::TECValues::ringStartBit_, TrackerTopology::TIDValues::ringStartBit_, TrackerTopology::TOBValues::rod_fw_bwMask_, TrackerTopology::TOBValues::rod_fw_bwStartBit_, TrackerTopology::TOBValues::rodMask_, TrackerTopology::TOBValues::rodStartBit_, TrackerTopology::PixelEndcapValues::sideMask_, TrackerTopology::TECValues::sideMask_, TrackerTopology::TIDValues::sideMask_, TrackerTopology::PixelEndcapValues::sideStartBit_, TrackerTopology::TECValues::sideStartBit_, TrackerTopology::TIDValues::sideStartBit_, TrackerTopology::TECValues::sterMask_, TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIDValues::sterMask_, TrackerTopology::TOBValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, TrackerTopology::TIBValues::sterStartBit_, TrackerTopology::TIDValues::sterStartBit_, TrackerTopology::TOBValues::sterStartBit_, TrackerTopology::TIBValues::str_fw_bwMask_, TrackerTopology::TIBValues::str_fw_bwStartBit_, TrackerTopology::TIBValues::str_int_extMask_, TrackerTopology::TIBValues::str_int_extStartBit_, TrackerTopology::TIBValues::strMask_, TrackerTopology::TIBValues::strStartBit_, TrackerTopology::TECValues::wheelMask_, TrackerTopology::TIDValues::wheelMask_, TrackerTopology::TECValues::wheelStartBit_, and TrackerTopology::TIDValues::wheelStartBit_.

84  {
91 
92  pxbVals_.layerStartBit_ = 16;
93  pxbVals_.ladderStartBit_ = 8;
94  pxbVals_.moduleStartBit_ = 2;
95  pxbVals_.layerMask_ = 0xF;
96  pxbVals_.ladderMask_ = 0xFF;
97  pxbVals_.moduleMask_ = 0x3F;
98  pxfVals_.sideStartBit_ = 23;
99  pxfVals_.diskStartBit_ = 16;
100  pxfVals_.bladeStartBit_ = 10;
101  pxfVals_.panelStartBit_ = 8;
102  pxfVals_.moduleStartBit_ = 2;
103  pxfVals_.sideMask_ = 0x3;
104  pxfVals_.diskMask_ = 0xF;
105  pxfVals_.bladeMask_ = 0x3F;
106  pxfVals_.panelMask_ = 0x3;
107  pxfVals_.moduleMask_ = 0x3F;
108  tecVals_.sideStartBit_ = 18;
109  tecVals_.wheelStartBit_ = 14;
110  tecVals_.petal_fw_bwStartBit_ = 12;
111  tecVals_.petalStartBit_ = 8;
112  tecVals_.ringStartBit_ = 5;
113  tecVals_.moduleStartBit_ = 2;
114  tecVals_.sterStartBit_ = 0;
115  tecVals_.sideMask_ = 0x3;
116  tecVals_.wheelMask_ = 0xF;
117  tecVals_.petal_fw_bwMask_ = 0x3;
118  tecVals_.petalMask_ = 0xF;
119  tecVals_.ringMask_ = 0x7;
120  tecVals_.moduleMask_ = 0x7;
121  tecVals_.sterMask_ = 0x3;
122  tibVals_.layerStartBit_ = 14;
123  tibVals_.str_fw_bwStartBit_ = 12;
124  tibVals_.str_int_extStartBit_ = 10;
125  tibVals_.strStartBit_ = 4;
126  tibVals_.moduleStartBit_ = 2;
127  tibVals_.sterStartBit_ = 0;
128  tibVals_.layerMask_ = 0x7;
129  tibVals_.str_fw_bwMask_ = 0x3;
130  tibVals_.str_int_extMask_ = 0x3;
131  tibVals_.strMask_ = 0x3F;
132  tibVals_.moduleMask_ = 0x3;
133  tibVals_.sterMask_ = 0x3;
134  tidVals_.sideStartBit_ = 13;
135  tidVals_.wheelStartBit_ = 11;
136  tidVals_.ringStartBit_ = 9;
137  tidVals_.module_fw_bwStartBit_ = 7;
138  tidVals_.moduleStartBit_ = 2;
139  tidVals_.sterStartBit_ = 0;
140  tidVals_.sideMask_ = 0x3;
141  tidVals_.wheelMask_ = 0x3;
142  tidVals_.ringMask_ = 0x3;
143  tidVals_.module_fw_bwMask_ = 0x3;
144  tidVals_.moduleMask_ = 0x1F;
145  tidVals_.sterMask_ = 0x3;
146  tobVals_.layerStartBit_ = 14;
147  tobVals_.rod_fw_bwStartBit_ = 12;
148  tobVals_.rodStartBit_ = 5;
149  tobVals_.moduleStartBit_ = 2;
150  tobVals_.sterStartBit_ = 0;
151  tobVals_.layerMask_ = 0x7;
152  tobVals_.rod_fw_bwMask_ = 0x3;
153  tobVals_.rodMask_ = 0x7F;
154  tobVals_.moduleMask_ = 0x7;
155  tobVals_.sterMask_ = 0x3;
156 
157  return new TrackerTopology(pxbVals_, pxfVals_, tecVals_, tibVals_, tidVals_, tobVals_);
158 }
unsigned int module_fw_bwStartBit_

◆ checkForCompatibility()

bool SiStripCondObjBuilderFromDb::checkForCompatibility ( std::stringstream &  input,
std::stringstream &  output,
std::string &  label 
)

Definition at line 161 of file SiStripCondObjBuilderFromDb.cc.

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

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

163  {
164  // DEPRECATED. Superseded by SiStripCondObjBuilderFromDb::getConfigString(const std::type_info& typeInfo).
165 
166  //get current config DB parameter
167 
169 
170  SiStripDbParams::SiStripPartitions::const_iterator ipart = partitionsRange.begin();
171  SiStripDbParams::SiStripPartitions::const_iterator ipartEnd = partitionsRange.end();
172  for (; ipart != ipartEnd; ++ipart) {
173  SiStripPartition partition = ipart->second;
174  output << "@ "
175  << " Partition " << partition.partitionName();
176  if (label != "Cabling" && label != "ApvLatency")
177  output << " FedVer " << partition.fedVersion().first << "." << partition.fedVersion().second;
178  if (label == "Cabling")
179  output << " CabVer " << partition.cabVersion().first << "." << partition.cabVersion().second << " MaskVer "
180  << partition.maskVersion().first << "." << partition.maskVersion().second;
181  if (label == "ApvTiming")
182  output << " ApvTimingVer " << partition.apvTimingVersion().first << "." << partition.apvTimingVersion().second;
183  if (label == "ApvLatency")
184  output << " FecVersion " << partition.fecVersion().first << "." << partition.fecVersion().second;
185  }
186 
187  if (!strcmp(output.str().c_str(), input.str().c_str()))
188  return false;
189 
190  return true;
191 }
const_iterator_range partitions() const
static std::string const input
Definition: EdmProvDump.cc:47
char const * label
Versions apvTimingVersion() const
std::string partitionName() const
Versions cabVersion() const
Versions maskVersion() const
const SiStripDbParams & dbParams() const
Container class for database partition parameters.
Versions fedVersion() const
Versions fecVersion() const
boost::iterator_range< SiStripPartitions::const_iterator > const_iterator_range

◆ checkUpdate()

void SiStripCondObjBuilderFromDb::checkUpdate ( )
protected

◆ dbParams()

const SiStripDbParams& SiStripCondObjBuilderFromDb::dbParams ( ) const
inline

Returns database connection parameters.

Definition at line 79 of file SiStripCondObjBuilderFromDb.h.

References db_, and SiStripConfigDb::dbParams().

Referenced by checkForCompatibility(), checkUpdate(), and getConfigString().

79 { return db_->dbParams(); }
edm::Service< SiStripConfigDb > db_
const SiStripDbParams & dbParams() const

◆ getApvGain()

SiStripApvGain* SiStripCondObjBuilderFromDb::getApvGain ( )
inline

Definition at line 112 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and gain_.

Referenced by getValue().

112  {
113  checkUpdate();
114  return gain_;
115  }

◆ getApvLatency()

SiStripLatency* SiStripCondObjBuilderFromDb::getApvLatency ( )
inline

Definition at line 116 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and latency_.

Referenced by getValue().

116  {
117  checkUpdate();
118  return latency_;
119  }

◆ getConfigString()

std::string SiStripCondObjBuilderFromDb::getConfigString ( const std::type_info &  typeInfo)

Definition at line 194 of file SiStripCondObjBuilderFromDb.cc.

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

Referenced by SiStripPayloadHandler< SiStripPayload >::SiStripPayloadHandler().

194  {
195  // create config line used by fast O2O
196 
197  std::stringstream output;
198 
200  SiStripDbParams::SiStripPartitions::const_iterator ipart = partitionsRange.begin();
201  SiStripDbParams::SiStripPartitions::const_iterator ipartEnd = partitionsRange.end();
202  for (; ipart != ipartEnd; ++ipart) {
203  SiStripPartition partition = ipart->second;
204  output << "%%"
205  << "Partition: " << partition.partitionName();
206 
207  // Make everything depend on cabVersion and maskVersion!
208  output << " CablingVersion: " << partition.cabVersion().first << "." << partition.cabVersion().second;
209  output << " MaskVersion: " << partition.maskVersion().first << "." << partition.maskVersion().second;
210 
211  if (typeInfo == typeid(SiStripFedCabling)) {
212  // Do nothing. FedCabling only depends on cabVersion and maskVersion.
213  } else if (typeInfo == typeid(SiStripLatency)) {
214  // Latency is FEC related, add fecVersion.
215  output << " FecVersion: " << partition.fecVersion().first << "." << partition.fecVersion().second;
216  } else {
217  // BadStrip, Noises, Pedestals and Thresholds are FED related, add fecVersion.
218  output << " FedVersion: " << partition.fedVersion().first << "." << partition.fedVersion().second;
219  if (typeInfo == typeid(SiStripApvGain)) {
220  // Not used in O2O.
221  output << " ApvTimingVersion: " << partition.apvTimingVersion().first << "."
222  << partition.apvTimingVersion().second;
223  }
224  }
225  }
226 
227  return output.str();
228 }
const_iterator_range partitions() const
Versions apvTimingVersion() const
std::string partitionName() const
Versions cabVersion() const
Versions maskVersion() const
const SiStripDbParams & dbParams() const
Container class for database partition parameters.
Versions fedVersion() const
Versions fecVersion() const
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
boost::iterator_range< SiStripPartitions::const_iterator > const_iterator_range

◆ getFedCabling()

SiStripFedCabling* SiStripCondObjBuilderFromDb::getFedCabling ( )
inline

Definition at line 92 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and fed_cabling_.

Referenced by getValue().

◆ getNoises()

SiStripNoises* SiStripCondObjBuilderFromDb::getNoises ( )
inline

Definition at line 100 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and noises_.

Referenced by getValue().

100  {
101  checkUpdate();
102  return noises_;
103  }

◆ getPedestals()

SiStripPedestals* SiStripCondObjBuilderFromDb::getPedestals ( )
inline

Definition at line 96 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and pedestals_.

Referenced by getValue().

◆ getQuality()

SiStripQuality* SiStripCondObjBuilderFromDb::getQuality ( )
inline

Definition at line 108 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and quality_.

Referenced by getValue().

108  {
109  checkUpdate();
110  return quality_;
111  }

◆ getThreshold()

SiStripThreshold* SiStripCondObjBuilderFromDb::getThreshold ( )
inline

Definition at line 104 of file SiStripCondObjBuilderFromDb.h.

References checkUpdate(), and threshold_.

Referenced by getValue().

104  {
105  checkUpdate();
106  return threshold_;
107  }

◆ getValue() [1/8]

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

◆ getValue() [2/8]

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

Definition at line 122 of file SiStripCondObjBuilderFromDb.h.

References getPedestals(), and heppy_batch::val.

◆ getValue() [3/8]

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

Definition at line 123 of file SiStripCondObjBuilderFromDb.h.

References getNoises(), and heppy_batch::val.

◆ getValue() [4/8]

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

Definition at line 124 of file SiStripCondObjBuilderFromDb.h.

References getThreshold(), and heppy_batch::val.

◆ getValue() [5/8]

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

Definition at line 125 of file SiStripCondObjBuilderFromDb.h.

References getQuality(), and heppy_batch::val.

◆ getValue() [6/8]

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

◆ getValue() [7/8]

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

Definition at line 127 of file SiStripCondObjBuilderFromDb.h.

References getApvGain(), and heppy_batch::val.

◆ getValue() [8/8]

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

Definition at line 128 of file SiStripCondObjBuilderFromDb.h.

References getApvLatency(), and heppy_batch::val.

◆ retrieveActiveDetIds()

vector< uint32_t > SiStripCondObjBuilderFromDb::retrieveActiveDetIds ( const SiStripDetCabling det_cabling)
protected

Definition at line 299 of file SiStripCondObjBuilderFromDb.cc.

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

299  {
300  vector<uint32_t> det_ids;
301  det_cabling.addActiveDetectorsRawIds(det_ids);
302  if (det_ids.empty()) {
303  edm::LogWarning(mlESSources_) << "SiStripCondObjBuilderFromDb::" << __func__ << "]"
304  << " Unable to build Pedestals object!"
305  << " No DetIds found!";
306  return det_ids;
307  }
308  LogTrace(mlESSources_) << "\n\nSiStripCondObjBuilderFromDb::" << __func__ << "]"
309  << " Found " << det_ids.size() << " active DetIds";
310  return det_ids;
311 }
#define LogTrace(id)
Log< level::Warning, false > LogWarning
static const char mlESSources_[]
void addActiveDetectorsRawIds(std::vector< uint32_t > &) const

◆ retrieveFedDescriptions()

bool SiStripCondObjBuilderFromDb::retrieveFedDescriptions ( SiStripConfigDb *const  db)
protected

Definition at line 270 of file SiStripCondObjBuilderFromDb.cc.

References dqmiodatasetharvest::db, and sistrip::mlESSources_.

Referenced by buildStripRelatedObjects().

270  {
271  SiStripConfigDb::FedDescriptionsRange descriptions = db->getFedDescriptions();
272  if (descriptions.empty()) {
273  edm::LogWarning(mlESSources_) << "SiStripCondObjBuilderFromDb::" << __func__ << "]"
274  << " No FED descriptions found!";
275 
276  return false;
277  }
278  return true;
279 }
FedDescriptions::range FedDescriptionsRange
Log< level::Warning, false > LogWarning
static const char mlESSources_[]

◆ retrieveNumberAPVPairs()

uint16_t SiStripCondObjBuilderFromDb::retrieveNumberAPVPairs ( uint32_t  det_id)
protected

Definition at line 330 of file SiStripCondObjBuilderFromDb.cc.

References SiStripDetInfo::getNumberOfApvsAndStripLength(), and m_detInfo.

Referenced by buildStripRelatedObjects().

330  {
331  uint16_t nApvPairs;
332  nApvPairs = m_detInfo.getNumberOfApvsAndStripLength(det_id).first / 2;
333  return nApvPairs;
334 }
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const

◆ retrieveTimingAnalysisDescriptions()

bool SiStripCondObjBuilderFromDb::retrieveTimingAnalysisDescriptions ( SiStripConfigDb *const  db)
protected

Definition at line 284 of file SiStripCondObjBuilderFromDb.cc.

References dqmiodatasetharvest::db, and sistrip::mlESSources_.

Referenced by buildAnalysisRelatedObjects().

284  {
286  db->getAnalysisDescriptions(CommissioningAnalysisDescription::T_ANALYSIS_TIMING);
287  if (anal_descriptions.empty()) {
288  edm::LogWarning(mlESSources_) << "SiStripCondObjBuilderFromDb::" << __func__ << "]"
289  << " Unable to build SiStripApvGain object!"
290  << " No timing-scan analysis descriptions found!";
291  return false;
292  }
293  return true;
294 }
AnalysisDescriptions::range AnalysisDescriptionsRange
Log< level::Warning, false > LogWarning
static const char mlESSources_[]

◆ setDefaultValuesApvLatency()

void SiStripCondObjBuilderFromDb::setDefaultValuesApvLatency ( SiStripLatency latency_,
const FedChannelConnection ipair,
uint32_t  detid,
uint16_t  apvnr 
)
protected

Definition at line 381 of file SiStripCondObjBuilderFromDb.cc.

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

384  {
385  std::cout << "[SiStripCondObjBuilderFromDb::" << __func__ << "]: Set Default Latency for Detid: " << detid
386  << " ApvNr: " << apvnr << std::endl;
388  std::cout << "[SiStripCondObjBuilderFromDb::" << __func__ << "]: Unable to fill Latency for Detid: " << detid
389  << " ApvNr: " << apvnr << std::endl;
390  }
392  std::cout << "[SiStripCondObjBuilderFromDb::" << __func__ << "]: Unable to fill Latency for Detid: " << detid
393  << " ApvNr: " << apvnr << std::endl;
394  }
395 }
bool put(const uint32_t detId, const uint16_t apv, const uint16_t latency, const uint16_t mode)

◆ setDefaultValuesApvTiming()

void SiStripCondObjBuilderFromDb::setDefaultValuesApvTiming ( uint32_t  detid,
uint32_t  apvPair 
)
protected

Definition at line 353 of file SiStripCondObjBuilderFromDb.cc.

References gain_last_, inputApvGain, m_defaulttickheightvalue, m_gaincalibrationfactor, sistrip::mlESSources_, and FastTimerService_cff::range.

Referenced by buildAnalysisRelatedObjects().

353  {
355 
356  if (gain_last_) {
357  auto range = gain_last_->getRange(detid);
358  if (apvPair * 2 < range.second - range.first) {
359  height = gain_last_->getApvGain(apvPair * 2, range);
360  edm::LogWarning(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
361  << " [ApvGain] Read gain value from last IOV for DetId: " << detid
362  << " ApvPair: " << apvPair << ", value=" << height;
363  } else {
364  edm::LogWarning(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
365  << " [ApvGain] Unable to read gain value from last IOV for DetId: " << detid
366  << " ApvPair: " << apvPair << ", use dummy value=" << height;
367  }
368  } else {
369  edm::LogWarning(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
370  << " [ApvGain] NULL pointer for last stored gain object in DB!!! "
371  << "Will use dummy value=" << height << " for DetId: " << detid
372  << " ApvPair: " << apvPair;
373  }
374 
375  inputApvGain.push_back(height); // APV0
376  inputApvGain.push_back(height); // APV1
377 }
std::shared_ptr< SiStripApvGain > gain_last_
SiStripApvGain::InputVector inputApvGain
Log< level::Warning, false > LogWarning
static const char mlESSources_[]

◆ setDefaultValuesCabling()

void SiStripCondObjBuilderFromDb::setDefaultValuesCabling ( uint16_t  apvPair)
protected

Definition at line 339 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().

339  {
340  uint16_t istrip = apvPair * sistrip::STRIPS_PER_FEDCH;
341  std::cout << "Found disabled FedConnection! APVPair: " << apvPair << " Strips: " << sistrip::STRIPS_PER_FEDCH
342  << std::endl;
344  for (; istrip < (apvPair + 1) * sistrip::STRIPS_PER_FEDCH; ++istrip) {
348  }
349 }
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)
unsigned int encode(const unsigned short &first, const unsigned short &NconsecutiveBadStrips, const unsigned short &flag=0)
void setData(float noise_, InputVector &vped)

◆ setLastIovGain()

void SiStripCondObjBuilderFromDb::setLastIovGain ( std::shared_ptr< SiStripApvGain gain)
inline

◆ setValuesApvLatency()

bool SiStripCondObjBuilderFromDb::setValuesApvLatency ( SiStripLatency latency_,
SiStripConfigDb *const  db,
FedChannelConnection ipair,
uint32_t  detid,
uint16_t  apvnr,
SiStripConfigDb::DeviceDescriptionsRange  apvs 
)
protected

Definition at line 469 of file SiStripCondObjBuilderFromDb.cc.

References FedChannelConnection::ccuAddr(), FedChannelConnection::ccuChan(), gather_cfg::cout, TauDecayModes::dec, FedChannelConnection::fecCrate(), FedChannelConnection::fecRing(), FedChannelConnection::fecSlot(), SiStripDetInfo::getNumberOfApvsAndStripLength(), FedChannelConnection::i2cAddr(), latency_, m_detInfo, and SiStripLatency::put().

Referenced by buildFECRelatedObjects().

474  {
476 
477  SiStripConfigDb::DeviceDescriptionsV::const_iterator iapv = apvs.begin();
478  SiStripConfigDb::DeviceDescriptionsV::const_iterator japv = apvs.end();
479  if (iapv == japv)
480  return false;
481  for (; iapv != japv; ++iapv) {
482  apvDescription* apv = dynamic_cast<apvDescription*>(*iapv);
483  if (!apv) {
484  continue;
485  }
486  if ((apv->getCrateId()) != (ipair.fecCrate()))
487  continue;
488  if ((apv->getFecSlot()) != (ipair.fecSlot()))
489  continue;
490  if ((apv->getRingSlot()) != (ipair.fecRing()))
491  continue;
492  if ((apv->getCcuAddress()) != (ipair.ccuAddr()))
493  continue;
494  if ((apv->getChannel()) != (ipair.ccuChan()))
495  continue;
496  // Insert latency values into latency object
497  if ((apv->getAddress()) == (ipair.i2cAddr(0))) {
498  if (!latency_.put(
499  detid, apvnr, static_cast<uint16_t>(apv->getLatency()), static_cast<uint16_t>(apv->getApvMode()))) {
500  std::cout << "UNABLE APVLatency Put: Detid " << dec << detid << " APVNr.: " << apvnr
501  << " Latency Value: " << dec << static_cast<uint16_t>(apv->getLatency()) << " APV Mode: " << dec
502  << static_cast<uint16_t>(apv->getApvMode()) << std::endl;
503  return false;
504  } else {
505  ++apvnr;
506  }
507  }
508  if ((apv->getAddress()) == (ipair.i2cAddr(1))) {
509  if (!latency_.put(
510  detid, apvnr, static_cast<uint16_t>(apv->getLatency()), static_cast<uint16_t>(apv->getApvMode()))) {
511  std::cout << "UNABLE APVLatency Put: Detid " << dec << detid << " APVNr.: " << apvnr
512  << " Latency Value: " << dec << static_cast<uint16_t>(apv->getLatency()) << " APV Mode: " << dec
513  << static_cast<uint16_t>(apv->getApvMode()) << std::endl;
514  continue;
515  return false;
516  } else {
517  ++apvnr;
518  }
519  }
520  }
521  return true;
522 }
const uint16_t & fecCrate() const
const uint16_t & ccuAddr() const
bool put(const uint32_t detId, const uint16_t apv, const uint16_t latency, const uint16_t mode)
const uint16_t & i2cAddr(const uint16_t &apv0_or_1) const
const uint16_t & fecSlot() const
const uint16_t & ccuChan() const
const uint16_t & fecRing() const
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const

◆ setValuesApvTiming()

bool SiStripCondObjBuilderFromDb::setValuesApvTiming ( SiStripConfigDb *const  db,
FedChannelConnection ipair 
)
protected

Definition at line 399 of file SiStripCondObjBuilderFromDb.cc.

References conversion_template_cfg::anal, FedChannelConnection::apvPairNumber(), dqmiodatasetharvest::db, submitPVResolutionJobs::desc, FedChannelConnection::detId(), SiStripFedKey::fedCh(), FedChannelConnection::fedCh(), FedChannelConnection::fedId(), spr::find(), inputApvGain, m_gaincalibrationfactor, m_tickmarkThreshold, sistrip::mlESSources_, skippedDetIds, skippedDevices, createJobs::tmp, whitelistedDetIds, and whitelistedDevices.

Referenced by buildAnalysisRelatedObjects().

399  {
401  db->getAnalysisDescriptions(CommissioningAnalysisDescription::T_ANALYSIS_TIMING);
402  SiStripConfigDb::AnalysisDescriptionsV::const_iterator iii = anal_descriptions.begin();
403  SiStripConfigDb::AnalysisDescriptionsV::const_iterator jjj = anal_descriptions.end();
404 
405  while (iii != jjj) {
406  CommissioningAnalysisDescription* tmp = *iii;
407  uint16_t fed_id = tmp->getFedId();
408  uint16_t fed_ch = SiStripFedKey::fedCh(tmp->getFeUnit(), tmp->getFeChan());
409  if (fed_id == ipair.fedId() && fed_ch == ipair.fedCh()) {
410  break;
411  }
412  iii++;
413  }
414 
415  TimingAnalysisDescription* anal = nullptr;
416  if (iii != jjj) {
417  anal = dynamic_cast<TimingAnalysisDescription*>(*iii);
418  }
419  if (!anal) {
420  edm::LogWarning(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
421  << " [ApvGain] Unable to find Timing Analysis Description from DB for DetId: "
422  << ipair.detId() << " ApvPair:" << ipair.apvPairNumber();
423  return false;
424  }
425 
426  bool is_whitelist = false;
427  for (const auto& desc : whitelistedDevices) {
428  if (desc.isConsistent(ipair)) {
429  is_whitelist = true;
430  if (std::find(whitelistedDetIds.begin(), whitelistedDetIds.end(), ipair.detId()) == whitelistedDetIds.end()) {
431  whitelistedDetIds.push_back(ipair.detId());
432  }
433  break;
434  }
435  }
436 
437  if (!is_whitelist) {
438  // check if this should be skipped only if it is not in the whitelist
439  for (const auto& desc : skippedDevices) {
440  if (desc.isConsistent(ipair)) {
441  edm::LogInfo(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
442  << " [ApvGain] Skip module with DetId:" << ipair.detId()
443  << " ApvPair:" << ipair.apvPairNumber() << " according to \n"
444  << desc.dump();
445  if (std::find(skippedDetIds.begin(), skippedDetIds.end(), ipair.detId()) == skippedDetIds.end()) {
446  skippedDetIds.push_back(ipair.detId());
447  }
448  return false;
449  }
450  }
451  }
452 
453  if (anal->getHeight() > m_tickmarkThreshold) {
454  float tick_height = (anal->getHeight() / m_gaincalibrationfactor);
455  inputApvGain.push_back(tick_height); // APV0
456  inputApvGain.push_back(tick_height); // APV1
457  } else {
458  edm::LogWarning(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
459  << " [ApvGain] Low tickmark height for DetId:" << ipair.detId()
460  << " ApvPair:" << ipair.apvPairNumber() << ", height=" << anal->getHeight();
461  return false;
462  }
463 
464  return true;
465 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
std::vector< SkipDeviceDescription > whitelistedDevices
const uint16_t & fedId() const
const uint32_t & detId() const
Log< level::Info, false > LogInfo
AnalysisDescriptions::range AnalysisDescriptionsRange
uint16_t apvPairNumber() const
SiStripApvGain::InputVector inputApvGain
std::vector< uint32_t > whitelistedDetIds
static uint16_t fedCh(const uint16_t &fe_unit, const uint16_t &fe_chan)
Log< level::Warning, false > LogWarning
static const char mlESSources_[]
std::vector< SkipDeviceDescription > skippedDevices
const uint16_t & fedCh() const
tmp
align.sh
Definition: createJobs.py:716

◆ setValuesCabling()

bool SiStripCondObjBuilderFromDb::setValuesCabling ( SiStripConfigDb::FedDescriptionsRange descriptions,
FedChannelConnection ipair,
uint32_t  detid 
)
protected

Definition at line 527 of file SiStripCondObjBuilderFromDb.cc.

References generateTowerEtThresholdLUT::addr, FedChannelConnection::apvPairNumber(), gather_cfg::cout, edmLumisInFiles::description, SiStripBadStrip::encode(), FedChannelConnection::fedCh(), FedChannelConnection::fedId(), inputNoises, inputPedestals, inputQuality, inputThreshold, noises_, pedestals_, quality_, SiStripPedestals::setData(), SiStripNoises::setData(), SiStripThreshold::setData(), digitizers_cfi::strip, DigiDM_cff::strips, sistrip::STRIPS_PER_FEDCH, and threshold_.

Referenced by buildFEDRelatedObjects().

529  {
530  //SiStripConfigDb::FedDescriptionsRange descriptions = db->getFedDescriptions();
531  SiStripConfigDb::FedDescriptionsV::const_iterator description = descriptions.begin();
532  while (description != descriptions.end()) {
533  if ((*description)->getFedId() == ipair.fedId()) {
534  break;
535  }
536  description++;
537  }
538  if (description == descriptions.end()) {
539  return false;
540  }
541  // Retrieve Fed9UStrips object from FED description
542  const Fed9U::Fed9UStrips& strips = (*description)->getFedStrips();
543 
544  // Retrieve StripDescriptions for each APV
545  uint16_t jstrip = ipair.apvPairNumber() * sistrip::STRIPS_PER_FEDCH;
546  for (uint16_t iapv = 2 * ipair.fedCh(); iapv < 2 * ipair.fedCh() + 2; iapv++) {
547  // Get StripDescriptions for the given APV
548  Fed9U::Fed9UAddress addr;
549  addr.setFedApv(iapv);
550  vector<Fed9U::Fed9UStripDescription> strip = strips.getApvStrips(addr);
551 
552  vector<Fed9U::Fed9UStripDescription>::const_iterator istrip = strip.begin();
553 
554  for (; istrip != strip.end(); istrip++) {
555  pedestals_->setData(istrip->getPedestal(), inputPedestals);
556  noises_->setData(istrip->getNoise(), inputNoises);
557  threshold_->setData(jstrip, istrip->getLowThresholdFactor(), istrip->getHighThresholdFactor(), inputThreshold);
558  if (istrip->getDisable()) {
559  std::cout << "Found disabled strip! Detid: " << detid << " APVNr: " << iapv << " Strips: " << jstrip
560  << std::endl;
561 
562  inputQuality.push_back(quality_->encode(jstrip, 1));
563  }
564  jstrip++;
565  }
566  }
567  return true;
568 }
SiStripPedestals::InputVector inputPedestals
SiStripQuality::InputVector inputQuality
SiStripThreshold::InputVector inputThreshold
const uint16_t & fedId() const
SiStripNoises::InputVector inputNoises
static const uint16_t STRIPS_PER_FEDCH
void setData(const uint16_t &strip, const float &lTh, const float &hTh, Container &vthr)
uint16_t apvPairNumber() const
void setData(float ped, InputVector &vped)
strips
#turn off noise in all subdetectors simHcalUnsuppressedDigis.doNoise = False mix.digitizers.hcal.doNoise = False simEcalUnsuppressedDigis.doNoise = False mix.digitizers.ecal.doNoise = False simEcalUnsuppressedDigis.doESNoise = False simSiPixelDigis.AddNoise = False mix.digitizers.pixel.AddNoise = False simSiStripDigis.Noise = False mix.digitizers.strip.AddNoise = False
Definition: DigiDM_cff.py:32
const uint16_t & fedCh() const
unsigned int encode(const unsigned short &first, const unsigned short &NconsecutiveBadStrips, const unsigned short &flag=0)
void setData(float noise_, InputVector &vped)

◆ storeNoise()

void SiStripCondObjBuilderFromDb::storeNoise ( uint32_t  det_id)
protected

Definition at line 584 of file SiStripCondObjBuilderFromDb.cc.

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

Referenced by buildFEDRelatedObjects().

584  {
585  // Insert noise values into Noises object
586 
587  if (!noises_->put(det_id, inputNoises)) {
588  std::cout << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
589  << " Unable to insert values into SiStripNoises object!"
590  << " DetId already exists!" << std::endl;
591  }
592  inputNoises.clear();
593 }
SiStripNoises::InputVector inputNoises
bool put(const uint32_t &detID, const InputVector &input)

◆ storePedestals()

void SiStripCondObjBuilderFromDb::storePedestals ( uint32_t  det_id)
protected

Definition at line 573 of file SiStripCondObjBuilderFromDb.cc.

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

Referenced by buildFEDRelatedObjects().

573  {
574  if (!pedestals_->put(det_id, inputPedestals)) {
575  std::cout << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
576  << " Unable to insert values into SiStripPedestals object!"
577  << " DetId already exists!" << std::endl;
578  }
579  inputPedestals.clear();
580 }
SiStripPedestals::InputVector inputPedestals
bool put(const uint32_t &detID, InputVector &input)

◆ storeQuality()

void SiStripCondObjBuilderFromDb::storeQuality ( uint32_t  det_id)
protected

Definition at line 609 of file SiStripCondObjBuilderFromDb.cc.

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

Referenced by buildFEDRelatedObjects().

609  {
610  // Insert quality values into Quality object
611  if (!inputQuality.empty()) {
612  quality_->compact(det_id, inputQuality);
613  if (!quality_->put(det_id, inputQuality)) {
614  std::cout << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
615  << " Unable to insert values into SiStripQuality object!"
616  << " DetId already exists!" << std::endl;
617  }
618  }
619  inputQuality.clear();
620 }
SiStripQuality::InputVector inputQuality
void compact(uint32_t detid, std::vector< unsigned int > &)
bool put(const uint32_t &detID, const InputVector &vect)

◆ storeThreshold()

void SiStripCondObjBuilderFromDb::storeThreshold ( uint32_t  det_id)
protected

Definition at line 597 of file SiStripCondObjBuilderFromDb.cc.

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

Referenced by buildFEDRelatedObjects().

597  {
598  // Insert threshold values into Threshold object
599  if (!threshold_->put(det_id, inputThreshold)) {
600  std::cout << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
601  << " Unable to insert values into SiStripThreshold object!"
602  << " DetId already exists!" << std::endl;
603  }
604  inputThreshold.clear();
605 }
bool put(const uint32_t &detID, const InputVector &vect)
SiStripThreshold::InputVector inputThreshold

◆ storeTiming()

void SiStripCondObjBuilderFromDb::storeTiming ( uint32_t  det_id)
protected

Definition at line 624 of file SiStripCondObjBuilderFromDb.cc.

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

Referenced by buildAnalysisRelatedObjects().

624  {
625  // Insert tick height values into Gain object
627  if (!gain_->put(det_id, range)) {
628  edm::LogWarning(mlESSources_) << "[SiStripCondObjBuilderFromDb::" << __func__ << "]"
629  << " [ApvGain] Unable to insert values into SiStripApvGain object!"
630  << " DetId already exists!";
631  }
632  inputApvGain.clear();
633 }
bool put(const uint32_t &detID, Range input)
std::pair< ContainerIterator, ContainerIterator > Range
SiStripApvGain::InputVector inputApvGain
Log< level::Warning, false > LogWarning
static const char mlESSources_[]

Member Data Documentation

◆ db_

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

Access to the configuration DB interface class.

Definition at line 137 of file SiStripCondObjBuilderFromDb.h.

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

◆ dbParams_

SiStripDbParams SiStripCondObjBuilderFromDb::dbParams_
protected

Container for DB connection parameters.

Definition at line 140 of file SiStripCondObjBuilderFromDb.h.

Referenced by checkUpdate().

◆ fed_cabling_

SiStripFedCabling* SiStripCondObjBuilderFromDb::fed_cabling_
protected

Definition at line 141 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildCondObj(), and getFedCabling().

◆ gain_

SiStripApvGain* SiStripCondObjBuilderFromDb::gain_
protected

◆ gain_last_

std::shared_ptr<SiStripApvGain> SiStripCondObjBuilderFromDb::gain_last_
protected

Definition at line 149 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesApvTiming(), and setLastIovGain().

◆ inputApvGain

SiStripApvGain::InputVector SiStripCondObjBuilderFromDb::inputApvGain
protected

◆ inputNoises

SiStripNoises::InputVector SiStripCondObjBuilderFromDb::inputNoises
protected

◆ inputPedestals

SiStripPedestals::InputVector SiStripCondObjBuilderFromDb::inputPedestals
protected

◆ inputQuality

SiStripQuality::InputVector SiStripCondObjBuilderFromDb::inputQuality
protected

◆ inputThreshold

SiStripThreshold::InputVector SiStripCondObjBuilderFromDb::inputThreshold
protected

◆ latency_

SiStripLatency* SiStripCondObjBuilderFromDb::latency_
protected

◆ m_debug

bool SiStripCondObjBuilderFromDb::m_debug
protected

Definition at line 203 of file SiStripCondObjBuilderFromDb.h.

◆ m_defaultapvlatencyvalue

uint16_t SiStripCondObjBuilderFromDb::m_defaultapvlatencyvalue
protected

Definition at line 198 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesApvLatency().

◆ m_defaultapvmodevalue

uint16_t SiStripCondObjBuilderFromDb::m_defaultapvmodevalue
protected

Definition at line 197 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesApvLatency().

◆ m_defaultnoisevalue

float SiStripCondObjBuilderFromDb::m_defaultnoisevalue
protected

Definition at line 194 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesCabling().

◆ m_defaultpedestalvalue

float SiStripCondObjBuilderFromDb::m_defaultpedestalvalue
protected

Definition at line 193 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesCabling().

◆ m_defaultthresholdhighvalue

float SiStripCondObjBuilderFromDb::m_defaultthresholdhighvalue
protected

Definition at line 195 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesCabling().

◆ m_defaultthresholdlowvalue

float SiStripCondObjBuilderFromDb::m_defaultthresholdlowvalue
protected

Definition at line 196 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesCabling().

◆ m_defaulttickheightvalue

float SiStripCondObjBuilderFromDb::m_defaulttickheightvalue
protected

Definition at line 199 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesApvTiming().

◆ m_detInfo

SiStripDetInfo SiStripCondObjBuilderFromDb::m_detInfo
protected

◆ m_gaincalibrationfactor

float SiStripCondObjBuilderFromDb::m_gaincalibrationfactor
protected

Definition at line 192 of file SiStripCondObjBuilderFromDb.h.

Referenced by setDefaultValuesApvTiming(), and setValuesApvTiming().

◆ m_skippedDevices

edm::VParameterSet SiStripCondObjBuilderFromDb::m_skippedDevices
protected

Definition at line 188 of file SiStripCondObjBuilderFromDb.h.

Referenced by SiStripCondObjBuilderFromDb().

◆ m_tickmarkThreshold

float SiStripCondObjBuilderFromDb::m_tickmarkThreshold
protected

Definition at line 191 of file SiStripCondObjBuilderFromDb.h.

Referenced by setValuesApvTiming().

◆ m_useanalysis

bool SiStripCondObjBuilderFromDb::m_useanalysis
protected

Definition at line 200 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildCondObj().

◆ m_usefec

bool SiStripCondObjBuilderFromDb::m_usefec
protected

Definition at line 202 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildCondObj().

◆ m_usefed

bool SiStripCondObjBuilderFromDb::m_usefed
protected

Definition at line 201 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildCondObj().

◆ m_whitelistedDevices

edm::VParameterSet SiStripCondObjBuilderFromDb::m_whitelistedDevices
protected

Definition at line 190 of file SiStripCondObjBuilderFromDb.h.

Referenced by SiStripCondObjBuilderFromDb().

◆ noises_

SiStripNoises* SiStripCondObjBuilderFromDb::noises_
protected

◆ p_apvpcon

pair_apvpairconn SiStripCondObjBuilderFromDb::p_apvpcon
protected

Definition at line 215 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildStripRelatedObjects().

◆ p_detcon

pair_detcon SiStripCondObjBuilderFromDb::p_detcon
protected

Definition at line 217 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildStripRelatedObjects().

◆ pedestals_

SiStripPedestals* SiStripCondObjBuilderFromDb::pedestals_
protected

◆ quality_

SiStripQuality* SiStripCondObjBuilderFromDb::quality_
protected

◆ skippedDetIds

std::vector<uint32_t> SiStripCondObjBuilderFromDb::skippedDetIds
protected

◆ skippedDevices

std::vector<SkipDeviceDescription> SiStripCondObjBuilderFromDb::skippedDevices
protected

◆ threshold_

SiStripThreshold* SiStripCondObjBuilderFromDb::threshold_
protected

◆ tTopo

TrackerTopology* SiStripCondObjBuilderFromDb::tTopo
protected

◆ v_apvpcon

v_apvpairconn SiStripCondObjBuilderFromDb::v_apvpcon
protected

Definition at line 216 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildStripRelatedObjects().

◆ v_trackercon

trackercon SiStripCondObjBuilderFromDb::v_trackercon
protected

Definition at line 218 of file SiStripCondObjBuilderFromDb.h.

Referenced by buildCondObj(), and buildStripRelatedObjects().

◆ whitelistedDetIds

std::vector<uint32_t> SiStripCondObjBuilderFromDb::whitelistedDetIds
protected

◆ whitelistedDevices

std::vector<SkipDeviceDescription> SiStripCondObjBuilderFromDb::whitelistedDevices
protected