An interface class to the DeviceFactory. More...
#include <SiStripConfigDb.h>
Classes | |
class | DeviceAddress |
class | Run |
Public Member Functions | |
SiStripConfigDb (const edm::ParameterSet &, const edm::ActivityRegistry &) | |
~SiStripConfigDb () | |
Protected Types | |
typedef CommissioningAnalysisDescription | AnalysisDescription |
typedef edm::MapOfVectors < std::string, AnalysisDescription * > | AnalysisDescriptions |
typedef AnalysisDescriptions::range | AnalysisDescriptionsRange |
typedef std::vector < AnalysisDescription * > | AnalysisDescriptionsV |
typedef CommissioningAnalysisDescription::commissioningType | AnalysisType |
typedef std::pair< uint32_t, TkDcuInfo * > | DcuDetId |
typedef Sgi::hash_map < unsigned long, TkDcuInfo * > | DcuDetIdMap |
typedef edm::MapOfVectors < std::string, DcuDetId > | DcuDetIds |
typedef DcuDetIds::range | DcuDetIdsRange |
typedef std::vector< DcuDetId > | DcuDetIdsV |
typedef deviceDescription | DeviceDescription |
typedef edm::MapOfVectors < std::string, DeviceDescription * > | DeviceDescriptions |
typedef DeviceDescriptions::range | DeviceDescriptionsRange |
typedef std::vector < DeviceDescription * > | DeviceDescriptionsV |
typedef enumDeviceType | DeviceType |
typedef ConnectionDescription | FedConnection |
typedef edm::MapOfVectors < std::string, FedConnection * > | FedConnections |
typedef FedConnections::range | FedConnectionsRange |
typedef std::vector < FedConnection * > | FedConnectionsV |
typedef Fed9U::Fed9UDescription | FedDescription |
typedef edm::MapOfVectors < std::string, FedDescription * > | FedDescriptions |
typedef FedDescriptions::range | FedDescriptionsRange |
typedef std::vector < FedDescription * > | FedDescriptionsV |
typedef std::vector< uint16_t > | FedIds |
typedef boost::iterator_range < FedIds::const_iterator > | FedIdsRange |
typedef std::vector< Run > | Runs |
typedef std::map< std::string, Runs > | RunsByPartition |
typedef std::map < sistrip::RunType, Runs > | RunsByType |
Protected Member Functions | |
void | addAnalysisDescriptions (std::string partition, AnalysisDescriptionsV &) |
void | addDcuDetIds (std::string partition, DcuDetIdsV &) |
void | addDeviceDescriptions (std::string partition, DeviceDescriptionsV &) |
void | addFedConnections (std::string partition, FedConnectionsV &) |
void | addFedDescriptions (std::string partition, FedDescriptionsV &) |
std::string | analysisType (AnalysisType) const |
void | clearAnalysisDescriptions (std::string partition="") |
void | clearDcuDetIds (std::string partition="") |
void | clearDeviceDescriptions (std::string partition="") |
void | clearFedConnections (std::string partition="") |
void | clearFedDescriptions (std::string partition="") |
void | closeDbConnection () |
DbClient *const | databaseCache (std::string method_name="") const |
const SiStripDbParams & | dbParams () const |
DeviceAddress | deviceAddress (const deviceDescription &) |
DeviceAddress | deviceAddress (const AnalysisDescription &) |
DeviceFactory *const | deviceFactory (std::string method_name="") const |
AnalysisDescriptionsRange | getAnalysisDescriptions (AnalysisType, std::string partition="") |
DcuDetIdsRange | getDcuDetIds (std::string partition="") |
DeviceDescriptionsRange | getDeviceDescriptions (std::string partition="") |
DeviceDescriptionsRange | getDeviceDescriptions (DeviceType, std::string partition="") |
FedConnectionsRange | getFedConnections (std::string partition="") |
FedDescriptionsRange | getFedDescriptions (std::string partition="") |
FedIdsRange | getFedIds (std::string partition="") |
void | openDbConnection () |
void | partitions (std::list< std::string > &) const |
void | printAnalysisDescriptions (std::string partition="") |
void | printDcuDetIds (std::string partition="") |
void | printDeviceDescriptions (std::string partition="") |
void | printFedConnections (std::string partition="") |
void | printFedDescriptions (std::string partition="") |
void | runs (Runs &) const |
void | runs (const Runs &in, RunsByType &out, std::string optional_partition="") const |
void | runs (const Runs &in, RunsByPartition &out, sistrip::RunType optional_type=sistrip::UNDEFINED_RUN_TYPE) const |
void | uploadAnalysisDescriptions (bool calibration_for_physics=false, std::string partition="") |
void | uploadDcuDetIds (std::string partition="") |
void | uploadDeviceDescriptions (std::string partition="") |
void | uploadFedConnections (std::string partition="") |
void | uploadFedDescriptions (std::string partition="") |
bool | usingDb () const |
bool | usingStrips () const |
void | usingStrips (bool) |
Static Protected Member Functions | |
static DcuDetIdsV::const_iterator | findDcuDetId (DcuDetIdsV::const_iterator begin, DcuDetIdsV::const_iterator end, uint32_t dcu_id) |
static DcuDetIdsV::iterator | findDcuDetId (DcuDetIdsV::iterator begin, DcuDetIdsV::iterator end, uint32_t dcu_id) |
Private Member Functions | |
bool | checkFileExists (const std::string &path) |
void | clearLocalCache () |
void | clone (const DcuDetIdMap &in, DcuDetIdsV &out) const |
void | clone (const DcuDetIdsV &in, DcuDetIdMap &out) const |
void | clone (const DcuDetIdsV &in, DcuDetIdsV &out) const |
std::string | deviceType (const enumDeviceType &device_type) const |
void | handleException (const std::string &method_name, const std::string &extra_info="") const |
void | usingDatabase () |
void | usingDatabaseCache () |
void | usingXmlFiles () |
Static Private Attributes | |
static std::atomic< bool > | allowCalibUpload_ { false } |
static std::atomic< uint32_t > | cntr_ |
Friends | |
class | ApvTimingHistosUsingDb |
class | CalibrationHistosUsingDb |
class | CommissioningHistosUsingDb |
class | FastFedCablingHistosUsingDb |
class | FedCablingHistosUsingDb |
class | FineDelayHistosUsingDb |
class | LatencyHistosUsingDb |
class | NoiseHistosUsingDb |
class | OptoScanHistosUsingDb |
class | PedestalsHistosUsingDb |
class | PedsFullNoiseHistosUsingDb |
class | PedsOnlyHistosUsingDb |
class | SiStripCommissioningDbClient |
class | SiStripCommissioningOfflineDbClient |
class | SiStripCondObjBuilderFromDb |
class | SiStripFedCablingBuilderFromDb |
class | SiStripNoiseBuilderFromDb |
class | SiStripPartition |
class | SiStripPedestalsBuilderFromDb |
class | SiStripPsuDetIdMap |
class | testSiStripConfigDb |
class | VpspScanHistosUsingDb |
An interface class to the DeviceFactory.
Definition at line 45 of file SiStripConfigDb.h.
|
protected |
Definition at line 142 of file SiStripConfigDb.h.
|
protected |
Definition at line 143 of file SiStripConfigDb.h.
|
protected |
Definition at line 144 of file SiStripConfigDb.h.
|
protected |
Definition at line 145 of file SiStripConfigDb.h.
|
protected |
Definition at line 141 of file SiStripConfigDb.h.
|
protected |
Definition at line 134 of file SiStripConfigDb.h.
|
protected |
Definition at line 133 of file SiStripConfigDb.h.
|
protected |
Definition at line 135 of file SiStripConfigDb.h.
|
protected |
Definition at line 136 of file SiStripConfigDb.h.
|
protected |
Definition at line 137 of file SiStripConfigDb.h.
|
protected |
Definition at line 117 of file SiStripConfigDb.h.
|
protected |
Definition at line 118 of file SiStripConfigDb.h.
|
protected |
Definition at line 119 of file SiStripConfigDb.h.
|
protected |
Definition at line 120 of file SiStripConfigDb.h.
|
protected |
Definition at line 116 of file SiStripConfigDb.h.
|
protected |
Definition at line 110 of file SiStripConfigDb.h.
|
protected |
Definition at line 111 of file SiStripConfigDb.h.
|
protected |
Definition at line 112 of file SiStripConfigDb.h.
|
protected |
Definition at line 113 of file SiStripConfigDb.h.
|
protected |
Definition at line 123 of file SiStripConfigDb.h.
|
protected |
Definition at line 124 of file SiStripConfigDb.h.
|
protected |
Definition at line 125 of file SiStripConfigDb.h.
|
protected |
Definition at line 126 of file SiStripConfigDb.h.
|
protected |
Definition at line 129 of file SiStripConfigDb.h.
|
protected |
Definition at line 130 of file SiStripConfigDb.h.
|
protected |
Definition at line 203 of file SiStripConfigDb.h.
|
protected |
Definition at line 207 of file SiStripConfigDb.h.
|
protected |
Definition at line 205 of file SiStripConfigDb.h.
SiStripConfigDb::SiStripConfigDb | ( | const edm::ParameterSet & | pset, |
const edm::ActivityRegistry & | activity | ||
) |
Constructor when using the "service" mode, which takes as an argument a ParameterSet (containing the database connection parameters).
Definition at line 21 of file SiStripConfigDb.cc.
SiStripConfigDb::~SiStripConfigDb | ( | ) |
Default destructor.
Definition at line 62 of file SiStripConfigDb.cc.
|
protected |
Adds to local cache (just for given partition if specified).
Definition at line 160 of file AnalysisDescriptions.cc.
|
protected |
Adds to local cache (just for given partition if specified).
Definition at line 108 of file DcuDetIds.cc.
|
protected |
Adds to local cache (just for given partition if specified).
Definition at line 199 of file DeviceDescriptions.cc.
|
protected |
Add to local cache (just for given partition if specified).
Definition at line 127 of file FedConnections.cc.
|
protected |
Adds to local cache (just for given partition if specified).
Definition at line 131 of file FedDescriptions.cc.
|
protected |
Returns string for given analysis type.
Definition at line 512 of file AnalysisDescriptions.cc.
|
private |
Checks whether file at "path" exists or not.
Definition at line 809 of file SiStripConfigDb.cc.
|
protected |
Clears local cache (just for given partition if specified).
Definition at line 326 of file AnalysisDescriptions.cc.
|
protected |
Clears local cache (just for given partition if specified).
Definition at line 272 of file DcuDetIds.cc.
|
protected |
Clears local cache (just for given partition if specified).
Definition at line 345 of file DeviceDescriptions.cc.
|
protected |
Clears local cache (just for given partition if specified).
Definition at line 278 of file FedConnections.cc.
|
protected |
Clears local cache (just for given partition if specified).
Definition at line 278 of file FedDescriptions.cc.
|
private |
Definition at line 176 of file SiStripConfigDb.cc.
|
private |
Definition at line 368 of file DcuDetIds.cc.
|
private |
Definition at line 377 of file DcuDetIds.cc.
|
private |
Definition at line 386 of file DcuDetIds.cc.
|
protected |
Closes connection to DeviceFactory API.
Definition at line 140 of file SiStripConfigDb.cc.
|
protected |
Returns pointer to DeviceFactory API, with check if NULL.
Definition at line 211 of file SiStripConfigDb.cc.
|
inlineprotected |
Returns database connection parameters.
Definition at line 468 of file SiStripConfigDb.h.
|
protected |
Extracts unique hardware address of device from description.
Definition at line 513 of file DeviceDescriptions.cc.
|
protected |
Extracts unique hardware address of device from description.
Definition at line 491 of file AnalysisDescriptions.cc.
|
protected |
Returns pointer to DeviceFactory API, with check if NULL.
Definition at line 195 of file SiStripConfigDb.cc.
|
private |
Returns device identifier based on device type.
Definition at line 533 of file DeviceDescriptions.cc.
|
staticprotected |
Utility method.
Definition at line 395 of file DcuDetIds.cc.
|
staticprotected |
Utility method.
Definition at line 408 of file DcuDetIds.cc.
|
protected |
Returns local cache (just for given partition if specified).
T_UNKNOWN, T_ANALYSIS_FASTFEDCABLING, T_ANALYSIS_TIMING, T_ANALYSIS_OPTOSCAN, T_ANALYSIS_VPSPSCAN, T_ANALYSIS_PEDESTAL, T_ANALYSIS_APVLATENCY, T_ANALYSIS_FINEDELAY, T_ANALYSIS_CALIBRATION.
Definition at line 20 of file AnalysisDescriptions.cc.
|
protected |
Returns local cache (just for given partition if specified).
Definition at line 10 of file DcuDetIds.cc.
|
protected |
Returns local cache (just for given partition if specified).
Definition at line 11 of file DeviceDescriptions.cc.
|
protected |
Returns (pair of iterators to) descriptions of given type. (APV25, APVMUX, DCU, LASERDRIVER, PLL, DOH).
Definition at line 126 of file DeviceDescriptions.cc.
|
protected |
Returns local cache (just for given partition if specified).
Definition at line 11 of file FedConnections.cc.
|
protected |
Returns local cache (just for given partition if specified).
Definition at line 12 of file FedDescriptions.cc.
|
protected |
Extracts FED ids from FED descriptions.
Definition at line 430 of file FedDescriptions.cc.
|
private |
Handles exceptions thrown by software.
Definition at line 739 of file SiStripConfigDb.cc.
|
protected |
Establishes connection to DeviceFactory API.
Definition at line 102 of file SiStripConfigDb.cc.
|
protected |
Retrieves all partitions names from database.
Definition at line 1011 of file SiStripConfigDb.cc.
|
protected |
Prints local cache (just for given partition if specified).
Definition at line 392 of file AnalysisDescriptions.cc.
|
protected |
Prints local cache (just for given partition if specified).
Definition at line 338 of file DcuDetIds.cc.
|
protected |
Prints local cache (just for given partition if specified).
Definition at line 411 of file DeviceDescriptions.cc.
|
protected |
Prints local cache (just for given partition if specified).
Definition at line 344 of file FedConnections.cc.
|
protected |
Prints local cache (just for given partition if specified).
Definition at line 347 of file FedDescriptions.cc.
|
protected |
Retrieves all runs from database.
Definition at line 819 of file SiStripConfigDb.cc.
|
protected |
Runs organsed by type, optionally for given partition.
Definition at line 889 of file SiStripConfigDb.cc.
|
protected |
Runs organsed by partition, optionally for given type.
Definition at line 956 of file SiStripConfigDb.cc.
|
protected |
Uploads to database (just for given partition if specified).
Definition at line 229 of file AnalysisDescriptions.cc.
|
protected |
Uploads to database (just for given partition if specified).
Definition at line 183 of file DcuDetIds.cc.
|
protected |
Uploads to database (just for given partition if specified).
Definition at line 268 of file DeviceDescriptions.cc.
|
protected |
Uploads to database (just for given partition if specified).
Definition at line 197 of file FedConnections.cc.
|
protected |
Uploads to database (just for given partition if specified).
Definition at line 201 of file FedDescriptions.cc.
|
private |
Definition at line 227 of file SiStripConfigDb.cc.
|
private |
Definition at line 453 of file SiStripConfigDb.cc.
|
inlineprotected |
Returns whether using database or xml files.
Indicates whether DB (true) or XML files (false) are used.
Definition at line 471 of file SiStripConfigDb.h.
|
inlineprotected |
Strip-level info enabled/disabled within FED descriptions.
Indicates whether FED strip info is uploaded/downloaded.
Definition at line 474 of file SiStripConfigDb.h.
|
inlineprotected |
Enables/disables strip-level info within FED descriptions.
Switches on/off of upload/download for FED strip info.
Definition at line 477 of file SiStripConfigDb.h.
|
private |
Definition at line 522 of file SiStripConfigDb.cc.
|
friend |
Definition at line 89 of file SiStripConfigDb.h.
|
friend |
Definition at line 98 of file SiStripConfigDb.h.
|
friend |
Definition at line 86 of file SiStripConfigDb.h.
|
friend |
Definition at line 87 of file SiStripConfigDb.h.
|
friend |
Definition at line 88 of file SiStripConfigDb.h.
|
friend |
Definition at line 97 of file SiStripConfigDb.h.
|
friend |
Definition at line 96 of file SiStripConfigDb.h.
|
friend |
Definition at line 94 of file SiStripConfigDb.h.
|
friend |
Definition at line 90 of file SiStripConfigDb.h.
|
friend |
Definition at line 91 of file SiStripConfigDb.h.
|
friend |
Definition at line 92 of file SiStripConfigDb.h.
|
friend |
Definition at line 93 of file SiStripConfigDb.h.
|
friend |
Definition at line 84 of file SiStripConfigDb.h.
|
friend |
Definition at line 85 of file SiStripConfigDb.h.
|
friend |
Definition at line 79 of file SiStripConfigDb.h.
|
friend |
Definition at line 76 of file SiStripConfigDb.h.
|
friend |
Definition at line 78 of file SiStripConfigDb.h.
|
friend |
Definition at line 101 of file SiStripConfigDb.h.
|
friend |
Definition at line 77 of file SiStripConfigDb.h.
|
friend |
Definition at line 80 of file SiStripConfigDb.h.
|
friend |
Definition at line 102 of file SiStripConfigDb.h.
|
friend |
Definition at line 95 of file SiStripConfigDb.h.
|
staticprivate |
Definition at line 458 of file SiStripConfigDb.h.
|
private |
Analysis descriptions for given commissioning run.
Definition at line 419 of file SiStripConfigDb.h.
|
private |
Cache for devices of given type.
Definition at line 422 of file SiStripConfigDb.h.
|
staticprivate |
Static counter of instances of this class.
Definition at line 456 of file SiStripConfigDb.h.
|
private |
FED-FEC connection descriptions.
Definition at line 407 of file SiStripConfigDb.h.
|
private |
Pointer to the DbClient class.
Definition at line 397 of file SiStripConfigDb.h.
|
private |
Instance of struct that holds all DB connection parameters.
Definition at line 400 of file SiStripConfigDb.h.
|
private |
DcuId-DetId map (map of TkDcuInfo objects).
Definition at line 416 of file SiStripConfigDb.h.
|
private |
Cache for devices of given type.
Definition at line 428 of file SiStripConfigDb.h.
|
private |
Device descriptions (including DCUs).
Definition at line 410 of file SiStripConfigDb.h.
|
private |
Cache for devices of given type.
Definition at line 437 of file SiStripConfigDb.h.
|
private |
Pointer to the DeviceFactory API.
Definition at line 394 of file SiStripConfigDb.h.
|
private |
FED ids.
Definition at line 443 of file SiStripConfigDb.h.
|
private |
Fed9U descriptions.
Definition at line 413 of file SiStripConfigDb.h.
|
private |
Cache for devices of given type.
Definition at line 431 of file SiStripConfigDb.h.
|
private |
Cache for devices of given type.
Definition at line 425 of file SiStripConfigDb.h.
|
private |
Definition at line 453 of file SiStripConfigDb.h.
|
private |
Cache for devices of given type.
Definition at line 434 of file SiStripConfigDb.h.
|
private |
Cache for devices of given type.
Definition at line 440 of file SiStripConfigDb.h.
|
private |
Switch to enable/disable transfer of strip information.
Definition at line 450 of file SiStripConfigDb.h.