Fixed THERMUS output format
authormfloris <michele.floris@cern.ch>
Tue, 1 Apr 2014 13:33:51 +0000 (15:33 +0200)
committermfloris <michele.floris@cern.ch>
Tue, 1 Apr 2014 13:33:51 +0000 (15:33 +0200)
Thermus wants a single tab insted of whitespaces

PWGLF/ThermalFits/AliParticleYield.cxx

index 0013b24..b0791f0 100644 (file)
@@ -478,17 +478,17 @@ void AliParticleYield::WriteThermusFile(TClonesArray * arr, const char * filenam
     
     if(part->IsTypeRatio()) { 
       // If it's a ratio we have to write the 2 pdg codes
-      fileOut << FormatCol(Form("%d %d ",part->GetPdgCode(), part->GetPdgCode2())                              , colwidth) 
-             << FormatCol(part->GetTag()                                                                      , colwidth)
-             << FormatCol(Form(format, RoundToSignificantFigures(part->GetYield()      , fSignificantDigits)) , colwidth)
-             << FormatCol(Form(format, RoundToSignificantFigures(part->GetTotalError() , fSignificantDigits)) , colwidth)
+      fileOut << FormatCol(Form("%d\t%d\t",part->GetPdgCode(), part->GetPdgCode2())                              , colwidth) 
+             << part->GetTag() << "\t"
+             << Form(format, RoundToSignificantFigures(part->GetYield()      , fSignificantDigits)) << "\t"
+             << Form(format, RoundToSignificantFigures(part->GetTotalError() , fSignificantDigits)) 
              << endl;
     }
     else {
-      fileOut << FormatCol(Form("%d",part->GetPdgCode())                                                       , colwidth) 
-             << FormatCol(part->GetTag()                                                                      , colwidth)
-             << FormatCol(Form(format, RoundToSignificantFigures(part->GetYield()      , fSignificantDigits)) , colwidth)
-             << FormatCol(Form(format, RoundToSignificantFigures(part->GetTotalError() , fSignificantDigits)) , colwidth)
+      fileOut <<Form("%d",part->GetPdgCode())                                                       << "\t" 
+             <<part->GetTag()                                                                      << "\t"
+             <<Form(format, RoundToSignificantFigures(part->GetYield()      , fSignificantDigits)) << "\t"
+             <<Form(format, RoundToSignificantFigures(part->GetTotalError() , fSignificantDigits)) 
              << endl;      
     }