CMS 3D CMS Logo

CSCAnodeData.h
Go to the documentation of this file.
1 #ifndef CSCAnodeData_h
2 #define CSCAnodeData_h
3 #include <vector>
4 #include <memory>
7 
8 class CSCALCTHeader;
9 
10 class CSCAnodeData {
11 public:
13  CSCAnodeData(const CSCALCTHeader &);
15  CSCAnodeData(const CSCALCTHeader &, const unsigned short *buf);
16 
17  unsigned short *data() { return theData->data(); }
19  unsigned short int sizeInWords() const { return theData->sizeInWords(); }
20 
22  std::vector<CSCWireDigi> wireDigis(int layer) const { return theData->wireDigis(layer); }
23  std::vector<std::vector<CSCWireDigi> > wireDigis() const;
24 
25  void add(const CSCWireDigi &wireDigi, int layer) { theData->add(wireDigi, layer); }
26 
27  static bool selfTest();
28 
29 private:
30  std::shared_ptr<CSCAnodeDataFormat> theData;
32 };
33 
34 #endif
unsigned short int sizeInWords() const
the amount of the input binary buffer read, in 16-bit words
Definition: CSCAnodeData.h:19
CSCAnodeData(const CSCALCTHeader &)
a blank one, for Monte Carlo
Definition: CSCAnodeData.cc:8
int firmwareVersion
Definition: CSCAnodeData.h:31
void add(const CSCWireDigi &wireDigi, int layer)
Definition: CSCAnodeData.h:25
std::vector< std::vector< CSCWireDigi > > wireDigis() const
Definition: CSCAnodeData.cc:27
std::vector< CSCWireDigi > wireDigis(int layer) const
input layer is from 1 to 6
Definition: CSCAnodeData.h:22
std::shared_ptr< CSCAnodeDataFormat > theData
Definition: CSCAnodeData.h:30
unsigned short * data()
Definition: CSCAnodeData.h:17
static bool selfTest()