/* * ScanDetector.hh * * Class to keep track of the content of the detectors from the sscan data. * * Created on: Nov 26, 2014 * Author: Hovanes Egiyan */ #ifndef SCANDETECTOR_HH_ #define SCANDETECTOR_HH_ #include /* printf */ #include /* system, NULL, EXIT_FAILURE */ #include #include #include #include #include #include #include #include class ScanStream; class ScanDetector : public TObject { protected: int detNumber; // Detector number from the file std::string detName; // Detector name from the file std::string detDescription; // Detector description from the file std::string detUnit; // Units for the detector data const ScanStream* detScanStreamPtr; // Pointer to the scan file std::vector detData; public: ScanDetector( ); // Default constructor ScanDetector( std::istream& inStream, ScanStream* scanFile ); // Actual constructor virtual ~ScanDetector(); virtual int readData( std::istream& inStream ); virtual void printData(); virtual inline int getNumber() {return detNumber;} virtual inline std::string getName() { return detName;} virtual inline std::string getDesciption() {return detDescription;} virtual inline std::string getUnit() {return detUnit;} virtual inline std::vector& getData() { return detData; } virtual inline const ScanStream* getScanStream() const {return detScanStreamPtr;} virtual inline const char* GetName() { return getName().c_str() ; } ClassDef(ScanDetector, 0) }; #endif /* SCANDETECTOR_HH_ */