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
CSCWireDigi.h
CSCALCTHeader
Definition: CSCALCTHeader.h:21
CSCAnodeData::wireDigis
std::vector< CSCWireDigi > wireDigis(int layer) const
input layer is from 1 to 6
Definition: CSCAnodeData.h:22
CSCAnodeData::CSCAnodeData
CSCAnodeData(const CSCALCTHeader &)
a blank one, for Monte Carlo
Definition: CSCAnodeData.cc:8
CSCAnodeData::sizeInWords
unsigned short int sizeInWords() const
the amount of the input binary buffer read, in 16-bit words
Definition: CSCAnodeData.h:19
CSCAnodeData::data
unsigned short * data()
Definition: CSCAnodeData.h:17
CSCAnodeData::wireDigis
std::vector< std::vector< CSCWireDigi > > wireDigis() const
Definition: CSCAnodeData.cc:27
CSCWireDigi
Definition: CSCWireDigi.h:14
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
CSCAnodeData::selfTest
static bool selfTest()
CSCAnodeData
Definition: CSCAnodeData.h:10
CSCAnodeData::firmwareVersion
int firmwareVersion
Definition: CSCAnodeData.h:31
CSCAnodeData::add
void add(const CSCWireDigi &wireDigi, int layer)
Definition: CSCAnodeData.h:25
CSCAnodeDataFormat.h
CSCAnodeData::theData
std::shared_ptr< CSCAnodeDataFormat > theData
Definition: CSCAnodeData.h:30