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 
26  public:
27 
29 
31 
32  int read(const PixelROCName& rocid, std::string in);
33  int read(const PixelROCName& rocid, std::ifstream& in);
34  int read(const PixelROCName& rocid, std::istringstream& in);
35 
36  int readBinary(const PixelROCName& rocid, std::ifstream& in);
37 
38  unsigned int mask(unsigned int col, unsigned int row) const;
39 
40  void setMask(unsigned int col, unsigned int row, unsigned int mask);
41 
42  void writeBinary(std::ofstream& out) const;
43 
44  void writeASCII(std::ofstream& out) const;
45  void writeXML( std::ofstream * out) const;
46 
47  PixelROCName name() const {return rocid_;}
48 
49  friend std::ostream& operator<<(std::ostream& s, const PixelROCMaskBits& maskbits);
50 
51  private:
52 
54  unsigned char bits_[520];
55 
56 
57  };
58 }
59 
60 #endif
void setROCMaskBits(PixelROCName &rocid, std::string bits)
int read(const PixelROCName &rocid, std::string in)
PixelROCName name() const
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
std::ostream & operator<<(std::ostream &s, const PixelCalibConfiguration &calib)
void writeASCII(std::ofstream &out) const
void setMask(unsigned int col, unsigned int row, unsigned int mask)
This class implements..
This class implements..
Definition: PixelROCName.h:23
unsigned char bits_[520]
unsigned int mask(unsigned int col, unsigned int row) const
col
Definition: cuy.py:1010
void writeXML(std::ofstream *out) const
void writeBinary(std::ofstream &out) const
friend std::ostream & operator<<(std::ostream &s, const PixelROCMaskBits &maskbits)
This class stores the name and related hardware mappings for a ROC.
int readBinary(const PixelROCName &rocid, std::ifstream &in)