//////////////////////////////////////////////////////////////////////
//
// The TkrLayer class provides access to a single layer of Si Strips.
// It contains a list of strips that were above thresh, and TOT and
// ERRF values.
//
//////////////////////////////////////////////////////////////////////
#include "TkrLayer.h"
ClassImp(TkrLayer)
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
TkrLayer::TkrLayer() {
}
//////////////////////////////////////////////////////////////////////
TkrLayer::TkrLayer(TObjArray *strips) {
if (strips)
m_strips = strips;
else
m_strips = new TObjArray();
}
//////////////////////////////////////////////////////////////////////
TkrLayer::~TkrLayer() {
if (m_strips) {
int nEntries = m_strips->GetEntries();
for (int i=0; i<nEntries; i++)
delete m_strips->At(i);
m_strips->Clear();
delete m_strips;
}
}
//////////////////////////////////////////////////////////////////////
// Member functions
//////////////////////////////////////////////////////////////////////
void TkrLayer::setTOT(UInt_t right, UInt_t left) {
m_TOT[0] = right;
m_TOT[1] = left;
}
//////////////////////////////////////////////////////////////////////
void TkrLayer::setErrf(UInt_t right, UInt_t left) {
m_errf[0] = right;
m_errf[1] = left;
}
//////////////////////////////////////////////////////////////////////
Int_t TkrLayer::getTOT(UChar_t ctrlNum) {
if ((ctrlNum == 0) || (ctrlNum ==1))
return m_TOT[ctrlNum];
else
return -1;
}
/////////////////////////////////////////////////
Int_t TkrLayer::getErrf(UChar_t ctrlNum) {
if ((ctrlNum == 0) || (ctrlNum ==1))
return m_errf[ctrlNum];
else
return -1;
}
/////////////////////////////////////////////////
ROOT page - Class index - 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.