CMS 3D CMS Logo

PixelDetectorConfig.h
Go to the documentation of this file.
1 #ifndef PixelDetectorConfig_h
2 #define PixelDetectorConfig_h
3 
11 //
12 // This class specifies which detector
13 // components are used in the configuration
14 // (and eventually should specify which
15 // xdaq process controlls which components).
16 //
17 //
18 //
19 //
20 
21 #include <vector>
22 #include <set>
23 #include <map>
24 #include <string>
30 
31 namespace pos {
40  public:
41  PixelDetectorConfig(std::vector<std::vector<std::string> > &tableMat);
43 
44  unsigned int getNModules() const;
45 
46  PixelModuleName getModule(unsigned int i) const;
47 
48  const std::vector<PixelModuleName> &getModuleList() const { return modules_; }
49 
50  void addROC(PixelROCName &, std::string statusLabel);
51  void addROC(PixelROCName &);
52  void removeROC(PixelROCName &);
53  const std::map<PixelROCName, PixelROCStatus> &getROCsList() const { return rocs_; };
54 
55  void writeASCII(std::string dir = "") const override;
56  void writeXML(pos::PixelConfigKey key, int version, std::string path) const override;
58  int version,
60  std::ofstream *out,
61  std::ofstream *out1 = nullptr,
62  std::ofstream *out2 = nullptr) const override;
63  void writeXML(std::ofstream *out, std::ofstream *out1 = nullptr, std::ofstream *out2 = nullptr) const override;
64  void writeXMLTrailer(std::ofstream *out,
65  std::ofstream *out1 = nullptr,
66  std::ofstream *out2 = nullptr) const override;
67 
68  bool containsModule(const PixelModuleName &moduleToFind) const;
69 
70  std::set<unsigned int> getFEDs(PixelNameTranslation *translation) const;
71  std::map<unsigned int, std::set<unsigned int> > getFEDsAndChannels(PixelNameTranslation *translation) const;
72 
73  //friend std::ostream& operator<<(std::ostream& s, const PixelDetectorconfig& config);
74 
75  private:
76  std::vector<PixelModuleName> modules_;
77 
78  std::map<PixelROCName, PixelROCStatus> rocs_;
79  };
80 } // namespace pos
81 /* @} */
82 #endif
mps_fire.i
i
Definition: mps_fire.py:428
pos::PixelDetectorConfig::containsModule
bool containsModule(const PixelModuleName &moduleToFind) const
Definition: PixelDetectorConfig.cc:291
PixelROCStatus.h
This class keeps the possible non-standard status a ROC can have.
pos::PixelDetectorConfig
This is the documentation about PixelDetectorConfig...
Definition: PixelDetectorConfig.h:39
pos
Definition: PixelAliasList.h:18
pos::PixelModuleName
This class implements..
Definition: PixelModuleName.h:26
pos::PixelConfigBase
This file contains the base class for "pixel configuration data" management.
Definition: PixelConfigBase.h:32
PixelNameTranslation.h
This class provides a translation from the naming documents standard to specify the ROC to the corres...
PixelHdwAddress.h
Store mfec, mfecchannel etc.
pos::PixelDetectorConfig::getModuleList
const std::vector< PixelModuleName > & getModuleList() const
Definition: PixelDetectorConfig.h:48
PixelConfigBase.h
This file contains the base class for "pixel configuration data" management.
PixelModuleName.h
This class implements..
pos::PixelDetectorConfig::getNModules
unsigned int getNModules() const
Definition: PixelDetectorConfig.cc:244
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
pos::PixelDetectorConfig::writeXMLTrailer
void writeXMLTrailer(std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Definition: PixelDetectorConfig.cc:418
pos::PixelConfigKey
This class implements..
Definition: PixelConfigKey.h:20
pos::PixelDetectorConfig::writeASCII
void writeASCII(std::string dir="") const override
Definition: PixelDetectorConfig.cc:301
pos::PixelDetectorConfig::rocs_
std::map< PixelROCName, PixelROCStatus > rocs_
Definition: PixelDetectorConfig.h:78
pos::PixelDetectorConfig::writeXML
void writeXML(pos::PixelConfigKey key, int version, std::string path) const override
Definition: PixelDetectorConfig.cc:432
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
pos::PixelROCName
This class implements..
Definition: PixelROCName.h:23
pos::PixelDetectorConfig::getROCsList
const std::map< PixelROCName, PixelROCStatus > & getROCsList() const
Definition: PixelDetectorConfig.h:53
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
pos::PixelDetectorConfig::modules_
std::vector< PixelModuleName > modules_
Definition: PixelDetectorConfig.h:76
pos::PixelDetectorConfig::PixelDetectorConfig
PixelDetectorConfig(std::vector< std::vector< std::string > > &tableMat)
Definition: PixelDetectorConfig.cc:21
pos::PixelDetectorConfig::getModule
PixelModuleName getModule(unsigned int i) const
Definition: PixelDetectorConfig.cc:246
pos::PixelDetectorConfig::getFEDsAndChannels
std::map< unsigned int, std::set< unsigned int > > getFEDsAndChannels(PixelNameTranslation *translation) const
Definition: PixelDetectorConfig.cc:268
pos::PixelDetectorConfig::addROC
void addROC(PixelROCName &, std::string statusLabel)
PointingDoubleMultiSkim_cfg.out2
out2
Definition: PointingDoubleMultiSkim_cfg.py:85
pos::PixelDetectorConfig::writeXMLHeader
void writeXMLHeader(pos::PixelConfigKey key, int version, std::string path, std::ofstream *out, std::ofstream *out1=nullptr, std::ofstream *out2=nullptr) const override
Definition: PixelDetectorConfig.cc:334
PointingDoubleMultiSkim_cfg.out1
out1
Definition: PointingDoubleMultiSkim_cfg.py:57
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
pos::PixelDetectorConfig::getFEDs
std::set< unsigned int > getFEDs(PixelNameTranslation *translation) const
Definition: PixelDetectorConfig.cc:248
pos::PixelNameTranslation
This is the documentation about PixelNameTranslation...
Definition: PixelNameTranslation.h:41
crabWrapper.key
key
Definition: crabWrapper.py:19
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
pos::PixelDetectorConfig::removeROC
void removeROC(PixelROCName &)
Definition: PixelDetectorConfig.cc:543
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23