ChannelManager Class Reference

List of all members.

Detailed Description

Manage list of channels, active channels, masked channels and reference values for the meassurement quality check create Reference plot.

Author:
Fabio Bellini


Public Member Functions

 ChannelManager (const std::vector< int > &boloList, const std::vector< int > &activeChannels)
 Constructor.
 ChannelManager (const std::vector< int > &boloList, const std::vector< int > &activeChannels, const std::multimap< int, int > &FloorChannel)
 Constructor.
virtual ~ChannelManager ()
 Destructor.
QError SetMasked (const std::vector< int > &maskedList)
 Set Mask status Channels.
QError SetMasked (const QMatrix &matrix)
 Set Mask status Channels.
QError SetMasked (int ch, bool isMasked=true)
 Set Mask status for channel ch.
QError SetReference (int ch, double ref, double refmin, double refmax)
 Set Reference for channel ch.
QError SetReference (const QMatrix &matrix)
 Set Reference.
bool GetIsMasked (int ch) const
 Get Mask status.
bool GetIsActive (int ch) const
 Get Active status.
ChProperty GetChannelProperty (int ch) const
 Get channel property (active,mask,ref, refmin,refmax, floor) s for channel ch.
std::vector< ChPropertyGetActiveChannels (bool isActive=true)
 Get vector with active channels.
std::vector< ChPropertyGetMasked (bool isMasked=true)
 Get vector with masked channels.
QError GetReference (int ch, double &ref, double &RefMin, double &RefMax)
 Get reference for channel ch.
double GetMaxReference ()
std::map< std::string, TObject * > CreateReferencePlot (char *VariableName, const QVector &VariableValue, const int binSeparation)
 return a Map reference obcjest(TGrapgh and arrows)

Private Attributes

std::map< int, ChPropertyfChannels
 map of channel property
std::multimap< int, int > fFloorChannel

Classes

struct  ChProperty
 Structure of Channel Property active status mask status reference min reference max reference. More...


Member Function Documentation

QError ChannelManager::SetMasked ( const std::vector< int > &  maskedList  ) 

Set Mask status Channels.

Parameters:
vector of masked channels

QError ChannelManager::SetMasked ( const QMatrix matrix  ) 

Set Mask status Channels.

Parameters:
QMatrix (channel, mask status)

QError ChannelManager::SetMasked ( int  ch,
bool  isMasked = true 
)

Set Mask status for channel ch.

Parameters:
channel 

QError ChannelManager::SetReference ( int  ch,
double  ref,
double  refmin,
double  refmax 
)

Set Reference for channel ch.

Parameters:
channel,reference,minreference,maxreference 

QError ChannelManager::SetReference ( const QMatrix matrix  ) 

Set Reference.

Parameters:
QMatrix (channel, Ref, RefMin, RefMax)

bool ChannelManager::GetIsMasked ( int  ch  )  const [inline]

Get Mask status.

Parameters:
channel 

bool ChannelManager::GetIsActive ( int  ch  )  const [inline]

Get Active status.

Parameters:
channel 

ChProperty ChannelManager::GetChannelProperty ( int  ch  )  const [inline]

Get channel property (active,mask,ref, refmin,refmax, floor) s for channel ch.

Parameters:
channel 

QError ChannelManager::GetReference ( int  ch,
double &  ref,
double &  RefMin,
double &  RefMax 
)

Get reference for channel ch.

Parameters:
channel 

std::map< std::string, TObject * > ChannelManager::CreateReferencePlot ( char *  VariableName,
const QVector &  VariableValue,
const int  binSeparation 
)

return a Map reference obcjest(TGrapgh and arrows)

Parameters:
char Variable Name
Qvector VariableValue
channel on floor int inSeparation


The documentation for this class was generated from the following files:
Generated on Fri Mar 6 13:40:41 2009 for CUORE Software by  doxygen 1.5.1