CMS 3D CMS Logo

PixelROCMaskBits.h
Go to the documentation of this file.
1 #ifndef PixelROCMaskBits_h
2 #define PixelROCMaskBits_h
3 
9 #include <sstream>
10 #include <fstream>
11 #include <string>
13 
14 namespace pos {
15 
16  class PixelROCMaskBits;
17  std::ostream& operator<<(std::ostream& s, const PixelROCMaskBits& maskbits);
18 
25  public:
27 
29 
30  int read(const PixelROCName& rocid, std::string in);
31  int read(const PixelROCName& rocid, std::ifstream& in);
32  int read(const PixelROCName& rocid, std::istringstream& in);
33 
34  int readBinary(const PixelROCName& rocid, std::ifstream& in);
35 
36  unsigned int mask(unsigned int col, unsigned int row) const;
37 
38  void setMask(unsigned int col, unsigned int row, unsigned int mask);
39 
40  void writeBinary(std::ofstream& out) const;
41 
42  void writeASCII(std::ofstream& out) const;
43  void writeXML(std::ofstream* out) const;
44 
45  PixelROCName name() const { return rocid_; }
46 
47  friend std::ostream& operator<<(std::ostream& s, const PixelROCMaskBits& maskbits);
48 
49  private:
51  unsigned char bits_[520];
52  };
53 } // namespace pos
54 
55 #endif
pos::PixelROCMaskBits
This class implements..
Definition: PixelROCMaskBits.h:24
pos::PixelROCMaskBits::name
PixelROCName name() const
Definition: PixelROCMaskBits.h:45
pos::PixelROCMaskBits::setROCMaskBits
void setROCMaskBits(PixelROCName &rocid, std::string bits)
Definition: PixelROCMaskBits.cc:21
pos::PixelROCMaskBits::readBinary
int readBinary(const PixelROCName &rocid, std::ifstream &in)
Definition: PixelROCMaskBits.cc:108
cuy.col
col
Definition: cuy.py:1010
pos
Definition: PixelAliasList.h:18
pos::PixelROCMaskBits::read
int read(const PixelROCName &rocid, std::string in)
Definition: PixelROCMaskBits.cc:36
PixelROCName.h
This class stores the name and related hardware mappings for a ROC.
pos::PixelROCMaskBits::writeBinary
void writeBinary(std::ofstream &out) const
Definition: PixelROCMaskBits.cc:117
alignCSCRings.s
s
Definition: alignCSCRings.py:92
pos::PixelROCMaskBits::setMask
void setMask(unsigned int col, unsigned int row, unsigned int mask)
Definition: PixelROCMaskBits.cc:155
pos::PixelROCMaskBits::PixelROCMaskBits
PixelROCMaskBits()
Definition: PixelROCMaskBits.cc:18
pos::PixelROCMaskBits::writeASCII
void writeASCII(std::ofstream &out) const
Definition: PixelROCMaskBits.cc:127
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
recoMuon::in
Definition: RecoMuonEnumerators.h:6
pos::operator<<
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
Definition: PixelCalibConfiguration.cc:1325
pos::PixelROCMaskBits::writeXML
void writeXML(std::ofstream *out) const
Definition: PixelROCMaskBits.cc:189
pos::PixelROCName
This class implements..
Definition: PixelROCName.h:23
bits
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
Definition: EventSelector-behavior.doc:35
pos::PixelROCMaskBits::mask
unsigned int mask(unsigned int col, unsigned int row) const
Definition: PixelROCMaskBits.cc:143
pos::PixelROCMaskBits::bits_
unsigned char bits_[520]
Definition: PixelROCMaskBits.h:51
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
pos::PixelROCMaskBits::rocid_
PixelROCName rocid_
Definition: PixelROCMaskBits.h:50
pos::PixelROCMaskBits::operator<<
friend std::ostream & operator<<(std::ostream &s, const PixelROCMaskBits &maskbits)