]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTrackerIO.h
I have put as default the current parameterization of V0 and SPD --from run 166530...
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerIO.h
CommitLineData
81028269 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
9/// \ingroup calib
10/// \class AliMUONTrackerIO
11/// \brief Converts ASCII calibration files (ped, gains, capa) into AliMUONVStore object
12///
13// Author Laurent Aphecetche, Subatech
14
15#ifndef ROOT_TObject
16# include "TObject.h"
17#endif
18
19class AliMUONVStore;
20class TString;
21
22class AliMUONTrackerIO : public TObject
23{
24public:
25 AliMUONTrackerIO();
26 virtual ~AliMUONTrackerIO();
27
042cd64e 28 static Int_t ReadConfig(const char* filename, AliMUONVStore& confStore);
29 static Int_t DecodeConfig(const char* data, AliMUONVStore& confStore);
ca913045 30 static Int_t WriteConfig(ofstream& out, const AliMUONVStore& confStore);
6c870207 31
81028269 32 static Int_t ReadPedestals(const char* filename, AliMUONVStore& pedStore);
ca913045 33 static Int_t DecodePedestals(const char* data, AliMUONVStore& pedStore);
81028269 34
35 static Int_t ReadGains(const char* filename, AliMUONVStore& gainStore, TString& comment);
ca913045 36 static Int_t DecodeGains(const char* data, AliMUONVStore& gainStore, TString& comment);
81028269 37
7eafe398 38 static Int_t ReadOccupancy(const char* filename, AliMUONVStore& occupancyMap);
ca913045 39 static Int_t DecodeOccupancy(const char* data, AliMUONVStore& occupancyMap);
7eafe398 40
81028269 41 static Int_t ReadCapacitances(const char* filename, AliMUONVStore& capaStore);
ca913045 42 static Int_t DecodeCapacitances(const char* data, AliMUONVStore& capaStore);
81028269 43
7332f213 44 /// Error code constants
81028269 45 enum ErrorCode
46 {
47 kCannotOpenFile = -1, /// cannot open given file
48 kDummyFile = -2, /// file is a dummy one (e.g. some intermediate gain files from the DA)
33d94e07 49 kFormatError = -3, /// file is not of the expected format
50 kNoInfoFile = -4, /// file is "empty", i.e. contains to information but that's normal
51 kNoMapping = -99 /// mapping not loaded, cannot work
81028269 52 };
53
33d94e07 54 ClassDef(AliMUONTrackerIO,2) // Calibration ASCII file reader for MUON tracker
81028269 55};
56
57#endif