QRunDataR.hh

Go to the documentation of this file.
00001 
00008 #ifndef _QRUNDATA_R_HH_
00009 #define _QRUNDATA_R_HH_
00010 
00011 
00012 #include "QObjectR.hh"
00013 #include <Rtypes.h>
00014 #include <vector>
00015 
00016 namespace Cuore {class QRunData;}
00017 
00018 class QRunDataR: public QObjectR {
00019 
00020     public:
00022         QRunDataR();
00024         virtual ~QRunDataR(){}
00026         int GetDetector() const {return fDetector;}
00028         Float_t GetSamplingFrequency() const {return fSamplingFrequency;}
00030         Int_t GetNumber() const {return fNumber;}
00032         std::vector<int> GetChannels() const {return fChannels;}
00034         Int_t GetThermometerChannel() const {return fThermometerChannel;}
00036         int GetType() const {return fType;}
00038         Double_t GetADC2mV() const {return fADC2mV;}
00040         Int_t GetNumberOfChannels() const {return fNumberOfChannels;}
00042         UInt_t GetStartTime() const {return fStartTime;}
00044         UInt_t GetDuration() const {return fDuration;}
00046         Int_t GetADCMax() const {return fADCMax;}
00048         Int_t GetADCMin() const {return fADCMin;}
00049 
00051         void SetDetector(const int& detector) {fDetector = detector;}
00053         void SetSamplingFrequency(const Float_t& samplingFrequency) {fSamplingFrequency = samplingFrequency;}
00055         void SetNumber(const Int_t& number) {fNumber = number;}
00057         void SetChannels(const std::vector<int>& channels) {fChannels = channels;}
00059         void SetThermometerChannel(const Int_t& thermometerChannel) {fThermometerChannel = thermometerChannel;}
00061         void SetType(const int& type) {fType = type;}
00063         void SetADC2mV(const Double_t& aDC2mV) {fADC2mV = aDC2mV;}
00065         void SetNumberOfChannels(const Int_t& numberOfChannels) {fNumberOfChannels = numberOfChannels;}
00067         void SetStartTime(const UInt_t& startTime) {fStartTime = startTime;}
00069         void SetDuration(const UInt_t& duration) {fDuration = duration;}
00071         void SetADCMax(const Int_t& adcMax) {fADCMax = adcMax;}
00073         void SetADCMin(const Int_t& adcMin) {fADCMin = adcMin;}
00074 
00076         void Assign(const Cuore::QRunData& ev); 
00078         void Fill(Cuore::QRunData& qrundata) const;
00079 
00080     private:
00081         void Assign(const Cuore::QObject* obj);
00082         void FillQObject(Cuore::QObject*& obj) const;
00083 
00084         int fDetector;
00085         Float_t fSamplingFrequency;
00086         Int_t fNumber;
00087         std::vector<int> fChannels;
00088         Int_t fThermometerChannel;
00089         int fType;
00090         Double_t fADC2mV;
00091         Int_t fNumberOfChannels;
00092         UInt_t fStartTime;
00093         UInt_t fDuration;
00094         Int_t fADCMax;
00095         Int_t fADCMin;
00096 
00097         ClassDef(QRunDataR,2);
00098 };
00099 
00100 #endif

Generated on Tue Nov 16 10:50:00 2010 for CUORE Software by  doxygen 1.5.6