1 #ifndef ADCChannelMapping_h
2 #define ADCChannelMapping_h 1
10 #include "EVENT/LCGenericObject.h"
11 #include "IMPL/LCGenericObjectImpl.h"
16 class ADCChannelMapping;
45 int readoutGroup = 0);
55 int getChannelID()
const;
58 int getModuleID()
const;
59 int getReadoutGroup()
const;
61 static std::string getRevision();
62 static std::string getDefaultColName();
64 IMPL::LCGenericObjectImpl* obj()
const {
return _myObj; }
65 virtual int id()
const {
return _myObj->id(); }
67 void print( std::ostream& os = std::cout)
const;
70 virtual const std::string getTypeName()
const
72 return std::string(
"ADCChannelMapping");
75 virtual const std::string getDataDescription()
const
77 return std::string(
"i:ChannelIDs,PadID,Type,ModuleID,ReadoutGroup");
82 virtual int getNInt()
const {
return _myObj->getNInt(); }
83 virtual int getNFloat()
const {
return _myObj->getNFloat(); }
84 virtual int getNDouble()
const {
return _myObj->getNDouble(); }
86 virtual int getIntVal(
int i)
const {
return _myObj->getIntVal(i); }
87 virtual float getFloatVal(
int i)
const {
return _myObj->getFloatVal(i); }
88 virtual double getDoubleVal(
int i)
const {
return _myObj->getDoubleVal(i); }
90 virtual bool isFixedSize()
const {
return _myObj->isFixedSize(); }
94 typedef std::pair<int, int> key_type;
96 key_type softwareToHardwareKey()
const;
97 key_type hardwareToSoftwareKey()
const;
102 IMPL::LCGenericObjectImpl* _myObj;
ADCChannelMapping(int channelID, int padIndex, int type=-1, int moduleID=0, int readoutGroup=0)
The constructor with all the member functions given.
Definition: ADCChannelMapping.cc:21
virtual ~ADCChannelMapping()
The desctructor.
Definition: ADCChannelMapping.cc:60
class to store the mapping pad (position) to the channel ID (electronic) also the type of the used el...
Definition: ADCChannelMapping.h:36