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"
28 ///\class AliMUONTrackerACFDataMaker
30 /// Producer of AliMUONVTrackerData from ASCII calibration files
32 ///\author Laurent Aphecetche, Subatech
35 ClassImp(AliMUONTrackerACFDataMaker)
38 //_____________________________________________________________________________
39 AliMUONTrackerACFDataMaker::AliMUONTrackerACFDataMaker(const char* acfPath,
41 : AliMUONVTrackerDataMaker(),
44 fSource(Form("%s-%s",acfPath,type))
48 static Int_t number(0);
52 AliMUONVStore* store(0x0);
56 Bool_t isSingleEvent(kTRUE);
57 TString filename(gSystem->ExpandPathName(acfPath));
59 if ( stype == "PEDESTALS" )
61 fData = new AliMUONTrackerData(Form("PED",number),"Pedestals",2,isSingleEvent);
62 fData->SetDimensionName(0,"Mean");
63 fData->SetDimensionName(1,"Sigma");
64 store = new AliMUON2DMap(kTRUE);
65 AliMUONTrackerIO::ReadPedestals(filename.Data(),*store);
67 else if ( stype == "GAINS" )
69 fData = new AliMUONTrackerData(Form("GAIN%d",number),"Gains",5,isSingleEvent);
70 fData->SetDimensionName(0,"a1");
71 fData->SetDimensionName(1,"a2");
72 fData->SetDimensionName(2,"thres");
73 fData->SetDimensionName(3,"qual");
74 fData->SetDimensionName(4,"sat");
75 store = new AliMUON2DMap(kTRUE);
77 AliMUONTrackerIO::ReadGains(filename.Data(),*store,comment);
79 else if ( stype == "CAPACITANCES" )
81 fData = new AliMUONTrackerData(Form("CAPA%d",number),"Capacitances",2,isSingleEvent);
82 fData->SetDimensionName(0,"Capa");
83 fData->SetDimensionName(1,"Injection gain");
84 store = new AliMUON1DMap(20000);
85 AliMUONTrackerIO::ReadCapacitances(filename.Data(),*store);
93 AliError("Could not create store");
100 //_____________________________________________________________________________
101 AliMUONTrackerACFDataMaker::~AliMUONTrackerACFDataMaker()
107 //_____________________________________________________________________________
109 AliMUONTrackerACFDataMaker::Merge(TCollection*)
112 AliError("Not implemented. Does it have sense ?");