1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 #include "AliMUONTrackerACFDataMaker.h"
20 #include "AliMUONTrackerData.h"
21 #include "AliMUONTrackerIO.h"
22 #include "AliMUON2DMap.h"
23 #include "AliMUON1DMap.h"
27 #include "AliMUONTrackerOCDBDataMaker.h"
29 ///\class AliMUONTrackerACFDataMaker
31 /// Producer of AliMUONVTrackerData from ASCII calibration files
33 ///\author Laurent Aphecetche, Subatech
36 ClassImp(AliMUONTrackerACFDataMaker)
39 //_____________________________________________________________________________
40 AliMUONTrackerACFDataMaker::AliMUONTrackerACFDataMaker(const char* acfPath,
42 : AliMUONVTrackerDataMaker(),
45 fSource(Form("%s-%s",acfPath,type))
49 static Int_t number(0);
53 AliMUONVStore* store(0x0);
57 TString filename(gSystem->ExpandPathName(acfPath));
59 if ( stype == "PEDESTALS" )
61 fData = AliMUONTrackerOCDBDataMaker::CreateDataPedestals(number);
62 store = new AliMUON2DMap(kTRUE);
63 AliMUONTrackerIO::ReadPedestals(filename.Data(),*store);
65 else if ( stype == "GAINS" )
67 fData = AliMUONTrackerOCDBDataMaker::CreateDataGains(number);
68 AliMUONVStore* gains = new AliMUON2DMap(kTRUE);
70 AliMUONTrackerIO::ReadGains(filename.Data(),*gains,comment);
71 store = AliMUONTrackerOCDBDataMaker::SplitQuality(*gains);
74 else if ( stype == "CAPACITANCES" )
76 fData = AliMUONTrackerOCDBDataMaker::CreateDataCapacitances(number);
77 store = new AliMUON1DMap(20000);
78 AliMUONTrackerIO::ReadCapacitances(filename.Data(),*store);
86 AliError("Could not create store");
93 //_____________________________________________________________________________
94 AliMUONTrackerACFDataMaker::~AliMUONTrackerACFDataMaker()
100 //_____________________________________________________________________________
102 AliMUONTrackerACFDataMaker::Merge(TCollection*)
105 AliError("Not implemented. Does it have sense ?");