ROOT logo
#ifndef __HPARTICLECAL_H__
#define __HPARTICLECAL_H__

#include "TObject.h"

#include "hparticledef.h"


class HParticleCal : public TObject
{
private:

    // Additional variables for calibration
    Int_t       fTOFModule;      // module number of hit
    Int_t       fTOFCell;        // cell number of hit
    Int_t       fMETACell;
    SmallFloat  fTOFLeftAmp;     // left amp of TOF signal
    SmallFloat  fTOFRightAmp;    // left amp of TOF signal
    SmallFloat  fMETALocX;       // x position hit
    SmallFloat  fMETALocY;       // y position hit

public:
    HParticleCal() :
	fTOFModule(-1),fTOFCell(-1),fMETACell(-1),
	fTOFLeftAmp(0),fTOFRightAmp(0),
	fMETALocX(0),fMETALocY(0)
    {
    }
	~HParticleCal() {}

	void     setTOFModule  (Int_t a)                  { fTOFModule = a;             }
	void     setTOFCell    (Int_t a)                  { fTOFCell = a;               }
	void     setMETACell   (Int_t a)                  { fMETACell = a;              }
	void     setTOFLeftAmp (Float_t a)                { fTOFLeftAmp = a;            }
	void     setTOFRightAmp(Float_t a)                { fTOFRightAmp = a;           }
	void     setMETALocX   (Float_t a)                { fMETALocX = a;              }
	void     setMETALocY   (Float_t a)                { fMETALocY = a;              }

	Int_t    getTOFModule()   const                   { return fTOFModule;          }
	Int_t    getTOFCell()     const                   { return fTOFCell;            }
	Int_t    getMETACell()    const                   { return fMETACell;           }
	Float_t  getTOFLeftAmp()  const                   { return fTOFLeftAmp;         }
	Float_t  getTOFRightAmp() const                   { return fTOFRightAmp;        }
	Float_t  getMETALocX()    const                   { return fMETALocX;           }
	Float_t  getMETALocY()    const                   { return fMETALocY;           }


	ClassDef(HParticleCal,1)  // A simple object for calibration purpose
};


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