Belle II Software  release-05-01-25
PXDRawAdc.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Bjoern Spruck *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
17 
18 #pragma once
19 
20 #include <vxd/dataobjects/VxdID.h>
21 #include <framework/datastore/RelationsObject.h>
22 #include <vector>
23 
24 namespace Belle2 {
33  class PXDRawAdc : public RelationsObject {
34  public:
35 
37  PXDRawAdc():
38  m_sensorID(0), m_dhp_header(0), m_adcs() {};
39 
40 
45  PXDRawAdc(VxdID sensorID, void* data, int len);
46 
50  VxdID getSensorID() const
51  {
52  return m_sensorID;
53  }
54 
58  const std::vector<uint8_t>& getData() const
59  {
60  return m_adcs;
61  }
62 
66  unsigned short getChip() const
67  {
68  return m_dhp_header & 0x3;
69  }
70 
71  private:
72  unsigned short m_sensorID;
73  unsigned short m_dhp_header;
74  std::vector <uint8_t> m_adcs;
77  };
78 
79 
81 } //Belle2 namespace
82 
Belle2::PXDRawAdc::m_adcs
std::vector< uint8_t > m_adcs
Raw ADC data as it is memory dumped by the DHP.
Definition: PXDRawAdc.h:82
Belle2::VxdID
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:43
Belle2::PXDRawAdc::m_dhp_header
unsigned short m_dhp_header
needed for Chip id
Definition: PXDRawAdc.h:81
Belle2::PXDRawAdc::getChip
unsigned short getChip() const
Get Chip.
Definition: PXDRawAdc.h:74
Belle2::PXDRawAdc
The PXD Raw Adc class This class stores information about Raw Adc for Pedestals.
Definition: PXDRawAdc.h:41
Belle2::RelationsInterface::ClassDef
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Belle2::PXDRawAdc::PXDRawAdc
PXDRawAdc()
Default constructor for the ROOT IO.
Definition: PXDRawAdc.h:45
Belle2::PXDRawAdc::m_sensorID
unsigned short m_sensorID
Compressed sensor identifier.
Definition: PXDRawAdc.h:80
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::PXDRawAdc::getData
const std::vector< uint8_t > & getData() const
Get static pointer to data.
Definition: PXDRawAdc.h:66
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::PXDRawAdc::getSensorID
VxdID getSensorID() const
Get the sensor ID.
Definition: PXDRawAdc.h:58