00001
00002
00003
00004
00005
00006
00007 #ifndef TDSSSDDETECTOR_H
00008 #define TDSSSDDETECTOR_H
00009
00010 #include <vector>
00011
00012 #include "THiDetector.h"
00013
00014 class TH3F;
00015
00016 using std::vector;
00017
00018 class TDsssdDetector : public THiDetector {
00019 public:
00020 TDsssdDetector(const Char_t * = "", UInt_t = 32, Float_t = 3, Float_t = 0.1);
00021 virtual ~TDsssdDetector();
00022 virtual void Print(const Char_t * = "") const;
00023 virtual void SetSignals(const TSubEvent &);
00024 virtual void FindHits(vector<THit> *) const;
00025 void GetStripsXY(vector<UShort_t> &, vector<UShort_t> &) const;
00026 TVector3 GetPosition(UShort_t, UShort_t) const;
00027 Float_t GetStripWidth() const;
00028 Float_t GetStripSpacing() const;
00029 Bool_t PlotAdcTdcHitPattern(TH2F * = 0, const TCutG * = 0, Bool_t = 1) const;
00030 Bool_t PlotAdcHitPattern(TH2F * = 0, const TCutG * = 0, Bool_t = 1) const;
00031 Bool_t PlotFrontEvT(TH2F * = 0, Float_t = 0, const TCutG * = 0,
00032 Bool_t = 1) const;
00033 void PlotAdcNAdcPEnergyP(TH3F *) const;
00034
00035 private:
00038 Float_t fStripWidth;
00041 Float_t fStripSpacing;
00042 };
00043
00044 inline Float_t TDsssdDetector::GetStripWidth() const
00045 {
00049 return fStripWidth;
00050 }
00051
00052 inline Float_t TDsssdDetector::GetStripSpacing() const
00053 {
00057 return fStripSpacing;
00058 }
00059
00060 #endif // TDsssdDetector.h