ROOT logo
#ifndef HWALLHIT_H
#define HWALLHIT_H

#include "TObject.h"

//F. Krizek 11.8.2005

class HWallHit : public TObject {
protected:
    Float_t timeCal;    // tdc time
    Float_t chargeCal;  // adc charge
    Int_t   cell;       // paddle number
    Float_t theta;      // theta
    Float_t phi;        // phi
    Float_t d;          // d is distance
    Float_t xlab;       // x coordinate in lab system
    Float_t ylab;       // y coordinate in lab system
    Float_t zlab;       // z coordinate in lab system
public:
    HWallHit(void);
    virtual ~HWallHit(void) {;}

    void setTime    (const Float_t v)                 { timeCal    = v;   }
    void setCharge  (const Float_t v)                 { chargeCal  = v;   }
    void setCell    (const Int_t n)                   { cell       = n;   }
    void setAddress (const Int_t c)                   { cell       = c;   }
    void setTheta   (const Float_t t)                 { theta      = t;   }
    void setPhi     (const Float_t p)                 { phi        = p;   }
    void setDistance(const Float_t dis)               { d          = dis; }
    void setXYZLab  (Float_t x, Float_t y, Float_t z) { xlab = x; ylab = y; zlab = z;}

    virtual void clear(void);
    void    fill(const Float_t t, const Float_t a, const Int_t c);

    Float_t getTime    (void) const { return timeCal;   }
    Float_t getCharge  (void) const { return chargeCal; }
    Int_t   getCell    (void) const { return cell;      }
    void    getAddress (Int_t& c)   { c = cell;         }
    Float_t getTheta   (void) const { return theta;     }
    Float_t getPhi     (void) const { return phi;       }
    Float_t getDistance(void) const { return d;         }
    void    getXYZLab(Float_t &x, Float_t &y, Float_t &z) { x = xlab; y = ylab; z = zlab; }


    ClassDef(HWallHit,1)  // WALL detector calibrated data
};

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