]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
accomodate 'x' for missing DCS point in DDL status string (MakeDeadMap)
authorhaavard <haavard@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Mar 2010 14:33:23 +0000 (14:33 +0000)
committerhaavard <haavard@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Mar 2010 14:33:23 +0000 (14:33 +0000)
TPC/AliTPCcalibDB.cxx
TPC/AliTPCcalibDB.h

index 73a4649b8fd8d66a760e1b7ee3ee0ea3f89e8e5d..e056a3dfafaa094e1053aaf917844281af5b6766 100644 (file)
@@ -1825,11 +1825,14 @@ Double_t AliTPCcalibDB::GetVDriftCorrectionGy(Int_t timeStamp, Int_t run, Int_t
   return -result/250.; //normalized before
 }
 
-AliTPCCalPad* AliTPCcalibDB::MakeDeadMap(const char* nameMappingFile) {
+AliTPCCalPad* AliTPCcalibDB::MakeDeadMap(Double_t notInMap, const char* nameMappingFile) {
 //
 //   Read list of active DDLs from OCDB entry
 //   Generate and return AliTPCCalPad containing 1 for all pads in active DDLs,
 //   0 for all pads in non-active DDLs. 
+//   For DDLs with missing status information (no DCS input point to Shuttle),
+//     the value of the AliTPCCalPad entry is determined by the parameter
+//     notInMap (default value 1)
 //
   char chinfo[1000];
    
@@ -1882,7 +1885,11 @@ AliTPCCalPad* AliTPCcalibDB::MakeDeadMap(const char* nameMappingFile) {
            Int_t row       = mapping->GetPadRow(patch, hwadd);        // row in a ROC (IROC or OROC)
 //              Int_t globalrow = mapping.GetGlobalPadRow(patch, hwadd);  // row in full sector (IROC plus OROC)
            Int_t pad       = mapping->GetPad(patch, hwadd);
-           active=TString(arrDDL[i]).Atof();
+           if (!TString(arrDDL[i]).IsDigit()) {
+             active = notInMap;
+           } else { 
+              active=TString(arrDDL[i]).Atof();
+          }
            calRoc->SetValue(row,pad,active);
          } // end channel for loop
         } // end altro for loop
index be7469f3aafa0faceed45bfa489bde5603b34335..3ae3a0cc3b0083e6481c969dec5b3c4ecf435d12 100644 (file)
@@ -153,7 +153,7 @@ class AliTPCcalibDB : public TObject
   //
   //
   
-  AliTPCCalPad* MakeDeadMap(const char *nameMappingFile="$ALICE_ROOT/TPC/Calib/tpcMapping.root");
+  AliTPCCalPad* MakeDeadMap(Double_t notInMap=1, const char *nameMappingFile="$ALICE_ROOT/TPC/Calib/tpcMapping.root" );
   AliGRPObject * MakeGRPObjectFromMap(TMap *map);
   AliCTPTimeParams* GetCTPTimeParams() const {return fCTPTimeParams;}
   //Create a tree suited for diplaying with the AliTPCCalibViewerGUI