00001
00002 #ifndef FARDETSHIELDPLANKHANDLE_H
00003 #define FARDETSHIELDPLANKHANDLE_H
00004
00005 #include "FarDetShieldPlank.h"
00006 #include "Candidate/CandHandle.h"
00007 #include "Navigation/XxxItr.h"
00008
00009 #include "Conventions/StripEnd.h"
00010 #include "Conventions/CalDigitType.h"
00011 #include "Conventions/CalTimeType.h"
00012
00013 class FarDetShieldPlankHandle : public CandHandle
00014 {
00015 public:
00016 FarDetShieldPlankHandle ();
00017 FarDetShieldPlankHandle (const FarDetShieldPlankHandle& csh);
00018 FarDetShieldPlankHandle (FarDetShieldPlank* cs);
00019 virtual ~FarDetShieldPlankHandle ();
00020 virtual FarDetShieldPlankHandle* DupHandle() const;
00021 virtual void Trace(const char* c) const;
00022
00023 void SetSection(Int_t section);
00024 void SetSubSection(Int_t subsection);
00025 void SetPlane(Int_t plane);
00026 void SetPlank(Int_t plank);
00027 void SetNStrips(Int_t nstrips);
00028 void SetGeomErrors(Int_t nerrors);
00029 void SetX(Double_t X);
00030 void SetY(Double_t Y);
00031 void SetZ(Double_t* Z);
00032 void SetTime(CalTimeType::CalTimeType_t caltype_t, Double_t* time);
00033 void SetCharge(CalDigitType::CalDigitType_t caltype_t, Double_t* charge);
00034 void SetFibreLengths(Double_t* green, Double_t* wls, Double_t* clear, Double_t half);
00035
00036 Int_t GetSection() const;
00037 Int_t GetSubSection() const;
00038 Int_t GetPlane() const;
00039 Int_t GetPlank() const;
00040 Int_t GetNStrips() const;
00041 Int_t GetGeomErrors() const;
00042 Double_t GetX() const;
00043 Double_t GetY() const;
00044 Double_t GetZ(StripEnd::StripEnd_t stripend_t) const;
00045 Double_t GetTime() const;
00046 Double_t GetTime(StripEnd::StripEnd_t stripend_t) const;
00047 Double_t GetTime(CalTimeType::CalTimeType_t caltype_t) const;
00048 Double_t GetTime(StripEnd::StripEnd_t stripend_t,CalTimeType::CalTimeType_t caltype_t) const;
00049 Double_t GetTime(CalTimeType::CalTimeType_t caltype_t,StripEnd::StripEnd_t stripend_t) const;
00050 Double_t GetCharge() const;
00051 Double_t GetCharge(StripEnd::StripEnd_t stripend_t) const;
00052 Double_t GetCharge(CalDigitType::CalDigitType_t caltype_t) const;
00053 Double_t GetCharge(StripEnd::StripEnd_t stripend_t,CalDigitType::CalDigitType_t caltype_t) const;
00054 Double_t GetCharge(CalDigitType::CalDigitType_t caltype_t,StripEnd::StripEnd_t stripend_t) const;
00055 Double_t GetGreenFibre(StripEnd::StripEnd_t stripend_t) const;
00056 Double_t GetWlsPigtail(StripEnd::StripEnd_t stripend_t) const;
00057 Double_t GetClearFibre(StripEnd::StripEnd_t stripend_t) const;
00058 Double_t GetHalfLength() const;
00059
00060 ClassDef(FarDetShieldPlankHandle,1);
00061 };
00062
00063 XXXITRDEF(FarDetShieldPlankHandle)
00064
00065 #endif
00066