Belle II Software  release-08-01-10
PXDRawAdc.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
15 
16 #pragma once
17 
18 #include <vxd/dataobjects/VxdID.h>
19 #include <framework/datastore/RelationsObject.h>
20 #include <vector>
21 
22 namespace Belle2 {
31  class PXDRawAdc : public RelationsObject {
32  public:
33 
36  m_sensorID(0), m_dhp_header(0), m_adcs() {};
37 
38 
44  PXDRawAdc(VxdID sensorID, void* data, int len);
45 
50  {
51  return m_sensorID;
52  }
53 
57  const std::vector<uint8_t>& getData() const
58  {
59  return m_adcs;
60  }
61 
65  unsigned short getChip() const
66  {
67  return m_dhp_header & 0x3;
68  }
69 
70  private:
71  unsigned short m_sensorID;
72  unsigned short m_dhp_header;
73  std::vector <uint8_t> m_adcs;
76  };
77 
78 
80 } //Belle2 namespace
81 
The PXD Raw Adc class This class stores information about Raw Adc for Pedestals.
Definition: PXDRawAdc.h:31
unsigned short m_dhp_header
needed for Chip id
Definition: PXDRawAdc.h:72
const std::vector< uint8_t > & getData() const
Get static pointer to data.
Definition: PXDRawAdc.h:57
unsigned short m_sensorID
Compressed sensor identifier.
Definition: PXDRawAdc.h:71
std::vector< uint8_t > m_adcs
Raw ADC data as it is memory dumped by the DHP.
Definition: PXDRawAdc.h:73
unsigned short getChip() const
Get Chip.
Definition: PXDRawAdc.h:65
PXDRawAdc()
Default constructor for the ROOT IO.
Definition: PXDRawAdc.h:35
VxdID getSensorID() const
Get the sensor ID.
Definition: PXDRawAdc.h:49
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
Abstract base class for different kinds of events.