//______________________________________________________________________________________________
-TTree * AliTPCGenDBTemp::ReadListTree(const char *fname, const char *title,
- const TString& amandaString) {
+TTree * AliTPCGenDBTemp::ReadListTree(const char *fname, const char *title) {
//
// read values from ascii file
//
TTree* tree = new TTree(title,title);
tree->ReadFile(fname,"");
- TClonesArray *arr;
- if ( amandaString.Length()== 0 ) {
- arr = AliTPCSensorTemp::ReadTree(tree);
- } else {
- arr = AliTPCSensorTemp::ReadTree(tree,amandaString);
- }
- arr->Delete();
- delete arr;
return tree;
}
+
//______________________________________________________________________________________________
void AliTPCGenDBTemp::MakeConfig(const char *file, Int_t firstRun, Int_t lastRun,
- const char *confDir, const TString& amandaString)
+ const char *confDir)
{
//
// Store Configuration file to OCDB
//
- TTree *tree = ReadListTree(file,"tempConf",amandaString);
+ TTree *tree = ReadListTree(file,"tempConf");
SetConfTree(tree);
SetFirstRun(firstRun);
SetLastRun(lastRun);
const TTimeStamp& endTime, Int_t run,
const TString& amandaString=0);
void MakeConfig(const char *file, Int_t firstRun, Int_t lastRun,
- const char *confDir, const TString& amandaString=0);
+ const char *confDir);
// functionality
static TClonesArray* ReadList(const char* fname, const char *title="tempConf",
const TString& amandaString=0);
- static TTree* ReadListTree(const char* fname, const char *title="tempConf",
- const TString& amandaString=0);
+ static TTree* ReadListTree(const char* fname, const char *title="tempConf");
// getters/setters
if (source == "DAQHLT" ) numSources=2;
UInt_t pedestalResult=0;
for (Int_t i=0; i<numSources; i++ ) {
- UInt_t pedestalResult = ExtractPedestals(pedestalSource[i]);
+ pedestalResult = ExtractPedestals(pedestalSource[i]);
if ( pedestalResult == 0 ) break;
}
result += pedestalResult;