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 // A singleton. This class should be used in the analysis stage to get
20 // reconstructed objects: Digits, RecPoints, TrackSegments and RecParticles,
21 // instead of directly reading them from galice.root file. This container
22 // ensures, that one reads Digits, made of these particular digits, RecPoints,
23 // made of these particular RecPoints, TrackSegments and RecParticles.
24 // This becomes non trivial if there are several identical branches, produced with
25 // different set of parameters.
27 // An example of how to use (see also class AliEMCALAnalyser):
28 // for(Int_t irecp = 0; irecp < gime->NRecParticles() ; irecp++)
29 // AliEMCALRecParticle * part = gime->RecParticle(1) ;
31 // please->GetEvent(event) ; // reads new event from galice.root
33 //*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (RRC KI & SUBATECH)
34 //*-- Completely redesigned by Dmitri Peressounko March 2001
36 //*-- YS June 2001 : renamed the original AliEMCALIndexToObject and make
37 //*-- systematic usage of TFolders without changing the interface
38 //////////////////////////////////////////////////////////////////////////////
41 // --- ROOT system ---
45 // --- Standard library ---
47 // --- AliRoot header files ---
49 #include "AliEMCALLoader.h"
51 #include "AliEMCALHit.h"
52 #include "AliEMCALGetter.h"
54 ClassImp(AliEMCALLoader)
57 const TString AliEMCALLoader::fgkHitsName("HITS");//Name for TClonesArray with hits from one event
58 const TString AliEMCALLoader::fgkSDigitsName("SDIGITS");//Name for TClonesArray
59 const TString AliEMCALLoader::fgkDigitsName("DIGITS");//Name for TClonesArray
60 const TString AliEMCALLoader::fgkECARecPointsName("ECARECPOINTS");//Name for TClonesArray
61 const TString AliEMCALLoader::fgkTracksName("TRACKS");//Name for TClonesArray
62 const TString AliEMCALLoader::fgkRecParticlesName("RECPARTICLES");//Name for TClonesArray
64 const TString AliEMCALLoader::fgkECARecPointsBranchName("EMCALECARP");//Name for branch with ECA Reconstructed Points
65 const TString AliEMCALLoader::fgkTrackSegmentsBranchName("EMCALTS");//Name for branch with TrackSegments
66 const TString AliEMCALLoader::fgkRecParticlesBranchName("EMCALRP");//Name for branch with Reconstructed Particles
68 //____________________________________________________________________________
69 AliEMCALLoader::AliEMCALLoader()
72 fRecParticlesLoaded = kFALSE;
75 //____________________________________________________________________________
76 AliEMCALLoader::AliEMCALLoader(const Char_t *detname,const Char_t *eventfoldername):
77 AliLoader(detname,eventfoldername)
80 fRecParticlesLoaded = kFALSE;
83 //____________________________________________________________________________
84 AliEMCALLoader::~AliEMCALLoader()
86 //remove and delete arrays
88 Clean(fgkSDigitsName);
90 Clean(fgkECARecPointsName);
92 Clean(fgkRecParticlesName);
93 // set to 0x0 the objgetter in AliGetter ... weird isn it !
94 AliEMCALGetter * gime = AliEMCALGetter::Instance() ;
98 //____________________________________________________________________________
99 void AliEMCALLoader::CleanFolders()
102 AliLoader::CleanFolders();
105 //____________________________________________________________________________
106 Int_t AliEMCALLoader::SetEvent()
108 //Cleans loaded stuff and and sets Files and Directories
109 // do not post any data to folder/tasks
112 Int_t retval = AliLoader::SetEvent();
115 Error("SetEvent","AliLoader::SetEvent returned error");
120 if (Hits()) Hits()->Clear();
121 if (SDigits()) SDigits()->Clear();
122 if (Digits()) Digits()->Clear();
123 if (ECARecPoints()) ECARecPoints()->Clear();
124 if (TrackSegments()) TrackSegments()->Clear();
125 if (RecParticles()) RecParticles()->Clear();
130 //____________________________________________________________________________
131 Int_t AliEMCALLoader::GetEvent()
133 //Overloads GetEvent method called by AliRunLoader::GetEvent(Int_t) method
134 //to add Rec Particles specific for EMCAL
136 //First call the original method to get whatever from std. setup is needed
139 retval = AliLoader::GetEvent();
142 Error("GetEvent","AliLoader::GetEvent returned error");
146 if (GetHitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadHits();
147 if (GetSDigitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadSDigits();
148 if (GetDigitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadDigits();
149 if (GetRecPointsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadRecPoints();
150 if (GetTracksDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadTracks();
151 if (GetRecParticlesDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadRecParticles();
154 //Now, check if RecPart were loaded
158 //____________________________________________________________________________
159 const AliEMCAL * AliEMCALLoader::EMCAL()
161 // returns the EMCAL object
162 AliEMCAL * emcal = dynamic_cast<AliEMCAL*>(GetModulesFolder()->FindObject(fDetectorName));
165 cout << "WARNING: AliEMCALLoader::EMCAL -> EMCAL module not found in Folders" << endl ;
169 //____________________________________________________________________________
170 const AliEMCALGeometry * AliEMCALLoader::EMCALGeometry()
172 // Gets the EMCAL Geometry object
173 AliEMCALGeometry * rv = 0 ;
175 rv = EMCAL()->GetGeometry();
179 //____________________________________________________________________________
180 Int_t AliEMCALLoader::LoadHits(Option_t* opt)
182 //------- Hits ----------------------
183 //Overload (extends) LoadHits implemented in AliLoader
187 //First call the AliLoader's method to send the TreeH to folder
188 res = AliLoader::LoadHits(opt);
192 Error("LoadHits","AliLoader::LoadHits returned error");
196 //read the data from tree in folder and send it to folder
201 //____________________________________________________________________________
202 Int_t AliEMCALLoader::LoadSDigits(Option_t* opt)
204 // Loads the SDigits array in the folder structure
206 //First call the AliLoader's method to send the TreeS to folder
207 res = AliLoader::LoadSDigits(opt);
210 Error("PostSDigits","AliLoader::LoadSDigits returned error");
213 return ReadSDigits();
217 //____________________________________________________________________________
218 Int_t AliEMCALLoader::LoadDigits(Option_t* opt)
220 // Loads the Digits array in the folder structure
223 //First call the AliLoader's method to send the TreeS to folder
224 res = AliLoader::LoadDigits(opt);
227 Error("LoadDigits","AliLoader::LoadDigits returned error");
233 //____________________________________________________________________________
234 Int_t AliEMCALLoader::LoadRecPoints(Option_t* opt)
236 // Loads the RecPoints array in the folder structure
238 //First call the AliLoader's method to send the TreeR to folder
239 res = AliLoader::LoadRecPoints(opt);
242 Error("LoadRecPoints","AliLoader::LoadRecPoints returned error");
246 TFolder * emcalFolder = GetDetectorDataFolder();
247 if ( emcalFolder == 0x0 )
249 Error("LoadRecPoints","Can not get detector data folder");
252 return ReadRecPoints();
255 //____________________________________________________________________________
256 Int_t AliEMCALLoader::LoadTracks(Option_t* opt)
258 //Loads Tracks: Open File, Reads Tree and posts, Read Data and Posts
260 printf("LoadTracks: opt = %s",opt);
263 Warning("LoadTracks","Tracks are already loaded");
267 //First call the AliLoader's method to send the TreeS to folder
268 if (GetTracksDataLoader()->GetBaseLoader(0)->IsLoaded() == kFALSE)
269 {//tracks can be loaded by LoadRecPoints
270 res = AliLoader::LoadTracks(opt);
273 Error("LoadTracks","AliLoader::LoadTracks returned error");
280 Error("LoadTracks","Error occured while reading Tracks");
284 fTracksLoaded = kTRUE;
288 //____________________________________________________________________________
289 Int_t AliEMCALLoader::LoadRecParticles(Option_t* opt)
291 // Loads the RecParticles array in the folder structure
293 //First call the AliLoader's method to send the TreeS to folder
294 res = AliLoader::LoadRecParticles(opt);
297 Error("LoadRecParticles","AliLoader::LoadRecParticles returned error");
301 TFolder * emcalFolder = GetDetectorDataFolder();
302 if ( emcalFolder == 0x0 )
304 Error("PostDigits","Can not get detector data folder");
307 return ReadRecParticles();
310 //____________________________________________________________________________
311 Int_t AliEMCALLoader::PostHits()
313 Int_t reval = AliLoader::PostHits();
316 Error("PostHits","AliLoader:: returned error");
322 //____________________________________________________________________________
323 Int_t AliEMCALLoader::PostSDigits()
325 // Posts the SDigits array to the folder structure
326 Int_t reval = AliLoader::PostSDigits();
329 Error("PostSDigits","AliLoader::PostSDigits returned error");
332 return ReadSDigits();
335 //____________________________________________________________________________
336 Int_t AliEMCALLoader::PostDigits()
338 // Posts the Digits array to the folder structure
339 Int_t reval = AliLoader::PostDigits();
342 Error("PostDigits","AliLoader::PostDigits returned error");
348 //____________________________________________________________________________
349 Int_t AliEMCALLoader::PostRecPoints()
351 // Posts the RecPoints array to the folder structure
352 Int_t reval = AliLoader::PostRecPoints();
355 Error("PostRecPoints","AliLoader::PostRecPoints returned error");
358 return ReadRecPoints();
361 //____________________________________________________________________________
362 Int_t AliEMCALLoader::PostRecParticles()
364 // Posts the RecParticles array to the folder structure
366 Int_t reval = AliLoader::PostRecParticles();
369 Error("PostRecParticles","AliLoader::PostRecParticles returned error");
372 return ReadRecParticles();
375 //____________________________________________________________________________
376 Int_t AliEMCALLoader::PostTracks()
378 // Posts the Tracks array to the folder structure
379 Int_t reval = AliLoader::PostTracks();
382 Error("PostTracks","AliLoader::PostTracks returned error");
388 //____________________________________________________________________________
389 Int_t AliEMCALLoader::ReadHits()
391 // If there is no Clones Array in folder creates it and sends to folder
392 // then tries to read
393 // Reads the first entry of EMCAL branch in hit tree TreeH()
394 // Reads data from TreeH and stores it in TClonesArray that sits in DetectorDataFolder
396 TObject** hitref = HitsRef();
403 TClonesArray* hits = dynamic_cast<TClonesArray*>(*hitref);
405 TTree* treeh = TreeH();
409 Error("ReadHits"," Cannot read TreeH from folder");
413 TBranch * hitsbranch = treeh->GetBranch(fDetectorName);
416 Error("ReadHits"," Cannot find branch EMCAL");
421 printf("ReadHits: Reading Hits");
423 if (hitsbranch->GetEntries() > 1)
425 TClonesArray * tempo = new TClonesArray("AliEMCALHit",1000);
427 hitsbranch->SetAddress(&tempo);
430 for (i = 0 ; i < hitsbranch->GetEntries(); i++)
432 hitsbranch->GetEntry(i) ;
434 for ( j = 0 ; j < tempo->GetEntries() ; j++)
436 AliEMCALHit* hit = (AliEMCALHit*)tempo->At(j);
437 new((*hits)[index]) AliEMCALHit( *hit ) ;
445 hitsbranch->SetAddress(hitref);
446 hitsbranch->GetEntry(0) ;
452 //____________________________________________________________________________
453 Int_t AliEMCALLoader::ReadSDigits()
455 // Read the summable digits tree TreeS():
456 // Check if TClones is in folder
457 // if not create and add to folder
458 // connect to tree if available
461 TObject** sdref = SDigitsRef();
465 sdref = SDigitsRef();
468 TTree * treeS = TreeS();
471 //May happen if file is truncated or new in LoadSDigits
472 //Error("ReadSDigits","There is no SDigit Tree");
476 TBranch * branch = treeS->GetBranch(fDetectorName);
478 {//easy, maybe just a new tree
479 //Error("ReadSDigits"," Cannot find branch EMCAL");
483 branch->SetAddress(SDigitsRef());
488 //____________________________________________________________________________
489 Int_t AliEMCALLoader::ReadDigits()
491 // Read the summable digits tree TreeS():
492 // Check if TClones is in folder
493 // if not create and add to folder
494 // connect to tree if available
497 TObject** dref = DigitsRef();
499 {//if there is not array in folder, create it and put it there
504 TTree * treeD = TreeD();
507 //May happen if file is truncated or new in LoadSDigits
508 //Error("ReadDigits","There is no Digit Tree");
512 TBranch * branch = treeD->GetBranch(fDetectorName);
514 {//easy, maybe just a new tree
515 //Error("ReadDigits"," Cannot find branch ",fDetectorName.Data());
519 branch->SetAddress(dref);//connect branch to buffer sitting in folder
520 branch->GetEntry(0);//get first event
525 //____________________________________________________________________________
526 void AliEMCALLoader::UnloadRecParticles()
528 // Unloads the RecParticles array fromthe folder structure
529 fRecParticlesLoaded = kFALSE;
531 if (fTracksLoaded == kFALSE) UnloadTracks();
534 //____________________________________________________________________________
535 void AliEMCALLoader::UnloadTracks()
537 // Unloads the Tracks array fromthe folder structure
538 CleanTracks();//free the memory
539 //in case RecPart are loaded we can not onload tree and close the file
540 if (fRecParticlesLoaded == kFALSE) AliLoader::UnloadTracks();
541 fTracksLoaded = kFALSE;//mark that nobody needs them
544 //____________________________________________________________________________
545 void AliEMCALLoader::Track(Int_t itrack)
547 // Read the first entry of EMCAL branch in hit tree gAlice->TreeH()
552 Error("Track","Can not load hits.");
557 TBranch * hitsbranch = dynamic_cast<TBranch*>(TreeH()->GetListOfBranches()->FindObject("EMCAL")) ;
560 cout << "WARNING: AliEMCALLoader::ReadTreeH -> Cannot find branch EMCAL" << endl ;
563 if(!Hits()) PostHits();
565 hitsbranch->SetAddress(HitsRef());
566 hitsbranch->GetEntry(itrack);
570 //____________________________________________________________________________
571 Int_t AliEMCALLoader::ReadRecPoints()
573 //Creates and posts to folder an array container,
574 //connects branch in tree (if exists), and reads data to array
576 MakeRecPointsArray();
578 TObjArray * eca = 0x0 ;
580 TTree * treeR = TreeR();
584 //May happen if file is truncated or new in LoadSDigits
590 TBranch * ecabranch = treeR->GetBranch(fgkECARecPointsBranchName);
591 if (ecabranch == 0x0)
593 Error("ReadRecPoints","Can not get branch with ECA Rec. Points named %s",fgkECARecPointsBranchName.Data());
598 ecabranch->SetAddress(&eca);
599 ecabranch->GetEntry(0) ;
605 Int_t maxeca = eca->GetEntries() ;
606 for ( ii= 0 ; ii < maxeca ; ii++ )
607 ECARecPoints()->Add(eca->At(ii)) ;
612 //____________________________________________________________________________
613 Int_t AliEMCALLoader::ReadTracks()
615 //Creates and posts to folder an array container,
616 //connects branch in tree (if exists), and reads data to arry
618 TObject** trkref = TracksRef();
620 {//Create and post array
621 MakeTrackSegmentsArray();
622 trkref = TracksRef();
625 TTree * treeT = TreeT();
628 //May happen if file is truncated or new in LoadSDigits, or the file is in update mode,
629 //but tracking was not performed yet for a current event
630 //Error("ReadTracks","There is no Tree with Tracks");
634 TBranch * branch = treeT->GetBranch(fgkTrackSegmentsBranchName);
636 {//easy, maybe just a new tree
637 Error("ReadTracks"," Cannot find branch named %s",fgkTrackSegmentsBranchName.Data());
641 branch->SetAddress(trkref);//connect branch to buffer sitting in folder
642 branch->GetEntry(0);//get first event
647 //____________________________________________________________________________
648 Int_t AliEMCALLoader::ReadRecParticles()
650 //Reads Reconstructed Particles from file
651 //Creates and posts to folder an array container,
652 //connects branch in tree (if exists), and reads data to arry
654 TObject** recpartref = RecParticlesRef();
656 if ( recpartref == 0x0 )
657 {//Create and post array
658 MakeRecParticlesArray();
659 recpartref = RecParticlesRef();
662 TTree * treeP = TreeP();
665 //May happen if file is truncated or new in LoadSDigits,
666 //or the file is in update mode,
667 //but tracking was not performed yet for a current event
668 // Error("ReadRecParticles","There is no Tree with Tracks and Reconstructed Particles");
672 TBranch * branch = treeP->GetBranch(fgkRecParticlesBranchName);
674 {//easy, maybe just a new tree
675 Error("ReadRecParticles"," Cannot find branch %s",fgkRecParticlesBranchName.Data());
679 branch->SetAddress(recpartref);//connect branch to buffer sitting in folder
680 branch->GetEntry(0);//get first event
685 //____________________________________________________________________________
686 AliEMCALGeometry* AliEMCALLoader::GetEMCALGeometry()
688 //returns EMCAL geometry from gAlice
689 //static Method used by some classes where it is not convienient to pass eventfoldername
692 AliEMCAL* emcal=dynamic_cast<AliEMCAL*>(gAlice->GetDetector("EMCAL"));
695 return emcal->GetGeometry();
698 //____________________________________________________________________________
699 AliEMCALLoader* AliEMCALLoader::GetEMCALLoader(const char* eventfoldername)
701 // Get an instance of the EMCALLoader object
702 AliRunLoader* rn = AliRunLoader::GetRunLoader(eventfoldername);
705 cerr<<"Error: <AliEMCALLoader::GetEMCALLoader>: "
706 << "Can not find Run Loader in folder "<<eventfoldername<<endl;
709 return dynamic_cast<AliEMCALLoader*>(rn->GetLoader("EMCALLoader"));
712 //____________________________________________________________________________
713 Bool_t AliEMCALLoader::BranchExists(const TString& recName)
715 if (fBranchTitle.IsNull()) return kFALSE;
716 TString dataname, zername ;
718 if(recName == "SDigits") {
720 dataname = GetDetectorName();
721 zername = "AliEMCALSDigitizer" ;
723 else if(recName == "Digits"){
725 dataname = GetDetectorName();
726 zername = "AliEMCALDigitizer" ;
728 else if(recName == "ECARecPoints"){
730 dataname = fgkECARecPointsBranchName;
731 zername = "AliEMCALClusterizer" ;
733 else if(recName == "TrackSegments"){
735 dataname = fgkTrackSegmentsBranchName;
736 zername = "AliEMCALTrackSegmentMaker";
738 else if(recName == "RecParticles"){
740 dataname = fgkRecParticlesBranchName;
741 zername = "AliEMCALPID";
749 TObjArray * lob = static_cast<TObjArray*>(tree->GetListOfBranches()) ;
751 TBranch * branch = 0 ;
752 TString titleName(fBranchTitle);
755 while ((branch = (static_cast<TBranch*>(next())))) {
756 TString branchName(branch->GetName() ) ;
757 TString branchTitle(branch->GetTitle() ) ;
758 if ( branchName.BeginsWith(dataname) && branchTitle.BeginsWith(fBranchTitle) ){
759 Warning("BranchExists","branch %s with title %s ",dataname.Data(),fBranchTitle.Data());
762 if ( branchName.BeginsWith(zername) && branchTitle.BeginsWith(titleName) ){
763 Warning("BranchExists","branch AliEMCAL... with title %s ",branch->GetTitle());
771 //____________________________________________________________________________
772 void AliEMCALLoader::SetBranchTitle(const TString& btitle)
774 // Gives a name to a branch in the folder structure
775 if (btitle.CompareTo(fBranchTitle) == 0) return;
776 fBranchTitle = btitle;
780 //____________________________________________________________________________
781 void AliEMCALLoader::CleanHits()
783 AliLoader::CleanHits();
785 TClonesArray* hits = Hits();
786 if (hits) hits->Clear();
789 //____________________________________________________________________________
790 void AliEMCALLoader::CleanSDigits()
792 // Cleans the SDigits array in the folder structure
793 AliLoader::CleanSDigits();
794 TClonesArray* sdigits = SDigits();
795 if (sdigits) sdigits->Clear();
798 //____________________________________________________________________________
800 void AliEMCALLoader::CleanDigits()
802 // Cleans the Digits array in the folder structure
803 AliLoader::CleanDigits();
804 TClonesArray* digits = Digits();
805 if (digits) digits->Clear();
808 //____________________________________________________________________________
809 void AliEMCALLoader::CleanRecPoints()
811 // Cleans the RecPoints array in the folder structure
812 AliLoader::CleanRecPoints();
813 TObjArray* recpoints = ECARecPoints();
814 if (recpoints) recpoints->Clear();
818 //____________________________________________________________________________
819 void AliEMCALLoader::CleanTracks()
821 // Cleans the Tracks array in the folder structure
822 AliLoader::CleanTracks();//tree
823 //and clear the array
824 TClonesArray* tracks = TrackSegments();
829 //____________________________________________________________________________
830 void AliEMCALLoader::CleanRecParticles()
832 // Cleans the RecParticles array in the folder structure
833 TClonesArray *recpar = RecParticles();
838 //____________________________________________________________________________
839 // void AliEMCALLoader::ReadCalibrationDB(const char * database,const char * filename)
842 // if(fcdb && (strcmp(database,fcdb->GetTitle())==0))
845 // TFile * file = gROOT->GetFile(filename) ;
847 // file = TFile::Open(filename);
849 // Error ("ReadCalibrationDB", "Cannot open file %s", filename) ;
854 // fcdb = dynamic_cast<AliEMCALCalibrationDB *>(file->Get("AliEMCALCalibrationDB")) ;
856 // Error ("ReadCalibrationDB", "No database %s in file %s", database, filename) ;
858 //____________________________________________________________________________
860 // AliEMCALSDigitizer* AliEMCALLoader::EMCALSDigitizer()
862 // //return EMCAL SDigitizer
863 // return dynamic_cast<AliEMCALSDigitizer*>(SDigitizer()) ;
866 //____________________________________________________________________________
867 void AliEMCALLoader::MakeHitsArray()
869 // Create the array for Hits
871 TClonesArray* hits = new TClonesArray("AliEMCALHit",1000);
872 hits->SetName(fgkHitsName);
873 GetDetectorDataFolder()->Add(hits);
876 //____________________________________________________________________________
877 void AliEMCALLoader::MakeSDigitsArray()
879 // Create the array for SDigits
880 if ( SDigits()) return;
881 TClonesArray* sdigits = new TClonesArray("AliEMCALDigit",1);
882 sdigits->SetName(fgkSDigitsName);
883 GetDetectorDataFolder()->Add(sdigits);
886 //____________________________________________________________________________
887 void AliEMCALLoader::MakeDigitsArray()
889 // Create the array for Digits
890 if ( Digits()) return;
891 TClonesArray* digits = new TClonesArray("AliEMCALDigit",1);
892 digits->SetName(fgkDigitsName);
893 GetDetectorDataFolder()->Add(digits);
897 //____________________________________________________________________________
898 void AliEMCALLoader::MakeRecPointsArray()
900 if ( ECARecPoints() == 0x0) {
902 printf("MakeRecPointsArray: Making array for ECA");
903 TObjArray* eca = new TObjArray(100) ;
904 eca->SetName(fgkECARecPointsName) ;
905 GetDetectorDataFolder()->Add(eca);
909 //____________________________________________________________________________
910 void AliEMCALLoader::MakeTrackSegmentsArray()
912 // Create the array for TrackSegments
913 if ( TrackSegments())
915 TClonesArray * ts = new TClonesArray("AliEMCALTrackSegment",100) ;
916 ts->SetName(fgkTracksName);
917 GetDetectorDataFolder()->Add(ts);
920 //____________________________________________________________________________
921 void AliEMCALLoader::MakeRecParticlesArray()
923 // Create the array for RecParticles
924 if ( RecParticles()) return;
925 TClonesArray * rp = new TClonesArray("AliEMCALRecParticle",100) ;
926 rp->SetName(fgkRecParticlesName);
927 GetDetectorDataFolder()->Add(rp);