adding standard aliases
authormivanov <marian.ivanov@cern.ch>
Thu, 4 Sep 2014 13:30:25 +0000 (15:30 +0200)
committermivanov <marian.ivanov@cern.ch>
Tue, 28 Oct 2014 23:13:06 +0000 (00:13 +0100)
TPC/Base/AliTPCcalibDButil.cxx

index f6f07d0..250e858 100644 (file)
@@ -3203,25 +3203,34 @@ TTree* AliTPCcalibDButil::ConnectGainTrees(TString baseDir)
 //     }
   
     tMain->SetAlias((friendName+".spectrMean_LTMRatio").Data(),
-                    TString::Format("(%s.spectrMean.fElements/%s.spectrMean_LTM)",
+                    TString::Format("(%s.spectrMean.fElements/(%s.spectrMean_LTM+0))",
                                     friendName.Data(),friendName.Data()).Data());
     
     tMain->SetAlias((friendName+".spectrMean_MedianRatio").Data(),
-                    TString::Format("(%s.spectrMean.fElements/%s.spectrMean_Median)",
+                    TString::Format("(%s.spectrMean.fElements/(%s.spectrMean_Median+0))",
                                     friendName.Data(),friendName.Data()).Data());
     tMain->SetAlias((friendName+".spectrMean_MeanRatio").Data(),
-                    TString::Format("(%s.spectrMean.fElements/%s.spectrMean_Mean)",
+                    TString::Format("(%s.spectrMean.fElements/(%s.spectrMean_Mean+0))",
                                     friendName.Data(),friendName.Data()).Data());
 
     tMain->SetAlias((friendName+".fitMean_LTMRatio").Data(),
-                    TString::Format("(%s.fitMean.fElements/%s.fitMean_LTM)",
+                    TString::Format("(%s.fitMean.fElements/(%s.fitMean_LTM+0))",
+                                    friendName.Data(),friendName.Data()).Data());
+    tMain->SetAlias((friendName+".fitRMS_LTMRatio").Data(),
+                    TString::Format("(%s.fitRMS.fElements/(%s.fitRMS_LTM+0))",
                                     friendName.Data(),friendName.Data()).Data());
     
     tMain->SetAlias((friendName+".fitMean_MedianRatio").Data(),
-                    TString::Format("(%s.fitMean.fElements/%s.fitMean_Median)",
+                    TString::Format("(%s.fitMean.fElements/(%s.fitMean_Median+0))",
+                                    friendName.Data(),friendName.Data()).Data());
+    tMain->SetAlias((friendName+".fitRMS_MedianRatio").Data(),
+                    TString::Format("(%s.fitRMS.fElements/(%s.fitRMS_Median+0))",
                                     friendName.Data(),friendName.Data()).Data());
     tMain->SetAlias((friendName+".fitMean_MeanRatio").Data(),
-                    TString::Format("(%s.fitMean.fElements/%s.fitMean_Mean)",
+                    TString::Format("(%s.fitMean.fElements/(%s.fitMean_Mean+0))",
+                                    friendName.Data(),friendName.Data()).Data());
+    tMain->SetAlias((friendName+".fitRMS_MeanRatio").Data(),
+                    TString::Format("(%s.fitRMS.fElements/(%s.fitRMS_Mean+0))",
                                     friendName.Data(),friendName.Data()).Data());
     
   }