]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFTrigger.h
Four overlaps fixed (M. Sitta)
[u/mrichter/AliRoot.git] / TOF / AliTOFTrigger.h
CommitLineData
0e46b9ae 1#ifndef ALITOFTRIGGER_H
2#define ALITOFTRIGGER_H
3
cd82ed2f 4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
8
cd82ed2f 9/////////////////////////////////////////////////
0e46b9ae 10// //
11// TOF Trigger Detector Class //
12// //
cd82ed2f 13/////////////////////////////////////////////////
14
15#include "AliTriggerDetector.h"
16
17class AliTOFTrigger : public AliTriggerDetector
18{
19 public:
20 AliTOFTrigger(); // constructor
21 AliTOFTrigger(Int_t HighMultTh, Int_t ppMBTh, Int_t MultiMuonTh, Int_t UPTh, Float_t deltaminpsi, Float_t deltamaxpsi, Float_t deltaminro, Float_t deltamaxro, Int_t stripWindow); //constructor with parameters
22 AliTOFTrigger(const AliTOFTrigger & tr);
23 virtual ~AliTOFTrigger(){} // destructor
24 virtual void CreateInputs();
25 virtual void Trigger();
26 Int_t GetHighMultTh() const {return fHighMultTh;}
27 Int_t GetppMBTh() const {return fppMBTh;}
28 Int_t GetMultiMuonTh() const {return fMultiMuonTh;}
29 Int_t GetUPTh() const {return fUPTh;}
30 Float_t Getdeltaminpsi() const {return fdeltaminpsi;}
31 Float_t Getdeltamaxpsi() const {return fdeltamaxpsi;}
32 Float_t Getdeltaminro() const {return fdeltaminro;}
33 Float_t Getdeltamaxro() const {return fdeltamaxro;}
34 Int_t GetstripWindow() const {return fstripWindow;}
35
36 void SetHighMultTh(Int_t HighMultTh){fHighMultTh = HighMultTh;}
37 void SetppMBTh(Int_t ppMBTh){fppMBTh = ppMBTh;}
38 void SetMultiMuonTh(Int_t MultiMuonTh){fMultiMuonTh = MultiMuonTh;}
39 void SetUPTh(Int_t UPTh){fUPTh = UPTh;}
40 void Setdeltaminpsi(Float_t deltaminpsi){fdeltaminpsi = deltaminpsi;}
41 void Setdeltamaxpsi(Float_t deltamaxpsi){fdeltamaxpsi = deltamaxpsi;}
42 void Setdeltaminro(Float_t deltaminro){fdeltaminro = deltaminro;}
43 void Setdeltamaxro(Float_t deltamaxro){fdeltamaxro = deltamaxro;}
44 void SetstripWindow(Int_t stripWindow){fstripWindow = stripWindow;}
45
46 void CreateLTMMatrix();
47
48 private:
49
50 enum{
51 kNLTM = 72, //Number of LTM
52 kNLTMchannels = 48, //Number of channels in a LTM
53 kNCTTM = 36, //Number of CTTM per TOF side
54 kNCTTMchannels = 24 //Number of channels in a CTTM
55 };
56
57 void GetLTMIndex(Int_t *detind, Int_t *LTMIndex);
58 Bool_t fLTMmatrix[kNLTM][kNLTMchannels]; //LTM matrix
59 Bool_t fCTTMmatrixFront[kNCTTM][kNCTTMchannels]; //CTTM matrix for LTM 0-35
60 Bool_t fCTTMmatrixBack[kNCTTM][kNCTTMchannels]; //CTTM matrix for LTM 36-71
61 Int_t fHighMultTh; //threshold for High Multiplicity trigger
62 Int_t fppMBTh; //threshold for pp Minimum Bias trigger
63 Int_t fMultiMuonTh; //threshold for Multi Muon trigger
64 Int_t fUPTh; //threshold for Ultra-Per coll trigger
65 Float_t fdeltaminpsi; //min delta phi for J/psi decay (UP trigger)
66 Float_t fdeltamaxpsi; //max delta phi for J/psi decay (UP trigger)
67 Float_t fdeltaminro; //min delta phi for ro decay (UP trigger)
68 Float_t fdeltamaxro; //max delta phi for ro decay (UP trigger)
69 Int_t fstripWindow; //strip window for triggering
70
71 ClassDef(AliTOFTrigger,1) // TOF Trigger Detector class
72};
73#endif