#include "TH2.h"
#include "TParticle.h"
#include "TClonesArray.h"
-#include "TTree.h"
#include "TMath.h"
#include "TROOT.h"
-#include "TFolder.h"
// --- Standard library ---
// --- AliRoot header files ---
-#include "AliRun.h"
+#include "AliLog.h"
#include "AliStack.h"
-#include "AliPHOSv1.h"
+#include "AliPHOSGeometry.h"
#include "AliPHOSAnalyze.h"
#include "AliPHOSDigit.h"
#include "AliPHOSSDigitizer.h"
+#include "AliPHOSEmcRecPoint.h"
+#include "AliPHOSCpvRecPoint.h"
#include "AliPHOSTrackSegment.h"
#include "AliPHOSRecParticle.h"
-#include "AliPHOSCpvRecPoint.h"
#include "AliPHOSLoader.h"
fRunLoader = AliRunLoader::Open(fileName,"AliPHOSAnalyze");
if (fRunLoader == 0x0)
{
- Error("AliPHOSAnalyze","Error Loading session");
+ AliError(Form("Error Loading session"));
}
}
//========== Create ObjectLoader
if (fRunLoader == 0x0)
{
- Error("DrawRecon","Error Loading session");
+ AliError(Form("Error Loading session"));
return;
}
AliPHOSLoader* gime = dynamic_cast<AliPHOSLoader*>(fRunLoader->GetLoader("PHOSLoader"));
if ( gime == 0 )
{
- Error("DrawRecon","Could not obtain the Loader object !");
+ AliError(Form("Could not obtain the Loader object !"));
return ;
}
if(Nevent >= fRunLoader->GetNumberOfEvents() ) {
- Error("DrawRecon", "There is no event %d only %d events available", Nevent, fRunLoader->GetNumberOfEvents() ) ;
+ AliError(Form("There is no event %d only %d events available", Nevent, fRunLoader->GetNumberOfEvents() )) ;
return ;
}
const AliPHOSGeometry * phosgeom = gime->PHOSGeometry() ;
TString message ;
message = "Number of EMC + CPV SDigits per module: \n" ;
message += "%d %d %d %d %d\n";
- Info("DrawRecon", message.Data(), nsdig[0], nsdig[1], nsdig[2], nsdig[3], nsdig[4] ) ;
+ AliInfo(Form(message.Data(), nsdig[0], nsdig[1], nsdig[2], nsdig[3], nsdig[4] )) ;
//Plot digits
Int_t iDigit ;
if (fRunLoader == 0x0)
{
- Error("Ls","Error Loading session");
+ AliError(Form("Error Loading session"));
return;
}
AliPHOSLoader* gime = dynamic_cast<AliPHOSLoader*>(fRunLoader->GetLoader("PHOSLoader"));
if ( gime == 0 )
{
- Error("Ls","Could not obtain the Loader object !");
+ AliError(Form("Could not obtain the Loader object !"));
return ;
}
{
if (gime->LoadSDigits("READ"))
{
- Error("Ls","Problems with loading summable digits");
+ AliError(Form("Problems with loading summable digits"));
return;
}
}
{
if (gime->LoadDigits("READ"))
{
- Error("Ls","Problems with loading digits");
+ AliError(Form("Problems with loading digits"));
return;
}
}
{
if (gime->LoadRecPoints("READ"))
{
- Error("Ls","Problems with loading rec points");
+ AliError(Form("Problems with loading rec points"));
return;
}
}
message += "\n" ;
}
}
- Info("LS", message.Data()) ;
+ AliInfo(Form(message.Data())) ;
}
//____________________________________________________________________________
void AliPHOSAnalyze::InvariantMass()
// Calculates Real and Mixed invariant mass distributions
if (fRunLoader == 0x0)
{
- Error("DrawRecon","Error Loading session");
+ AliError(Form("Error Loading session"));
return;
}
AliPHOSLoader* gime = dynamic_cast<AliPHOSLoader*>(fRunLoader->GetLoader("PHOSLoader"));
if ( gime == 0 )
{
- Error("DrawRecon","Could not obtain the Loader object !");
+ AliError(Form("Could not obtain the Loader object !"));
return ;
}
Int_t iRecParticle ;
TClonesArray * rp = gime->RecParticles() ;
if(!rp){
- Error("InvariantMass", "Can't find RecParticles") ;
+ AliError(Form("Can't find RecParticles")) ;
return ;
}
if (fRunLoader == 0x0)
{
- Error("DrawRecon","Error Loading session");
+ AliError(Form("Error Loading session"));
return;
}
AliPHOSLoader* gime = dynamic_cast<AliPHOSLoader*>(fRunLoader->GetLoader("PHOSLoader"));
if ( gime == 0 )
{
- Error("DrawRecon","Could not obtain the Loader object !");
+ AliError(Form("Could not obtain the Loader object !"));
return ;
}
Int_t iRecParticle ;
TClonesArray * rp = gime->RecParticles() ;
if(!rp) {
- Error("EnergyResolution", "Event %d, Can't find RecParticles ", ievent) ;
+ AliError(Form("Event %d, Can't find RecParticles ", ievent)) ;
return ;
}
TClonesArray * ts = gime->TrackSegments() ;
if(!ts) {
- Error("EnergyResolution", "Event %d, Can't find TrackSegments", ievent) ;
+ AliError(Form("Event %d, Can't find TrackSegments", ievent)) ;
return ;
}
TObjArray * emcrp = gime->EmcRecPoints() ;
if(!emcrp){
- Error("EnergyResolution", "Event %d, Can't find EmcRecPoints") ;
+ AliError(Form("Event %d, Can't find EmcRecPoints")) ;
return ;
}
if (fRunLoader == 0x0)
{
- Error("DrawRecon","Error Loading session");
+ AliError(Form("Error Loading session"));
return;
}
AliPHOSLoader* gime = dynamic_cast<AliPHOSLoader*>(fRunLoader->GetLoader("PHOSLoader"));
if ( gime == 0 )
{
- Error("DrawRecon","Could not obtain the Loader object !");
+ AliError(Form("Could not obtain the Loader object !"));
return ;
}
fRunLoader->GetEvent(ievent) ;
TClonesArray * rp = gime->RecParticles() ;
if(!rp) {
- Error("PositionResolution", "Event %d, Can't find RecParticles", ievent) ;
+ AliError(Form("Event %d, Can't find RecParticles", ievent)) ;
return ;
}
TClonesArray * ts = gime->TrackSegments() ;
if(!ts) {
- Error("PositionResolution", "Event %d, Can't find TrackSegments", ievent) ;
+ AliError(Form("Event %d, Can't find TrackSegments", ievent)) ;
return ;
}
TObjArray * emcrp = gime->EmcRecPoints() ;
if(!emcrp){
- Error("PositionResolution", "Event %d, Can't find EmcRecPoints", ievent) ;
+ AliError(Form("Event %d, Can't find EmcRecPoints", ievent)) ;
return ;
}
if (fRunLoader == 0x0)
{
- Error("DrawRecon","Error Loading session");
+ AliError(Form("Error Loading session"));
return;
}
AliPHOSLoader* gime = dynamic_cast<AliPHOSLoader*>(fRunLoader->GetLoader("PHOSLoader"));
if ( gime == 0 )
{
- Error("DrawRecon","Could not obtain the Loader object !");
+ AliError(Form("Could not obtain the Loader object !"));
return ;
}
TClonesArray * rp = gime->RecParticles() ;
if(!rp) {
- Error("Contamination", "Event %d, Can't find RecParticles", ievent) ;
+ AliError(Form("Event %d, Can't find RecParticles", ievent)) ;
return ;
}
TClonesArray * ts = gime->TrackSegments() ;
if(!ts) {
- Error("Contamination", "Event %d, Can't find TrackSegments", ievent) ;
+ AliError(Form("Event %d, Can't find TrackSegments", ievent)) ;
return ;
}
TObjArray * emcrp = gime->EmcRecPoints() ;
if(!emcrp){
- Error("Contamination", "Event %d, Can't find EmcRecPoints", ievent) ;
+ AliError(Form("Event %d, Can't find EmcRecPoints", ievent)) ;
return ;
}
totalInd+=counter[i1][i2] ;
message += "Indentified particles: %d" ;
- Info("Contamination", message.Data(), maxevent,
+ AliInfo(Form(message.Data(), maxevent,
counter[2][0], counter[2][1], counter[2][2], counter[2][3], counter[2][4],
counter[3][0], counter[3][1], counter[3][2], counter[3][3], counter[3][4],
counter[0][0], counter[0][1], counter[0][2], counter[0][3], counter[0][4],
counter[5][0], counter[5][1], counter[5][2], counter[5][3], counter[5][4],
counter[6][0], counter[6][1], counter[6][2], counter[6][3], counter[6][4],
counter[7][0], counter[7][1], counter[7][2], counter[7][3], counter[7][4],
- totalInd ) ;
+ totalInd )) ;
}