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);
94 // set to 0x0 the objgetter in AliGetter ... weird isn it !
96 AliEMCALGetter * gime = AliEMCALGetter::Instance() ;
102 //____________________________________________________________________________
103 void AliEMCALLoader::CleanFolders()
106 AliLoader::CleanFolders();
109 //____________________________________________________________________________
110 Int_t AliEMCALLoader::SetEvent()
112 //Cleans loaded stuff and and sets Files and Directories
113 // do not post any data to folder/tasks
116 Int_t retval = AliLoader::SetEvent();
119 Error("SetEvent","AliLoader::SetEvent returned error");
124 if (Hits()) Hits()->Clear();
125 if (SDigits()) SDigits()->Clear();
126 if (Digits()) Digits()->Clear();
127 if (ECARecPoints()) ECARecPoints()->Clear();
128 if (TrackSegments()) TrackSegments()->Clear();
129 if (RecParticles()) RecParticles()->Clear();
134 //____________________________________________________________________________
135 Int_t AliEMCALLoader::GetEvent()
137 //Overloads GetEvent method called by AliRunLoader::GetEvent(Int_t) method
138 //to add Rec Particles specific for EMCAL
140 //First call the original method to get whatever from std. setup is needed
143 retval = AliLoader::GetEvent();
146 Error("GetEvent","AliLoader::GetEvent returned error");
150 if (GetHitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadHits();
151 if (GetSDigitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadSDigits();
152 if (GetDigitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadDigits();
153 if (GetRecPointsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadRecPoints();
154 if (GetTracksDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadTracks();
155 if (GetRecParticlesDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadRecParticles();
158 //Now, check if RecPart were loaded
162 //____________________________________________________________________________
163 const AliEMCAL * AliEMCALLoader::EMCAL()
165 // returns the EMCAL object
166 AliEMCAL * emcal = dynamic_cast<AliEMCAL*>(GetModulesFolder()->FindObject(fDetectorName));
169 cout << "WARNING: AliEMCALLoader::EMCAL -> EMCAL module not found in Folders" << endl ;
173 //____________________________________________________________________________
174 const AliEMCALGeometry * AliEMCALLoader::EMCALGeometry()
176 // Gets the EMCAL Geometry object
177 AliEMCALGeometry * rv = 0 ;
179 rv = EMCAL()->GetGeometry();
183 //____________________________________________________________________________
184 Int_t AliEMCALLoader::LoadHits(Option_t* opt)
186 //------- Hits ----------------------
187 //Overload (extends) LoadHits implemented in AliLoader
191 //First call the AliLoader's method to send the TreeH to folder
192 res = AliLoader::LoadHits(opt);
196 Error("LoadHits","AliLoader::LoadHits returned error");
200 //read the data from tree in folder and send it to folder
205 //____________________________________________________________________________
206 Int_t AliEMCALLoader::LoadSDigits(Option_t* opt)
208 // Loads the SDigits array in the folder structure
210 //First call the AliLoader's method to send the TreeS to folder
211 res = AliLoader::LoadSDigits(opt);
214 Error("PostSDigits","AliLoader::LoadSDigits returned error");
217 return ReadSDigits();
221 //____________________________________________________________________________
222 Int_t AliEMCALLoader::LoadDigits(Option_t* opt)
224 // Loads the Digits array in the folder structure
227 //First call the AliLoader's method to send the TreeS to folder
228 res = AliLoader::LoadDigits(opt);
231 Error("LoadDigits","AliLoader::LoadDigits returned error");
237 //____________________________________________________________________________
238 Int_t AliEMCALLoader::LoadRecPoints(Option_t* opt)
240 // Loads the RecPoints array in the folder structure
242 //First call the AliLoader's method to send the TreeR to folder
243 res = AliLoader::LoadRecPoints(opt);
246 Error("LoadRecPoints","AliLoader::LoadRecPoints returned error");
250 TFolder * emcalFolder = GetDetectorDataFolder();
251 if ( emcalFolder == 0x0 )
253 Error("LoadRecPoints","Can not get detector data folder");
256 return ReadRecPoints();
259 //____________________________________________________________________________
260 Int_t AliEMCALLoader::LoadTracks(Option_t* opt)
262 //Loads Tracks: Open File, Reads Tree and posts, Read Data and Posts
264 printf("LoadTracks: opt = %s",opt);
267 Warning("LoadTracks","Tracks are already loaded");
271 //First call the AliLoader's method to send the TreeS to folder
272 if (GetTracksDataLoader()->GetBaseLoader(0)->IsLoaded() == kFALSE)
273 {//tracks can be loaded by LoadRecPoints
274 res = AliLoader::LoadTracks(opt);
277 Error("LoadTracks","AliLoader::LoadTracks returned error");
284 Error("LoadTracks","Error occured while reading Tracks");
288 fTracksLoaded = kTRUE;
292 //____________________________________________________________________________
293 Int_t AliEMCALLoader::LoadRecParticles(Option_t* opt)
295 // Loads the RecParticles array in the folder structure
297 //First call the AliLoader's method to send the TreeS to folder
298 res = AliLoader::LoadRecParticles(opt);
301 Error("LoadRecParticles","AliLoader::LoadRecParticles returned error");
305 TFolder * emcalFolder = GetDetectorDataFolder();
306 if ( emcalFolder == 0x0 )
308 Error("PostDigits","Can not get detector data folder");
311 return ReadRecParticles();
314 //____________________________________________________________________________
315 Int_t AliEMCALLoader::PostHits()
318 Int_t reval = AliLoader::PostHits();
321 Error("PostHits","AliLoader:: returned error");
327 //____________________________________________________________________________
328 Int_t AliEMCALLoader::PostSDigits()
330 // Posts the SDigits array to the folder structure
331 Int_t reval = AliLoader::PostSDigits();
334 Error("PostSDigits","AliLoader::PostSDigits returned error");
337 return ReadSDigits();
340 //____________________________________________________________________________
341 Int_t AliEMCALLoader::PostDigits()
343 // Posts the Digits array to the folder structure
344 Int_t reval = AliLoader::PostDigits();
347 Error("PostDigits","AliLoader::PostDigits returned error");
353 //____________________________________________________________________________
354 Int_t AliEMCALLoader::PostRecPoints()
356 // Posts the RecPoints array to the folder structure
357 Int_t reval = AliLoader::PostRecPoints();
360 Error("PostRecPoints","AliLoader::PostRecPoints returned error");
363 return ReadRecPoints();
366 //____________________________________________________________________________
367 Int_t AliEMCALLoader::PostRecParticles()
369 // Posts the RecParticles array to the folder structure
371 Int_t reval = AliLoader::PostRecParticles();
374 Error("PostRecParticles","AliLoader::PostRecParticles returned error");
377 return ReadRecParticles();
380 //____________________________________________________________________________
381 Int_t AliEMCALLoader::PostTracks()
383 // Posts the Tracks array to the folder structure
384 Int_t reval = AliLoader::PostTracks();
387 Error("PostTracks","AliLoader::PostTracks returned error");
393 //____________________________________________________________________________
394 Int_t AliEMCALLoader::ReadHits()
396 // If there is no Clones Array in folder creates it and sends to folder
397 // then tries to read
398 // Reads the first entry of EMCAL branch in hit tree TreeH()
399 // Reads data from TreeH and stores it in TClonesArray that sits in DetectorDataFolder
401 TObject** hitref = HitsRef();
408 TClonesArray* hits = dynamic_cast<TClonesArray*>(*hitref);
410 TTree* treeh = TreeH();
414 Error("ReadHits"," Cannot read TreeH from folder");
418 TBranch * hitsbranch = treeh->GetBranch(fDetectorName);
421 Error("ReadHits"," Cannot find branch EMCAL");
426 printf("ReadHits: Reading Hits");
428 if (hitsbranch->GetEntries() > 1)
430 TClonesArray * tempo = new TClonesArray("AliEMCALHit",1000);
432 hitsbranch->SetAddress(&tempo);
435 for (i = 0 ; i < hitsbranch->GetEntries(); i++)
437 hitsbranch->GetEntry(i) ;
439 for ( j = 0 ; j < tempo->GetEntries() ; j++)
441 AliEMCALHit* hit = (AliEMCALHit*)tempo->At(j);
442 new((*hits)[index]) AliEMCALHit( *hit ) ;
451 hitsbranch->SetAddress(hitref);
452 hitsbranch->GetEntry(0) ;
458 //____________________________________________________________________________
459 Int_t AliEMCALLoader::ReadSDigits()
461 // Read the summable digits tree TreeS():
462 // Check if TClones is in folder
463 // if not create and add to folder
464 // connect to tree if available
467 TObject** sdref = SDigitsRef();
471 sdref = SDigitsRef();
474 TTree * treeS = TreeS();
477 //May happen if file is truncated or new in LoadSDigits
478 //Error("ReadSDigits","There is no SDigit Tree");
482 TBranch * branch = treeS->GetBranch(fDetectorName);
484 {//easy, maybe just a new tree
485 //Error("ReadSDigits"," Cannot find branch EMCAL");
489 branch->SetAddress(SDigitsRef());
494 //____________________________________________________________________________
495 Int_t AliEMCALLoader::ReadDigits()
497 // Read the summable digits tree TreeS():
498 // Check if TClones is in folder
499 // if not create and add to folder
500 // connect to tree if available
503 TObject** dref = DigitsRef();
505 {//if there is not array in folder, create it and put it there
510 TTree * treeD = TreeD();
513 //May happen if file is truncated or new in LoadSDigits
514 //Error("ReadDigits","There is no Digit Tree");
518 TBranch * branch = treeD->GetBranch(fDetectorName);
520 {//easy, maybe just a new tree
521 //Error("ReadDigits"," Cannot find branch ",fDetectorName.Data());
525 branch->SetAddress(dref);//connect branch to buffer sitting in folder
526 branch->GetEntry(0);//get first event
531 //____________________________________________________________________________
532 void AliEMCALLoader::UnloadRecParticles()
534 // Unloads the RecParticles array fromthe folder structure
535 fRecParticlesLoaded = kFALSE;
537 if (fTracksLoaded == kFALSE) UnloadTracks();
540 //____________________________________________________________________________
541 void AliEMCALLoader::UnloadTracks()
543 // Unloads the Tracks array fromthe folder structure
544 CleanTracks();//free the memory
545 //in case RecPart are loaded we can not onload tree and close the file
546 if (fRecParticlesLoaded == kFALSE) AliLoader::UnloadTracks();
547 fTracksLoaded = kFALSE;//mark that nobody needs them
550 //____________________________________________________________________________
551 void AliEMCALLoader::Track(Int_t itrack)
553 // Read the first entry of EMCAL branch in hit tree gAlice->TreeH()
558 Error("Track","Can not load hits.");
563 TBranch * hitsbranch = dynamic_cast<TBranch*>(TreeH()->GetListOfBranches()->FindObject("EMCAL")) ;
566 cout << "WARNING: AliEMCALLoader::ReadTreeH -> Cannot find branch EMCAL" << endl ;
569 if(!Hits()) PostHits();
571 hitsbranch->SetAddress(HitsRef());
572 hitsbranch->GetEntry(itrack);
576 //____________________________________________________________________________
577 Int_t AliEMCALLoader::ReadRecPoints()
579 //Creates and posts to folder an array container,
580 //connects branch in tree (if exists), and reads data to array
582 MakeRecPointsArray();
584 TObjArray * eca = 0x0 ;
586 TTree * treeR = TreeR();
590 //May happen if file is truncated or new in LoadSDigits
596 TBranch * ecabranch = treeR->GetBranch(fgkECARecPointsBranchName);
597 if (ecabranch == 0x0)
599 Error("ReadRecPoints","Can not get branch with ECA Rec. Points named %s",fgkECARecPointsBranchName.Data());
604 ecabranch->SetAddress(&eca);
605 ecabranch->GetEntry(0) ;
611 Int_t maxeca = eca->GetEntries() ;
612 for ( ii= 0 ; ii < maxeca ; ii++ )
613 ECARecPoints()->Add(eca->At(ii)) ;
618 //____________________________________________________________________________
619 Int_t AliEMCALLoader::ReadTracks()
621 //Creates and posts to folder an array container,
622 //connects branch in tree (if exists), and reads data to arry
624 TObject** trkref = TracksRef();
626 {//Create and post array
627 MakeTrackSegmentsArray();
628 trkref = TracksRef();
631 TTree * treeT = TreeT();
634 //May happen if file is truncated or new in LoadSDigits, or the file is in update mode,
635 //but tracking was not performed yet for a current event
636 //Error("ReadTracks","There is no Tree with Tracks");
640 TBranch * branch = treeT->GetBranch(fgkTrackSegmentsBranchName);
642 {//easy, maybe just a new tree
643 Error("ReadTracks"," Cannot find branch named %s",fgkTrackSegmentsBranchName.Data());
647 branch->SetAddress(trkref);//connect branch to buffer sitting in folder
648 branch->GetEntry(0);//get first event
653 //____________________________________________________________________________
654 Int_t AliEMCALLoader::ReadRecParticles()
656 //Reads Reconstructed Particles from file
657 //Creates and posts to folder an array container,
658 //connects branch in tree (if exists), and reads data to arry
660 TObject** recpartref = RecParticlesRef();
662 if ( recpartref == 0x0 )
663 {//Create and post array
664 MakeRecParticlesArray();
665 recpartref = RecParticlesRef();
668 TTree * treeP = TreeP();
671 //May happen if file is truncated or new in LoadSDigits,
672 //or the file is in update mode,
673 //but tracking was not performed yet for a current event
674 // Error("ReadRecParticles","There is no Tree with Tracks and Reconstructed Particles");
678 TBranch * branch = treeP->GetBranch(fgkRecParticlesBranchName);
680 {//easy, maybe just a new tree
681 Error("ReadRecParticles"," Cannot find branch %s",fgkRecParticlesBranchName.Data());
685 branch->SetAddress(recpartref);//connect branch to buffer sitting in folder
686 branch->GetEntry(0);//get first event
691 //____________________________________________________________________________
692 AliEMCALGeometry* AliEMCALLoader::GetEMCALGeometry()
694 //returns EMCAL geometry from gAlice
695 //static Method used by some classes where it is not convienient to pass eventfoldername
698 AliEMCAL* emcal=dynamic_cast<AliEMCAL*>(gAlice->GetDetector("EMCAL"));
701 return emcal->GetGeometry();
704 //____________________________________________________________________________
705 AliEMCALLoader* AliEMCALLoader::GetEMCALLoader(const char* eventfoldername)
707 // Get an instance of the EMCALLoader object
708 AliRunLoader* rn = AliRunLoader::GetRunLoader(eventfoldername);
711 cerr<<"Error: <AliEMCALLoader::GetEMCALLoader>: "
712 << "Can not find Run Loader in folder "<<eventfoldername<<endl;
715 return dynamic_cast<AliEMCALLoader*>(rn->GetLoader("EMCALLoader"));
718 //____________________________________________________________________________
719 Bool_t AliEMCALLoader::BranchExists(const TString& recName)
721 // Check is branch exists
722 if (fBranchTitle.IsNull()) return kFALSE;
723 TString dataname, zername ;
725 if(recName == "SDigits") {
727 dataname = GetDetectorName();
728 zername = "AliEMCALSDigitizer" ;
730 else if(recName == "Digits"){
732 dataname = GetDetectorName();
733 zername = "AliEMCALDigitizer" ;
735 else if(recName == "ECARecPoints"){
737 dataname = fgkECARecPointsBranchName;
738 zername = "AliEMCALClusterizer" ;
740 else if(recName == "TrackSegments"){
742 dataname = fgkTrackSegmentsBranchName;
743 zername = "AliEMCALTrackSegmentMaker";
745 else if(recName == "RecParticles"){
747 dataname = fgkRecParticlesBranchName;
748 zername = "AliEMCALPID";
756 TObjArray * lob = static_cast<TObjArray*>(tree->GetListOfBranches()) ;
758 TBranch * branch = 0 ;
759 TString titleName(fBranchTitle);
762 while ((branch = (static_cast<TBranch*>(next())))) {
763 TString branchName(branch->GetName() ) ;
764 TString branchTitle(branch->GetTitle() ) ;
765 if ( branchName.BeginsWith(dataname) && branchTitle.BeginsWith(fBranchTitle) ){
766 Warning("BranchExists","branch %s with title %s ",dataname.Data(),fBranchTitle.Data());
769 if ( branchName.BeginsWith(zername) && branchTitle.BeginsWith(titleName) ){
770 Warning("BranchExists","branch AliEMCAL... with title %s ",branch->GetTitle());
778 //____________________________________________________________________________
779 void AliEMCALLoader::SetBranchTitle(const TString& btitle)
781 // Gives a name to a branch in the folder structure
782 if (btitle.CompareTo(fBranchTitle) == 0) return;
783 fBranchTitle = btitle;
787 //____________________________________________________________________________
788 void AliEMCALLoader::CleanHits()
791 AliLoader::CleanHits();
793 TClonesArray* hits = Hits();
798 //____________________________________________________________________________
799 void AliEMCALLoader::CleanSDigits()
801 // Cleans the SDigits array in the folder structure
802 AliLoader::CleanSDigits();
803 TClonesArray* sdigits = SDigits();
804 if (sdigits) sdigits->Clear();
807 //____________________________________________________________________________
809 void AliEMCALLoader::CleanDigits()
811 // Cleans the Digits array in the folder structure
812 AliLoader::CleanDigits();
813 TClonesArray* digits = Digits();
814 if (digits) digits->Clear();
817 //____________________________________________________________________________
818 void AliEMCALLoader::CleanRecPoints()
820 // Cleans the RecPoints array in the folder structure
821 AliLoader::CleanRecPoints();
822 TObjArray* recpoints = ECARecPoints();
823 if (recpoints) recpoints->Clear();
827 //____________________________________________________________________________
828 void AliEMCALLoader::CleanTracks()
830 // Cleans the Tracks array in the folder structure
831 AliLoader::CleanTracks();//tree
832 //and clear the array
833 TClonesArray* tracks = TrackSegments();
838 //____________________________________________________________________________
839 void AliEMCALLoader::CleanRecParticles()
841 // Cleans the RecParticles array in the folder structure
842 TClonesArray *recpar = RecParticles();
847 //____________________________________________________________________________
848 // void AliEMCALLoader::ReadCalibrationDB(const char * database,const char * filename)
851 // if(fcdb && (strcmp(database,fcdb->GetTitle())==0))
854 // TFile * file = gROOT->GetFile(filename) ;
856 // file = TFile::Open(filename);
858 // Error ("ReadCalibrationDB", "Cannot open file %s", filename) ;
863 // fcdb = dynamic_cast<AliEMCALCalibrationDB *>(file->Get("AliEMCALCalibrationDB")) ;
865 // Error ("ReadCalibrationDB", "No database %s in file %s", database, filename) ;
867 //____________________________________________________________________________
869 // AliEMCALSDigitizer* AliEMCALLoader::EMCALSDigitizer()
871 // //return EMCAL SDigitizer
872 // return dynamic_cast<AliEMCALSDigitizer*>(SDigitizer()) ;
875 //____________________________________________________________________________
876 void AliEMCALLoader::MakeHitsArray()
878 // Create the array for Hits
880 TClonesArray* hits = new TClonesArray("AliEMCALHit",1000);
881 hits->SetName(fgkHitsName);
882 GetDetectorDataFolder()->Add(hits);
885 //____________________________________________________________________________
886 void AliEMCALLoader::MakeSDigitsArray()
888 // Create the array for SDigits
889 if ( SDigits()) return;
890 TClonesArray* sdigits = new TClonesArray("AliEMCALDigit",1);
891 sdigits->SetName(fgkSDigitsName);
892 GetDetectorDataFolder()->Add(sdigits);
895 //____________________________________________________________________________
896 void AliEMCALLoader::MakeDigitsArray()
898 // Create the array for Digits
899 if ( Digits()) return;
900 TClonesArray* digits = new TClonesArray("AliEMCALDigit",1);
901 digits->SetName(fgkDigitsName);
902 GetDetectorDataFolder()->Add(digits);
906 //____________________________________________________________________________
907 void AliEMCALLoader::MakeRecPointsArray()
909 // Make recpoints array
910 if ( ECARecPoints() == 0x0) {
912 printf("MakeRecPointsArray: Making array for ECA");
913 TObjArray* eca = new TObjArray(100) ;
914 eca->SetName(fgkECARecPointsName) ;
915 GetDetectorDataFolder()->Add(eca);
919 //____________________________________________________________________________
920 void AliEMCALLoader::MakeTrackSegmentsArray()
922 // Create the array for TrackSegments
923 if ( TrackSegments())
925 TClonesArray * ts = new TClonesArray("AliEMCALTrackSegment",100) ;
926 ts->SetName(fgkTracksName);
927 GetDetectorDataFolder()->Add(ts);
930 //____________________________________________________________________________
931 void AliEMCALLoader::MakeRecParticlesArray()
933 // Create the array for RecParticles
934 if ( RecParticles()) return;
935 TClonesArray * rp = new TClonesArray("AliEMCALRecParticle",100) ;
936 rp->SetName(fgkRecParticlesName);
937 GetDetectorDataFolder()->Add(rp);