test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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{
21 
22  public:
23 
25 
27 
28  int read(const PixelROCName& rocid, std::string in);
29  int read(const PixelROCName& rocid, std::ifstream& in);
30  int read(const PixelROCName& rocid, std::istringstream& in);
31 
32  int readBinary(const PixelROCName& rocid, std::ifstream& in);
33 
34  unsigned int mask(unsigned int col, unsigned int row) const;
35 
36  void setMask(unsigned int col, unsigned int row, unsigned int mask);
37 
38  void writeBinary(std::ofstream& out) const;
39 
40  void writeASCII(std::ofstream& out) const;
41  void writeXML( std::ofstream * out) const;
42 
43  PixelROCName name() const {return rocid_;}
44 
45  friend std::ostream& operator<<(std::ostream& s, const PixelROCMaskBits& maskbits);
46 
47  private:
48 
50  unsigned char bits_[520];
51 
52 
53  };
54 }
55 
56 #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
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
void writeXML(std::ofstream *out) const
int col
Definition: cuy.py:1008
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)