CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripFedCablingBuilderFromDb.h
Go to the documentation of this file.
1 // Last commit: $Id: SiStripFedCablingBuilderFromDb.h,v 1.16 2008/04/30 08:15:33 bainbrid Exp $
2 
3 #ifndef OnlineDB_SiStripESSources_SiStripFedCablingBuilderFromDb_H
4 #define OnlineDB_SiStripESSources_SiStripFedCablingBuilderFromDb_H
5 
9 #include "boost/cstdint.hpp"
10 #include <vector>
11 #include <string>
12 
14 class SiStripFedCabling;
15 class SiStripFecCabling;
16 class SiStripConfigDb;
17 class TkDcuInfo;
18 
20 
21  public:
22 
23  // -------------------- Constructors, destructors --------------------
24 
27 
28  // -------------------- Methods to build FED cabling --------------------
29 
31  virtual SiStripFedCabling* make( const SiStripFedCablingRcd& );
32 
33  // -------------------- Convert b/w FED and FEC cabling --------------------
34 
37  static void getFedCabling( const SiStripFecCabling& in,
39 
42  static void getFecCabling( const SiStripFedCabling& in,
43  SiStripFecCabling& out );
44 
45  // -------------------- Methods to build FEC cabling --------------------
46 
50  static void buildFecCabling( SiStripConfigDb* const,
52  const sistrip::CablingSource& );
53 
57  static void buildFecCabling( SiStripConfigDb* const,
59 
65 
69  static void buildFecCablingFromDevices( SiStripConfigDb* const,
71 
75  static void buildFecCablingFromDetIds( SiStripConfigDb* const,
77 
78  protected:
79 
82  const edm::IOVSyncValue&,
84 
87  std::vector< std::pair<uint32_t,TkDcuInfo*> > );
88 
91  virtual void writeFedCablingToCondDb( const SiStripFedCabling& ) {;}
92 
95 
98 
99 };
100 
101 #endif // OnlineDB_SiStripESSources_SiStripFedCablingBuilderFromDb_H
102 
static void assignDcuAndDetIds(SiStripFecCabling &, std::vector< std::pair< uint32_t, TkDcuInfo * > >)
static void buildFecCablingFromDetIds(SiStripConfigDb *const, SiStripFecCabling &)
SiStripFedCablingBuilderFromDb(const edm::ParameterSet &)
virtual void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
static void getFecCabling(const SiStripFedCabling &in, SiStripFecCabling &out)
virtual SiStripFedCabling * make(const SiStripFedCablingRcd &)
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.
tuple out
Definition: dbtoconf.py:99
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 &)
static void buildFecCablingFromDevices(SiStripConfigDb *const, SiStripFecCabling &)