#include "henergylosscorrpar.h" |
HEnergyLossCorrPar
class description - source file - inheritance tree (.pdf)
public:
HEnergyLossCorrPar(const char* name = "EnergyLossCorrPar", const char* title = "Energy losses correction parameters", const char* context = "EnergyLossCorrProduction")
HEnergyLossCorrPar(const HEnergyLossCorrPar&)
~HEnergyLossCorrPar()
static TClass* Class()
virtual void clear()
Float_t getCorrMom(Int_t pId, Float_t mom, Float_t theta)
Float_t getDeltaMom(Int_t pId, Float_t mom, Float_t theta)
virtual Bool_t getParams(HParamList*)
virtual Bool_t init(HParIo*, Int_t* set = 0)
virtual TClass* IsA() const
HEnergyLossCorrPar& operator=(const HEnergyLossCorrPar&)
virtual void putParams(HParamList*)
Bool_t setDefaultPar(const char* rn = "jan04")
Bool_t setParamElect(Int_t nParEl, Float_t* parEl)
Bool_t setParamProt(Int_t nTh, Int_t nParPr, Float_t thM0, Float_t thSt, Float_t* parPr, Float_t mInt1, Float_t mInt2)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
virtual Int_t write(HParIo*)
protected:
Int_t nThetaReg number of theta regions
Float_t thetaStep size of one theta region, degrees
Float_t thetaMiddle0 middle of first theta region, degrees
Float_t momInt1 end of first momentum interval, MeV
Float_t momInt2 end of second momentum interval, MeV
Int_t nParamsProt number of parameters for one theta region
Float_t parMomCorrProt[70] parameters. Size=nThetaReg*nParamsProt
Int_t nParamsElect number of parameters
Float_t parMomCorrElect[5] parameters
HEnergyLossCorrPar
Container class keep parameters for energy loss correction
Float_t getDeltaMom(Int_t pId, Float_t mom, Float_t theta);
Function getDeltaMom returns the correction value (delP) for momentum.
Parameters: - pId is particle ID. If parameter pId is not correct
function getDeltaMom returns 0.
- mom is Runge-Kutta reconstructed momentum (MeV).
- theta is theta angle in the interval [15;87] (degrees).
If parameter theta is out of this interval
function getDeltaMom returns 0.
Float_t getCorrMom(Int_t pId, Float_t mom, Float_t theta) {
return mom+getDeltaMom(pId,mom,theta);}
Function getCorrMom returns the corrected momentum.
Parameters have the same meanings as for function getDeltaMom.
Alternative method of getting parameters (without usage of runTimeDb):
Bool_t setDefaultPar(const char *rn="jan04");
Function setDefaultPar sets default values to parameters
for corresponding beam team.
Example:
HEnergyLossCorrPar enLossCorr;
enLossCorr.setDefaultPar("jan04"); // or "nov02", or "aug04"
Float_t delP;
..............................
beginning of your loop;
..............................................
delP = enLossCorr.getDeltaMom(14, mom, theta);
..............................................
end of your loop;
HEnergyLossCorrPar(const char* name,const char* title,
const char* context)
: HParCond(name,title,context)
constructor
Bool_t init(HParIo* inp,Int_t* set)
initializes the container from an input
void clear(void)
Int_t write(HParIo* output)
writes the container to an output
void putParams(HParamList* l)
puts all parameters to the parameter list, which is used by the io
Bool_t getParams(HParamList* l)
gets all parameters from the parameter list, which is used by the io
Bool_t setDefaultPar(const char *rn)
Bool_t setParamProt(Int_t nTh, Int_t nParPr, Float_t thM0, Float_t thSt,
Float_t* parPr, Float_t mInt1, Float_t mInt2)
Bool_t setParamElect(Int_t nParEl, Float_t* parEl)
Float_t getDeltaMom(Int_t pId, Float_t mom, Float_t theta)
Inline Functions
void ~HEnergyLossCorrPar()
Float_t getCorrMom(Int_t pId, Float_t mom, Float_t theta)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
HEnergyLossCorrPar HEnergyLossCorrPar(const HEnergyLossCorrPar&)
HEnergyLossCorrPar& operator=(const HEnergyLossCorrPar&)
Last update: 2006 by Olga Pechenova
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.