00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef STSVTHYBRIDDATA_HH
00031 #define STSVTHYBRIDDATA_HH
00032 #include <vector>
00033
00034 #include "StSvtHybridObject.hh"
00035 #include "StSequence.hh"
00036 #include "StMCTruth.h"
00037
00038 class StSvtSeq :public std::vector<StSequence>
00039 {
00040 public:
00041 StSvtSeq(){mAnode=0;}
00042
00043 public:
00044 int mAnode;
00045 std::vector<StMCTruth> mTruth;
00046 };
00047 typedef std::vector<StSvtSeq> StSvtSeqV;
00048
00049 class StSequence;
00050
00051 class StSvtHybridData: public StSvtHybridObject
00052 {
00053 public:
00054 StSvtHybridData();
00055 StSvtHybridData(int barrel, int ladder, int wafer, int hybrid);
00056 virtual ~StSvtHybridData();
00057
00058 StSvtHybridData(const StSvtHybridData&);
00059 StSvtHybridData& operator = (const StSvtHybridData&);
00060
00061 int getAnodeList(int*& list);
00062 int getSequences(int anodeID, int& nSequences, StSequence*& sequence);
00063 int getListSequences(int listID, int& nSequence,StSequence*& sequence);
00064 int getListTruth (int listID, int& nSequence,StMCTruth*& sequence);
00065
00066 unsigned char getSCAZero(){return mSCAZero;}
00067 unsigned char getTimeZero(){return mTimeZero;}
00068
00069 void setSCAZero(unsigned char sca){mSCAZero = sca;}
00070 void setTimeZero(unsigned char t0){mTimeZero = t0;}
00071
00072 int setListSequences(int listID, int Anode, int& nSequence, StSequence* tempSeq);
00073 int setListTruth (int listID, int Anode, int& nSequence, StMCTruth* tempTru);
00074 int setAnodeList();
00075
00076 protected:
00077
00078 unsigned char mSCAZero;
00079 unsigned char mTimeZero;
00080
00081
00082
00083
00084
00085 std::vector<int> anodeList;
00086 std::vector<int> lookUp;
00087 StSvtSeqV seq;
00088 ClassDef(StSvtHybridData,1)
00089 };
00090
00091 #endif