ROOT logo
#ifndef HMDCSLOPES__H
#define HMDCSLOPES__H

#include "TObject.h"

class HMdcSlopes : public TObject
{
 protected:
		Int_t sector;         // MdcSlopes container coordinate: sector
		Int_t module;         // MdcSlopes container coordinate: module
		Int_t mbo;            // MdcSlopes container coordinate: mbo
		Int_t tdc;            // MdcSlopes container coordinate: tdc (tdc*8 + channel)

		Float_t slope;        // value of slope
		Float_t error;        // error of the slope
		Int_t   slopeMethode; // method used to calculate slope

 public:
		HMdcSlopes(void);
		~HMdcSlopes(void);
		void getAddress(Int_t *s, Int_t *m, Int_t *mb, Int_t *t);
		Int_t getSector(void){return sector;};
		Int_t getModule(void){return module;};
		Int_t getMbo(void){return mbo;};
		Int_t getTdc(void){return tdc;};
		Float_t getSlope(void){return slope;};
		Float_t getError(void){return error;};
		Int_t getMethode(void){return slopeMethode;};
		void setAddress(Int_t s, Int_t m, Int_t mb, Int_t t);
		void setSector(Int_t s){sector = s;};
		void setModule(Int_t m){module = m;};
		void setMbo(Int_t mb){mbo = mb;};
		void setTdc(Int_t t){tdc = t;};
		void setSlope(Float_t sl){slope = sl;};
		void setError(Float_t er){error = er;};
		void setMethode(Int_t mth){slopeMethode = mth;};

		ClassDef(HMdcSlopes,1) // MDC slope
};

inline void HMdcSlopes::getAddress(Int_t *s, Int_t *m, Int_t *mb, Int_t *t)
{
		*s = sector;
		*m = module;
		*mb = mbo;
		*t = tdc;
}

inline void HMdcSlopes::setAddress(Int_t s, Int_t m, Int_t mb, Int_t t)
{
		sector = s;
		module = m;
		mbo = mb;
		tdc = t;
}


#endif
 hmdcslopes.h:1
 hmdcslopes.h:2
 hmdcslopes.h:3
 hmdcslopes.h:4
 hmdcslopes.h:5
 hmdcslopes.h:6
 hmdcslopes.h:7
 hmdcslopes.h:8
 hmdcslopes.h:9
 hmdcslopes.h:10
 hmdcslopes.h:11
 hmdcslopes.h:12
 hmdcslopes.h:13
 hmdcslopes.h:14
 hmdcslopes.h:15
 hmdcslopes.h:16
 hmdcslopes.h:17
 hmdcslopes.h:18
 hmdcslopes.h:19
 hmdcslopes.h:20
 hmdcslopes.h:21
 hmdcslopes.h:22
 hmdcslopes.h:23
 hmdcslopes.h:24
 hmdcslopes.h:25
 hmdcslopes.h:26
 hmdcslopes.h:27
 hmdcslopes.h:28
 hmdcslopes.h:29
 hmdcslopes.h:30
 hmdcslopes.h:31
 hmdcslopes.h:32
 hmdcslopes.h:33
 hmdcslopes.h:34
 hmdcslopes.h:35
 hmdcslopes.h:36
 hmdcslopes.h:37
 hmdcslopes.h:38
 hmdcslopes.h:39
 hmdcslopes.h:40
 hmdcslopes.h:41
 hmdcslopes.h:42
 hmdcslopes.h:43
 hmdcslopes.h:44
 hmdcslopes.h:45
 hmdcslopes.h:46
 hmdcslopes.h:47
 hmdcslopes.h:48
 hmdcslopes.h:49
 hmdcslopes.h:50
 hmdcslopes.h:51
 hmdcslopes.h:52
 hmdcslopes.h:53
 hmdcslopes.h:54
 hmdcslopes.h:55
 hmdcslopes.h:56
 hmdcslopes.h:57
 hmdcslopes.h:58