CMS 3D CMS Logo

SiStripFedCablingBuilderFromDb.h
Go to the documentation of this file.
1 
2 #ifndef OnlineDB_SiStripESSources_SiStripFedCablingBuilderFromDb_H
3 #define OnlineDB_SiStripESSources_SiStripFedCablingBuilderFromDb_H
4 
8 #include "boost/cstdint.hpp"
9 #include <vector>
10 #include <string>
11 
13 class SiStripFedCabling;
14 class SiStripFecCabling;
15 class SiStripConfigDb;
16 class TkDcuInfo;
17 
19 
20  public:
21 
22  // -------------------- Constructors, destructors --------------------
23 
26 
27  // -------------------- Methods to build FED cabling --------------------
28 
30  SiStripFedCabling* make( const SiStripFedCablingRcd& ) override;
31 
32  // -------------------- Convert b/w FED and FEC cabling --------------------
33 
36  static void getFedCabling( const SiStripFecCabling& in,
38 
41  static void getFecCabling( const SiStripFedCabling& in,
42  SiStripFecCabling& out );
43 
44  // -------------------- Methods to build FEC cabling --------------------
45 
49  static void buildFecCabling( SiStripConfigDb* const,
51  const sistrip::CablingSource& );
52 
56  static void buildFecCabling( SiStripConfigDb* const,
58 
64 
68  static void buildFecCablingFromDevices( SiStripConfigDb* const,
70 
74  static void buildFecCablingFromDetIds( SiStripConfigDb* const,
76 
77  protected:
78 
81  const edm::IOVSyncValue&,
82  edm::ValidityInterval& ) override;
83 
86  const std::vector< std::pair<uint32_t,TkDcuInfo*> >& );
87 
90  virtual void writeFedCablingToCondDb( const SiStripFedCabling& ) {;}
91 
94 
97 
98 };
99 
100 #endif // OnlineDB_SiStripESSources_SiStripFedCablingBuilderFromDb_H
101 
static void buildFecCablingFromDetIds(SiStripConfigDb *const, SiStripFecCabling &)
SiStripFedCablingBuilderFromDb(const edm::ParameterSet &)
static void assignDcuAndDetIds(SiStripFecCabling &, const std::vector< std::pair< uint32_t, TkDcuInfo * > > &)
static void getFecCabling(const SiStripFedCabling &in, SiStripFecCabling &out)
static void buildFecCabling(SiStripConfigDb *const, SiStripFecCabling &, const sistrip::CablingSource &)
An interface class to the DeviceFactory.
virtual void writeFedCablingToCondDb(const SiStripFedCabling &)
Abstract base class for producer of SiStripFedCabling record.
static void getFedCabling(const SiStripFecCabling &in, SiStripFedCabling &out)
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
static void buildFecCablingFromFedConnections(SiStripConfigDb *const, SiStripFecCabling &)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
static void buildFecCablingFromDevices(SiStripConfigDb *const, SiStripFecCabling &)
SiStripFedCabling * make(const SiStripFedCablingRcd &) override