/////////////////////////////////////////////////////////////////////////////
//
// EEezStrip
//
// Author: Jason C. Webb <jwebb@iucf.indiana.edu>
//
// EEezStrip represents the EEMC SMD strips.  It provides methods 
// for retrieving the adc and energy response of the strip, and 
// its strip index.  Sector and plane index are also available. All
// values are index from zero, i.e. sectors are numbered from 0 to 11,
// strip id's from 0-287, and planes are 0 and 1 (not U and V).
//
/////////////////////////////////////////////////////////////////////////////
#include "EEezStrip.h"

#include <TString.h>
#include <iostream>

ClassImp(EEezStrip);


 EEezStrip::EEezStrip() 
{  
  // Constructor

}

/////////////////////////////////////////////////////////////////////////////

 void EEezStrip::clear() 
{
  // Clears energy and ADC

  m_Adc = 0.;
  m_RawAdc = 0.;
  m_Energy = 0.;  

  m_NumPhotoElectrons = 0.;
  m_NumMips = 0.;

}

/////////////////////////////////////////////////////////////////////////////

 void EEezStrip::print()
{
  // Prints a 1-line summary of the strip
  TString name;
  if ( m_Sector+1 < 10 ) name += "0";
  name += m_Sector + 1;
  Char_t uv[] = {'U','V' };
  name += uv[m_Plane];

  if ( m_Index+1 < 100 ) name += "0";
  if ( m_Index+1 < 10  ) name += "0";
  name += m_Index;

  std::cout << name << ": " << getRawAdc() << " " << getAdc() << " " << getEnergy() << " " << getNumMips() << std::endl;

}


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.