ROOT logo
// Last update: 21.04.06 --- B.Spruck
// Modified for Wall by M.Golubeva 01.11.2006

#ifndef HWALLCAL_H
#define HWALLCAL_H

#include "TObject.h"
#include "hwallraw.h"

class HWallCal : public TObject {
 protected:
  Int_t nHits;  // number of hits
  Int_t cell;  // fiber number
  Float_t time1;  // tdc time of 1st hit
  Float_t adc1;   // adc of 1st hit
  Float_t time2;  // tdc time of 2nd hit
  Float_t adc2;   // adc of 2nd hit
  Float_t time3;  // tdc time of 3rd hit
  Float_t adc3;   // adc of 3rd hit
  Float_t time4;  // tdc time of 4th hit
  Float_t adc4;   // adc of 4th hit
  
 public:
  HWallCal(void) { clear(); }
  ~HWallCal(void) {;}
 
 void clear(void);
 
 Int_t getNHits(void) const { return nHits; }
 Int_t getCell(void) const { return cell; }

 Float_t getTime(const Int_t n) const;
 Float_t getAdc(const Int_t n) const;
 void getTimeAndAdc(const Int_t n, Float_t& time, Float_t& adc );
 inline Int_t getMaxMult(void){ return(4);}// return number of multiplicity supported (constant)
 
 void setCell(const Int_t n)    { cell=n; } 
 Bool_t setTimeAdc(const Float_t t,const Float_t a);
 
 
 ClassDef(HWallCal,1)  // WALL detector cal data
};
   
#endif /* ! HWALLCAL_H */
 hwallcal.h:1
 hwallcal.h:2
 hwallcal.h:3
 hwallcal.h:4
 hwallcal.h:5
 hwallcal.h:6
 hwallcal.h:7
 hwallcal.h:8
 hwallcal.h:9
 hwallcal.h:10
 hwallcal.h:11
 hwallcal.h:12
 hwallcal.h:13
 hwallcal.h:14
 hwallcal.h:15
 hwallcal.h:16
 hwallcal.h:17
 hwallcal.h:18
 hwallcal.h:19
 hwallcal.h:20
 hwallcal.h:21
 hwallcal.h:22
 hwallcal.h:23
 hwallcal.h:24
 hwallcal.h:25
 hwallcal.h:26
 hwallcal.h:27
 hwallcal.h:28
 hwallcal.h:29
 hwallcal.h:30
 hwallcal.h:31
 hwallcal.h:32
 hwallcal.h:33
 hwallcal.h:34
 hwallcal.h:35
 hwallcal.h:36
 hwallcal.h:37
 hwallcal.h:38
 hwallcal.h:39
 hwallcal.h:40
 hwallcal.h:41
 hwallcal.h:42
 hwallcal.h:43
 hwallcal.h:44