ATLAS Offline Software
SCT_SensorCondData.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5 */
6 
14 #ifndef SCT_SENSORCONDDATA_H
15 #define SCT_SENSORCONDDATA_H
16 
18 
19 #include <string>
20 
26 public:
30  virtual ~SCT_SensorCondData() = default;
31 
33  bool setTruncatedSerialNumber(const CondAttrListCollection::ChanNum truncatedSerialNumber);
36 
38  bool setManufacturer(const std::string& manufacturer);
40  const std::string& getManufacturer() const;
41 
43  bool setDepletionVoltage(const unsigned int sensor, const float depletionVoltage);
45  float getDepletionVoltage(const unsigned int sensor) const;
46 
48  bool setCrystalOrientation(const unsigned int sensor, const int crystalOrientation);
50  int getCrystalOrientation(const unsigned int sensor) const;
51 
52  enum {OFFSET=1, SENSOR1=1, SENSOR2=2, SENSOR3=3, SENSOR4=4, NUM_SENSORS=4};
53 
54 private:
56  std::string m_manufacturer;
59 };
60 
61 // Class definition for StoreGate
62 #include "AthenaKernel/CLASS_DEF.h"
63 CLASS_DEF( SCT_SensorCondData , 144247573 , 1 )
64 
65 #endif // SCT_SENSORDATA_H
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
SCT_SensorCondData::setCrystalOrientation
bool setCrystalOrientation(const unsigned int sensor, const int crystalOrientation)
Set depletion voltage.
Definition: SCT_SensorCondData.cxx:92
SCT_SensorCondData::setDepletionVoltage
bool setDepletionVoltage(const unsigned int sensor, const float depletionVoltage)
Set depletion voltage.
Definition: SCT_SensorCondData.cxx:52
SCT_SensorCondData::NUM_SENSORS
@ NUM_SENSORS
Definition: SCT_SensorCondData.h:52
SCT_SensorCondData::SENSOR4
@ SENSOR4
Definition: SCT_SensorCondData.h:52
SCT_SensorCondData::SCT_SensorCondData
SCT_SensorCondData()
Constructor.
Definition: SCT_SensorCondData.cxx:13
SCT_SensorCondData::~SCT_SensorCondData
virtual ~SCT_SensorCondData()=default
Destructor.
SCT_SensorCondData::getManufacturer
const std::string & getManufacturer() const
Get manufacturer.
Definition: SCT_SensorCondData.cxx:45
SCT_SensorCondData::SENSOR1
@ SENSOR1
Definition: SCT_SensorCondData.h:52
SCT_SensorCondData::OFFSET
@ OFFSET
Definition: SCT_SensorCondData.h:52
CondAttrListCollection::ChanNum
unsigned int ChanNum
Definition: CondAttrListCollection.h:55
SCT_SensorCondData::m_truncatedSerialNumber
CondAttrListCollection::ChanNum m_truncatedSerialNumber
Definition: SCT_SensorCondData.h:55
SCT_SensorCondData::SENSOR3
@ SENSOR3
Definition: SCT_SensorCondData.h:52
SCT_SensorCondData::SENSOR2
@ SENSOR2
Definition: SCT_SensorCondData.h:52
SCT_SensorCondData::setManufacturer
bool setManufacturer(const std::string &manufacturer)
Set manufacturer.
Definition: SCT_SensorCondData.cxx:37
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
SCT_SensorCondData::getDepletionVoltage
float getDepletionVoltage(const unsigned int sensor) const
Get depletion voltage.
Definition: SCT_SensorCondData.cxx:74
SCT_SensorCondData::m_crystalOrientation
int m_crystalOrientation[NUM_SENSORS]
Definition: SCT_SensorCondData.h:58
SCT_SensorCondData::m_depletionVoltage
float m_depletionVoltage[NUM_SENSORS]
Definition: SCT_SensorCondData.h:57
SCT_SensorCondData::setTruncatedSerialNumber
bool setTruncatedSerialNumber(const CondAttrListCollection::ChanNum truncatedSerialNumber)
Set truncated serial number.
Definition: SCT_SensorCondData.cxx:22
SCT_SensorCondData::getCrystalOrientation
int getCrystalOrientation(const unsigned int sensor) const
Get depletion voltage.
Definition: SCT_SensorCondData.cxx:114
SCT_SensorCondData::m_manufacturer
std::string m_manufacturer
Definition: SCT_SensorCondData.h:56
CLASS_DEF.h
macros to associate a CLID to a type
SCT_SensorCondData
Class for data object used in SCT_SensorsCondAlg and SCT_SensorsTool.
Definition: SCT_SensorCondData.h:25
SCT_SensorCondData::getTruncatedSerialNumber
CondAttrListCollection::ChanNum getTruncatedSerialNumber() const
Get truncated serial number.
Definition: SCT_SensorCondData.cxx:30