}
-AliOADBFillingScheme::AliOADBFillingScheme(const AliOADBFillingScheme& cont) {
- // Copy ctor
- AliError("To be implemented");
-}
-
-AliOADBFillingScheme& AliOADBFillingScheme::operator=(const AliOADBFillingScheme& cont) {
- //Assignment operator
- AliError("To be implemented");
-}
+// AliOADBFillingScheme::AliOADBFillingScheme(const AliOADBFillingScheme& cont) {
+// // Copy ctor
+// AliError("To be implemented");
+// }
+
+// AliOADBFillingScheme& AliOADBFillingScheme::operator=(const AliOADBFillingScheme& cont) {
+// //Assignment operator
+// AliError("To be implemented");
+// }
// Getters
{
// Returns the bunch crossing numbers for the different beam classes. By default this is empty
- if (!strcmp(beamSide, "AC")) {
+ if( !strcmp(beamSide,"ACE") && !(TObjString*)fBXIds->GetValue(beamSide))
+ AliWarning("Beware, no correction for the BXIDs for ACE");
- TString bxa = ((TObjString*)fBXIds->GetValue("A"))->String();
- TString bxc = ((TObjString*)fBXIds->GetValue("C"))->String();
- if(!bxa && !bxc) return "";
- if(!bxc) return bxa.Data();
- if(!bxa) return bxa.Data();
- TString bxBoth = bxa.Data();
+ if (!strcmp(beamSide, "AC") && !(TObjString*)fBXIds->GetValue(beamSide)) {
+
+ TString &bxa = ((TObjString*)fBXIds->GetValue("A"))->String();
+ TString &bxc = ((TObjString*)fBXIds->GetValue("C"))->String();
+ if(bxa.IsNull() && bxc.IsNull()) return "";
+ if(bxc.IsNull()) return bxa.Data();
+ if(bxa.IsNull()) return bxc.Data();
+ static TString bxBoth = bxa.Data();
bxBoth += bxc.Data();
return bxBoth.Data();
}
- TString bx = ((TObjString*)fBXIds->GetValue(beamSide))->String();
- if(!bx) return "";
+ if(!(TObjString*)fBXIds->GetValue(beamSide)) return "";
+
+ TString &bx = ((TObjString*)fBXIds->GetValue(beamSide))->String();
+ if(bx.IsNull()) return "";
return bx.Data();
}
}
b->Add(folder);
delete tokIter;
+ delete tokens;
}
delete mapIter;
}
void AliOADBFillingScheme::Print(Option_t* option) const {
// Print Class contents
// Option is passed to TMap::Print
- cout << "Filling scheme Name " << fFSName.Data() << endl;
+ cout << "Filling scheme Name " << fFSName.Data() << option << endl;
fBXIds->Print(option);
}