]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Revert changes for DCSFEEv2
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Nov 2010 16:23:25 +0000 (16:23 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Nov 2010 16:23:25 +0000 (16:23 +0000)
TRD/AliTRDCalibChamberStatus.cxx
TRD/AliTRDCalibChamberStatus.h
TRD/AliTRDCalibViewer.cxx
TRD/AliTRDPreprocessor.cxx
TRD/AliTRDPreprocessor.h
TRD/AliTRDSaxHandler.cxx
TRD/AliTRDSaxHandler.h
TRD/AliTRDcalibDB.cxx

index 08ccbf581cb7eddae21426a79153b15c9c8f01b5..b77db407bf46c6f24bfd25b9936c0725e73097ee 100644 (file)
@@ -17,7 +17,7 @@
 //                                                                        //
 // AliTRDCalibChamberStatus: to determine which half chambers are off     //
 // Produce a AliTRDCalChamberStatus calibration object                    //
-// Check with the AliTRDCalDCSFEEv2 info                                  //
+// Check with the AliTRDCalDCSFEE info                                    //
 //                                                                        //
 //                                                                        //
 // Authors:                                                               //
@@ -49,8 +49,8 @@
 #include "AliTRDSignalIndex.h"
 #include "AliTRDpadPlane.h"
 #include "./Cal/AliTRDCalChamberStatus.h"
-#include "./Cal/AliTRDCalDCSv2.h"
-#include "./Cal/AliTRDCalDCSFEEv2.h"
+#include "./Cal/AliTRDCalDCS.h"
+#include "./Cal/AliTRDCalDCSFEE.h"
 
 #include "AliTRDrawStream.h"
 
@@ -431,14 +431,14 @@ void AliTRDCalibChamberStatus::AnalyseHisto() /*FOLD00*/
 
 }
 //_____________________________________________________________________
