AliRoot Core  3abf5b4 (3abf5b4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTrackerIO.h
Go to the documentation of this file.
1 #ifndef ALIMUONTRACKERIO_H
2 #define ALIMUONTRACKERIO_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 
13 // Author Laurent Aphecetche, Subatech
14 
15 #ifndef ROOT_TObject
16 # include "TObject.h"
17 #endif
18 
19 class AliMUONVStore;
20 class TString;
21 
22 using std::ofstream;
23 
24 class AliMUONTrackerIO : public TObject
25 {
26 public:
28  virtual ~AliMUONTrackerIO();
29 
30  static Int_t ReadConfig(const char* filename, AliMUONVStore& confStore);
31  static Int_t DecodeConfig(const char* data, AliMUONVStore& confStore);
32  static Int_t WriteConfig(ofstream& out, const AliMUONVStore& confStore);
33 
34  static Int_t ReadPedestals(const char* filename, AliMUONVStore& pedStore);
35  static Int_t DecodePedestals(const char* data, AliMUONVStore& pedStore);
36 
37  static Int_t ReadOccupancy(const char* filename, AliMUONVStore& occupancyMap);
38  static Int_t DecodeOccupancy(const char* data, AliMUONVStore& occupancyMap);
39 
41  enum ErrorCode
42  {
44  kDummyFile = -2,
45  kFormatError = -3,
46  kNoInfoFile = -4,
47  kNoMapping = -99
48  };
49 
50  ClassDef(AliMUONTrackerIO,2) // Calibration ASCII file reader for MUON tracker
51 };
52 
53 #endif
static Int_t ReadOccupancy(const char *filename, AliMUONVStore &occupancyMap)
virtual ~AliMUONTrackerIO()
static Int_t WriteConfig(ofstream &out, const AliMUONVStore &confStore)
file is a dummy one (e.g. some intermediate gain files from the DA)
static Int_t DecodeConfig(const char *data, AliMUONVStore &confStore)
Converts ASCII calibration files (ped, config, occupancy) into AliMUONVStore object.
static Int_t ReadPedestals(const char *filename, AliMUONVStore &pedStore)
ErrorCode
Error code constants.
cannot open given file
static Int_t DecodePedestals(const char *data, AliMUONVStore &pedStore)
static Int_t DecodeOccupancy(const char *data, AliMUONVStore &occupancyMap)
static Int_t ReadConfig(const char *filename, AliMUONVStore &confStore)
Base class for MUON data stores.
Definition: AliMUONVStore.h:22
file is "empty", i.e. contains to information but that's normal
file is not of the expected format