CMS 3D CMS Logo

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