TPCCondData
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
tpcconddata::ADCChannelMapping Class Reference

class to store the mapping pad (position) to the channel ID (electronic) also the type of the used electronic can be stored. More...

#include <ADCChannelMapping.h>

Inheritance diagram for tpcconddata::ADCChannelMapping:

Public Member Functions

 ADCChannelMapping (int channelID, int padIndex, int type=-1, int moduleID=0, int readoutGroup=0)
 The constructor with all the member functions given. More...
 
 ADCChannelMapping (EVENT::LCObject *obj)
 The constructor to be used with LCObjects from a collection. More...
 
virtual ~ADCChannelMapping ()
 The desctructor. More...
 
int getChannelID () const
 
int getPadID () const
 
int getType () const
 
int getModuleID () const
 
int getReadoutGroup () const
 
IMPL::LCGenericObjectImpl * obj () const
 
virtual int id () const
 
void print (std::ostream &os=std::cout) const
 
virtual const std::string getTypeName () const
 
virtual const std::string getDataDescription () const
 
virtual int getNInt () const
 
virtual int getNFloat () const
 
virtual int getNDouble () const
 
virtual int getIntVal (int i) const
 
virtual float getFloatVal (int i) const
 
virtual double getDoubleVal (int i) const
 
virtual bool isFixedSize () const
 

Static Public Member Functions

static std::string getRevision ()
 
static std::string getDefaultColName ()
 

Protected Attributes

bool _createObj
 
IMPL::LCGenericObjectImpl * _myObj
 

Detailed Description

class to store the mapping pad (position) to the channel ID (electronic) also the type of the used electronic can be stored.

The class is also able to handle the module ID. It is fully backward compatible to the version without module ID, although the implementation has changed from LCFixedObject to LCGenerigObject to provide the required felixibility.

Like the LCFixedObject this thing contains an LCGenericObject, but is not derrived from it.

Parameters
channelIDHardware channel number
padIDThe GEAR pad index
typeThe type of readout electronics, optional, default -1
moduleIDThe GEAR module ID, optional, default 0
readoutGroupThe hardware readout group number. Used if there are several readout units which all provide the same range of channel numbers (altro RCUs for instance), optional, default 0

Definition at line 36 of file ADCChannelMapping.h.

Constructor & Destructor Documentation

tpcconddata::ADCChannelMapping::ADCChannelMapping ( int  channelID,
int  padIndex,
int  type = -1,
int  moduleID = 0,
int  readoutGroup = 0 
)

The constructor with all the member functions given.

Use this to create on object on the heap.

Definition at line 21 of file ADCChannelMapping.cc.

tpcconddata::ADCChannelMapping::ADCChannelMapping ( EVENT::LCObject *  obj)

The constructor to be used with LCObjects from a collection.

Definition at line 36 of file ADCChannelMapping.cc.

tpcconddata::ADCChannelMapping::~ADCChannelMapping ( )
virtual

The desctructor.

Definition at line 60 of file ADCChannelMapping.cc.

Member Function Documentation

int tpcconddata::ADCChannelMapping::getChannelID ( ) const

Definition at line 67 of file ADCChannelMapping.cc.

virtual const std::string tpcconddata::ADCChannelMapping::getDataDescription ( ) const
inlinevirtual

Definition at line 75 of file ADCChannelMapping.h.

std::string tpcconddata::ADCChannelMapping::getDefaultColName ( )
static

Definition at line 16 of file ADCChannelMapping.cc.

virtual double tpcconddata::ADCChannelMapping::getDoubleVal ( int  i) const
inlinevirtual

Definition at line 88 of file ADCChannelMapping.h.

virtual float tpcconddata::ADCChannelMapping::getFloatVal ( int  i) const
inlinevirtual

Definition at line 87 of file ADCChannelMapping.h.

virtual int tpcconddata::ADCChannelMapping::getIntVal ( int  i) const
inlinevirtual

Definition at line 86 of file ADCChannelMapping.h.

int tpcconddata::ADCChannelMapping::getModuleID ( ) const

Definition at line 82 of file ADCChannelMapping.cc.

virtual int tpcconddata::ADCChannelMapping::getNDouble ( ) const
inlinevirtual

Definition at line 84 of file ADCChannelMapping.h.

virtual int tpcconddata::ADCChannelMapping::getNFloat ( ) const
inlinevirtual

Definition at line 83 of file ADCChannelMapping.h.

virtual int tpcconddata::ADCChannelMapping::getNInt ( ) const
inlinevirtual

Definition at line 82 of file ADCChannelMapping.h.

int tpcconddata::ADCChannelMapping::getPadID ( ) const

Definition at line 72 of file ADCChannelMapping.cc.

int tpcconddata::ADCChannelMapping::getReadoutGroup ( ) const

Definition at line 98 of file ADCChannelMapping.cc.

std::string tpcconddata::ADCChannelMapping::getRevision ( )
static

Definition at line 11 of file ADCChannelMapping.cc.

int tpcconddata::ADCChannelMapping::getType ( ) const

Definition at line 77 of file ADCChannelMapping.cc.

virtual const std::string tpcconddata::ADCChannelMapping::getTypeName ( ) const
inlinevirtual

Definition at line 70 of file ADCChannelMapping.h.

virtual int tpcconddata::ADCChannelMapping::id ( ) const
inlinevirtual

Definition at line 65 of file ADCChannelMapping.h.

virtual bool tpcconddata::ADCChannelMapping::isFixedSize ( ) const
inlinevirtual

Definition at line 90 of file ADCChannelMapping.h.

IMPL::LCGenericObjectImpl* tpcconddata::ADCChannelMapping::obj ( ) const
inline

Definition at line 64 of file ADCChannelMapping.h.

void tpcconddata::ADCChannelMapping::print ( std::ostream &  os = std::cout) const

Definition at line 114 of file ADCChannelMapping.cc.

Member Data Documentation

bool tpcconddata::ADCChannelMapping::_createObj
protected

Definition at line 101 of file ADCChannelMapping.h.

IMPL::LCGenericObjectImpl* tpcconddata::ADCChannelMapping::_myObj
protected

Definition at line 102 of file ADCChannelMapping.h.


The documentation for this class was generated from the following files: