test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCAnodeData.h
Go to the documentation of this file.
1 #ifndef CSCAnodeData_h
2 #define CSCAnodeData_h
3 #include <vector>
6 #include <boost/shared_ptr.hpp>
7 
8 class CSCALCTHeader;
9 
10 
11 class CSCAnodeData {
12 
13 public:
15  CSCAnodeData(const CSCALCTHeader &);
17  CSCAnodeData(const CSCALCTHeader &, const unsigned short *buf);
18 
19  unsigned short * data() {return theData->data();}
21  unsigned short int sizeInWords() const {return theData->sizeInWords();}
22 
24  std::vector<CSCWireDigi> wireDigis(int layer) const {return theData->wireDigis(layer);}
25  std::vector<std::vector<CSCWireDigi> > wireDigis() const;
26 
27  void add(const CSCWireDigi & wireDigi, int layer) {theData->add(wireDigi, layer);}
28 
29  static bool selfTest();
30 
31 private:
32  boost::shared_ptr<CSCAnodeDataFormat> theData;
34 };
35 
36 #endif
37 
38 
unsigned short int sizeInWords() const
the amount of the input binary buffer read, in 16-bit words
Definition: CSCAnodeData.h:21
CSCAnodeData(const CSCALCTHeader &)
a blank one, for Monte Carlo
Definition: CSCAnodeData.cc:11
int firmwareVersion
Definition: CSCAnodeData.h:33
void add(const CSCWireDigi &wireDigi, int layer)
Definition: CSCAnodeData.h:27
std::vector< std::vector< CSCWireDigi > > wireDigis() const
Definition: CSCAnodeData.cc:34
std::vector< CSCWireDigi > wireDigis(int layer) const
input layer is from 1 to 6
Definition: CSCAnodeData.h:24
boost::shared_ptr< CSCAnodeDataFormat > theData
Definition: CSCAnodeData.h:32
unsigned short * data()
Definition: CSCAnodeData.h:19
static bool selfTest()