//____________________________________________________________________________
const AliPHOSGeometry * AliPHOSLoader::PHOSGeometry()
{
+ // Return PHOS geometry
AliPHOSGeometry * rv = 0 ;
if (PHOS() )
rv = PHOS()->GetGeometry();
//____________________________________________________________________________
Int_t AliPHOSLoader::LoadSDigits(Option_t* opt)
-{ //---------- SDigits -------------------------
+{
+ //---------- SDigits -------------------------
Int_t res;
//First call the AliLoader's method to send the TreeS to folder
res = AliLoader::LoadSDigits(opt);
//____________________________________________________________________________
Int_t AliPHOSLoader::LoadDigits(Option_t* opt)
{
+ //---------- Digits -------------------------
Int_t res;
//First call the AliLoader's method to send the TreeS to folder
res = AliLoader::LoadDigits(opt);
}
//____________________________________________________________________________
Int_t AliPHOSLoader::LoadRecPoints(Option_t* opt)
-{ // -------------- RecPoints -------------------------------------------
+{
+ // -------------- RecPoints -------------------------------------------
Int_t res;
//First call the AliLoader's method to send the TreeR to folder
res = AliLoader::LoadRecPoints(opt);
//____________________________________________________________________________
Int_t AliPHOSLoader::LoadRecParticles(Option_t* opt)
-{ // -------------- RecPoints -------------------------------------------
+{
+ // -------------- RecPoints -------------------------------------------
Int_t res;
//First call the AliLoader's method to send the TreeT to folder
res = AliLoader::LoadRecParticles(opt);
Int_t AliPHOSLoader::PostHits()
{
+ // -------------- Hits -------------------------------------------
Int_t reval = AliLoader::PostHits();
if (reval)
{
Int_t AliPHOSLoader::PostSDigits()
{
+ // -------------- SDigits -------------------------------------------
Int_t reval = AliLoader::PostSDigits();
if (reval)
{
Int_t AliPHOSLoader::PostDigits()
{
+ // -------------- Digits -------------------------------------------
Int_t reval = AliLoader::PostDigits();
if (reval)
{
Int_t AliPHOSLoader::PostRecPoints()
{
+ // -------------- RecPoints -------------------------------------------
Int_t reval = AliLoader::PostRecPoints();
if (reval)
{
Int_t AliPHOSLoader::PostRecParticles()
{
+ // -------------- RecParticles -------------------------------------------
Int_t reval = AliLoader::PostRecParticles();
if (reval)
{
Int_t AliPHOSLoader::PostTracks()
{
+ // -------------- Tracks -------------------------------------------
Int_t reval = AliLoader::PostTracks();
if (reval)
{
AliPHOSGeometry* AliPHOSLoader::GetPHOSGeometry()
{
-//returns PHOS geometry from gAlice
-//static Method used by some classes where it is not convienient to pass eventfoldername
- if (gAlice == 0x0)
- return 0x0;
- AliPHOS* phos=dynamic_cast<AliPHOS*>(gAlice->GetDetector("PHOS"));
- if (phos == 0x0)
- return 0x0;
- return phos->GetGeometry();
+ //returns PHOS geometry from gAlice
+ //static Method used by some classes where it is not convienient to pass eventfoldername
+ if (gAlice == 0x0)
+ return 0x0;
+ AliPHOS* phos=dynamic_cast<AliPHOS*>(gAlice->GetDetector("PHOS"));
+ if (phos == 0x0)
+ return 0x0;
+ return phos->GetGeometry();
}
/***************************************************************************************/
AliPHOSLoader* AliPHOSLoader::GetPHOSLoader(const char* eventfoldername)
{
+ // Return PHOS loader
AliRunLoader* rn = AliRunLoader::GetRunLoader(eventfoldername);
if (rn == 0x0)
{
/***************************************************************************************/
Bool_t AliPHOSLoader::BranchExists(const TString& recName)
- {
+{
+ // Check if a branch named redName exists
if (fBranchTitle.IsNull()) return kFALSE;
TString dataname, zername ;
TTree* tree;
}
void AliPHOSLoader::SetBranchTitle(const TString& btitle)
- {
+{
+ // Set branch title
if (btitle.CompareTo(fBranchTitle) == 0) return;
fBranchTitle = btitle;
ReloadAll();
void AliPHOSLoader::CleanHits()
{
+ // Clean Hits array
AliLoader::CleanHits();
//Clear an array
TClonesArray* hits = Hits();
void AliPHOSLoader::CleanSDigits()
{
+ // Clean SDigits array
AliLoader::CleanSDigits();
TClonesArray* sdigits = SDigits();
if (sdigits) sdigits->Clear();
void AliPHOSLoader::CleanDigits()
{
+ // Clean Digits array
AliLoader::CleanDigits();
TClonesArray* digits = Digits();
if (digits) digits->Clear();
void AliPHOSLoader::CleanRecPoints()
{
+ // Clean RecPoints array
AliLoader::CleanRecPoints();
TObjArray* recpoints = EmcRecPoints();
if (recpoints) recpoints->Clear();
void AliPHOSLoader::CleanTracks()
{
-//Cleans Tracks stuff
-
+ //Cleans Tracks stuff
AliLoader::CleanTracks();//tree
//and clear the array
void AliPHOSLoader::CleanRecParticles()
{
-
+ // Clean RecParticles array
TClonesArray *recpar = RecParticles();
if (recpar) recpar->Clear();
void AliPHOSLoader::ReadCalibrationDB(const char * database,const char * filename)
{
-
+ // Read calibration data base from file
if(fcdb && (strcmp(database,fcdb->GetTitle())==0))
return ;
//____________________________________________________________________________
void AliPHOSLoader::MakeHitsArray()
{
+ // Add Hits array to the data folder
if (Hits()) return;
TClonesArray* hits = new TClonesArray("AliPHOSHit",1000);
hits->SetName(fgkHitsName);
//____________________________________________________________________________
void AliPHOSLoader::MakeSDigitsArray()
{
+ // Add SDigits array to the data folder
if ( SDigits()) return;
TClonesArray* sdigits = new TClonesArray("AliPHOSDigit",1);
sdigits->SetName(fgkSDigitsName);
//____________________________________________________________________________
void AliPHOSLoader::MakeDigitsArray()
{
+ // Add Digits array to the data folder
if ( Digits()) return;
TClonesArray* digits = new TClonesArray("AliPHOSDigit",1);
digits->SetName(fgkDigitsName);
//____________________________________________________________________________
void AliPHOSLoader::MakeRecPointsArray()
{
+ // Add RecPoints array to the data folder
if ( EmcRecPoints() == 0x0)
{
if (GetDebug()>9) Info("MakeRecPointsArray","Making array for EMC");
//____________________________________________________________________________
void AliPHOSLoader::MakeTrackSegmentsArray()
{
+ // Add TrackSegments array to the data folder
if ( TrackSegments()) return;
TClonesArray * ts = new TClonesArray("AliPHOSTrackSegment",100) ;
ts->SetName(fgkTracksName);
//____________________________________________________________________________
void AliPHOSLoader::MakeRecParticlesArray()
{
+ // Add RecParticles array to the data folder
if ( RecParticles()) return;
TClonesArray * rp = new TClonesArray("AliPHOSRecParticle",100) ;
rp->SetName(fgkRecParticlesName);