#ifndef HMDCTDCTHRESHOLD_H
#define HMDCTDCTHRESHOLD_H
#include "TObject.h"
#include "TObjArray.h"
#include "TString.h"
#include "hparset.h"
#include "hmdcmboreadout.h"
#include "hmdcrawstruct.h"
#include "hmdcevreadout.h"
class HMdcTdcThresholdDbo : public TObject {
protected:
Int_t threshold;
public:
HMdcTdcThresholdDbo() : threshold(-1){;}
~HMdcTdcThresholdDbo() {;}
Int_t getThreshold() {return threshold;}
void fill(Int_t thresh)
{
threshold=thresh;
}
void fill(HMdcTdcThresholdDbo&);
void setThreshold(Int_t thresh) {threshold=thresh;}
void clear() {
threshold =-1;
}
ClassDef(HMdcTdcThresholdDbo,1)
};
class HMdcTdcThresholdMbo : public TNamed {
protected:
TObjArray *array;
public:
HMdcTdcThresholdMbo(Int_t dbo = 6,const Text_t* name="");
~HMdcTdcThresholdMbo();
HMdcTdcThresholdDbo& operator[](Int_t i) {
return *static_cast<HMdcTdcThresholdDbo*>((*array)[i]);
}
Int_t getSize() {return array->GetEntries();}
ClassDef(HMdcTdcThresholdMbo,1)
};
class HMdcTdcThresholdMod : public TObject {
protected:
TObjArray *array;
public:
HMdcTdcThresholdMod(Int_t sec = 0, Int_t mod = 0 , Int_t mbo = 16);
~HMdcTdcThresholdMod();
HMdcTdcThresholdMbo& operator[](Int_t i) {
return *static_cast<HMdcTdcThresholdMbo*>((*array)[i]);
}
Int_t getSize() {return array->GetEntries();}
ClassDef(HMdcTdcThresholdMod,1)
};
class HMdcTdcThresholdSec : public TObject {
protected:
TObjArray* array;
public:
HMdcTdcThresholdSec(Int_t sec = 0, Int_t mod = 4);
~HMdcTdcThresholdSec();
HMdcTdcThresholdMod& operator[](Int_t i) {
return *static_cast<HMdcTdcThresholdMod*>((*array)[i]);
}
Int_t getSize() {return array->GetEntries();}
ClassDef(HMdcTdcThresholdSec,1)
};
class HMdcTdcThreshold : public HParSet {
protected:
TObjArray* array;
Int_t oraVersion;
HMdcRawStruct* raw_struct;
HMdcRawSecStru* raw_modstruct;
Int_t status;
HMdcEvReadout *hardwareToDatabaseIndexMap;
public:
HMdcTdcThreshold(const Char_t* name="MdcTdcThreshold",
const Char_t* title="threshold parameters for Mdc",
const Char_t* context="MdcTdcThresholdProduction",
Int_t n=6);
~HMdcTdcThreshold();
HMdcTdcThresholdSec& operator[](Int_t i) {
return *static_cast<HMdcTdcThresholdSec*>((*array)[i]);
}
void fill(Int_t sector, Int_t module, Int_t mbo, Int_t dbo,Int_t th){
((HMdcTdcThresholdSec *)((*array)[0]))[sector][module][mbo][dbo].fill(th);}
Int_t getSize() {return array->GetEntries();}
HMdcMboReadout* mbo_readout;
Bool_t init(HParIo*, Int_t*);
Int_t write(HParIo*);
void readline(const Char_t*, Int_t*);
void readlinefromfile(const Char_t*);
void writelinetofile(Char_t* buf, Int_t sec, Int_t mod, Int_t mbo, Int_t dbo);
Bool_t readRocFile(const Char_t *filename);
Int_t readRocFileVersion(const Char_t *filename);
void addvalue(Int_t);
void putAsciiHeader(TString&);
Bool_t write_thresholds(Char_t*, Int_t, Int_t);
Bool_t writeline(Char_t*, Int_t, Int_t, Int_t, Int_t);
void clear();
void printParam();
void setOraVersion(Int_t v) { oraVersion=v;}
void setStatus(Int_t stat){status = stat;};
Int_t getStatus(void){return status;};
Int_t getOraVersion() { return oraVersion; }
ClassDef(HMdcTdcThreshold,2)
};
#endif /*!HMDCTDCTHRESHOLD_H*/
Last change: Sat May 22 13:03:50 2010
Last generated: 2010-05-22 13:03
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.