00001
00002
00004 #ifndef __Streams__
00005 #define __Streams__
00006
00007 #include "Segments.h"
00008 #include "TMath.h"
00009 #include "DetConst.h"
00010
00011 using namespace std;
00012
00018 class Streams {
00019
00020 public:
00021
00033 Streams(const string aName, const int aVerbose=0);
00034
00038 virtual ~Streams(void);
00047 bool SetName(const string aNewName);
00048
00052 inline string GetName(void){ return Name; };
00053
00057 inline string GetNamePrefix(void){ return NamePrefix; };
00058
00062 inline string GetNameSuffix(void){ return NameSuffix; };
00063
00068 bool MakeLVDetector(void);
00069
00074 inline int GetDetIndex(void){ return DetIndex; };
00075
00080 inline string GetDetPrefix(void){ if(DetIndex<0) return ""; return DET_PREFIX[DetIndex]; };
00081
00093 bool GetDetAMResponse(double *fplus, double *fcross, const double ra, const double dec, const double psi, const double gmst);
00094
00098 inline bool GetStatus(void){ return status_OK; };
00099
00100 private:
00101
00102 bool status_OK;
00103 int verbose;
00104 string Name;
00105 string NamePrefix;
00106 string NameSuffix;
00107
00108 int DetIndex;
00109 void ComputeDetectorResponse(void);
00110 double Response[3][3];
00111
00112 ClassDef(Streams,0)
00113 };
00114
00115 #endif
00116
00117