00001
00002
00003
00004
00005
00006
00008
00009 #ifndef NTPSRCLUSTER_H
00010 #define NTPSRCLUSTER_H
00011
00012 #include <iosfwd>
00013
00014 #include "CandNtupleSR/NtpSRStripPulseHeight.h"
00015
00016 class NtpSRCluster;
00017 std::ostream &operator << (std::ostream& os, const NtpSRCluster& cluster);
00018
00019 class NtpSRCluster : public TObject {
00020
00021 public:
00022 NtpSRCluster(): index(0),planeview(0),nplane(0),begplane(0),endplane(0),
00023 id(0),slc(0),ndigit(0),nstpcnt(0),nstrip(0),stp(0),probem(0),
00024 zvtx(0),tposvtx(0),slope(0),avgdev(0) {}
00025 NtpSRCluster(Int_t nstripinit);
00026 virtual ~NtpSRCluster() { this -> Clear(); }
00027
00028
00029 virtual std::ostream& Print(std::ostream& os) const;
00030 virtual void Print(Option_t* option = "") const;
00031
00032
00033 void AddStripAt(Int_t stripindex, Int_t ind);
00034 void Clear(Option_t* = "") { ClearStrips(); }
00035 void ClearStrips() { nstrip = 0; if ( stp ) delete [] stp; stp = 0; }
00036
00037 public:
00038
00039
00040
00041
00042 UShort_t index;
00043 UShort_t planeview;
00044 UShort_t nplane;
00045 UShort_t begplane;
00046 UShort_t endplane;
00047 UShort_t id;
00048
00049 Short_t slc;
00050
00051 Int_t ndigit;
00052
00053
00054
00055 Int_t nstpcnt;
00056 Int_t nstrip;
00057 Int_t* stp;
00058
00059 Float_t probem;
00060 Float_t zvtx;
00061 Float_t tposvtx;
00062 Float_t slope;
00063 Float_t avgdev;
00064
00065 NtpSRStripPulseHeight ph;
00066
00067 ClassDef(NtpSRCluster,2)
00068 };
00069
00070 #endif // NTPSRCLUSTER_H