]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/EMCALUtils/AliEMCALTriggerMappingV1.h
EMCAL/DCAL Trigger Mapping for Run 2
[u/mrichter/AliRoot.git] / EMCAL / EMCALUtils / AliEMCALTriggerMappingV1.h
CommitLineData
787342d6 1#ifndef ALIEMCALTRIGGERMAPPINGV1_H
2#define ALIEMCALTRIGGERMAPPINGV1_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/*
7
8
9Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
10*/
11
12#include "AliEMCALTriggerMapping.h"
13class AliEMCALGeometry;
14class AliEMCALTriggerMappingV1 : public AliEMCALTriggerMapping
15{
16public:
17
18 AliEMCALTriggerMappingV1();
19 AliEMCALTriggerMappingV1(const Int_t ntru, const AliEMCALGeometry* geo);
20 virtual ~AliEMCALTriggerMappingV1() {}
21
22 Bool_t GetAbsFastORIndexFromTRU(const Int_t iTRU, const Int_t iADC, Int_t& id) const;
23 Bool_t GetAbsFastORIndexFromPositionInTRU(const Int_t iTRU, const Int_t iEta, const Int_t iPhi, Int_t& id) const;
24 Bool_t GetAbsFastORIndexFromPositionInSM( const Int_t iSM, const Int_t iEta, const Int_t iPhi, Int_t& id) const;
25 Bool_t GetAbsFastORIndexFromPositionInEMCAL( const Int_t iEta, const Int_t iPhi, Int_t& id) const;
26 Bool_t GetTRUFromAbsFastORIndex(const Int_t id, Int_t& iTRU, Int_t& iADC) const;
27 Bool_t GetPositionInTRUFromAbsFastORIndex(const Int_t id, Int_t& iTRU, Int_t& iEta, Int_t& iPhi) const;
28 Bool_t GetPositionInSMFromAbsFastORIndex(const Int_t id, Int_t& iSM, Int_t& iEta, Int_t& iPhi) const;
29 Bool_t GetPositionInEMCALFromAbsFastORIndex(const Int_t id, Int_t& iEta, Int_t& iPhi) const;
30 Bool_t GetFastORIndexFromCellIndex(const Int_t id, Int_t& idx) const;
31 Bool_t GetCellIndexFromFastORIndex(const Int_t id, Int_t idx[4]) const;
32 Bool_t GetTRUIndexFromSTUIndex(const Int_t id, Int_t& idx) const;
33 Int_t GetTRUIndexFromSTUIndex(const Int_t id) const;
34 Bool_t GetTRUIndexFromOnlineIndex(const Int_t id, Int_t& idx) const;
35 Int_t GetTRUIndexFromOnlineIndex(const Int_t id) const;
36 Bool_t GetOnlineIndexFromTRUIndex(const Int_t id, Int_t& idx) const;
37 Int_t GetOnlineIndexFromTRUIndex(const Int_t id) const;
38 Bool_t GetFastORIndexFromL0Index(const Int_t iTRU, const Int_t id, Int_t idx[], const Int_t size) const;
39
40private:
41 AliEMCALTriggerMappingV1(const AliEMCALTriggerMappingV1& rhs);
42 AliEMCALTriggerMappingV1& operator=(const AliEMCALTriggerMappingV1& rhs);
43
44 ClassDef(AliEMCALTriggerMappingV1,1)
45};
46
47#endif
48