]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSBeamTestEvent.h
Geometry builder classes moved from base to sim.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSBeamTestEvent.h
CommitLineData
f74edaba 1#ifndef ALIPHOSBEAMTESTEVENT_H
2#define ALIPHOSBEAMTESTEVENT_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8//_________________________________________________________________________
9// Class for PHOS Beam Test event header. Contanes all information
cd228525 10// about triggers, temperature of cristals etc.
f74edaba 11//
12//*-- Author: Maxim Volkov (RRC KI) & Dmitri Peressounko (RRC KI & SUBATECH)
13
14
15// --- ROOT system ---
16#include "TObject.h"
17// --- Standard library ---
18
19// --- AliRoot header files ---
20
21class AliPHOSBeamTestEvent:public TObject {
22
23public:
24 AliPHOSBeamTestEvent() ; // ctor
25
26 virtual ~AliPHOSBeamTestEvent() ; // dtor
ddaf8726 27
00953b03 28 Float_t GetBeamEnergy(void) const {return fBeamEnergy ;}
cd228525 29 //energy of the beam used in calibration (if available)
00953b03 30 UInt_t * GetUserVector(void) {return fUserVector ;}
31 UInt_t * GetHeader(void) {return fHeader ;}
32 UShort_t GetPattern(void) const {return fPattern ;}
cd228525 33 //Trigger pattern: pedestal, pulser, real event etc.
00953b03 34 UShort_t *GetScanning(void) {return fScanning ;}
35 UShort_t *GetCharge(void) {return fCharge ;}
36 UInt_t * GetScaler(void) {return fScaler ;}
37 UShort_t *GetTDC(void) {return fTDC2228 ;}
f74edaba 38
ddaf8726 39 void SetBeamEnergy(Float_t energy ){fBeamEnergy = energy ;}
f74edaba 40 void SetUserVector(UInt_t * uv){
41 for(Int_t i=0;i<16;i++)fUserVector[i]=uv[i];}
42 void SetHeader(UInt_t * h){
43 for(Int_t i=0;i<12;i++)fHeader[i]=h[i];}
44 void SetPattern(UShort_t pat){fPattern=pat ;}
45 void SetScanning(UShort_t * scan){
46 for(Int_t i=0;i<32;i++) fScanning[i]=scan[i] ;}
47 void SetCharge(UShort_t *charg){
48 for(Int_t i=0;i<12;i++) fCharge[i]=charg[i] ;}
49 void SetScaler(UInt_t * sc){
50 for(Int_t i=0;i<12;i++) fScaler[i]=sc[i] ;}
51 void SetTDC(UShort_t * tdc) {
52 for(Int_t i=0;i<12;i++) fTDC2228[i]=tdc[i] ;}
53private:
ddaf8726 54 Float_t fBeamEnergy ; //Beam energy
f74edaba 55 UInt_t fUserVector[16] ; //ZEBRA Event user vector
56 UInt_t fHeader[12] ; //ZEBRA event header
57 UInt_t fScaler[12] ; //Scalers, 1 module X 12 (4 byte) ch.
58 UShort_t fPattern ; //Trigger bit register
59 UShort_t fScanning[32] ; //Scanning ADCs,4 modulesX8=32 channels
60 UShort_t fCharge[12] ; //Charge ADCs, 1 module X 12 = 12 ch.
61 UShort_t fTDC2228[32] ; //LeCroy TDC 2228A, 4 module X 8 =32 ch
62
63 ClassDef(AliPHOSBeamTestEvent,1) // description
64
65};
66
67#endif // ALIPHOSBEAMTESTEVENT_H