Skip to content
Snippets Groups Projects
Commit cd8e806b authored by Buddhini Waidyawansa's avatar Buddhini Waidyawansa Committed by Stephen A. Wood
Browse files

Initial commit of the THcRaster class for decoding the raster signal.

parent 30ccc1ce
No related branches found
No related tags found
No related merge requests found
// Author : Buddhini Waidyawansa
// Date : 12-09-2013
///////////////////////////////////////////////////////////////////////////////
// //
// THcRaster //
// //
// A class to decode the fast raster signals. //
// //
///////////////////////////////////////////////////////////////////////////////
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include "THcRaster.h"
using namespace std;
//_____________________________________________________________________________
THcRaster::THcRaster( const char* name, const char* description,
THaApparatus* apparatus ) :
THaNonTrackingDetector(name,description,apparatus)
{
// Initializing channels
fRasterXRaw = new TClonesArray("THcSignalHit",16);
fRasterYRaw = new TClonesArray("THcSignalHit",16);
}
//_____________________________________________________________________________
THcRaster::THcRaster( ) :
THaNonTrackingDetector()
{
// Default constructor
}
//_____________________________________________________________________________
THcRaster::~THRaster()
{
// Distructor
}
ClassImp(THcRaster)
////////////////////////////////////////////////////////////////////////////////
#ifndef ROOT_THcRaster
#define ROOT_THcRaster
#include "THcRawHit.h"
class THcRaster : public THcRawHit {
public:
THcHodoscopeHit(Int_t plane=0, Int_t counter=0) : THcRawHit(plane, counter),
fADC_pos(-1), fADC_neg(-1),
fTDC_pos(-1), fTDC_neg(-1) {
}
THcHodoscopeHit& operator=( const THcHodoscopeHit& );
virtual ~THcHodoscopeHit() {}
virtual void Clear( Option_t* opt="" )
{ fADC_pos = -1; fADC_neg = -1; fTDC_pos = -1; fTDC_neg = -1; }
void SetData(Int_t signal, Int_t data);
Int_t GetData(Int_t signal);
// virtual Bool_t IsSortable () const {return kTRUE; }
// virtual Int_t Compare(const TObject* obj) const;
Int_t fADC_pos;
Int_t fADC_neg;
protected:
private:
ClassDef(THcRaster, 0); // add THcRaster to ROOT library
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment