1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //_________________________________________________________________________
19 // Base class for the clusterization algorithm (pure abstract)
21 //*-- Author: Yves Schutz SUBATECH
23 // August 2002 Yves Schutz: clone PHOS as closely as possible and intoduction
24 // of new IO (à la PHOS)
25 //////////////////////////////////////////////////////////////////////////////
27 // --- ROOT system ---
28 #include "TClonesArray.h"
31 // --- Standard library ---
34 // --- AliRoot header files ---
35 #include "AliEMCALClusterizer.h"
38 ClassImp(AliEMCALClusterizer)
40 //____________________________________________________________________________
41 AliEMCALClusterizer::AliEMCALClusterizer():
49 //____________________________________________________________________________
50 AliEMCALClusterizer::~AliEMCALClusterizer()
63 //____________________________________________________________________________
64 void AliEMCALClusterizer::SetInput(TTree *digitsTree)
66 // Read the digits from the input tree
67 TBranch *branch = digitsTree->GetBranch("EMCAL");
69 AliError("can't get the branch with the EMCAL digits !");
72 fDigitsArr = new TClonesArray("AliEMCALDigit",100);
73 branch->SetAddress(&fDigitsArr);
77 //____________________________________________________________________________
78 void AliEMCALClusterizer::SetOutput(TTree *clustersTree)
80 // Read the digits from the input tree
81 fTreeR = clustersTree;
83 AliDebug(9, "Making array for EMCAL clusters");
84 fRecPoints = new TObjArray(100) ;
86 Int_t bufsize = 32000;
87 fTreeR->Branch("EMCALECARP", "TObjArray", &fRecPoints, bufsize, split);