CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelROCTrimBits.h
Go to the documentation of this file.
1 #ifndef PixelROCTrimBits_h
2 #define PixelROCTrimBits_h
3 
9 #include <sstream>
10 #include <fstream>
12 #include <string>
13 
14 namespace pos{
21 
22  public:
23 
25 
26  void setROCTrimBits(PixelROCName rocid ,std::string bits);
27 
28  int read(PixelROCName rocid, std::string in);
29  int read(PixelROCName rocid, std::ifstream& in);
30  int read(PixelROCName rocid, std::istringstream& in);
31 
32  int readBinary(PixelROCName rocid, std::ifstream& in);
33 
34  friend std::ostream& operator<<(std::ostream& s, const PixelROCTrimBits& trimbits);
35 
36  unsigned int trim(unsigned int col, unsigned int row) const;
37 
38  void setTrim(unsigned int col, unsigned int row, unsigned int trim);
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  private:
48 
49  unsigned char bits_[2080];
51 
52 
53  };
54 
55 }
56 #endif
int read(PixelROCName rocid, std::string in)
void setROCTrimBits(PixelROCName rocid, std::string bits)
friend std::ostream & operator<<(std::ostream &s, const PixelROCTrimBits &trimbits)
void writeBinary(std::ofstream &out) 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
int readBinary(PixelROCName rocid, std::ifstream &in)
unsigned int trim(unsigned int col, unsigned int row) const
void writeXML(std::ofstream *out) const
tuple out
Definition: dbtoconf.py:99
PixelROCName name() const
void setTrim(unsigned int col, unsigned int row, unsigned int trim)
This class implements..
Definition: PixelROCName.h:23
This class implements..
unsigned char bits_[2080]
void writeASCII(std::ofstream &out) const
This class stores the name and related hardware mappings for a ROC.