// -*- mode: c++ -*- // // $Id: BrTpcCalModule.h,v 1.3 2001/11/28 15:19:39 pchristi Exp $ // $Author: pchristi $ // $Date: 2001/11/28 15:19:39 $ // $Copyright: (C) 2001 BRAHMS Collaboration // #ifndef BRAT_BrTpcCalModule #define BRAT_BrTpcCalModule #ifndef BRAT_BrModule #include "BrModule.h" #endif #ifndef BRAT_BrEventNode #include "BrEventNode.h" #endif #ifndef ROOT_TString #include "TString.h" #endif #ifndef ROOT_BrTpcCalibration #include "BrTpcCalibration.h" #endif #ifndef ROOT_BrDetectorParamsTPC #include "BrDetectorParamsTPC.h" #endif #ifndef ROOT_TDirectory #include "TDirectory.h" #endif #ifndef BRAT_BrDetectorVolume #include "BrDetectorVolume.h" #endif class BrTpcCalModule : public BrModule { Bool_t fUseDriftVelocity; Bool_t fUsePadStatus; Bool_t fUseTimeOffsets; void UpdateCalibrations(); protected: BrTpcCalibration* fCalibration; // calibration parameter element BrDetectorParamsTPC* fParamsTpc; // detector parameters BrDetectorVolume* fTpcVol; // volume Bool_t fTreeOn; Bool_t fSaveAscii; Bool_t fCommitAscii; Bool_t fLoadAscii; TString fCalibFileName; TDirectory* fHistDir; // Pointer to histogram directory virtual void SaveAscii(); virtual void ReadAscii(); void SetDriftVelocity(); void SetPadStatus(); void SetTimeOffsets(); public: BrTpcCalModule(); BrTpcCalModule(const Char_t* name, const Char_t* title); virtual ~BrTpcCalModule () {} virtual void Init(); virtual void Begin(); virtual void Event(BrEventNode*, BrEventNode*); void SetSaveAscii(Bool_t s = kFALSE) { fSaveAscii = s; } void SetLoadAscii(Bool_t s = kFALSE) { fLoadAscii = s; } void SetCommitAscii(Bool_t s = kFALSE) { fCommitAscii = s; } void SetCalibFile(Char_t* name) { fCalibFileName = name; } void SetUseDriftVelocity(Bool_t value = kTRUE) {fUseDriftVelocity = value;} void SetUsePadStatus(Bool_t value = kTRUE) {fUsePadStatus = value;} void SetUseTimeOffsets(Bool_t value = kTRUE) {fUseTimeOffsets = value;} void SetTreeOn(Bool_t n = kFALSE) { fTreeOn = n; } Bool_t TreeOn() { return fTreeOn; } public: ClassDef(BrTpcCalModule,0) // Base class for a tof calibration module }; #endif //____________________________________________________________________ // // $Log: BrTpcCalModule.h,v $ // Revision 1.3 2001/11/28 15:19:39 pchristi // Removed references to hitwidths and the 2 hitwidth cal modules. // // Revision 1.2 2001/11/02 13:38:53 pchristi // Added new module for calibrating drift velocities using the fibres behind // T2 and in front of T1. // Updated old modules with small changes. // // Revision 1.1 2001/10/12 11:08:50 pchristi // Added new directory tpc. Added the first calibration modules. They // have all been tested and found to work. The algorithms might not be // optimal, but are at least fully automatic and to some extent // documented. CVS: // ---------------------------------------------------------------------- // BrTpcCalModule.cxx BrTpcCalModule.h CVS: BrTpcHitWidthCalModule.cxx // BrTpcHitWidthCalModule.h CVS: BrTpcPadStatusCalModule.cxx // BrTpcPadStatusCalModule.h CVS: BrTpcTimeCalModule.cxx // BrTpcTimeCalModule.h Include.h CVS: LinkDef.h Makefile.am CVS: // ---------------------------------------------------------------------- // // Revision 1.2 2001/10/10 15:49:54 pchristi // Many updates and a new module // // Revision 1.1 2001/10/08 08:08:03 pchristi // Initial revision. // //