#include "hmdctdcchannel.h"

HMdcTdcChannel


class description - source file - inheritance tree (.pdf)

class HMdcTdcChannel : public HParSet

Inheritance Chart:
TObject
<-
TNamed
<-
HParSet
<-
HMdcTdcChannel

    public:
HMdcTdcChannel(const char* name = "MdcTdcChannel", const char* title = "channel masks for Mdc TDC", const char* context = "MdcTdcChannelProduction", Int_t n = 6) HMdcTdcChannel(const HMdcTdcChannel&) ~HMdcTdcChannel() static TClass* Class() virtual void clear() void fill(Int_t sector, Int_t module, Int_t mbo, Int_t dbo, Int_t th) Bool_t getCalRotateByRocCode() Bool_t getMapNotConnetedChannels() Int_t getOraVersion() Int_t getSize() Int_t getStatus() virtual Bool_t init(HParIo*, Int_t*) virtual TClass* IsA() const void mapOutUnusedChannels() HMdcTdcChannel& operator=(const HMdcTdcChannel&) HMdcTdcChannelSec& operator[](Int_t i) void printParam() void putAsciiHeader(TString&) void readline(const char*, Int_t*) void readLineFromFile(const char*) Bool_t readRocFile(const char* filename) Int_t readRocFileVersion(const char* filename) void setCalRotateByRocCode(Bool_t rot) void setMapNotConnectedChannels(Bool_t s = kFALSE) void setOraVersion(Int_t v) void setStatus(Int_t v) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual Int_t write(HParIo*) Bool_t writeChannelMasks(char*, Int_t, Int_t) Bool_t writeline(char*, Int_t, Int_t, Int_t, Int_t)

Data Members


    protected:
TObjArray* array array of pointers of type HMdcTdcChannel Sec Int_t oraVersion parameter version in Oracle Int_t status status of the parameters HMdcRawStruct* raw_struct ! Internaly needed to setup the container structure HMdcConnectedWires* conWires ! Internaly needed to check for active wires HMdcLookupGeom* lookupGeom ! Internally needed to setup the container structure HMdcMboReadout* mbo_readout ! Internally needed to setup the container structure Bool_t calRotateByRocCode Don't write CAL parameters into configuration file Bool_t mapNotConnectedChannels Map out channels that have no wire connected HMdcEvReadout* hardwareToDatabaseIndexMap Map MBO chain indes to DB

Class Description

 HMdcTdcChannel

 Container class for the TDC channle masks of the MDC



HMdcTdcChannel(const char* name,const char* title, const char* context,Int_t n) : HParSet(name,title,context)
 constructor

~HMdcTdcChannel()
 destructor

Bool_t init(HParIo* inp,Int_t* set)
 intitializes the container from an input

Int_t write(HParIo* output)
 writes the container to an output

void readline(const char* buf, Int_t* set)
 decodes one line read from ascii file I/O and calls HMdcTdcChannelTdc::fill(...)

void readLineFromFile(const char* buf)
 decodes one line read from ascii file I/O and calls HMdcTdcChannelTdc::fill(...)

void putAsciiHeader(TString& header)
 puts the ascii header to the string used in HMdcParAsciiFileIo

Bool_t writeChannelMasks(char *ofilename, Int_t plane, Int_t sector)

Bool_t writeline(char *buf, Int_t sec, Int_t mod, Int_t mbo, Int_t dbo)
 writes one line to the buffer used by ascii file I/O

void clear()
 clears the container

void printParam()
 prints the container

void mapOutUnusedChannels(void)
 Maps out all channels that have no wire connected. Test is done against HMdcLookupGeom container.

Bool_t readRocFile(const char *filename)
 This function reads the values of channel masks
 from the given file (which was created by the SAM control
 program by reading the values from the connected ROCs).
 The channel masks are then stored in the related member
 containers of this class. The path should be something
 like: "bla/foo/I1/ROC1"
 Postcondition: HMdcTdcChannelSec array modified with channel masks.

 @param filename Pointer to the buffer with the filename.

 @return kTRUE, if successfully done (kFALSE otherwise).

Int_t readRocFileVersion(const char *filename)
 This function reads the channel mask version (used to identify the data
 in Oracle) from a ROC file which was created by the "tdcsetup" tool.
 'filename' should be something like: "bla/foo/I1/ROC1"

 @param filename Pointer to the buffer with the filename.

 @return -1, if failed, otherwise the Oracle version number.



Inline Functions


        HMdcTdcChannelSec& operator[](Int_t i)
                      void fill(Int_t sector, Int_t module, Int_t mbo, Int_t dbo, Int_t th)
                     Int_t getSize()
                    Bool_t getCalRotateByRocCode()
                    Bool_t getMapNotConnetedChannels()
                     Int_t getOraVersion()
                     Int_t getStatus()
                      void setOraVersion(Int_t v)
                      void setStatus(Int_t v)
                      void setCalRotateByRocCode(Bool_t rot)
                      void setMapNotConnectedChannels(Bool_t s = kFALSE)
                   TClass* Class()
                   TClass* IsA() const
                      void ShowMembers(TMemberInspector& insp, char* parent)
                      void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)
            HMdcTdcChannel HMdcTdcChannel(const HMdcTdcChannel&)
           HMdcTdcChannel& operator=(const HMdcTdcChannel&)


Last update: 13/08/2003 by J. Wuestenfeld


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.