test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCAnodeData.cc
Go to the documentation of this file.
6 #include <string.h> // for bzero
7 
8 
9 
10 
12 : firmwareVersion(header.alctFirmwareVersion())
13 {
14  if(firmwareVersion == 2006) {
15  theData = boost::shared_ptr<CSCAnodeDataFormat>(new CSCAnodeData2006(header));
16  } else {
17  theData = boost::shared_ptr<CSCAnodeDataFormat>(new CSCAnodeData2007(header));
18  }
19 }
20 
21 
22 // initialize
24  const unsigned short *buf)
25 : firmwareVersion(header.alctFirmwareVersion())
26 {
27  if(firmwareVersion == 2006) {
28  theData = boost::shared_ptr<CSCAnodeDataFormat>(new CSCAnodeData2006(header, buf));
29  } else {
30  theData = boost::shared_ptr<CSCAnodeDataFormat>(new CSCAnodeData2007(header, buf));
31  }
32 }
33 
34 std::vector < std::vector<CSCWireDigi> > CSCAnodeData::wireDigis() const
35 {
36  std::vector < std::vector<CSCWireDigi> > result;
37  for (int layer = 1; layer <= 6; ++layer)
38  {
39  result.push_back(wireDigis(layer));
40  }
41  return result;
42 }
43 
CSCAnodeData(const CSCALCTHeader &)
a blank one, for Monte Carlo
Definition: CSCAnodeData.cc:11
int firmwareVersion
Definition: CSCAnodeData.h:33
tuple result
Definition: mps_fire.py:83
std::vector< std::vector< CSCWireDigi > > wireDigis() const
Definition: CSCAnodeData.cc:34
boost::shared_ptr< CSCAnodeDataFormat > theData
Definition: CSCAnodeData.h:32