class emcFEMtuple: public emcManageable

Base class for all the manageables that hold information about one or several FEMs (like Pedestals, Gains, HLRatios, etc)

A FEMtuple is a vector of emcCalFEM.

Inheritance:


Public Methods

[more]virtual bool Add(emcFEMtuple& fem)
Add an emcFEMtuple to this one.
[more]virtual emcCalFEM* AppendFEM(int absPosition, int pinNumber, int post_pre, int tac_pre, const PHTimeStamp& t1, const PHTimeStamp& t2)
Append one FEM, and return a pointer to the created emcCalFEM.
[more]virtual bool CheckIndex(int ifem) const
Check if a FEM index is valid for this object
[more]virtual emcCalFEM* GetFEM(int ifem)
Return a given Calibration FEM.
[more]virtual int GetNumberOfChannels(void) const
Return the number of channels handled by this object
[more]virtual int GetNumberOfFEMs(void) const
Return the number of FEM handled by this object
[more]virtual int GetLastValidTime(int ifem=0) const
Return the last valid (incremental) time of a given FEM.
[more]virtual int Get_post_pre(int ifem) const
Return the AMU post-pre value for a given FEM.
[more]virtual int GetSize(void) const
Return the number of FEM hold by this object
[more]virtual int Get_tac_pre(int ifem) const
Return the AMU tac-pre value for a given FEM.
[more]virtual float getValue(int ichannel) const
get value method for time-independant objects
[more]virtual float getValue(int ichannel, int thetime) const
get value method for time-dependant objects
[more]virtual float getValue(int ichannel, int amucell, const char* kind) const
get value method with a kind (e.g. for pedestals)
[more]virtual bool IsOwner(void) const
Return the ownership
[more]virtual bool IsValid(const PHTimeStamp& when) const
Tells if this object is still valid at that time.
[more]virtual bool IsValid(const PHTimeStamp& when, int ifem) const
Tells if values for one fem of this object are valid at that time
[more]virtual void Print(int level=0)
Print (for debug purposes)
[more]virtual bool ReplaceFEM(int ifem, emcFEMtuple& fem)
Replace a given FEM by a FEMtuple containing only one FEM.
[more]virtual void Reset(void)
Reset the object
[more]virtual bool SetLastValidTime(int thetime, int ifem=0)
Set last valid (incremental) time of a given FEM.
[more]void SetOwnership(bool owner=true)
Set ownership


Inherited from emcManageable:

Public Methods

ovirtual const char* GetCategory(void) const
ostatic char* GetStorageName(emcManageable::EStorage storage)
oEStorage GetDestination(void) const
oEStorage GetSource(void) const
ovirtual void SetDestination(emcManageable::EStorage destination)
ovirtual void SetSource(emcManageable::EStorage origine)


Inherited from emcNamed:

Public Methods

ovirtual const char* GetClassName(void) const
ovirtual const char* GetName(void) const
ovirtual const char* GetTitle(void) const
ovirtual void SetClassName(const char*)
ovirtual void SetTitle(const char*)
ovirtual void SetName(const char*)


Documentation

Base class for all the manageables that hold information about one or several FEMs (like Pedestals, Gains, HLRatios, etc)

A FEMtuple is a vector of emcCalFEM.
Assuming you already get a filled emcFEMtuple femtuple object, you can :

Get access to a full FEM using femtuple.GetFEM(ifem),
where ifem is the index number of the FEM (ranging from 0 to femtuple.GetNumberOfFEMs())
This method returns a pointer to an emcCalFEM object. To know what you can do with this object, see the emcCalFEM interface.

Get access to channel values using one of the following methods:

getValue(int)
getValue(int,int)
getValue(int,const char*)
ovirtual bool Add(emcFEMtuple& fem)
Add an emcFEMtuple to this one. By now, it is checked that fem.GetSize()==1, and that fem.IsOwner()==true. After this call, fem.IsOwner() will be false.

ovirtual emcCalFEM* AppendFEM(int absPosition, int pinNumber, int post_pre, int tac_pre, const PHTimeStamp& t1, const PHTimeStamp& t2)
Append one FEM, and return a pointer to the created emcCalFEM.
Parameters:
absPosition - : the fem absolute position
pinNumber - : the fem PIN number
post_pre - : value of the AMU Cells post-pre difference
tac_pre - : value of the AMU Cells tac-pre difference
t1 - : start-of-validity period
t2 - : end-of-validity period.

ovirtual bool CheckIndex(int ifem) const
Check if a FEM index is valid for this object

ovirtual emcCalFEM* GetFEM(int ifem)
Return a given Calibration FEM.

ovirtual int GetNumberOfChannels(void) const
Return the number of channels handled by this object

ovirtual int GetNumberOfFEMs(void) const
Return the number of FEM handled by this object

ovirtual int GetLastValidTime(int ifem=0) const
Return the last valid (incremental) time of a given FEM.

ovirtual int Get_post_pre(int ifem) const
Return the AMU post-pre value for a given FEM.

ovirtual int GetSize(void) const
Return the number of FEM hold by this object

ovirtual int Get_tac_pre(int ifem) const
Return the AMU tac-pre value for a given FEM.

ovirtual float getValue(int ichannel) const
get value method for time-independant objects

ovirtual float getValue(int ichannel, int thetime) const
get value method for time-dependant objects

ovirtual float getValue(int ichannel, int amucell, const char* kind) const
get value method with a kind (e.g. for pedestals)

ovirtual bool IsOwner(void) const
Return the ownership

ovirtual bool IsValid(const PHTimeStamp& when) const
Tells if this object is still valid at that time.

ovirtual bool IsValid(const PHTimeStamp& when, int ifem) const
Tells if values for one fem of this object are valid at that time

ovirtual void Print(int level=0)
Print (for debug purposes)

ovirtual bool ReplaceFEM(int ifem, emcFEMtuple& fem)
Replace a given FEM by a FEMtuple containing only one FEM. Will fail in any of the following situations : a) fem.GetNumberOfFEMs()==1 b) (ifem)th fem does not exist in this object c) fem is not owner of its own FEMs array (because WE need to take ownership) d) we are not owner of our own FEMs array.

ovirtual void Reset(void)
Reset the object

ovirtual bool SetLastValidTime(int thetime, int ifem=0)
Set last valid (incremental) time of a given FEM.

ovoid SetOwnership(bool owner=true)
Set ownership


Direct child classes:
emcWalkTofs
emcPedestals
emcLCTofs
emcHLRatios
emcGains

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.