+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * *
+ * Author: The ALICE Off-line Project. *
+ * Contributors are mentioned in the code where appropriate. *
+ * *
+ * Permission to use, copy, modify and distribute this software and its *
+ * documentation strictly for non-commercial purposes is hereby granted *
+ * without fee, provided that the above copyright notice appears in all *
+ * copies and that both the copyright notice and this permission notice *
+ * appear in the supporting documentation. The authors make no claims *
+ * about the suitability of this software for any purpose. It is *
+ * provided "as is" without express or implied warranty. *
+ **************************************************************************/
+
+/* $Id$ */
+
#include "AliHBTPIDPurityFctns.h"
+#include "AliLog.h"
+
//_______________________________________________________________________________
/////////////////////////////////////////////////////////////////////////////////
//
}
/******************************************************************/
-void AliHBTMonPIDPurityVsPtFctn::Write()
+Int_t AliHBTMonPIDPurityVsPtFctn::Write(const char*,Int_t, Int_t)
{
//Writes a fucntion results
AliHBTMonitorFunction::Write();
fGood->Write();
fAll->Write();
+ return 0;
}
/******************************************************************/
void AliHBTMonPIDPurityVsPtFctn::Init()
{
//Initializes fuction
- if (AliVAODParticle::GetDebug()>0) Info("Init","%s",GetName());
+ AliDebug(1,"Entering");
if (fResult == 0x0)
{
- Warning("Init","Function has NULL result histogram!");
+ AliWarning("Function has NULL result histogram!");
return;
}
fAll->SetDirectory(0x0);
fAll->Sumw2();
- if (AliVAODParticle::GetDebug()>0) Info("Init","%s Done.",GetName());
+ AliDebug(1,"Done");
}
/******************************************************************/
}
/******************************************************************/
-void AliHBTMonPIDContaminationVsPtFctn::Write()
+Int_t AliHBTMonPIDContaminationVsPtFctn::Write(const char*,Int_t, Int_t)
{
//Writes the function results
AliHBTMonitorFunction::Write();
fWrong->Write();
fAll->Write();
+ return 0;
}
/******************************************************************/
void AliHBTMonPIDContaminationVsPtFctn::Init()
{
//Initializes fuction
- if (AliVAODParticle::GetDebug()>0) Info("Init","%s",GetName());
+ AliDebug(1,"Entering");
if (fResult == 0x0)
{
- Warning("Init","Function has NULL result histogram!");
+ AliWarning("Function has NULL result histogram!");
return;
}
fAll->SetDirectory(0x0);
fAll->Sumw2();
- if (AliVAODParticle::GetDebug()>0) Info("Init","%s Done.",GetName());
+ AliDebug(1,"Done");
}
/******************************************************************/
trackpair = CheckPair(trackpair);
if (trackpair == 0x0) return;
- partpair = CheckPair(partpair);
+// partpair = CheckPair(partpair);
if (partpair == 0x0) return;
fNumerator->Fill(trackpair->GetQInv());
trackpair = CheckPair(trackpair);
if (trackpair == 0x0) return;
- partpair = CheckPair(partpair);
+// partpair = CheckPair(partpair);
if (partpair == 0x0) return;
fDenominator->Fill(trackpair->GetQInv());
trackpair = CheckPair(trackpair);
if (trackpair == 0x0) return;
- partpair = CheckPair(partpair);
+// partpair = CheckPair(partpair);
if (partpair == 0x0) return;
fNumerator->Fill(trackpair->GetQInv(),partpair->GetWeight());
trackpair = CheckPair(trackpair);
if (trackpair == 0x0) return;
- partpair = CheckPair(partpair);
+// partpair = CheckPair(partpair);
if (partpair == 0x0) return;
fDenominator->Fill(trackpair->GetQInv());
trackpair = CheckPair(trackpair);
if (trackpair == 0x0) return;
- partpair = CheckPair(partpair);
+// partpair = CheckPair(partpair);
if (partpair == 0x0) return;
+
Double_t weight = partpair->GetWeight();
- Double_t out = TMath::Abs(trackpair->GetQOutLCMS());
- Double_t side = TMath::Abs(trackpair->GetQSideLCMS());
- Double_t lon = TMath::Abs(trackpair->GetQLongLCMS());
+ Double_t out = trackpair->GetQOutLCMS();
+ Double_t side = trackpair->GetQSideLCMS();
+ Double_t lon = trackpair->GetQLongLCMS();
+
+ if (fAbs)
+ {
+ out = TMath::Abs(out);
+ side = TMath::Abs(side);
+ lon = TMath::Abs(lon);
+ }
fNumerator->Fill(out,side,lon,weight);
}
/*************************************************************/
trackpair = CheckPair(trackpair);
if (trackpair == 0x0) return;
- partpair = CheckPair(partpair);
+// partpair = CheckPair(partpair);
if (partpair == 0x0) return;
- Double_t out = TMath::Abs(trackpair->GetQOutLCMS());
- Double_t side = TMath::Abs(trackpair->GetQSideLCMS());
- Double_t lon = TMath::Abs(trackpair->GetQLongLCMS());
+ Double_t out = trackpair->GetQOutLCMS();
+ Double_t side = trackpair->GetQSideLCMS();
+ Double_t lon = trackpair->GetQLongLCMS();
+
+ if (fAbs)
+ {
+ out = TMath::Abs(out);
+ side = TMath::Abs(side);
+ lon = TMath::Abs(lon);
+ }
fDenominator->Fill(out,side,lon);
}
/******************************************************************/
trackpair = CheckPair(trackpair);
if (trackpair == 0x0) return;
- partpair = CheckPair(partpair);
+// partpair = CheckPair(partpair);
if (partpair == 0x0) return;
- Double_t out = TMath::Abs(trackpair->GetQOutLCMS());
- Double_t side = TMath::Abs(trackpair->GetQSideLCMS());
- Double_t lon = TMath::Abs(trackpair->GetQLongLCMS());
+ Double_t out = trackpair->GetQOutLCMS();
+ Double_t side = trackpair->GetQSideLCMS();
+ Double_t lon = trackpair->GetQLongLCMS();
+
+ if (fAbs)
+ {
+ out = TMath::Abs(out);
+ side = TMath::Abs(side);
+ lon = TMath::Abs(lon);
+ }
fNumerator->Fill(out,side,lon);
}
/*************************************************************/
trackpair = CheckPair(trackpair);
if (trackpair == 0x0) return;
- partpair = CheckPair(partpair);
+// partpair = CheckPair(partpair);
if (partpair == 0x0) return;
- Double_t out = TMath::Abs(trackpair->GetQOutLCMS());
- Double_t side = TMath::Abs(trackpair->GetQSideLCMS());
- Double_t lon = TMath::Abs(trackpair->GetQLongLCMS());
+ Double_t out = trackpair->GetQOutLCMS();
+ Double_t side = trackpair->GetQSideLCMS();
+ Double_t lon = trackpair->GetQLongLCMS();
+
+ if (fAbs)
+ {
+ out = TMath::Abs(out);
+ side = TMath::Abs(side);
+ lon = TMath::Abs(lon);
+ }
fDenominator->Fill(out,side,lon);
}
/******************************************************************/
pair = CheckPair(pair);
if (pair == 0x0) return;
Double_t weight = pair->GetPIDProb();
- Double_t out = TMath::Abs(pair->GetQOutLCMS());
- Double_t side = TMath::Abs(pair->GetQSideLCMS());
- Double_t lon = TMath::Abs(pair->GetQLongLCMS());
+ Double_t out = pair->GetQOutLCMS();
+ Double_t side = pair->GetQSideLCMS();
+ Double_t lon = pair->GetQLongLCMS();
+
+ if (fAbs)
+ {
+ out = TMath::Abs(out);
+ side = TMath::Abs(side);
+ lon = TMath::Abs(lon);
+ }
+
fNumerator->Fill(out,side,lon,weight);
}
/*************************************************************/
pair = CheckPair(pair);
if (pair == 0x0) return;
Double_t weight = pair->GetPIDProb();
- Double_t out = TMath::Abs(pair->GetQOutLCMS());
- Double_t side = TMath::Abs(pair->GetQSideLCMS());
- Double_t lon = TMath::Abs(pair->GetQLongLCMS());
+ Double_t out = pair->GetQOutLCMS();
+ Double_t side = pair->GetQSideLCMS();
+ Double_t lon = pair->GetQLongLCMS();
+
+ if (fAbs)
+ {
+ out = TMath::Abs(out);
+ side = TMath::Abs(side);
+ lon = TMath::Abs(lon);
+ }
+
fDenominator->Fill(out,side,lon,weight);
}
/*************************************************************/
trackpair = CheckPair(trackpair);
if (trackpair == 0x0) return;
- partpair = CheckPair(partpair);
+// partpair = CheckPair(partpair);
if (partpair == 0x0) return;
Double_t x = TMath::Abs(trackpair->GetDeltaPt());
trackpair = CheckPair(trackpair);
if (trackpair == 0x0) return;
- partpair = CheckPair(partpair);
+// partpair = CheckPair(partpair);
if (partpair == 0x0) return;
Double_t x = TMath::Abs(trackpair->GetDeltaPt());