-void AliTRDCalibChamberStatus::CheckEORStatus(AliTRDCalDCSv2 *calDCS) /*FOLD00*/
+void AliTRDCalibChamberStatus::CheckEORStatus(AliTRDCalDCS *calDCS) /*FOLD00*/
 {
   //
-  //  Correct the AliTRDCalChamberStatus according to the AliTRDCalDCSv2
+  //  Correct the AliTRDCalChamberStatus according to the AliTRDCalDCS
   //  Using globale state of the HalfChamberMerger (HCM)
   //
   for(Int_t det = 0; det < 540; det++) {
-    AliTRDCalDCSFEEv2* calDCSFEEEOR = calDCS->GetCalDCSFEEObj(det);
+    AliTRDCalDCSFEE* calDCSFEEEOR = calDCS->GetCalDCSFEEObj(det);
 
     if(!calDCSFEEEOR) continue;
     
@@ -603,7 +603,7 @@ TH2D* AliTRDCalibChamberStatus::PlotSparseI(Int_t sm,Int_t side)
 
 }
 //_____________________________________________________________________
-TH2F *AliTRDCalibChamberStatus::MakeHisto2DSmPlEORStatus(AliTRDCalDCSv2 *calDCS, Int_t sm, Int_t pl) /*FOLD00*/
+TH2F *AliTRDCalibChamberStatus::MakeHisto2DSmPlEORStatus(AliTRDCalDCS *calDCS, Int_t sm, Int_t pl) /*FOLD00*/
 {
   //
   //  Plot globale state of the HalfChamberMerger (HCM)
@@ -629,7 +629,7 @@ TH2F *AliTRDCalibChamberStatus::MakeHisto2DSmPlEORStatus(AliTRDCalDCSv2 *calDCS,
   for (Int_t k = 0; k < nstack; k++){
     Int_t det = offsetsmpl+k*6;
     Int_t stac = AliTRDgeometry::GetStack(det);
-    AliTRDCalDCSFEEv2* calDCSFEEEOR = calDCS->GetCalDCSFEEObj(det);
+    AliTRDCalDCSFEE* calDCSFEEEOR = calDCS->GetCalDCSFEEObj(det);
     if(!calDCSFEEEOR) { continue;}
     for (Int_t icol=0; icol<ncols; icol++){
       Int_t nrows = 16;
@@ -682,7 +682,7 @@ TH2F *AliTRDCalibChamberStatus::MakeHisto2DSmPlEORStatus(AliTRDCalDCSv2 *calDCS,
 
 }
 //_____________________________________________________________________________
-TCanvas* AliTRDCalibChamberStatus::PlotHistos2DSmEORStatus(AliTRDCalDCSv2 *calDCS, Int_t sm, const Char_t *name)
+TCanvas* AliTRDCalibChamberStatus::PlotHistos2DSmEORStatus(AliTRDCalDCS *calDCS, Int_t sm, const Char_t *name)
 {
   //
   // Make 2D graph
index da8632a08bcd712fa140932d04fb98e33917fe5f..534f8eb3f5be65c4f1de0470af49af0f945c6ab9 100644 (file)
@@ -21,7 +21,7 @@ class AliRawReader;
 
 class AliTRDCalChamberStatus;
 class AliRawReader;
-class AliTRDCalDCSv2;
+class AliTRDCalDCS;
 
 
 struct eventHeaderStruct;
@@ -40,7 +40,7 @@ public:
     
   void Init();
   void AnalyseHisto();
-  void CheckEORStatus(AliTRDCalDCSv2 *calDCS);
+  void CheckEORStatus(AliTRDCalDCS *calDCS);
 
   void Add(AliTRDCalibChamberStatus *calibChamberStatus);
 
@@ -62,8 +62,8 @@ public:
 
   // Plot
   TH2D *PlotSparseI(Int_t sm, Int_t side);    // Plot fStatus for sm 
-  TH2F *MakeHisto2DSmPlEORStatus(AliTRDCalDCSv2 *calDCS, Int_t sm, Int_t pl);
-  TCanvas *PlotHistos2DSmEORStatus(AliTRDCalDCSv2 *calDCS,Int_t sm, const Char_t *name);
+  TH2F *MakeHisto2DSmPlEORStatus(AliTRDCalDCS *calDCS, Int_t sm, Int_t pl);
+  TCanvas *PlotHistos2DSmEORStatus(AliTRDCalDCS *calDCS,Int_t sm, const Char_t *name);
 
   // Debug
   void     SetDebugLevel(Short_t level)  { fDebugLevel = level;   }
index 0ded89f4300373d069b05b0d15cf53f566373680..c1eba0b49f19d2cded7dcddc22b335fe84e63f61 100644 (file)
@@ -57,8 +57,8 @@
 #include "AliTRDCalChamberStatus.h"
 #include "AliTRDCalSingleChamberStatus.h"
 #include "AliTRDCalPadStatus.h"
-#include "AliTRDCalDCSv2.h"
-#include "AliTRDCalDCSFEEv2.h"
+#include "AliTRDCalDCS.h"
+#include "AliTRDCalDCSFEE.h"
 #include "AliTRDcalibDB.h"
 #include "AliCDBManager.h"
 #include "AliCDBStorage.h"
@@ -920,17 +920,17 @@ Bool_t AliTRDCalibViewer::DumpOCDBtoTreeDetails(const Char_t* runListFilename,
     // DCS FEE information
     TObjArray *dcsArray = 0;
     if(getDCS) {
-      entry = manager->Get("TRD/Calib/DCSv2");
+      entry = manager->Get("TRD/Calib/DCS");
       if(entry) {
         entry->SetOwner(kTRUE);
         dcsArray = (TObjArray*)entry->GetObject();
       }
     }
-    AliTRDCalDCSv2 *dcsSOR = 0;
-    AliTRDCalDCSv2 *dcsEOR = 0;
+    AliTRDCalDCS *dcsSOR = 0;
+    AliTRDCalDCS *dcsEOR = 0;
     if(getDCS && dcsArray) {
-      dcsSOR = (AliTRDCalDCSv2*)dcsArray->At(0);
-      dcsEOR = (AliTRDCalDCSv2*)dcsArray->At(1);
+      dcsSOR = (AliTRDCalDCS*)dcsArray->At(0);
+      dcsEOR = (AliTRDCalDCS*)dcsArray->At(1);
     }
 
     // Alignment information
@@ -1042,8 +1042,8 @@ Bool_t AliTRDCalibViewer::DumpOCDBtoTreeDetails(const Char_t* runListFilename,
           }   // end if(getCalibs)
 
          // get the dcs information
-         AliTRDCalDCSFEEv2 *dcsfeeSOR = 0;
-         AliTRDCalDCSFEEv2 *dcsfeeEOR = 0;
+         AliTRDCalDCSFEE *dcsfeeSOR = 0;
+         AliTRDCalDCSFEE *dcsfeeEOR = 0;
           if(getDCS) {
            if(dcsSOR) dcsfeeSOR = dcsSOR->GetCalDCSFEEObj(chamberNo);
            if(dcsEOR) dcsfeeEOR = dcsEOR->GetCalDCSFEEObj(chamberNo);
index 5ce56f243728ba066bf9f73a5d0df29183b88fce..8170ffe04b15fb34e4cf816678db58529f5c6884 100644 (file)
@@ -55,7 +55,7 @@
 #include "AliTRDCalibChamberStatus.h"
 #include "Cal/AliTRDCalPad.h"
 #include "Cal/AliTRDCalPadStatus.h"
-#include "Cal/AliTRDCalDCSv2.h"
+#include "Cal/AliTRDCalDCS.h"
 #include "Cal/AliTRDCalSingleChamberStatus.h"
 #include "Cal/AliTRDCalChamberStatus.h"
 #include "Cal/AliTRDCalROC.h"
@@ -377,7 +377,7 @@ Bool_t AliTRDPreprocessor::ExtractHalfChamberStatusDAQ()
   if(calPed) {
     //calPed->AnalyseHisto();   // check number of events, create calHalfChamberStatus (done on DAQ)
     if(fCalDCSObjEOR) {
-      calPed->CheckEORStatus((AliTRDCalDCSv2 *)fCalDCSObjEOR);
+      calPed->CheckEORStatus((AliTRDCalDCS *)fCalDCSObjEOR);
     }
     calHalfChamberStatus=(AliTRDCalChamberStatus *)calPed->GetCalChamberStatus();
   }
@@ -1177,7 +1177,7 @@ UInt_t AliTRDPreprocessor::ProcessDCSConfigData()
   // get the calibration object storing the data from the handler
   if (fileExistS) {
     if(fCalDCSObjSOR) delete fCalDCSObjSOR;
-    fCalDCSObjSOR = (AliTRDCalDCSv2 *) saxHandlerS.GetCalDCSObj()->Clone();
+    fCalDCSObjSOR = (AliTRDCalDCS *) saxHandlerS.GetCalDCSObj()->Clone();
     fCalDCSObjSOR->EvaluateGlobalParameters();
     fCalDCSObjSOR->SetRunType(GetRunType());
     fCalDCSObjSOR->SetStartTime(GetStartTimeDCSQuery());
@@ -1188,7 +1188,7 @@ UInt_t AliTRDPreprocessor::ProcessDCSConfigData()
 
   if (fileExistE) {
     if(fCalDCSObjEOR) delete fCalDCSObjEOR;
-    fCalDCSObjEOR = (AliTRDCalDCSv2 *) saxHandlerE.GetCalDCSObj()->Clone();
+    fCalDCSObjEOR = (AliTRDCalDCS *) saxHandlerE.GetCalDCSObj()->Clone();
     fCalDCSObjEOR->EvaluateGlobalParameters();
     fCalDCSObjEOR->SetRunType(GetRunType());
     fCalDCSObjEOR->SetStartTime(GetStartTimeDCSQuery());
@@ -1204,8 +1204,8 @@ UInt_t AliTRDPreprocessor::ProcessDCSConfigData()
   AliCDBMetaData metaData1;
   metaData1.SetBeamPeriod(0);
   metaData1.SetResponsible("Frederick Kramer");
-  metaData1.SetComment("DCS configuration data in two AliTRDCalDCSv2 objects in one TObjArray (0:SOR, 1:EOR).");
-  if (!Store("Calib", "DCSv2", calObjArray, &metaData1, 0, kTRUE)) {
+  metaData1.SetComment("DCS configuration data in two AliTRDCalDCS objects in one TObjArray (0:SOR, 1:EOR).");
+  if (!Store("Calib", "DCS", calObjArray, &metaData1, 0, kTRUE)) {
     Log("problems while storing DCS config data object");
     return 16;
   } else {
index de3df3284879165f93fee99d4b862435ce2365f6..1c51fe736631521c838dd645ec40435dca694485 100644 (file)
@@ -15,7 +15,7 @@
 #include "AliPreprocessor.h"
 
 class TMap;
-class AliTRDCalDCSv2;
+class AliTRDCalDCS;
 class AliTRDCalROC;
 class AliTRDCalSingleChamberStatus;
 
@@ -44,8 +44,8 @@ class AliTRDPreprocessor : public AliPreprocessor
 
  private:
          
-         AliTRDCalDCSv2* fCalDCSObjSOR;    // 
-         AliTRDCalDCSv2* fCalDCSObjEOR;    // 
+         AliTRDCalDCS* fCalDCSObjSOR;    // 
+         AliTRDCalDCS* fCalDCSObjEOR;    // 
 
          Bool_t  fVdriftHLT;             // HLT Vdrift
          UInt_t  ProcessDCSConfigData(); // process DCS configuration
@@ -56,7 +56,7 @@ class AliTRDPreprocessor : public AliPreprocessor
          void   SetDefaultNoise(AliTRDCalROC &calROCNoise, Bool_t second);
          void   SetNoise(AliTRDCalROC &calROCNoise, AliTRDCalROC *calROCNoisePrevious, Bool_t second);
 
-         ClassDef(AliTRDPreprocessor,2)          // The SHUTTLE preprocessor for TRD
+         ClassDef(AliTRDPreprocessor,1)          // The SHUTTLE preprocessor for TRD
 
 };
 #endif
index 488ce8f157471f6e344a6bac6a61cfccdaf830bf..38621ebaf2ff43091993823fbdac8737c90bff9e 100644 (file)
@@ -36,8 +36,8 @@
 #include <TObjArray.h>\r
 #include "AliTRDSaxHandler.h"\r
 #include "AliTRDgeometry.h"\r
-#include "Cal/AliTRDCalDCSv2.h"\r
-#include "Cal/AliTRDCalDCSFEEv2.h"\r
+#include "Cal/AliTRDCalDCS.h"\r
+#include "Cal/AliTRDCalDCSFEE.h"\r
 #include "Cal/AliTRDCalDCSGTU.h"\r
 \r
 ClassImp(AliTRDSaxHandler)\r
@@ -61,7 +61,7 @@ AliTRDSaxHandler::AliTRDSaxHandler()
   ,fDCSFEEObj(0)\r
   ,fDCSPTRObj(0)\r
   ,fDCSGTUObj(0)\r
-  ,fCalDCSObj(new AliTRDCalDCSv2())\r
+  ,fCalDCSObj(new AliTRDCalDCS())\r
   ,fLevel1Tag(-2)\r
   ,fLevel2Tag(-2)\r
   ,fInsideBoardInfo(false)\r
@@ -138,7 +138,7 @@ AliTRDSaxHandler::~AliTRDSaxHandler()
 }\r
 \r
 //_____________________________________________________________________________\r
-AliTRDCalDCSv2* AliTRDSaxHandler::GetCalDCSObj()\r
+AliTRDCalDCS* AliTRDSaxHandler::GetCalDCSObj()\r
 {\r
   // put the arrays in the global calibration object and return this\r
   fCalDCSObj->SetFEEArr(fFEEArr);\r
@@ -324,7 +324,7 @@ void AliTRDSaxHandler::OnStartElement(const char *name, const TList *attributes)
   // if there is a new DCS element put it in the correct array\r
   if (CompareString(tagName, "DCS")) {\r
     if (fSystem == kInsideFEE) {\r
-      fDCSFEEObj = new AliTRDCalDCSFEEv2();\r
+      fDCSFEEObj = new AliTRDCalDCSFEE(name,dcsTitle);\r
       fDCSFEEObj->SetDCSid(dcsId);\r
     }\r
     if (fSystem == kInsidePTR) {\r
index deef0623fdf358bd9198860493aafa19d6e9e2b7..a9653c29d3a09a35270a4580fddd0538319de1ba 100644 (file)
@@ -22,8 +22,8 @@
 #include "Cal/AliTRDCalDCSGTUTmu.h" 
 
 class TObjArray;
-class AliTRDCalDCSv2;
-class AliTRDCalDCSFEEv2;
+class AliTRDCalDCS;
+class AliTRDCalDCSFEE;
 class AliTRDCalDCSPTR;
 class AliTRDCalDCSGTU;
 
@@ -52,56 +52,57 @@ public:
   virtual ~AliTRDSaxHandler();
   AliTRDSaxHandler &operator=(const AliTRDSaxHandler &sh);
 
-  TObjArray*         GetDCSFEEDataArray() const { return fFEEArr;        }
-  TObjArray*         GetDCSPTRDataArray() const { return fPTRArr;        }
-  AliTRDCalDCSv2*    GetCalDCSObj(); // to be called by the preprocessor
+  TObjArray*    GetDCSFEEDataArray() const { return fFEEArr;        }
+  TObjArray*    GetDCSPTRDataArray() const { return fPTRArr;        }
+  AliTRDCalDCS* GetCalDCSObj(); // to be called by the preprocessor
 
-  Int_t              GetHandlerStatus() const { return fHandlerStatus; }
+  Int_t         GetHandlerStatus() const { return fHandlerStatus; }
 
   // functions for all possible events
-  void               OnStartDocument() const;
-  void               OnEndDocument() const;
-  void               OnStartElement(const char *name, const TList *attributes);
-  void               OnEndElement(const char *name);
-  void               OnCharacters(const char *name);
-  void               OnComment(const char *name) const;
-  void               OnWarning(const char *name);
-  void               OnError(const char *name);
-  void               OnFatalError(const char *name);
-  void               OnCdataBlock(const char *name, Int_t len) const;
+  void          OnStartDocument() const;
+  void          OnEndDocument() const;
+  void          OnStartElement(const char *name, const TList *attributes);
+  void          OnEndElement(const char *name);
+  void          OnCharacters(const char *name);
+  void          OnComment(const char *name) const;
+  void          OnWarning(const char *name);
+  void          OnError(const char *name);
+  void          OnFatalError(const char *name);
+  void          OnCdataBlock(const char *name, Int_t len) const;
 
  private:
 
-  bool               CompareString(TString str, const char *str2); 
-
-  Int_t              fHandlerStatus;      // 0: everything OK, >0: error
-  Int_t              fNDCSPTR;            // number of current PTR unit (to be abandonned soon)
-  Int_t              fNDCSGTU;            // number of current GTU unit (to be abandonned soon)
-  TObjArray*         fFEEArr;             // array of AliTRDCalDCSFEEv2 objects
-  TObjArray*         fPTRArr;             // array of AliTRDCalDCSPTR objects
-  //   TObjArray*       fGTUArr;        // array of AliTRDCalDCSGTU objects
-  Int_t              fSystem;             // current system (FEE/PTR/GTU) (while parsing)
-  Int_t              fInsideRstate;       // if we are inside rstate (while parsing)
-  Int_t              fCurrentSM;          // current supermodule (while parsing)
-  Int_t              fCurrentStack;       // current stack (while parsing)
-  Int_t              fCurrentROB;         // current ROB (while parsing)
-  Int_t              fCurrentMCM;         // current MCM (while parsing)
-  Int_t              fCurrentADC;         // current ADC (while parsing)
-  TString            fContent;            // content of the xml element (text)
-  AliTRDCalDCSFEEv2* fDCSFEEObj;          // the calib object for one FEE DCS board
-  AliTRDCalDCSPTR*   fDCSPTRObj;          // the calib object for one PTR DCS board
-  AliTRDCalDCSGTU*   fDCSGTUObj;          // the calib object for one GTU DCS board
-  AliTRDCalDCSv2*    fCalDCSObj;          // the complete calib obj containing all info
-  Int_t              fLevel1Tag;          // 1st level in XML (while parsing)
-  Int_t              fLevel2Tag;          // 2nd level in XML (while parsing)
-  Bool_t             fInsideBoardInfo;    // if we are inside BoardInfo (while parsing)
+  bool           CompareString(TString str, const char *str2); 
+
+  Int_t            fHandlerStatus;      // 0: everything OK, >0: error
+  Int_t            fNDCSPTR;            // number of current PTR unit (to be abandonned soon)
+  Int_t            fNDCSGTU;            // number of current GTU unit (to be abandonned soon)
+  TObjArray*       fFEEArr;             // array of AliTRDCalDCSFEE objects
+  TObjArray*       fPTRArr;             // array of AliTRDCalDCSPTR objects
+//   TObjArray*       fGTUArr;        // array of AliTRDCalDCSGTU objects
+  Int_t            fSystem;             // current system (FEE/PTR/GTU) (while parsing)
+  Int_t            fInsideRstate;       // if we are inside rstate (while parsing)
+  Int_t            fCurrentSM;          // current supermodule (while parsing)
+  Int_t            fCurrentStack;       // current stack (while parsing)
+  Int_t            fCurrentROB;         // current ROB (while parsing)
+  Int_t            fCurrentMCM;         // current MCM (while parsing)
+  Int_t            fCurrentADC;         // current ADC (while parsing)
+  TString          fContent;            // content of the xml element (text)
+  AliTRDCalDCSFEE* fDCSFEEObj;          // the calib object for one FEE DCS board
+  AliTRDCalDCSPTR* fDCSPTRObj;          // the calib object for one PTR DCS board
+  AliTRDCalDCSGTU* fDCSGTUObj;          // the calib object for one GTU DCS board
+  AliTRDCalDCS*    fCalDCSObj;          // the complete calib obj containing all info
+  Int_t            fLevel1Tag;          // 1st level in XML (while parsing)
+  Int_t            fLevel2Tag;          // 2nd level in XML (while parsing)
+  Bool_t           fInsideBoardInfo;    // if we are inside BoardInfo (while parsing)
 
   AliTRDCalDCSGTUTmu*       fTmu;       // GTU calibration data: pattern generator
   AliTRDCalDCSGTUCtpOpc*    fCtpOpc;    // GTU calibration data: OPC
   AliTRDCalDCSGTUSegment*   fSegment;   // GTU calibration data: SMU tracklets/tracks/triggers
   AliTRDCalDCSGTUBoardInfo* fBoardInfo; // GTU calibration data: hard-/software and type
+  
 
-  ClassDef(AliTRDSaxHandler,3);         // The XML file handler for the preprocessor
+  ClassDef(AliTRDSaxHandler,2);         // The XML file handler for the preprocessor
 };
 #endif
 
index 220d688c3fb02d8b6b300a1cd2eb80a21c50acc2..2cfdea203eb3df15d721af12cd4f9b5b57748c8b 100644 (file)
@@ -41,7 +41,6 @@
 #include "Cal/AliTRDCalPad.h"
 #include "Cal/AliTRDCalDet.h"
 #include "Cal/AliTRDCalDCS.h"
-#include "Cal/AliTRDCalDCSv2.h"
 #include "Cal/AliTRDCalPID.h"
 #include "Cal/AliTRDCalMonitoring.h"
 #include "Cal/AliTRDCalChamberStatus.h"
@@ -249,10 +248,7 @@ const TObject *AliTRDcalibDB::GetCachedCDBObject(Int_t id)
       return CacheCDBEntry(kIDFEE               ,"TRD/Calib/FEE"); 
       break;
     case kIDDCS :
-      if (GetCDBEntry("TRD/Calib/DCSv2"))
-       return CacheCDBEntry(kIDDCS             ,"TRD/Calib/DCSv2");
-      else
-       return CacheCDBEntry(kIDDCS             ,"TRD/Calib/DCS");
+      return CacheCDBEntry(kIDDCS               ,"TRD/Calib/DCS");
       break;
     case kIDPIDNN : 
       return CacheCDBEntry(kIDPIDNN             ,"TRD/Calib/PIDNN");
@@ -760,45 +756,23 @@ Int_t AliTRDcalibDB::GetNumberOfTimeBinsDCS()
     return nUndef;
   }
 
-  if (GetCDBEntry("TRD/Calib/DCSv2")) {
-    // if there is a DCSv2 object
-    const AliTRDCalDCSv2 *calDCSsorv2 = dynamic_cast<const AliTRDCalDCSv2 *>(dcsArr->At(0));
-    const AliTRDCalDCSv2 *calDCSeorv2 = dynamic_cast<const AliTRDCalDCSv2 *>(dcsArr->At(1));
+  const AliTRDCalDCS *calDCSsor = dynamic_cast<const AliTRDCalDCS *>(dcsArr->At(0));
+  const AliTRDCalDCS *calDCSeor = dynamic_cast<const AliTRDCalDCS *>(dcsArr->At(1));
 
-    if (!calDCSsorv2) {
-      // the SOR file is mandatory
-      AliError("NO SOR AliTRDCalDCSv2 object found in CDB file!");
-      return nUndef;
-    }
-
-    if (!calDCSeorv2) {
-      // this can happen if the run is shorter than a couple of seconds.
-      AliWarning("NO EOR AliTRDCalDCSv2 object found in CDB file.");
-    }
-
-    // get the numbers
-    nTbSor = calDCSsorv2->GetGlobalNumberOfTimeBins();
-    if (calDCSeorv2) nTbEor = calDCSeorv2->GetGlobalNumberOfTimeBins();
-  } else {
-    // if there is a DCS object
-    const AliTRDCalDCS *calDCSsor = dynamic_cast<const AliTRDCalDCS *>(dcsArr->At(0));
-    const AliTRDCalDCS *calDCSeor = dynamic_cast<const AliTRDCalDCS *>(dcsArr->At(1));
-
-    if (!calDCSsor) {
-      // the SOR file is mandatory
-      AliError("NO SOR AliTRDCalDCS object found in CDB file!");
-      return nUndef;
+  if (!calDCSsor) {
+    // the SOR file is mandatory
+    AliError("NO SOR AliTRDCalDCS object found in CDB file!");
+    return nUndef;
     }
 
-    if (!calDCSeor) {
-      // this can happen if the run is shorter than a couple of seconds.
-      AliWarning("NO EOR AliTRDCalDCS object found in CDB file.");
+  if (!calDCSeor) {
+    // this can happen if the run is shorter than a couple of seconds.
+    AliWarning("NO EOR AliTRDCalDCS object found in CDB file.");
     }
 
-    // get the numbers
-    nTbSor = calDCSsor->GetGlobalNumberOfTimeBins();
-    if (calDCSeor) nTbEor = calDCSeor->GetGlobalNumberOfTimeBins();
-  }
+  // get the numbers
+  nTbSor = calDCSsor->GetGlobalNumberOfTimeBins();
+  if (calDCSeor) nTbEor = calDCSeor->GetGlobalNumberOfTimeBins();
 
   // if they're the same return the value
   // -2 means mixed, -1: no data, >= 0: good number of time bins
@@ -830,23 +804,13 @@ void AliTRDcalibDB::GetFilterType(TString &filterType)
     filterType = "";
     return;
   }
-  if (GetCDBEntry("TRD/Calib/DCSv2")) {
-    const AliTRDCalDCSv2 *calDCSv2 = dynamic_cast<const AliTRDCalDCSv2 *>(dcsArr->At(0)); // Take SOR
-
-    if(!calDCSv2){
-      filterType = "";
-      return;
-    } 
-    filterType = calDCSv2->GetGlobalFilterType();
-  } else {
-    const AliTRDCalDCS *calDCS = dynamic_cast<const AliTRDCalDCS *>(dcsArr->At(0)); // Take SOR
-
-    if(!calDCS){
-      filterType = "";
-      return;
-    } 
-    filterType = calDCS->GetGlobalFilterType();
-  }
+  const AliTRDCalDCS *calDCS = dynamic_cast<const AliTRDCalDCS *>(dcsArr->At(1)); // Take EOR
+  
+  if(!calDCS){
+    filterType = "";
+    return;
+  } 
+  filterType = calDCS->GetGlobalFilterType();
 }
 
 //_____________________________________________________________________________
@@ -859,24 +823,13 @@ void AliTRDcalibDB::GetGlobalConfiguration(TString &config){
     config = "";
     return;
   }
-
-  if (GetCDBEntry("TRD/Calib/DCSv2")) {
-    const AliTRDCalDCSv2 *calDCSv2 = dynamic_cast<const AliTRDCalDCSv2 *>(dcsArr->At(0)); // Take SOR
-
-    if(!calDCSv2){
-      config = "";
-      return;
-    } 
-    config = calDCSv2->GetGlobalConfigName();
-  } else {
-    const AliTRDCalDCS *calDCS = dynamic_cast<const AliTRDCalDCS *>(dcsArr->At(0)); // Take SOR
-
-    if(!calDCS){
-      config = "";
-      return;
-    } 
-    config = calDCS->GetGlobalConfigName();
-  }
+  const AliTRDCalDCS *calDCS = dynamic_cast<const AliTRDCalDCS *>(dcsArr->At(1)); // Take EOR
+  
+  if(!calDCS){
+    config = "";
+    return;
+  } 
+  config = calDCS->GetGlobalConfigName();
 }
 
 //_____________________________________________________________________________