OADB classes and root files for the physics selection
authormfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Apr 2011 09:12:38 +0000 (09:12 +0000)
committermfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Apr 2011 09:12:38 +0000 (09:12 +0000)
OADB/AliOADBContainer.cxx
OADB/AliOADBContainer.h
OADB/CMakelibOADB.pkg
OADB/COMMON/PHYSICSSELECTION/data/physicsSelection.root [new file with mode: 0644]
OADB/OADBLinkDef.h
OADB/PWG2/SPECTRA/spectraResults.root

index f1f8183..30bf5b7 100644 (file)
@@ -171,7 +171,7 @@ void AliOADBContainer::UpdateObject(Int_t idx, TObject* obj, Int_t lower, Int_t
   // Check that there is no overlap with existing run ranges  
   Int_t index = HasOverlap(lower, upper);
   if (index != -1) {
-    AliFatal(Form("Ambiguos validity range (%5d) !\n", index));
+    AliFatal(Form("Ambiguos validity range (%5d, %5.5d-%5.5d) !\n", index,lower,upper));
     return;
   }
   //
@@ -218,7 +218,7 @@ Int_t AliOADBContainer::GetIndexForRun(Int_t run) const
   return index;
 }
 
-TObject* AliOADBContainer::GetObject(Int_t run, char* def) const
+TObject* AliOADBContainer::GetObject(Int_t run, const char* def) const
 {
   // Return object for given run or default if not found
   TObject* obj = 0;
index b6a5922..6dfd6c9 100644 (file)
@@ -40,9 +40,9 @@ class AliOADBContainer : public TNamed {
   Int_t GetNumberOfEntries()    const {return fEntries;}
   Int_t LowerLimit(Int_t idx)   const {return fLowerLimits[idx];}
   Int_t UpperLimit(Int_t idx)   const {return fUpperLimits[idx];}
-  TObject* GetObject(Int_t run, char* def = "") const;
+  TObject* GetObject(Int_t run, const char* def = "") const;
   TObject* GetObjectByIndex(Int_t run) const;
-  TObject* GetDefaultObject(char* key) 
+  TObject* GetDefaultObject(const char* key) 
   {return(fDefaultList->FindObject(key));}
 // Debugging  
   void List();
index b43cfe7..d10b3c5 100644 (file)
@@ -1,5 +1,5 @@
 #-*- Mode: CMake -*-
-set ( SRCS  AliOADBContainer.cxx AliOADBCentrality.cxx AliOADBPWG2Spectra.cxx)
+set ( SRCS  AliOADBContainer.cxx AliOADBCentrality.cxx  AliOADBPWG2Spectra.cxx AliOADBPhysicsSelection.cxx AliOADBFillingScheme.cxx)
 
 string(REPLACE ".cxx" ".h" HDRS  "${SRCS}")
 
diff --git a/OADB/COMMON/PHYSICSSELECTION/data/physicsSelection.root b/OADB/COMMON/PHYSICSSELECTION/data/physicsSelection.root
new file mode 100644 (file)
index 0000000..89bb0c7
Binary files /dev/null and b/OADB/COMMON/PHYSICSSELECTION/data/physicsSelection.root differ
index 60f6807..6e4e302 100644 (file)
@@ -11,5 +11,8 @@
 
 #pragma link C++ class AliOADBContainer+;
 #pragma link C++ class AliOADBCentrality+;
+#pragma link C++ class AliOADBPhysicsSelection+;
+#pragma link C++ class AliOADBFillingScheme+;
 #pragma link C++ class AliOADBPWG2Spectra+;
+
 #endif
index 54977a4..055a8f2 100644 (file)
Binary files a/OADB/PWG2/SPECTRA/spectraResults.root and b/OADB/PWG2/SPECTRA/spectraResults.root differ