00001 00002 // $Id: CandClusterHandle.h,v 1.8 2004/07/24 01:32:40 musser Exp $ 00003 // 00004 // CandClusterHandle.h 00005 // 00006 // CandClusterHandle is the specialized access handle to CandCluster. 00007 // 00008 // Each concrete CandHandle must define a DupHandle function. 00009 // 00010 // Author: R. Lee 2001.02.13 00011 // 00013 00014 #ifndef CANDCLUSTERHANDLE_H 00015 #define CANDCLUSTERHANDLE_H 00016 00017 #include "Candidate/CandHandle.h" 00018 #include "Conventions/PlaneView.h" 00019 class CandCluster; 00020 #include "RecoBase/CandStripHandle.h" 00021 #include "Navigation/XxxItr.h" 00022 00023 class CandSliceHandle; 00024 00025 class CandClusterHandle : public CandHandle 00026 { 00027 00028 public: 00029 CandClusterHandle(); 00030 CandClusterHandle(const CandClusterHandle &cdh); 00031 CandClusterHandle(CandCluster *cd); 00032 virtual ~CandClusterHandle(); 00033 virtual CandClusterHandle *DupHandle() const; 00034 00035 virtual void Trace(const char *c = "") const; 00036 00037 void SetCandSlice(const CandSliceHandle *slice); 00038 const CandSliceHandle *GetCandSlice() const; 00039 00040 void IsShowerLike(Bool_t); 00041 Bool_t IsShowerLike() const; 00042 00043 void IsTrackLike(Bool_t); 00044 Bool_t IsTrackLike() const; 00045 00046 virtual PlaneView::PlaneView_t GetPlaneView() const; 00047 00048 virtual Int_t GetNStrip() const; 00049 virtual Int_t GetNPlane() const; 00050 00051 virtual Int_t GetBegPlane() const; 00052 virtual Int_t GetEndPlane() const; 00053 00054 virtual Double_t GetBegTime() const; 00055 virtual Double_t GetEndTime() const; 00056 00057 virtual Double_t GetCharge() const; 00058 00059 virtual Double_t GetTPos() const; // calculate mean transverse position 00060 00061 static NavKey KeyFromObject(const CandClusterHandle *); 00062 static NavKey KeyFromView(const CandClusterHandle *); 00063 static NavKey KeyFromSlice(const CandClusterHandle *); 00064 00065 00066 private: 00067 00068 00069 ClassDef(CandClusterHandle,2) // User access handle to CandCluster 00070 00071 }; 00072 00073 XXXITRDEF(CandClusterHandle) 00074 00075 #endif // CANDCLUSTERHANDLE_H
1.3.9.1