// class implements pair of particles and taking care of caluclation (almost)
// all of pair properties (Qinv, InvMass,...)
//
-// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
+// more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html
//
////////////////////////////////////////////////////////////////////////////
//
// class implements pair of particles and taking care of caluclation (almost)
// all of pair properties (Qinv, InvMass,...)
-// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
+// more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html
//
////////////////////////////////////////////////////////////////////////////
// Class AliAODPairCut:
//
// implements cut on the pair of particles
-// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
+// more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html
// Author: Piotr.Skowronski@cern.ch
//-------------------------------------------------------------------
#include "AliAODPair.h"
//Piotr Skowronski@cern.ch
//Class implements cut on the pair of particles
//
-//more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
+//more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html
#include <TNamed.h>
#include "AliAODPairBaseCut.h"
// Class storing and managing events //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// designed for fast acces //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
-#include "AliClusterMap.h"
+/**************************************************************************
+ * 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 <TString.h>
+#include "AliClusterMap.h"
#include "AliESDtrack.h"
+#include "AliLog.h"
#include "AliTPCtrack.h"
#include "AliVAODParticle.h"
-#include <TString.h>
+
const Int_t AliClusterMap::fNPadRows = 159;
+ClassImp(AliClusterMap)
+
AliClusterMap::AliClusterMap():
fPadRawMap(fNPadRows)
{
{
//ctor
- if (AliVAODParticle::GetDebug() > 2)
- {
- Info("AliClusterMap(AliESDtrack*)","");
- Print();
- }
+ StdoutToAliDebug(3,Print());
+
}
/***********************************************************************/
{
//ctor
- //Does not work since indeces in the claster index array
- //in the TPC track does not correspond to the padraw segmatation
- if (AliVAODParticle::GetDebug() > 9)
- Info("AliClusterMap",
- "#####################################################################");
+ AliDebug(10,"#####################################################################");
if (track == 0x0)
{
Error("AliClusterMap","Pointer to TPC track is NULL");
Int_t sect = (idx&0xff000000)>>24;
Int_t row = (idx&0x00ff0000)>>16;
if (sect > 18) row +=63; //if it is outer sector, add number of inner sectors
- if (AliVAODParticle::GetDebug() > 9)
- Info("AliClusterMap","Cl.idx is %d, sect %d, row %d",idx,sect,row);
+ AliDebug(9,Form("Cl.idx is %d, sect %d, row %d",idx,sect,row));
fPadRawMap.SetBitNumber(row,kTRUE);
}
}
- if (AliVAODParticle::GetDebug() > 2)
- {
- Info("AliClusterMap(AliTPCtrack*)","");
- Print();
- }
+ StdoutToAliDebug(3,Print());
+
}
/***********************************************************************/
// -0.5 (low probability that these tracks are a split track)
// and
// 1.0 (high probability that these tracks are a split track)
- TString msg1;
- TString msg2;
Int_t nh = 0;
Int_t an = 0;
Bool_t x = HasClAtPadRow(i);
Bool_t y = clmap.HasClAtPadRow(i);
- if (x) msg1+="1";else msg1+="0";
- if (y) msg2+="1";else msg2+="0";
-
if (x && y)//both have clasters
{
an--;
if (nh > 0) retval = ((Float_t)an)/((Float_t)nh);
else Warning("GetOverlapFactor","Number of counted cluters is 0.");
- if (AliVAODParticle::GetDebug() > 2)
- {
- Info("GetOverlapFactor","Splitting Quality Factor is %f. SumAn = %d, SumClusters %d",retval,an,nh);
- if (retval == 1.0)
- {
- Print();
- Info("AliClusterMap","BitMap is\n %s\n",msg1.Data());
- clmap.Print();
- Info("AliClusterMap","BitMap is\n %s\n\n\n\n",msg2.Data());
- }
- if (retval == -.5)
- {
- Print();
- Info("AliClusterMap","BitMap is\n %s\n",msg1.Data());
- clmap.Print();
- Info("AliClusterMap","BitMap is\n %s\n\n\n\n",msg2.Data());
- }
- }
-
return retval;
}
-#include "AliReader.h"
+/**************************************************************************
+ * 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 <TString.h>
-#include <TObjString.h>
-#include <TObjArray.h>
#include <TClass.h>
-#include <TRandom.h>
-#include <TH1.h>
-
#include <TGliteXmlEventlist.h>
+#include <TH1.h>
+#include <TObjArray.h>
+#include <TObjString.h>
+#include <TRandom.h>
+#include <TString.h>
-#include "AliAODParticleCut.h"
#include "AliAOD.h"
+#include "AliAODParticleCut.h"
#include "AliAODRun.h"
+#include "AliLog.h"
+#include "AliReader.h"
ClassImp(AliReader)
//pure virtual
retval = ".";
return retval;
}
- if (AliVAODParticle::GetDebug() > 0)
- {
- Warning("GetDirName","Index %d out of bounds",entry);
- }
+ AliDebug(1,Form("Index %d out of bounds",entry));
+
return retval;
}
Error("GetDirName","Object in TObjArray is not a TObjString or its descendant");
return retval;
}
- if (gDebug > 0) Info("GetDirName","Returned ok %s",dir->String().Data());
+ AliDebug(1,Form("Returned ok %s",dir->String().Data()));
retval = dir->String();
return retval;
}
-#include "AliReaderAOD.h"
+/**************************************************************************
+ * 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$ */
+
//______________________________________________________________________________
////////////////////////////////////////////////////////////////////////////////
// //
// //
////////////////////////////////////////////////////////////////////////////////
-ClassImp(AliReaderAOD)
#include <TError.h>
#include <TFile.h>
#include <TTree.h>
#include <TH1.h>
-#include "AliAOD.h"
+#include "AliAOD.h"
+#include "AliLog.h"
+#include "AliReaderAOD.h"
const TString AliReaderAOD::fgkTreeName("TAOD");
const TString AliReaderAOD::fgkReconstructedDataBranchName("reconstructed.");
const TString AliReaderAOD::fgkSimulatedDataBranchName("simulated.");
+ClassImp(AliReaderAOD)
+
AliReaderAOD::AliReaderAOD(const Char_t* aodfilename):
fFileName(aodfilename),
fReadSim(kFALSE),
const TString dirname = GetDirName(n);
if (dirname == "")
{
- if (AliVAODParticle::GetDebug() > 2 )
- {
- Info("OpenFile","Got empty string as a directory name.");
- }
- return 1;
+ AliDebug(3,"Got empty string as a directory name.");
+ return 1;
}
TString filename = dirname +"/"+ fFileName;
fTree = dynamic_cast<TTree*>(fFile->Get(fgkTreeName));
if (fTree == 0x0)
{
- if (AliVAODParticle::GetDebug() > 2 )
- {
- Info("ReadNext","Can not find TTree object named %s",fgkTreeName.Data());
- }
+ AliDebug(3,Form("Can not find TTree object named %s",fgkTreeName.Data()));
delete fFile;
fFile = 0x0;
return 4;
-#include "AliReaderESD.h"
+/**************************************************************************
+ * 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 <TPDGCode.h>
-#include <TString.h>
-#include <TObjString.h>
-#include <TTree.h>
#include <TFile.h>
+#include <TGliteXmlEventlist.h>
+#include <TH1.h>
#include <TKey.h>
+#include <TObjString.h>
+#include <TPDGCode.h>
#include <TParticle.h>
-#include <TH1.h>
-
-#include <TGliteXmlEventlist.h>
-
-#include <AliRun.h>
-#include <AliRunLoader.h>
-#include <AliStack.h>
-#include <AliESDtrack.h>
-#include <AliKalmanTrack.h>
-#include <AliESD.h>
+#include <TString.h>
+#include <TTree.h>
-#include "AliAnalysis.h"
-#include "AliAODRun.h"
#include "AliAOD.h"
#include "AliAODParticle.h"
#include "AliAODParticleCut.h"
+#include "AliAODRun.h"
+#include "AliAnalysis.h"
#include "AliClusterMap.h"
+#include "AliESD.h"
+#include "AliESDtrack.h"
+#include "AliKalmanTrack.h"
+#include "AliLog.h"
+#include "AliReaderESD.h"
+#include "AliRun.h"
+#include "AliRunLoader.h"
+#include "AliStack.h"
ClassImp(AliReaderESD)
//reads next event from fFile
//fRunLoader is for reading Kine
- if (AliVAODParticle::GetDebug())
- Info("ReadNext","Entered");
+ AliDebug(1,"Entered");
if (fEventSim == 0x0) fEventSim = new AliAOD();
if (fEventRec == 0x0) fEventRec = new AliAOD();
AliESD* esd = dynamic_cast<AliESD*>(fFile->Get(esdname));
if (esd == 0x0)
{
- if (AliVAODParticle::GetDebug() > 2 )
- {
- Info("ReadNext","Can not find AliESD object named %s",esdname.Data());
- }
+ AliDebug(3,Form("Can not find AliESD object named %s",esdname.Data()));
fCurrentDir++;
delete fFile;//we have to assume there is no more ESD objects in the fFile
fFile = 0x0;
vertex->GetXYZ(vertexpos);
}
- if (AliVAODParticle::GetDebug() > 0)
- {
- Info("ReadESD","Primary Vertex is (%f,%f,%f)",vertexpos[0],vertexpos[1],vertexpos[2]);
- }
+ AliDebug(1,Form("Primary Vertex is (%f,%f,%f)",vertexpos[0],vertexpos[1],vertexpos[2]));
Info("ReadESD","Reading Event %d",fCurrentEvent);
//if (esdtrack->HasVertexParameters() == kFALSE)
if ((esdtrack->GetStatus() & AliESDtrack::kITSrefit) == kFALSE)
{
- if (AliVAODParticle::GetDebug() > 2)
- Info("ReadNext","Particle skipped: Data at vertex not available.");
+ AliDebug(3,Form("Particle skipped: Data at vertex not available."));
continue;
}
{
if ((esdtrack->GetStatus() & AliESDtrack::kTPCin) == kFALSE)
{
- if (AliVAODParticle::GetDebug() > 2)
- Info("ReadNext","Particle skipped: Was not reconstructed in TPC.");
+ AliDebug(3,"Particle skipped: Was not reconstructed in TPC.");
continue;
}
}
if ((esdtrack->GetStatus() & AliESDtrack::kESDpid) == kFALSE)
{
- if (AliVAODParticle::GetDebug() > 2)
- Info("ReadNext","Particle skipped: PID BIT is not set.");
+ AliDebug(3,"Particle skipped: PID BIT is not set.");
continue;
}
esdtrack->GetConstrainedExternalParameters(extx,extp);
if (extp[4] == 0.0)
{
- if (AliVAODParticle::GetDebug() > 2)
- Info("ReadNext","Track has 0 contrianed curvature -> Probobly parameters never updated. Skipping.");
+ AliDebug(3,"Track has 0 contrianed curvature -> Probobly parameters never updated. Skipping.");
continue;
}
esdtrack->GetESDpid(pidtable);
{
if(Rejected(p->GetPdgCode()))
{
- if ( AliVAODParticle::GetDebug() > 5 )
- Info("ReadNext","Simulated Particle PID (%d) did not pass the cut.",p->GetPdgCode());
+ AliDebug(6,Form("Simulated Particle PID (%d) did not pass the cut.",p->GetPdgCode()));
continue; //check if we are intersted with particles of this type
}
}
for (Int_t s=0; s<AliPID::kSPECIES; s++) rc+=concentr[s]*pidtable[s];
if (rc==0.0)
{
- if (AliVAODParticle::GetDebug() > 2)
- Info("ReadNext","Particle rejected since total bayessian PID probab. is zero.");
+ AliDebug(3,"Particle rejected since total bayessian PID probab. is zero.");
continue;
}
for (Int_t s=0; s<AliPID::kSPECIES; s++) w[s]=concentr[s]*pidtable[s]/rc;
- if (AliVAODParticle::GetDebug() > 4)
+ if (AliDebugLevel() > 4)
{
Info("ReadNext","###########################################################################");
Info("ReadNext","Momentum: %f %f %f",mom[0],mom[1],mom[2]);
msg+=")";
}
Info("ReadNext","%s",msg.Data());
- }//if (AliVAODParticle::GetDebug()>4)
+ }//if (AliDebugLevel()>4)
AliTrackPoints* tpts = 0x0;
if (fNTrackPoints > 0)
Float_t pp = w[s];
if (pp == 0.0)
{
- if ( AliVAODParticle::GetDebug() > 5 )
- Info("ReadNext","Probability of being PID %d is zero. Continuing.",pdgcode);
+ AliDebug(6,Form("Probability of being PID %d is zero. Continuing.",pdgcode));
continue;
}
if(Rejected(pdgcode))
{
- if ( AliVAODParticle::GetDebug() > 5 )
- Info("ReadNext","PID (%d) did not pass the cut.",pdgcode);
+ AliDebug(6,Form("PID (%d) did not pass the cut.",pdgcode));
continue; //check if we are intersted with particles of this type
}
if(Rejected(track))//check if meets all criteria of any of our cuts
//if it does not delete it and take next good track
{
- if ( AliVAODParticle::GetDebug() > 4 )
- Info("ReadNext","Track did not pass the cut");
+ AliDebug(5,"Track did not pass the cut");
delete track;
continue;
}
if (particle) fEventSim->AddParticle(particle);
keeppart = kTRUE;
- if (AliVAODParticle::GetDebug() > 4 )
+ if (AliDebugLevel() > 4 )
{
Info("ReadNext","\n\nAdding Particle with incarnation %d",pdgcode);
track->Print();
Int_t nTracks = (Int_t)esd->GetNumberOfMuonTracks() ;
- if (AliVAODParticle::GetDebug() > 0) {
- Info("ReadESD","Reading Event %d",fCurrentEvent);
- Info("ReadESD","Found %d tracks.",nTracks);
- }
+ AliDebug(1,Form("Reading Event %d \nFound %d tracks.",fCurrentEvent,nTracks));
+
// settings
Float_t Chi2Cut = 100.;
Float_t PtCutMin = 1.;
// This reader reads tracks from Event Summary Data //
// do not read particles //
// Piotr.Skowronski@cern.ch //
-// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html //
+// more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html //
// //
/////////////////////////////////////////////////////////////////////////////
-#include "AliReaderESDTree.h"
+/**************************************************************************
+ * 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 <TTree.h>
#include <TFile.h>
-
-#include <AliRun.h>
-#include <AliRunLoader.h>
-
-#include <AliESD.h>
#include "AliAOD.h"
+#include "AliESD.h"
+#include "AliLog.h"
+#include "AliReaderESDTree.h"
+#include "AliRun.h"
+#include "AliRunLoader.h"
ClassImp(AliReaderESDTree)
//reads next event from fFile
//fRunLoader is for reading Kine
- if (AliVAODParticle::GetDebug())
- Info("ReadNext","Entered");
+ AliDebug(1,"Entered");
if (fEventSim == 0x0) fEventSim = new AliAOD();
if (fEventRec == 0x0) fEventRec = new AliAOD();
if (!status)
{
- if (AliVAODParticle::GetDebug() > 2 )
- {
- Info("ReadNext","Can not find event# %d in Tree", fCurrentEvent);
- }
+ AliDebug(2,Form("Cannot find event# %d in Tree", fCurrentEvent));
fCurrentDir++;
delete fTree;
fTree = 0x0;
+/**************************************************************************
+ * 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 "AliRunAnalysis.h"
+#include "AliLog.h"
+
//________________________________
///////////////////////////////////////////////////////////
//
if (fReader == 0x0)
{
- Error("Run","Reader is not set");
+ AliError("Reader is not set");
return 1;
}
TDirectory* cwd = gDirectory;
Int_t nanal = fAnalysies.GetEntries();
- if (AliVAODParticle::GetDebug()) Info("Run","There is %d analysies",nanal);
+ AliDebug(1,Form("There are %d analyses",nanal));
/******************************/
/* Init Event */
/******************************/
- if (AliVAODParticle::GetDebug()) Info("Run","Intializing analyses...");
+ AliDebug(1,"Intializing analyses...");
for (Int_t an = 0; an < nanal; an++)
{
- if (AliVAODParticle::GetDebug()) Info("Run","Intializing analysis %d", an);
AliAnalysis* analysis = (AliAnalysis*)fAnalysies.At(an);
- if (AliVAODParticle::GetDebug())
- {
- Info("Run","Intializing analysis %d address %#x", an, analysis);
- Info("Run","Intializing analysis %d name %d", an, analysis->GetName());
- Info("Run","Intializing analysis %d: Calling Init...", an);
- }
+ AliDebug(1,Form("Intializing analysis %d,address=%#x, name=%s",
+ an, analysis, analysis->GetName()));
analysis->Init();
- if (AliVAODParticle::GetDebug()) Info("Run","Intializing analysis %d: Calling Init... Done");
+ AliDebug(1,Form("Init done for analysis %d",an));
}
- if (AliVAODParticle::GetDebug()) Info("Run","Intializing analyses... Done.");
+ AliDebug(1,"Intializing analyses... Done.");
while (fReader->Next() == kFALSE)
{
/******************************/
if ( Rejected(eventrec,eventsim) )
{
- if (AliVAODParticle::GetDebug()) Info("Run","Event rejected by Event Cut");
+ AliDebug(1,"Event rejected by Event Cut");
continue; //Did not pass the
}
/******************************/
/* Process Event */
/******************************/
- if (AliVAODParticle::GetDebug()) Info("Run","There is %d analyses",fAnalysies.GetEntries());
+ AliDebug(1,Form("There is %d analyses",fAnalysies.GetEntries()));
for (Int_t an = 0; an < fAnalysies.GetEntries(); an++)
{
/******************************/
/* Finish Event */
/******************************/
- if (AliVAODParticle::GetDebug()) Info("Run","Finishing analyses... ");
- if (AliVAODParticle::GetDebug()) Info("Run","There is %d anlyses",fAnalysies.GetEntries());
+ AliDebug(1,Form("Finishing analyses...\n There are %d anlyses",fAnalysies.GetEntries()));
if (cwd) cwd->cd();
for (Int_t an = 0; an < fAnalysies.GetEntries(); an++)
{
- if (AliVAODParticle::GetDebug()) Info("Run","Finishing analysis %d", an);
AliAnalysis* analysis = (AliAnalysis*)fAnalysies.At(an);
- if (AliVAODParticle::GetDebug())
- {
- Info("Run","Finishing analysis %d address %#x", an, analysis);
- Info("Run","Finishing analysis %d name %d", an, analysis->GetName());
- Info("Run","Finishing analysis %d: Calling Finish...",an);
- }
+ AliDebug(1,Form("Calling Finish for analysis %d address %#x name=%s",
+ an, analysis,analysis->GetName()));
analysis->Finish();
- if (AliVAODParticle::GetDebug()) Info("Run","Finishing analysis %d: Calling Finish... Done");
+ AliDebug(1,Form("Called Finish for analysis %d",an));
}
- if (AliVAODParticle::GetDebug()) Info("Run","Finishing done");
+ AliDebug(1,"Finishing done");
return 0;
}
+/**************************************************************************
+ * 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 "AliTrackPoints.h"
+#include "AliLog.h"
+
//_________________________________
////////////////////////////////////////////////////////////
// //
((track->GetStatus() & AliESDtrack::kTPCin) == kFALSE) )
{
//could happend: its stand alone tracking
- if (GetDebug() > 3)
- Warning("AliTrackPoints","This ESD track does not contain TPC information");
+ AliDebug(3,"This ESD track does not contain TPC information");
fN = 0;
delete [] fX;
Double_t r = TMath::Hypot(x,y);
- if (GetDebug() > 9)
- Info("AliTrackPoints","Radius0 %f, Real Radius %f",r0,r);
+ AliDebug(9,Form("Radius0 %f, Real Radius %f",r0,r));
- if (GetDebug() > 5)
- Info("AliTrackPoints","Phi Global at first padraw %f, Phi locat %f",phi0global,phi0local);
+ AliDebug(5,Form("Phi Global at first padraw %f, Phi locat %f",phi0global,phi0local));
Double_t eta = x*c - par[2] ;//par[2] = fX*C - eta; eta==fP2 ; C==fP4
Double_t ftmp = (c2*rc + cst1/rc)/cst2;
if (ftmp > 1.0)
{
- if (GetDebug() > 1)
- Warning("AliTrackPoints","ASin argument > 1 %f:",ftmp);
+ AliDebug(1,Form("ASin argument > 1 %f:",ftmp));
ftmp=1.0;
}
else if (ftmp < -1.0)
{
- if (GetDebug() > 1)
- Warning("AliTrackPoints","ASin argument < -1 %f:",ftmp);
+ AliDebug(1,Form("ASin argument < -1 %f:",ftmp));
ftmp=-1.0;
}
ftmp = (rc*rc-dcasq)/cst2;
if (ftmp < 0.0)
{
- if (GetDebug() > 1)
- Warning("AliTrackPoints","Sqrt argument < 0: %f",ftmp);
+ AliDebug(1,Form("Sqrt argument < 0: %f",ftmp));
ftmp=0.0;
}
ftmp = c2*TMath::Sqrt(ftmp);
if (ftmp > 1.0)
{
- if (GetDebug() > 1)
- Warning("AliTrackPoints","ASin argument > 1: %f",ftmp);
+ AliDebug(1,Form("ASin argument > 1: %f",ftmp));
ftmp=1.0;
}
else if (ftmp < -1.0)
{
- if (GetDebug() > 1)
- Warning("AliTrackPoints","ASin argument < -1: %f",ftmp);
+ AliDebug(2,Form("ASin argument < -1: %f",ftmp));
ftmp=-1.0;
}
Double_t factorZ = TMath::ASin(ftmp)*par[3]/c2;
fX[i] = rc*TMath::Cos(phi);
fY[i] = rc*TMath::Sin(phi);
- if ( GetDebug() > 2 )
- {
- Info("AliTrackPoints","X %f Y %f Z %f R asked %f R obtained %f",
- fX[i],fY[i],fZ[i],rc,TMath::Hypot(fX[i],fY[i]));
- }
+ AliDebug(3,Form("AliTrackPoints","X %f Y %f Z %f R asked %f R obtained %f",
+ fX[i],fY[i],fZ[i],rc,TMath::Hypot(fX[i],fY[i])));
}
}
/***************************************************************/
fX[i] = x;
fY[i] = y;
fZ[i] = z;
- if ( GetDebug() > 2 )
- {
- Info("MakeITSPoints","X %f Y %f Z %f R asked %f R obtained %f",
- fX[i],fY[i],fZ[i],r[i],TMath::Hypot(fX[i],fY[i]));
- }
+ AliDebug(3,Form("X %f Y %f Z %f R asked %f R obtained %f",
+ fX[i],fY[i],fZ[i],r[i],TMath::Hypot(fX[i],fY[i])));
}
for (Int_t i = 3; i < 6; i++)
fX[i] = ax;
fY[i] = ay;
fZ[i] = az;
- if ( GetDebug() > 2 )
- {
- Info("MakeITSPoints","X %f Y %f Z %f R asked %f R obtained %f",
- fX[i],fY[i],fZ[i],r[i],TMath::Hypot(fX[i],fY[i]));
- }
+ AliDebug(3,Form("X %f Y %f Z %f R asked %f R obtained %f",
+ fX[i],fY[i],fZ[i],r[i],TMath::Hypot(fX[i],fY[i])));
}
}
x = fX[n];
y = fY[n];
z = fZ[n];
- if ( GetDebug() > 1 )
- {
- Info("AliTrackPoints","n %d; X %f; Y %f; Z %f",n,x,y,z);
- }
+ AliDebug(2,Form("n %d; X %f; Y %f; Z %f",n,x,y,z));
+
}
/***************************************************************/
// Info("AvarageDistance","Entered");
if ( (fN <= 0) || (tr.fN <=0) )
{
- if (GetDebug()) Warning("AvarageDistance","One of tracks is empty");
+ AliDebug(1,"One of tracks is empty");
return -1;
}
Double_t sum = 0;
for (Int_t i = 0; i<fN; i++)
{
- if (GetDebug()>9)
- {
+ AliDebug(10,Form("radii: %f %f",TMath::Hypot(fX[i],fY[i]),TMath::Hypot(tr.fX[i],tr.fY[i])));
// Float_t r1sq = fX[i]*fX[i]+fY[i]*fY[i];
// Float_t r2sq = tr.fX[i]*tr.fX[i]+tr.fY[i]*tr.fY[i];
- Float_t r1sq = TMath::Hypot(fX[i],fY[i]);
- Float_t r2sq = TMath::Hypot(tr.fX[i],tr.fY[i]);
- Info("AvarageDistance","radii: %f %f",r1sq,r2sq);
- }
Double_t dx = fX[i]-tr.fX[i];
Double_t dz = fZ[i]-tr.fZ[i];
sum+=TMath::Sqrt(dx*dx + dy*dy + dz*dz);
- if (GetDebug()>1)
- {
- Info("AvarageDistance","Diff: x ,y z: %f , %f, %f",dx,dy,dz);
- Info("AvarageDistance","xxyyzz %f %f %f %f %f %f",
- fX[i],tr.fX[i],fY[i],tr.fY[i],fZ[i],tr.fZ[i]);
- }
+ AliDebug(2,Form("Diff: x ,y z: %f , %f, %f",dx,dy,dz));
+ AliDebug(2,Form("xxyyzz %f %f %f %f %f %f",
+ fX[i],tr.fX[i],fY[i],tr.fY[i],fZ[i],tr.fZ[i]));
}
Double_t retval = sum/((Double_t)fN);
- if ( GetDebug() )
- {
- Info("AvarageDistance","Avarage distance is %f.",retval);
- }
+ AliDebug(1,Form("Avarage distance is %f.",retval));
+
return retval;
}
/***************************************************************/
// ALICE Off-Line framework:
//
// Piotr.Skowronski@cern.ch
-// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
+// more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html
//
////////////////////////////////////////////////////////////////////////////
//_________________________________________________________
// ALICE Off-Line framework:
//
// Piotr.Skowronski@cern.ch
-// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
+// more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html
//
////////////////////////////////////////////////////////////////////////////
//_________________________________________________________
// mirrored momenta.
//
// Piotr.Skowronski@cern.ch
-// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
+// more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html
//
////////////////////////////////////////////////////////////////////////////
//_________________________________________________________
+/**************************************************************************
+ * 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 "AliHBTCorrectOSLCorrelFctn.h"
+#include "AliLog.h"
+
//____________________
///////////////////////////////////////////////////////
// //
Int_t nzbins, Float_t zmax, Float_t zmin)
{
//build histograms
- if (AliVAODParticle::GetDebug()>1) Info("BuildHistos","Enetered BuildHistos(...)");
+ AliDebug(1,"Entered");
AliHBTFunction3D::BuildHistos(nxbins,xmax,xmin,nybins,ymax,ymin,nzbins,zmax,zmin);
// implemented and described by Michael A. Lisa //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
+/**************************************************************************
+ * 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 "AliHBTFunction.h"
+#include "AliLog.h"
-/* $Id: */
//--------------------------------------------------------------------
//AliHBTFunction
AliHBTFunction::~AliHBTFunction()
{
//destructor
- if (AliVAODParticle::GetDebug() > 1)
- {
- Info("~AliHBTFunction","Deleting %s",GetName());
- }
+ AliDebug(1,"Deleting");
delete fPairCut;
}
/******************************************************************/
void AliHBTFunction::WriteFunction()
{
//writes result of the function to file
- if (AliVAODParticle::GetDebug()) Info("AliHBTFunction","%s",GetName());
+ AliDebug(1,"Entering");
if (fWriteNumAndDen)
{
- if (AliVAODParticle::GetDebug()) Info("AliHBTFunction","Writing Num & Den");
+ AliDebug(1,"Writing Num & Den");
if (GetNumerator()) GetNumerator()->Write();
if (GetDenominator()) GetDenominator()->Write();
- if (AliVAODParticle::GetDebug()) Info("AliHBTFunction","Writing Num & Den Done");
+ AliDebug(1,"Writing Num & Den Done");
}
- if (AliVAODParticle::GetDebug()) Info("AliHBTFunction","Getting Result");
+ AliDebug(1,"Getting Result");
TH1* res = GetResult();
- if (AliVAODParticle::GetDebug()) Info("AliHBTFunction","Getting Result Done");
+ AliDebug(1,"Getting Result Done");
if (res)
{
- if (AliVAODParticle::GetDebug()) Info("AliHBTFunction","Writing Result");
+ AliDebug(1,"Writing Result");
res->Write();
- if (AliVAODParticle::GetDebug()) Info("AliHBTFunction","Writing Result Done");
+ AliDebug(1,"Writing Result Done");
}
}
/******************************************************************/
{
//returns ratio of numerator and denominator
//
- if (AliVAODParticle::GetDebug()>0) Info("GetRatio","Norm. Factor is %f for %s",normfactor,GetName());
+ AliDebug(1,Form("Norm. Factor is %f for %s",normfactor,GetName()));
if (normfactor == 0.0)
{
- Error("GetRatio","Scaling Factor is 0. Null poiner returned");
+ AliError("Scaling Factor is 0. Null poiner returned");
return 0x0;
}
TString str = fName + " ratio";
if(!cut)
{
- Error("AliHBTFunction::SetPairCut","argument is NULL");
+ AliError("argument is NULL");
return;
}
delete fPairCut;
{
//Iniotializes fctn.: Resets histograms
//In case histograms are not created in ctor, builds with default parameters
- if (AliVAODParticle::GetDebug()>1) Info("InitFunction","%s",GetName());
+ AliDebug(1,"Entering");
if ( !(GetNumerator()&&GetDenominator()) ) BuildHistos();
GetNumerator()->Reset();
GetDenominator()->Reset();
GetNumerator()->SetDirectory(0x0);
GetDenominator()->SetDirectory(0x0);
- if (AliVAODParticle::GetDebug()>1) Info("InitFunction","Done");
+ AliDebug(1,"Done");
}
/******************************************************************/
/******************************************************************/
//Calculates the factor that should be used to scale
//quatience of num and den to 1 at tail
- if (AliVAODParticle::GetDebug()>0) Info("Scale","Enetered Scale()");
+ AliDebug(1,"Entered");
if(!num)
{
- Error("Scale","No numerator");
+ AliError("No numerator");
return 0.0;
}
if(!den)
{
- Error("Scale","No denominator");
+ AliError("No denominator");
return 0.0;
}
if(fNBinsToScale < 1)
{
- Error("Scale","Number of bins for scaling is smaller thnan 1");
+ AliError("Number of bins for scaling is smaller than 1");
return 0.0;
}
UInt_t nbins = num->GetNbinsX();
if (fNBinsToScale > nbins)
{
- Error("Scale","Number of bins for scaling is bigger thnan number of bins in histograms");
+ AliError("Number of bins for scaling is bigger thnan number of bins in histograms");
return 0.0;
}
- if (AliVAODParticle::GetDebug()>0) Info("Scale","No errors detected");
+ AliDebug(1,"No errors detected");
Double_t densum = 0.0;
Double_t numsum = 0.0;
}
}
- if(AliVAODParticle::GetDebug() > 0)
- Info("Scale","numsum=%f densum=%f fNBinsToScaleX=%d",numsum,densum,fNBinsToScale);
+ AliDebug(1,Form("numsum=%f densum=%f fNBinsToScaleX=%d",numsum,densum,fNBinsToScale));
if (numsum == 0) return 0.0;
Double_t ret = densum/numsum;
- if(AliVAODParticle::GetDebug() > 0) Info("Scale","returning %f",ret);
+ AliDebug(1,Form("returning %f",ret));
return ret;
}
// Base Calss for 2-dimensinal Functions //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// Calculates the factor that should be used to scale
// quatience of fNumerator and fDenominator to 1 at
// given region
- if (AliVAODParticle::GetDebug()>0) Info("Scale","Enetered Scale()");
+ AliDebug(1,"Entered");
if(!fNumerator)
{
- Error("Scale","No numerator");
+ AliError("No numerator");
return 0.0;
}
if(!fDenominator)
{
- Error("Scale","No denominator");
+ AliError("No denominator");
return 0.0;
}
if( (fNBinsToScaleX < 1) || (fNBinsToScaleY < 1) )
{
- Error("Scale","Number of bins for scaling is smaller thnan 1");
+ AliError("Number of bins for scaling is smaller thnan 1");
return 0.0;
}
UInt_t nbinsX = fNumerator->GetNbinsX();
if (fNBinsToScaleX > nbinsX)
{
- Error("Scale","Number of X bins for scaling is bigger thnan number of bins in histograms");
+ AliError("Number of X bins for scaling is bigger thnan number of bins in histograms");
return 0.0;
}
UInt_t nbinsY = fNumerator->GetNbinsX();
if (fNBinsToScaleY > nbinsY)
{
- Error("Scale","Number of Y bins for scaling is bigger thnan number of bins in histograms");
+ AliError("Number of Y bins for scaling is bigger thnan number of bins in histograms");
return 0.0;
}
- if (AliVAODParticle::GetDebug()>0) Info("Scale","No errors detected");
+ AliDebug(1,"No errors detected");
Int_t offsetX = nbinsX - fNBinsToScaleX - 1; //bin that we start loop over bins in axis X
Int_t offsetY = nbinsY - fNBinsToScaleY - 1; //bin that we start loop over bins in axis X
}
}
- if(AliVAODParticle::GetDebug() > 0)
- Info("Scale","numsum=%f densum=%f fNBinsToScaleX=%d fNBinsToScaleY=%d",numsum,densum,fNBinsToScaleX,fNBinsToScaleY);
+ AliDebug(1,Form("numsum=%f densum=%f fNBinsToScaleX=%d fNBinsToScaleY=%d",
+ numsum,densum,fNBinsToScaleX,fNBinsToScaleY));
if (numsum == 0) return 0.0;
Double_t ret = densum/numsum;
- if(AliVAODParticle::GetDebug() > 0) Info("Scale","returning %f",ret);
+ AliDebug(1,Form("returning %f",ret));
return ret;
}
// Base Calss for 3-dimensinal Functions //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
{
//Builds numerator and denominator histograms (3d-case)
- if (AliVAODParticle::GetDebug()>1) Info("BuildHistos","Enetered AliHBTFunction3D::BuildHistos(...)");
+ AliDebug(1,"Entered");
if (fNumerator )
{
// Calculates the factor that should be used to scale
// quatience of fNumerator and fDenominator to 1 at
// given volume
- if (AliVAODParticle::GetDebug()>0) Info("Scale","Enetered Scale()");
+ AliDebug(1,"Entered");
if(!fNumerator)
{
- Error("Scale","No numerator");
+ AliError("No numerator");
return 0.0;
}
if(!fDenominator)
{
- Error("Scale","No denominator");
+ AliError("No denominator");
return 0.0;
}
if( (fNBinsToScaleX < 1) || (fNBinsToScaleY < 1) || (fNBinsToScaleZ < 1))
{
- Error("Scale","Number of bins for scaling is smaller thnan 1");
+ AliError("Number of bins for scaling is smaller thnan 1");
return 0.0;
}
UInt_t nbinsX = fNumerator->GetNbinsX();
if (fNBinsToScaleX > nbinsX)
{
- Error("Scale","Number of X bins for scaling is bigger thnan number of bins in histograms");
+ AliError("Number of X bins for scaling is bigger thnan number of bins in histograms");
return 0.0;
}
UInt_t nbinsY = fNumerator->GetNbinsX();
if (fNBinsToScaleY > nbinsY)
{
- Error("Scale","Number of Y bins for scaling is bigger thnan number of bins in histograms");
+ AliError("Number of Y bins for scaling is bigger thnan number of bins in histograms");
return 0.0;
}
UInt_t nbinsZ = fNumerator->GetNbinsZ();
if (fNBinsToScaleZ > nbinsZ)
{
- Error("Scale","Number of Z bins for scaling is bigger thnan number of bins in histograms");
+ AliError("Number of Z bins for scaling is bigger thnan number of bins in histograms");
return 0.0;
}
- if (AliVAODParticle::GetDebug()>0) Info("Scale","No errors detected");
+ AliDebug(1,"No errors detected");
Int_t offsetX = nbinsX - fNBinsToScaleX - 1; //bin that we start loop over bins in axis X
Int_t offsetY = nbinsY - fNBinsToScaleY - 1; //bin that we start loop over bins in axis Y
}
}
- if(AliVAODParticle::GetDebug() > 0)
- Info("Scale","numsum=%f densum=%f fNBinsToScaleX=%d fNBinsToScaleY=%d fNBinsToScaleZ=%d",
- numsum,densum,fNBinsToScaleX,fNBinsToScaleY,fNBinsToScaleZ);
+ AliDebug(1,Form("numsum=%f densum=%f fNBinsToScaleX=%d fNBinsToScaleY=%d fNBinsToScaleZ=%d",
+ numsum,densum,fNBinsToScaleX,fNBinsToScaleY,fNBinsToScaleZ));
if (numsum == 0) return 0.0;
Double_t ret = densum/numsum;
- if(AliVAODParticle::GetDebug() > 0) Info("Scale","returning %f",ret);
+ AliDebug(1,Form("returning %f",ret));
return ret;
}
/******************************************************************/
// one pair to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// one pair to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// one pair to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
ClassImp( AliHBTOnePairFctn3D)
// to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
ClassImp(AliHBTTwoPairFctn1D)
// to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// Abstract Base Calss for all the function classes //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// one pair to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// Lednicky's algorithm uses that as well //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
ProcessDiffEventParticles(AliHBTPair* trackpair, AliHBTPair* partpair) = 0;
virtual void Init() = 0;
- virtual void Write() = 0;
+ virtual void Write(const char* /*x1*/ = 0 , int/*x2*/ = 0, int /*x3*/ = 0) = 0;
virtual const char* Name() = 0;
ClassDef(AliHBTTwoPairFctn,2)
// Base Calss for 1-dimensinal Functions //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// Base Calss for 2-dimensinal Functions //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// one pair to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// one pair to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// one pair to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// one pair to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
// to fill function //
// //
// Piotr.Skowronski@cern.ch //
-// http://alisoft.cern.ch/people/skowron/analyzer //
+// http://aliweb.cern.ch/people/skowron/analyzer //
// //
///////////////////////////////////////////////////////
+/**************************************************************************
+ * 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 "AliLog.h"
#include "AliHBTMonitorFunction.h"
+
//__________________________________________________________________
////////////////////////////////////////////////////////////////////
//
void AliHBTMonitorFunction::Init()
{
//Writes an function to disk
- if (AliVAODParticle::GetDebug()>0) Info("Init","%s",GetName());
+ AliDebug(1,"Entering");
if (GetResult() == 0x0)
{
}
GetResult()->Reset();
GetResult()->SetDirectory(0x0);
- if (AliVAODParticle::GetDebug()>0) Info("Init","%s Done.",GetName());
+ AliDebug(1,"Done");
}
/******************************************************************/
+/**************************************************************************
+ * 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::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::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");
}
/******************************************************************/
// class implements pair of particles and taking care of caluclation (almost)
// all of pair properties (Qinv, InvMass,...)
//
-// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
+// more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html
//
////////////////////////////////////////////////////////////////////////////
//
// class implements pair of particles and taking care of caluclation (almost)
// all of pair properties (Qinv, InvMass,...)
-// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
+// more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html
//
////////////////////////////////////////////////////////////////////////////