CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelFEDConfig.h
Go to the documentation of this file.
1 #ifndef PixelFEDConfig_h
2 #define PixelFEDConfig_h
3 
11 #include <vector>
12 #include <string>
15 
16 namespace pos{
28 
29  public:
30 
31  PixelFEDConfig(std::string filename); // <---- Modified for the conversion from parallel vectors to object that contain the configuration
32 
33  PixelFEDConfig(std::vector<std::vector<std::string> >& tableMat );
34 
35  virtual ~PixelFEDConfig();
36 
37  unsigned int getNFEDBoards() const;
38 
39  unsigned int getFEDNumber(unsigned int i) const;
40  unsigned int getCrate(unsigned int i) const;
41  unsigned int getVMEBaseAddress(unsigned int i) const;
42  unsigned int crateFromFEDNumber(unsigned int fednumber) const;
43  unsigned int VMEBaseAddressFromFEDNumber(unsigned int fednumber) const;
44 
45  unsigned int FEDNumberFromCrateAndVMEBaseAddress(unsigned int crate, unsigned int vmebaseaddress) const;
46 
47  virtual void writeASCII(std::string dir) const;
49  virtual void writeXMLHeader( pos::PixelConfigKey key,
50  int version,
52  std::ofstream *out,
53  std::ofstream *out1 = NULL,
54  std::ofstream *out2 = NULL
55  ) const ;
56  virtual void writeXML( std::ofstream *out,
57  std::ofstream *out1 = NULL ,
58  std::ofstream *out2 = NULL ) const ;
59  virtual void writeXMLTrailer( std::ofstream *out,
60  std::ofstream *out1 = NULL,
61  std::ofstream *out2 = NULL
62  ) const ;
63 
64  //friend std::ostream& operator<<(std::ostream& s, const PixelDetectorconfig& config);
65 
66  private:
67 
68  //Already fixed from parallel vectors to vector of objects .... the object that contains the FED config is PixelFEDParameters
69 
70  // std::vector<unsigned int> fednumber_;
71  // std::vector<unsigned int> crate_;
72  // std::vector<unsigned int> vmebaseaddress_;
73 
74  std::vector< PixelFEDParameters > fedconfig_;
75 
76  };
77 }
78 /* @} */
79 #endif
int i
Definition: DBlmapReader.cc:9
unsigned int FEDNumberFromCrateAndVMEBaseAddress(unsigned int crate, unsigned int vmebaseaddress) const
This file contains the base class for &quot;pixel configuration data&quot; management.
unsigned int crateFromFEDNumber(unsigned int fednumber) const
unsigned int VMEBaseAddressFromFEDNumber(unsigned int fednumber) const
std::vector< PixelFEDParameters > fedconfig_
#define NULL
Definition: scimark2.h:8
void writeXML(pos::PixelConfigKey key, int version, std::string path) const
unsigned int getFEDNumber(unsigned int i) const
This file contains the base class for &quot;pixel configuration data&quot; management.
unsigned int getCrate(unsigned int i) const
tuple path
else: Piece not in the list, fine.
virtual void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
unsigned int getVMEBaseAddress(unsigned int i) const
unsigned int getNFEDBoards() const
virtual void writeASCII(std::string dir) const
This class implements..
tuple out
Definition: dbtoconf.py:99
This class implements..
virtual void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=NULL, std::ofstream *out2=NULL) const
list key
Definition: combine.py:13
This is the documentation about PixelFEDConfig...
PixelFEDConfig(std::string filename)
tuple filename
Definition: lut2db_cfg.py:20
dbl *** dir
Definition: mlp_gen.cc:35