#ifndef ROOT_THaADCHe3Spin
#define ROOT_THaADCHe3Spin
#include "THaHe3SpinModule.h"
#include "THaDetector.h"
#ifdef DEBUG_LEVEL
# undef DEBUG_LEVEL
#endif
#define DEBUG_LEVEL 2
#include "DebugDef.h"
class THaADCHe3Spin : public THaDetector, public THaHe3SpinModule {
public:
THaADCHe3Spin( const char* name, const char* description,
THaApparatus* a = NULL );
virtual ~THaADCHe3Spin();
THaADCHe3Spin() {}
virtual void Clear( Option_t* opt );
const char* GetDBFileName() const
{
return GetApparatus()->GetPrefix();
}
inline Int_t ADC2Logic(Double_t rawadc)
{
Bool_t b1=(rawadc<=fLogic1Window.UpBound && rawadc>=fLogic1Window.LowBound);
Bool_t b0=(rawadc<=fLogic0Window.UpBound && rawadc>=fLogic0Window.LowBound);
return (b1==b0)?-1:b1;
}
protected:
Double_t fADCRawUp;
Double_t fADCRawDown;
struct ADCStateBound{
Double_t UpBound;
Double_t LowBound;
} fLogic1Window, fLogic0Window;
struct ChanDef_t {
Int_t roc;
Int_t slot;
Int_t chan;
} fSpinUpChan, fSpinDownChan;
Int_t fPermInvalidADC;
static const Int_t DEFAULT_PERM_INVALID_ADC=3;
Int_t fMissingADCCount;
virtual Int_t Decode( const THaEvData& evdata );
virtual Double_t GetData(const ChanDef_t &c,const THaEvData& evdata );
virtual Int_t DefineVariables( EMode mode = kDefine );
virtual Int_t ReadDatabase( const TDatime& date );
ClassDef(THaADCHe3Spin,1);
};
#endif
Last update: Tue Jul 7 19:26:16 2009
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.