#include "hmdctdcthreshold.h" |
HMdcTdcThreshold
class description - source file - inheritance tree (.pdf)
public:
HMdcTdcThreshold(const char* name = "MdcTdcThreshold", const char* title = "threshold parameters for Mdc", const char* context = "MdcTdcThresholdProduction", Int_t n = 6)
HMdcTdcThreshold(const HMdcTdcThreshold&)
~HMdcTdcThreshold()
void addvalue(Int_t)
static TClass* Class()
virtual void clear()
void fill(Int_t sector, Int_t module, Int_t mbo, Int_t dbo, Int_t th)
Int_t getOraVersion()
Int_t getSize()
Int_t getStatus()
virtual Bool_t init(HParIo*, Int_t*)
virtual TClass* IsA() const
HMdcTdcThreshold& operator=(const HMdcTdcThreshold&)
HMdcTdcThresholdSec& 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 setOraVersion(Int_t v)
void setStatus(Int_t stat)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
virtual Int_t write(HParIo*)
Bool_t write_thresholds(char*, Int_t, Int_t)
Bool_t writeline(char*, Int_t, Int_t, Int_t, Int_t)
void writelinetofile(char* buf, int sec, int mod, int mbo, int dbo)
protected:
TObjArray* array array of pointers of type HMdcTdcThresholdSec
Int_t oraVersion parameter version in Oracle
HMdcRawStruct* raw_struct
HMdcRawSecStru* raw_modstruct
Int_t status ! Status of parameters (usable for DAQ?)
HMdcEvReadout* hardwareToDatabaseIndexMap
public:
HMdcMboReadout* mbo_readout
HMdcTdcThreshold
Container class for the TDC threshold parameters of the MDC
HMdcTdcThreshold(const char* name,const char* title,
const char* context,Int_t n)
: HParSet(name,title,context)
constructor
~HMdcTdcThreshold()
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 HMdcTdcThresholdDbo::fill(...)
void readlinefromfile(const char* buf)
decodes one line read from ascii file I/O and calls HMdcTdcThresholdDbo::fill(...)
void writelinetofile(char* buf, int sec, int mod, int mbo, int dbo)
writes one line of threshold information into buffer, based on
sec mod mbo dbo address. If no dbo found sets threshold to 60!
void addvalue(Int_t factor)
to incrise or decrise value of threshold by the constant factor
if you want to increast threshold then the value of the factor
should be positive, for decreasing the factor must be negative.
void putAsciiHeader(TString& header)
puts the ascii header to the string used in HMdcParAsciiFileIo
Bool_t write_thresholds(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
Bool_t readRocFile(const char *filename)
This function reads the values of daugtherboard thresholds
from the given file (which was created by the SAM control
program by reading the values from the connected ROCs).
The thresholds are then stored in the related member
containers of this class. The path should be something
like: "bla/foo/I1/ROC1"
Postcondition: HMdcTdcThresholdSec array modified with thresholds.
@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 threshold 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
HMdcTdcThresholdSec& operator[](Int_t i)
void fill(Int_t sector, Int_t module, Int_t mbo, Int_t dbo, Int_t th)
Int_t getSize()
void setOraVersion(Int_t v)
void setStatus(Int_t stat)
Int_t getStatus()
Int_t getOraVersion()
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
HMdcTdcThreshold HMdcTdcThreshold(const HMdcTdcThreshold&)
HMdcTdcThreshold& operator=(const HMdcTdcThreshold&)
Last update: 17/01/2002 by I. Koenig
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.