#include "AliRun.h"
#include "AliPHOSDigit.h"
-#include "AliPHOSHit.h"
-#include "AliPHOSv1.h"
+#include "AliPHOS.h"
#include "AliPHOSDigitizer.h"
#include "AliPHOSSDigitizer.h"
#include "AliPHOSGeometry.h"
// add Task to //root/Tasks folder
TTask * roottasks = (TTask*)gROOT->GetRootFolder()->FindObject("Tasks") ;
- roottasks->Add(this) ;
+ TTask * phostasks = (TTask*)(roottasks->GetListOfTasks()->FindObject("PHOS"));
+ phostasks->Add(this) ;
fInitialized = kTRUE ;
}
// add Task to //root/Tasks folder
TTask * roottasks = (TTask*)gROOT->GetRootFolder()->FindObject("Tasks") ;
- roottasks->Add(this) ;
+ TTask * phostasks = (TTask*)(roottasks->GetListOfTasks()->FindObject("PHOS"));
+ phostasks->Add(this) ;
fInitialized = kTRUE ;
}
// Makes all desirable combinations of Signal+Background,
// returns kFALSE when all combinations are made.
// May be useful to introduce options like "One-to-One", "All-to-One" and "All-to-All" ?
-
- // realizing "One-to-One" option...
+ //realizing "One-to-One" option...
if(!fInitialized)
Init() ;
fDigits->Clear() ;
- AliPHOS * PHOS = (AliPHOS *) gAlice->GetDetector("PHOS") ;
- AliPHOSGeometry *geom = AliPHOSGeometry::GetInstance( PHOS->GetGeometry()->GetName(), PHOS->GetGeometry()->GetTitle() );
+ AliPHOS * phos = (AliPHOS *) gAlice->GetDetector("PHOS") ;
+ AliPHOSGeometry *geom = AliPHOSGeometry::GetInstance( phos->GetGeometry()->GetName(), phos->GetGeometry()->GetTitle() );
//Making digits with noise, first EMC
Int_t nEMC = geom->GetNModules()*geom->GetNPhi()*geom->GetNZ();
cwd->cd();
}
- digitsBranch->Fill() ;
+ digitsBranch->Fill() ;
digitizerBranch->Fill() ;
+// gAlice->TreeD()->Fill() ; // YK 28.05.2001
gAlice->TreeD()->Write(0,kOverwrite) ;
//remove fSDigitizer before new event.
}
//__________________________________________________________________
-void AliPHOSDigitizer::Print(Option_t* option)const
-{
- // Prints the parameters of the digitizer
+void AliPHOSDigitizer::Print(Option_t* option)const {
+ // Print Digitizer's parameters
if(fInitialized){
cout << "------------------- "<< GetName() << " -------------" << endl ;
}
//__________________________________________________________________
-void AliPHOSDigitizer::PrintDigits(Option_t * option)
-{
- // Prints the list of produced digits
+void AliPHOSDigitizer::PrintDigits(Option_t * option){
+ // Print a table of digits
cout << "AliPHOSDigitiser:"<< endl ;
cout << " Number of entries in Digits list " << fDigits->GetEntriesFast() << endl ;
fDigitsTitle = title ;
}
+//__________________________________________________________________
+
AliPHOSPIDv1::AliPHOSPIDv1(const char * headeFile,const char * tsBranchTitle):AliPHOSPID()
{
//ctor with the indication on where to look for the track segments
+
fHeaderFileName = headeFile ;
fTSTitle = tsBranchTitle ;
// add Task to //root/Tasks folder
TTask * roottasks = (TTask*)gROOT->GetRootFolder()->FindObject("Tasks") ;
- roottasks->Add(this) ;
+ TTask * phostasks = (TTask*)(roottasks->GetListOfTasks()->FindObject("PHOS"));
+ phostasks->Add(this) ;
fDispersion = 2.0;
fCpvEmcDistance = 3.0 ;
// add Task to //root/Tasks folder
TTask * roottasks = (TTask*)gROOT->GetRootFolder()->FindObject("Tasks") ;
- roottasks->Add(this) ;
+ TTask * phostasks = (TTask*)(roottasks->GetListOfTasks()->FindObject("PHOS"));
+ phostasks->Add(this) ;
fDispersion = 2.0;
fCpvEmcDistance = 3.0 ;
rpBranch->Fill() ;
pidBranch->Fill() ;
- gAlice->TreeR()->Fill() ;
+// gAlice->TreeR()->Fill() ; // YK 28.05.01
gAlice->TreeR()->Write(0,kOverwrite) ;
}
{
// produces a plot of the dispersion cut
TCanvas* lambdas = new TCanvas("lambdas","Cuts on the ellipse axis",200,10,700,500);
-
+
if(fIDOptions.Contains("ell",TString::kIgnoreCase ) ){
TF2 * ell = new TF2("Elliptic Cuts",fFormula->GetName(),0,3,0,3) ;
ell->SetMinimum(0.0000001) ;
//____________________________________________________________________________
void AliPHOSPIDv1::PrintRecParticles(Option_t * option)
{
- // Prints the list of reconstructed particles
+ // Print table of reconstructed particles
+
cout << "AliPHOSPIDv1: " << endl ;
cout << " found " << fRecParticles->GetEntriesFast() << " RecParticles " << endl ;