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() ;
99 //____________________________________________________________________________
100 void AliEMCALLoader::CleanFolders()
103 AliLoader::CleanFolders();
106 //____________________________________________________________________________
107 Int_t AliEMCALLoader::SetEvent()
109 //Cleans loaded stuff and and sets Files and Directories
110 // do not post any data to folder/tasks
113 Int_t retval = AliLoader::SetEvent();
116 Error("SetEvent","AliLoader::SetEvent returned error");
121 if (Hits()) Hits()->Clear();
122 if (SDigits()) SDigits()->Clear();
123 if (Digits()) Digits()->Clear();
124 if (ECARecPoints()) ECARecPoints()->Clear();
125 if (TrackSegments()) TrackSegments()->Clear();
126 if (RecParticles()) RecParticles()->Clear();
131 //____________________________________________________________________________
132 Int_t AliEMCALLoader::GetEvent()
134 //Overloads GetEvent method called by AliRunLoader::GetEvent(Int_t) method
135 //to add Rec Particles specific for EMCAL
137 //First call the original method to get whatever from std. setup is needed
140 retval = AliLoader::GetEvent();
143 Error("GetEvent","AliLoader::GetEvent returned error");
147 if (GetHitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadHits();
148 if (GetSDigitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadSDigits();
149 if (GetDigitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadDigits();
150 if (GetRecPointsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadRecPoints();
151 if (GetTracksDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadTracks();
152 if (GetRecParticlesDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadRecParticles();
155 //Now, check if RecPart were loaded
159 //____________________________________________________________________________
160 const AliEMCAL * AliEMCALLoader::EMCAL()
162 // returns the EMCAL object
163 AliEMCAL * emcal = dynamic_cast<AliEMCAL*>(GetModulesFolder()->FindObject(fDetectorName));
166 cout << "WARNING: AliEMCALLoader::EMCAL -> EMCAL module not found in Folders" << endl ;
170 //____________________________________________________________________________
171 const AliEMCALGeometry * AliEMCALLoader::EMCALGeometry()
173 // Gets the EMCAL Geometry object
174 AliEMCALGeometry * rv = 0 ;
176 rv = EMCAL()->GetGeometry();
180 //____________________________________________________________________________
181 Int_t AliEMCALLoader::LoadHits(Option_t* opt)
183 //------- Hits ----------------------
184 //Overload (extends) LoadHits implemented in AliLoader
188 //First call the AliLoader's method to send the TreeH to folder
189 res = AliLoader::LoadHits(opt);
193 Error("LoadHits","AliLoader::LoadHits returned error");
197 //read the data from tree in folder and send it to folder
202 //____________________________________________________________________________
203 Int_t AliEMCALLoader::LoadSDigits(Option_t* opt)
205 // Loads the SDigits array in the folder structure
207 //First call the AliLoader's method to send the TreeS to folder
208 res = AliLoader::LoadSDigits(opt);
211 Error("PostSDigits","AliLoader::LoadSDigits returned error");
214 return ReadSDigits();
218 //____________________________________________________________________________
219 Int_t AliEMCALLoader::LoadDigits(Option_t* opt)
221 // Loads the Digits array in the folder structure
224 //First call the AliLoader's method to send the TreeS to folder
225 res = AliLoader::LoadDigits(opt);
228 Error("LoadDigits","AliLoader::LoadDigits returned error");
234 //____________________________________________________________________________
235 Int_t AliEMCALLoader::LoadRecPoints(Option_t* opt)
237 // Loads the RecPoints array in the folder structure
239 //First call the AliLoader's method to send the TreeR to folder
240 res = AliLoader::LoadRecPoints(opt);
243 Error("LoadRecPoints","AliLoader::LoadRecPoints returned error");
247 TFolder * emcalFolder = GetDetectorDataFolder();
248 if ( emcalFolder == 0x0 )
250 Error("LoadRecPoints","Can not get detector data folder");
253 return ReadRecPoints();
256 //____________________________________________________________________________
257 Int_t AliEMCALLoader::LoadTracks(Option_t* opt)
259 //Loads Tracks: Open File, Reads Tree and posts, Read Data and Posts
261 printf("LoadTracks: opt = %s",opt);
264 Warning("LoadTracks","Tracks are already loaded");
268 //First call the AliLoader's method to send the TreeS to folder
269 if (GetTracksDataLoader()->GetBaseLoader(0)->IsLoaded() == kFALSE)
270 {//tracks can be loaded by LoadRecPoints
271 res = AliLoader::LoadTracks(opt);
274 Error("LoadTracks","AliLoader::LoadTracks returned error");
281 Error("LoadTracks","Error occured while reading Tracks");
285 fTracksLoaded = kTRUE;
289 //____________________________________________________________________________
290 Int_t AliEMCALLoader::LoadRecParticles(Option_t* opt)
292 // Loads the RecParticles array in the folder structure
294 //First call the AliLoader's method to send the TreeS to folder
295 res = AliLoader::LoadRecParticles(opt);
298 Error("LoadRecParticles","AliLoader::LoadRecParticles returned error");
302 TFolder * emcalFolder = GetDetectorDataFolder();
303 if ( emcalFolder == 0x0 )
305 Error("PostDigits","Can not get detector data folder");
308 return ReadRecParticles();
311 //____________________________________________________________________________
312 Int_t AliEMCALLoader::PostHits()
314 Int_t reval = AliLoader::PostHits();
317 Error("PostHits","AliLoader:: returned error");
323 //____________________________________________________________________________
324 Int_t AliEMCALLoader::PostSDigits()
326 // Posts the SDigits array to the folder structure
327 Int_t reval = AliLoader::PostSDigits();
330 Error("PostSDigits","AliLoader::PostSDigits returned error");
333 return ReadSDigits();
336 //____________________________________________________________________________
337 Int_t AliEMCALLoader::PostDigits()
339 // Posts the Digits array to the folder structure
340 Int_t reval = AliLoader::PostDigits();
343 Error("PostDigits","AliLoader::PostDigits returned error");
349 //____________________________________________________________________________
350 Int_t AliEMCALLoader::PostRecPoints()
352 // Posts the RecPoints array to the folder structure
353 Int_t reval = AliLoader::PostRecPoints();
356 Error("PostRecPoints","AliLoader::PostRecPoints returned error");
359 return ReadRecPoints();
362 //____________________________________________________________________________
363 Int_t AliEMCALLoader::PostRecParticles()
365 // Posts the RecParticles array to the folder structure
367 Int_t reval = AliLoader::PostRecParticles();
370 Error("PostRecParticles","AliLoader::PostRecParticles returned error");
373 return ReadRecParticles();
376 //____________________________________________________________________________
377 Int_t AliEMCALLoader::PostTracks()
379 // Posts the Tracks array to the folder structure
380 Int_t reval = AliLoader::PostTracks();
383 Error("PostTracks","AliLoader::PostTracks returned error");
389 //____________________________________________________________________________
390 Int_t AliEMCALLoader::ReadHits()
392 // If there is no Clones Array in folder creates it and sends to folder
393 // then tries to read
394 // Reads the first entry of EMCAL branch in hit tree TreeH()
395 // Reads data from TreeH and stores it in TClonesArray that sits in DetectorDataFolder
397 TObject** hitref = HitsRef();
404 TClonesArray* hits = dynamic_cast<TClonesArray*>(*hitref);
406 TTree* treeh = TreeH();
410 Error("ReadHits"," Cannot read TreeH from folder");
414 TBranch * hitsbranch = treeh->GetBranch(fDetectorName);
417 Error("ReadHits"," Cannot find branch EMCAL");
422 printf("ReadHits: Reading Hits");
424 if (hitsbranch->GetEntries() > 1)
426 TClonesArray * tempo = new TClonesArray("AliEMCALHit",1000);
428 hitsbranch->SetAddress(&tempo);
431 for (i = 0 ; i < hitsbranch->GetEntries(); i++)
433 hitsbranch->GetEntry(i) ;
435 for ( j = 0 ; j < tempo->GetEntries() ; j++)
437 AliEMCALHit* hit = (AliEMCALHit*)tempo->At(j);
438 new((*hits)[index]) AliEMCALHit( *hit ) ;
446 hitsbranch->SetAddress(hitref);
447 hitsbranch->GetEntry(0) ;
453 //____________________________________________________________________________
454 Int_t AliEMCALLoader::ReadSDigits()
456 // Read the summable digits tree TreeS():
457 // Check if TClones is in folder
458 // if not create and add to folder
459 // connect to tree if available
462 TObject** sdref = SDigitsRef();
466 sdref = SDigitsRef();
469 TTree * treeS = TreeS();
472 //May happen if file is truncated or new in LoadSDigits
473 //Error("ReadSDigits","There is no SDigit Tree");
477 TBranch * branch = treeS->GetBranch(fDetectorName);
479 {//easy, maybe just a new tree
480 //Error("ReadSDigits"," Cannot find branch EMCAL");
484 branch->SetAddress(SDigitsRef());
489 //____________________________________________________________________________
490 Int_t AliEMCALLoader::ReadDigits()
492 // Read the summable digits tree TreeS():
493 // Check if TClones is in folder
494 // if not create and add to folder
495 // connect to tree if available
498 TObject** dref = DigitsRef();
500 {//if there is not array in folder, create it and put it there
505 TTree * treeD = TreeD();
508 //May happen if file is truncated or new in LoadSDigits
509 //Error("ReadDigits","There is no Digit Tree");
513 TBranch * branch = treeD->GetBranch(fDetectorName);
515 {//easy, maybe just a new tree
516 //Error("ReadDigits"," Cannot find branch ",fDetectorName.Data());
520 branch->SetAddress(dref);//connect branch to buffer sitting in folder
521 branch->GetEntry(0);//get first event
526 //____________________________________________________________________________
527 void AliEMCALLoader::UnloadRecParticles()
529 // Unloads the RecParticles array fromthe folder structure
530 fRecParticlesLoaded = kFALSE;
532 if (fTracksLoaded == kFALSE) UnloadTracks();
535 //____________________________________________________________________________
536 void AliEMCALLoader::UnloadTracks()
538 // Unloads the Tracks array fromthe folder structure
539 CleanTracks();//free the memory
540 //in case RecPart are loaded we can not onload tree and close the file
541 if (fRecParticlesLoaded == kFALSE) AliLoader::UnloadTracks();
542 fTracksLoaded = kFALSE;//mark that nobody needs them
545 //____________________________________________________________________________
546 void AliEMCALLoader::Track(Int_t itrack)
548 // Read the first entry of EMCAL branch in hit tree gAlice->TreeH()
553 Error("Track","Can not load hits.");
558 TBranch * hitsbranch = dynamic_cast<TBranch*>(TreeH()->GetListOfBranches()->FindObject("EMCAL")) ;
561 cout << "WARNING: AliEMCALLoader::ReadTreeH -> Cannot find branch EMCAL" << endl ;
564 if(!Hits()) PostHits();
566 hitsbranch->SetAddress(HitsRef());
567 hitsbranch->GetEntry(itrack);
571 //____________________________________________________________________________
572 Int_t AliEMCALLoader::ReadRecPoints()
574 //Creates and posts to folder an array container,
575 //connects branch in tree (if exists), and reads data to array
577 MakeRecPointsArray();
579 TObjArray * eca = 0x0 ;
581 TTree * treeR = TreeR();
585 //May happen if file is truncated or new in LoadSDigits
591 TBranch * ecabranch = treeR->GetBranch(fgkECARecPointsBranchName);
592 if (ecabranch == 0x0)
594 Error("ReadRecPoints","Can not get branch with ECA Rec. Points named %s",fgkECARecPointsBranchName.Data());
599 ecabranch->SetAddress(&eca);
600 ecabranch->GetEntry(0) ;
606 Int_t maxeca = eca->GetEntries() ;
607 for ( ii= 0 ; ii < maxeca ; ii++ )
608 ECARecPoints()->Add(eca->At(ii)) ;
613 //____________________________________________________________________________
614 Int_t AliEMCALLoader::ReadTracks()
616 //Creates and posts to folder an array container,
617 //connects branch in tree (if exists), and reads data to arry
619 TObject** trkref = TracksRef();
621 {//Create and post array
622 MakeTrackSegmentsArray();
623 trkref = TracksRef();
626 TTree * treeT = TreeT();
629 //May happen if file is truncated or new in LoadSDigits, or the file is in update mode,
630 //but tracking was not performed yet for a current event
631 //Error("ReadTracks","There is no Tree with Tracks");
635 TBranch * branch = treeT->GetBranch(fgkTrackSegmentsBranchName);
637 {//easy, maybe just a new tree
638 Error("ReadTracks"," Cannot find branch named %s",fgkTrackSegmentsBranchName.Data());
642 branch->SetAddress(trkref);//connect branch to buffer sitting in folder
643 branch->GetEntry(0);//get first event
648 //____________________________________________________________________________
649 Int_t AliEMCALLoader::ReadRecParticles()
651 //Reads Reconstructed Particles from file
652 //Creates and posts to folder an array container,
653 //connects branch in tree (if exists), and reads data to arry
655 TObject** recpartref = RecParticlesRef();
657 if ( recpartref == 0x0 )
658 {//Create and post array
659 MakeRecParticlesArray();
660 recpartref = RecParticlesRef();
663 TTree * treeP = TreeP();
666 //May happen if file is truncated or new in LoadSDigits,
667 //or the file is in update mode,
668 //but tracking was not performed yet for a current event
669 // Error("ReadRecParticles","There is no Tree with Tracks and Reconstructed Particles");
673 TBranch * branch = treeP->GetBranch(fgkRecParticlesBranchName);
675 {//easy, maybe just a new tree
676 Error("ReadRecParticles"," Cannot find branch %s",fgkRecParticlesBranchName.Data());
680 branch->SetAddress(recpartref);//connect branch to buffer sitting in folder
681 branch->GetEntry(0);//get first event
686 //____________________________________________________________________________
687 AliEMCALGeometry* AliEMCALLoader::GetEMCALGeometry()
689 //returns EMCAL geometry from gAlice
690 //static Method used by some classes where it is not convienient to pass eventfoldername
693 AliEMCAL* emcal=dynamic_cast<AliEMCAL*>(gAlice->GetDetector("EMCAL"));
696 return emcal->GetGeometry();
699 //____________________________________________________________________________
700 AliEMCALLoader* AliEMCALLoader::GetEMCALLoader(const char* eventfoldername)
702 // Get an instance of the EMCALLoader object
703 AliRunLoader* rn = AliRunLoader::GetRunLoader(eventfoldername);
706 cerr<<"Error: <AliEMCALLoader::GetEMCALLoader>: "
707 << "Can not find Run Loader in folder "<<eventfoldername<<endl;
710 return dynamic_cast<AliEMCALLoader*>(rn->GetLoader("EMCALLoader"));
713 //____________________________________________________________________________
714 Bool_t AliEMCALLoader::BranchExists(const TString& recName)
716 if (fBranchTitle.IsNull()) return kFALSE;
717 TString dataname, zername ;
719 if(recName == "SDigits") {
721 dataname = GetDetectorName();
722 zername = "AliEMCALSDigitizer" ;
724 else if(recName == "Digits"){
726 dataname = GetDetectorName();
727 zername = "AliEMCALDigitizer" ;
729 else if(recName == "ECARecPoints"){
731 dataname = fgkECARecPointsBranchName;
732 zername = "AliEMCALClusterizer" ;
734 else if(recName == "TrackSegments"){
736 dataname = fgkTrackSegmentsBranchName;
737 zername = "AliEMCALTrackSegmentMaker";
739 else if(recName == "RecParticles"){
741 dataname = fgkRecParticlesBranchName;
742 zername = "AliEMCALPID";
750 TObjArray * lob = static_cast<TObjArray*>(tree->GetListOfBranches()) ;
752 TBranch * branch = 0 ;
753 TString titleName(fBranchTitle);
756 while ((branch = (static_cast<TBranch*>(next())))) {
757 TString branchName(branch->GetName() ) ;
758 TString branchTitle(branch->GetTitle() ) ;
759 if ( branchName.BeginsWith(dataname) && branchTitle.BeginsWith(fBranchTitle) ){
760 Warning("BranchExists","branch %s with title %s ",dataname.Data(),fBranchTitle.Data());
763 if ( branchName.BeginsWith(zername) && branchTitle.BeginsWith(titleName) ){
764 Warning("BranchExists","branch AliEMCAL... with title %s ",branch->GetTitle());
772 //____________________________________________________________________________
773 void AliEMCALLoader::SetBranchTitle(const TString& btitle)
775 // Gives a name to a branch in the folder structure
776 if (btitle.CompareTo(fBranchTitle) == 0) return;
777 fBranchTitle = btitle;
781 //____________________________________________________________________________
782 void AliEMCALLoader::CleanHits()
784 AliLoader::CleanHits();
786 TClonesArray* hits = Hits();
787 if (hits) hits->Clear();
790 //____________________________________________________________________________
791 void AliEMCALLoader::CleanSDigits()
793 // Cleans the SDigits array in the folder structure
794 AliLoader::CleanSDigits();
795 TClonesArray* sdigits = SDigits();
796 if (sdigits) sdigits->Clear();
799 //____________________________________________________________________________
801 void AliEMCALLoader::CleanDigits()
803 // Cleans the Digits array in the folder structure
804 AliLoader::CleanDigits();
805 TClonesArray* digits = Digits();
806 if (digits) digits->Clear();
809 //____________________________________________________________________________
810 void AliEMCALLoader::CleanRecPoints()
812 // Cleans the RecPoints array in the folder structure
813 AliLoader::CleanRecPoints();
814 TObjArray* recpoints = ECARecPoints();
815 if (recpoints) recpoints->Clear();
819 //____________________________________________________________________________
820 void AliEMCALLoader::CleanTracks()
822 // Cleans the Tracks array in the folder structure
823 AliLoader::CleanTracks();//tree
824 //and clear the array
825 TClonesArray* tracks = TrackSegments();
830 //____________________________________________________________________________
831 void AliEMCALLoader::CleanRecParticles()
833 // Cleans the RecParticles array in the folder structure
834 TClonesArray *recpar = RecParticles();
839 //____________________________________________________________________________
840 // void AliEMCALLoader::ReadCalibrationDB(const char * database,const char * filename)
843 // if(fcdb && (strcmp(database,fcdb->GetTitle())==0))
846 // TFile * file = gROOT->GetFile(filename) ;
848 // file = TFile::Open(filename);
850 // Error ("ReadCalibrationDB", "Cannot open file %s", filename) ;
855 // fcdb = dynamic_cast<AliEMCALCalibrationDB *>(file->Get("AliEMCALCalibrationDB")) ;
857 // Error ("ReadCalibrationDB", "No database %s in file %s", database, filename) ;
859 //____________________________________________________________________________
861 // AliEMCALSDigitizer* AliEMCALLoader::EMCALSDigitizer()
863 // //return EMCAL SDigitizer
864 // return dynamic_cast<AliEMCALSDigitizer*>(SDigitizer()) ;
867 //____________________________________________________________________________
868 void AliEMCALLoader::MakeHitsArray()
870 // Create the array for Hits
872 TClonesArray* hits = new TClonesArray("AliEMCALHit",1000);
873 hits->SetName(fgkHitsName);
874 GetDetectorDataFolder()->Add(hits);
877 //____________________________________________________________________________
878 void AliEMCALLoader::MakeSDigitsArray()
880 // Create the array for SDigits
881 if ( SDigits()) return;
882 TClonesArray* sdigits = new TClonesArray("AliEMCALDigit",1);
883 sdigits->SetName(fgkSDigitsName);
884 GetDetectorDataFolder()->Add(sdigits);
887 //____________________________________________________________________________
888 void AliEMCALLoader::MakeDigitsArray()
890 // Create the array for Digits
891 if ( Digits()) return;
892 TClonesArray* digits = new TClonesArray("AliEMCALDigit",1);
893 digits->SetName(fgkDigitsName);
894 GetDetectorDataFolder()->Add(digits);
898 //____________________________________________________________________________
899 void AliEMCALLoader::MakeRecPointsArray()
901 if ( ECARecPoints() == 0x0) {
903 printf("MakeRecPointsArray: Making array for ECA");
904 TObjArray* eca = new TObjArray(100) ;
905 eca->SetName(fgkECARecPointsName) ;
906 GetDetectorDataFolder()->Add(eca);
910 //____________________________________________________________________________
911 void AliEMCALLoader::MakeTrackSegmentsArray()
913 // Create the array for TrackSegments
914 if ( TrackSegments())
916 TClonesArray * ts = new TClonesArray("AliEMCALTrackSegment",100) ;
917 ts->SetName(fgkTracksName);
918 GetDetectorDataFolder()->Add(ts);
921 //____________________________________________________________________________
922 void AliEMCALLoader::MakeRecParticlesArray()
924 // Create the array for RecParticles
925 if ( RecParticles()) return;
926 TClonesArray * rp = new TClonesArray("AliEMCALRecParticle",100) ;
927 rp->SetName(fgkRecParticlesName);
928 GetDetectorDataFolder()->Add(rp);