First version of trigger preprocessor (only local and regional masks so far)
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerIO.h
CommitLineData
2ab3623b 1#ifndef ALIMUONTRIGGERIO_H
2#define ALIMUONTRIGGERIO_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5* See cxx source for full Copyright notice */
6
7// $Id$
8
9/// \ingroup trigger
10/// \class AliMUONTriggerIO
11/// \brief Handles read/write of masks and LUT to/from online files
12///
13// Author Laurent Aphecetche, Subatech
14
15#ifndef ROOT_TArrayI
16# include "TArrayI.h"
17#endif
18
19#ifndef ROOT_TObject
20# include "TObject.h"
21#endif
22
23//class AliMUONTriggerLut;
24class AliMUONVCalibParam;
25class AliMUONVStore;
26
27class AliMUONTriggerIO : public TObject
28{
29public:
30 AliMUONTriggerIO();
31 virtual ~AliMUONTriggerIO();
32
33 Bool_t ReadMasks(const char* localFile,
34 const char* regionalFile,
35 const char* globalFile,
36 AliMUONVStore* localMasks,
37 AliMUONVStore* regionalMasks,
38 AliMUONVCalibParam* globalMasks);
39
40// void SetLocalBoardIds(const TArrayI& localBoardIds);
41
42// Bool_t WriteMasks(AliMUONVStore* localMasks,
43// AliMUONVStore* regionalMasks,
44// AliMUONVCalibParam* globalMasks) const;
45
46private:
47
48 Int_t LocalBoardId(Int_t index) const;
49
50 /// Return number of local boards
51 Int_t NofLocalBoards() const { return fNofLocalBoards; }
52
53 Int_t ReadRegional(const char* regionalFile, AliMUONVStore* regionalMasks);
54
55 Int_t ReadLocalMasks(const char* localFile, AliMUONVStore& localMasks) const;
56
57// void WriteRegional() const;
58
59private:
60 TArrayI fLocalBoardIds; //!< order of the localboards
61 Int_t fNofLocalBoards; //!< number of local boards
62
63 ClassDef(AliMUONTriggerIO,0) // Read/Write trigger masks and LUT to/from online files
64};
65
66#endif