CMS 3D CMS Logo

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