#include "hshowercalpar.h" |
HShowerCalPar
class description - source file - inheritance tree (.pdf)
private:
void changeValues(int iVar, int iOpr, Float_t f)
TH2F* getHist(Int_t iSector, Int_t iModule, enum_HSCPM_Var enType)
public:
HShowerCalPar(const char* name = "ShowerCalPar", const char* title = "Calibration parameters for Shower", const char* context = "ShowerStandardCalib")
HShowerCalPar(const HShowerCalPar&)
~HShowerCalPar()
void addValueToGains(Float_t fAdd)
void addValueToOffsets(Float_t fAdd)
void addValueToSlopes(Float_t fAdd)
void addValueToThresholds(Float_t fAdd)
static TClass* Class()
virtual Bool_t defaultInit()
Char_t* getCellClassName()
Float_t getGain(HLocation& loc)
TH2F* getGainsHist(Int_t iSector, Int_t iModule)
Int_t getNColumns()
Int_t getNModules()
Int_t getNRows()
Int_t getNSectors()
HShowerCalParCell* getObject(HLocation& loc)
Float_t getOffset(HLocation& loc)
TH2F* getOffsetsHist(Int_t iSector, Int_t iModule)
Float_t getSlope(HLocation& loc)
TH2F* getSlopesHist(Int_t iSector, Int_t iModule)
HShowerCalParCell*& getSlot(HLocation& loc)
Float_t getThreshold(HLocation& loc)
TH2F* getThresholdsHist(Int_t iSector, Int_t iModule)
Bool_t getWriteForElectronic()
virtual Bool_t initAscii(HParHadAsciiFileIo* pHadAsciiFile)
virtual TClass* IsA() const
void multiplyGainsByValue(Float_t fM)
void multiplyOffsetsByValue(Float_t fM)
void multiplySlopesByValue(Float_t fM)
void multiplyThresholdsByValue(Float_t fM)
HShowerCalPar& operator=(const HShowerCalPar&)
void Print()
void setCellClassName(Char_t* pszName)
void setGain(HLocation& loc, Float_t fGain)
void setGainsToValue(Float_t fGain)
void setOffset(HLocation& loc, Float_t fOffset)
void setOffsetsToValue(Float_t fOffset)
void setSetup(Int_t nSectors, Int_t nModules, Int_t nRows, Int_t nColumns)
void setSlope(HLocation& loc, Float_t fSlope)
void setSlopesToValue(Float_t fSlope)
void setThreshold(HLocation& loc, Float_t fThreshold)
void setThresholdsToValue(Float_t fThreshold)
void setWriteForElectronic(Bool_t bWrite)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
virtual Bool_t writeAscii(HParHadAsciiFileIo* pHadAsciiFile)
private:
Int_t m_nSectors sizes of calibration structure
Int_t m_nModules
Int_t m_nRows
Int_t m_nColumns
Bool_t m_bWriteForElectronic !
Char_t m_szClassName[40] name of class used for keeping data for
HObjTable m_ParamsTable structure which contains all object
HShowerCalPar
HShowerCalPar is used to manage of all parameters for calibration
This class contains structure HObjTable, which contains all
HShowerCalParCell objects. One HShowerCalParCell object contains
calibration parameters of one pad: slope and offset
HShowerCalPar(const char* name,const char* title,
const char* context)
: HShowerParSet(name,title,context)
~HShowerCalPar()
void setSetup(Int_t nSectors, Int_t nModules,
Int_t nRows, Int_t nColumns)
set sizes of internal structure
void setCellClassName(Char_t* pszName)
//set name of class of calibration parameter container for one pad
Char_t* getCellClassName()
return name of class of calibration parameter container for one pad
HShowerCalParCell*& getSlot(HLocation &loc)
return references address to place new object at loc position
HShowerCalParCell* getObject(HLocation &loc)
return pointer to object, which contains parameter for pad
at loc position
Float_t getSlope(HLocation &loc)
return slope for the pad at postion loc
Float_t getOffset(HLocation &loc)
return offset for the pad at postion loc
Float_t getThreshold(HLocation &loc)
return Threshold for the pad at postion loc
Float_t getGain(HLocation &loc)
return Gain for the pad at postion loc
void setSlope(HLocation &loc, Float_t fSlope)
set slope for the pad at postion loc
void setOffset(HLocation &loc, Float_t fOffset)
set offset for the pad at postion loc
void setThreshold(HLocation &loc, Float_t fThreshold)
set Threshold for the pad at postion loc
void setGain(HLocation &loc, Float_t fGain)
set Gain for the pad at postion loc
Bool_t initAscii(HParHadAsciiFileIo* pHadAsciiFile)
reading and initializing calibration parameters from ascii file (HAsciiRaw format)
Bool_t writeAscii(HParHadAsciiFileIo* pHadAsciiFile)
writing calibration parameters into ascii file (HAsciiRaw format)
Bool_t defaultInit()
initialization of calibration parameters for full setup
of pre-SHOWER detector. Default calibration using
values of slope==1 and offset==0
void Print()
void changeValues(int iVar, int iOpr, Float_t f)
TH2F* getHist(Int_t iSector, Int_t iModule,
enum_HSCPM_Var enType)
Create a new histogram with a calibartion values for the selected chamber.
User must delete the histogram himself
Inline Functions
Int_t getNSectors()
Int_t getNModules()
Int_t getNRows()
Int_t getNColumns()
void setWriteForElectronic(Bool_t bWrite)
Bool_t getWriteForElectronic()
void setSlopesToValue(Float_t fSlope)
void addValueToSlopes(Float_t fAdd)
void multiplySlopesByValue(Float_t fM)
void setOffsetsToValue(Float_t fOffset)
void addValueToOffsets(Float_t fAdd)
void multiplyOffsetsByValue(Float_t fM)
void setThresholdsToValue(Float_t fThreshold)
void addValueToThresholds(Float_t fAdd)
void multiplyThresholdsByValue(Float_t fM)
void setGainsToValue(Float_t fGain)
void addValueToGains(Float_t fAdd)
void multiplyGainsByValue(Float_t fM)
TH2F* getOffsetsHist(Int_t iSector, Int_t iModule)
TH2F* getSlopesHist(Int_t iSector, Int_t iModule)
TH2F* getThresholdsHist(Int_t iSector, Int_t iModule)
TH2F* getGainsHist(Int_t iSector, Int_t iModule)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
HShowerCalPar HShowerCalPar(const HShowerCalPar&)
HShowerCalPar& operator=(const HShowerCalPar&)
Last update: Fri Jan 26 12:32:31 2007
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.