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"
53 ClassImp(AliEMCALLoader)
56 const TString AliEMCALLoader::fgkHitsName("HITS");//Name for TClonesArray with hits from one event
57 const TString AliEMCALLoader::fgkSDigitsName("SDIGITS");//Name for TClonesArray
58 const TString AliEMCALLoader::fgkDigitsName("DIGITS");//Name for TClonesArray
59 const TString AliEMCALLoader::fgkECARecPointsName("ECARECPOINTS");//Name for TClonesArray
60 const TString AliEMCALLoader::fgkTracksName("TRACKS");//Name for TClonesArray
61 const TString AliEMCALLoader::fgkRecParticlesName("RECPARTICLES");//Name for TClonesArray
63 const TString AliEMCALLoader::fgkECARecPointsBranchName("EMCALECARP");//Name for branch with ECA Reconstructed Points
64 const TString AliEMCALLoader::fgkTrackSegmentsBranchName("EMCALTS");//Name for branch with TrackSegments
65 const TString AliEMCALLoader::fgkRecParticlesBranchName("EMCALRP");//Name for branch with Reconstructed Particles
67 //____________________________________________________________________________
68 AliEMCALLoader::AliEMCALLoader()
71 fRecParticlesLoaded = kFALSE;
74 //____________________________________________________________________________
75 AliEMCALLoader::AliEMCALLoader(const Char_t *detname,const Char_t *eventfoldername):
76 AliLoader(detname,eventfoldername)
79 fRecParticlesLoaded = kFALSE;
82 //____________________________________________________________________________
83 AliEMCALLoader::~AliEMCALLoader()
85 //remove and delete arrays
87 Clean(fgkSDigitsName);
89 Clean(fgkECARecPointsName);
91 Clean(fgkRecParticlesName);
94 //____________________________________________________________________________
95 void AliEMCALLoader::CleanFolders()
98 AliLoader::CleanFolders();
101 //____________________________________________________________________________
102 Int_t AliEMCALLoader::SetEvent()
104 //Cleans loaded stuff and and sets Files and Directories
105 // do not post any data to folder/tasks
108 Int_t retval = AliLoader::SetEvent();
111 Error("SetEvent","AliLoader::SetEvent returned error");
116 if (Hits()) Hits()->Clear();
117 if (SDigits()) SDigits()->Clear();
118 if (Digits()) Digits()->Clear();
119 if (ECARecPoints()) ECARecPoints()->Clear();
120 if (TrackSegments()) TrackSegments()->Clear();
121 if (RecParticles()) RecParticles()->Clear();
126 //____________________________________________________________________________
127 Int_t AliEMCALLoader::GetEvent()
129 //Overloads GetEvent method called by AliRunLoader::GetEvent(Int_t) method
130 //to add Rec Particles specific for EMCAL
132 //First call the original method to get whatever from std. setup is needed
135 retval = AliLoader::GetEvent();
138 Error("GetEvent","AliLoader::GetEvent returned error");
142 if (GetHitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadHits();
143 if (GetSDigitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadSDigits();
144 if (GetDigitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadDigits();
145 if (GetRecPointsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadRecPoints();
146 if (GetTracksDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadTracks();
147 if (GetRecParticlesDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadRecParticles();
150 //Now, check if RecPart were loaded
154 //____________________________________________________________________________
155 const AliEMCAL * AliEMCALLoader::EMCAL()
157 // returns the EMCAL object
158 AliEMCAL * emcal = dynamic_cast<AliEMCAL*>(GetModulesFolder()->FindObject(fDetectorName));
161 cout << "WARNING: AliEMCALLoader::EMCAL -> EMCAL module not found in Folders" << endl ;
165 //____________________________________________________________________________
166 const AliEMCALGeometry * AliEMCALLoader::EMCALGeometry()
168 // Gets the EMCAL Geometry object
169 AliEMCALGeometry * rv = 0 ;
171 rv = EMCAL()->GetGeometry();
175 //____________________________________________________________________________
176 Int_t AliEMCALLoader::LoadHits(Option_t* opt)
178 //------- Hits ----------------------
179 //Overload (extends) LoadHits implemented in AliLoader
183 //First call the AliLoader's method to send the TreeH to folder
184 res = AliLoader::LoadHits(opt);
188 Error("LoadHits","AliLoader::LoadHits returned error");
192 //read the data from tree in folder and send it to folder
197 //____________________________________________________________________________
198 Int_t AliEMCALLoader::LoadSDigits(Option_t* opt)
200 // Loads the SDigits array in the folder structure
202 //First call the AliLoader's method to send the TreeS to folder
203 res = AliLoader::LoadSDigits(opt);
206 Error("PostSDigits","AliLoader::LoadSDigits returned error");
209 return ReadSDigits();
213 //____________________________________________________________________________
214 Int_t AliEMCALLoader::LoadDigits(Option_t* opt)
216 // Loads the Digits array in the folder structure
219 //First call the AliLoader's method to send the TreeS to folder
220 res = AliLoader::LoadDigits(opt);
223 Error("LoadDigits","AliLoader::LoadDigits returned error");
229 //____________________________________________________________________________
230 Int_t AliEMCALLoader::LoadRecPoints(Option_t* opt)
232 // Loads the RecPoints array in the folder structure
234 //First call the AliLoader's method to send the TreeR to folder
235 res = AliLoader::LoadRecPoints(opt);
238 Error("LoadRecPoints","AliLoader::LoadRecPoints returned error");
242 TFolder * emcalFolder = GetDetectorDataFolder();
243 if ( emcalFolder == 0x0 )
245 Error("LoadRecPoints","Can not get detector data folder");
248 return ReadRecPoints();
251 //____________________________________________________________________________
252 Int_t AliEMCALLoader::LoadTracks(Option_t* opt)
254 //Loads Tracks: Open File, Reads Tree and posts, Read Data and Posts
256 printf("LoadTracks: opt = %s",opt);
259 Warning("LoadTracks","Tracks are already loaded");
263 //First call the AliLoader's method to send the TreeS to folder
264 if (GetTracksDataLoader()->GetBaseLoader(0)->IsLoaded() == kFALSE)
265 {//tracks can be loaded by LoadRecPoints
266 res = AliLoader::LoadTracks(opt);
269 Error("LoadTracks","AliLoader::LoadTracks returned error");
276 Error("LoadTracks","Error occured while reading Tracks");
280 fTracksLoaded = kTRUE;
284 //____________________________________________________________________________
285 Int_t AliEMCALLoader::LoadRecParticles(Option_t* opt)
287 // Loads the RecParticles array in the folder structure
289 //First call the AliLoader's method to send the TreeS to folder
290 res = AliLoader::LoadRecParticles(opt);
293 Error("LoadRecParticles","AliLoader::LoadRecParticles returned error");
297 TFolder * emcalFolder = GetDetectorDataFolder();
298 if ( emcalFolder == 0x0 )
300 Error("PostDigits","Can not get detector data folder");
303 return ReadRecParticles();
306 //____________________________________________________________________________
307 Int_t AliEMCALLoader::PostHits()
309 Int_t reval = AliLoader::PostHits();
312 Error("PostHits","AliLoader:: returned error");
318 //____________________________________________________________________________
319 Int_t AliEMCALLoader::PostSDigits()
321 // Posts the SDigits array to the folder structure
322 Int_t reval = AliLoader::PostSDigits();
325 Error("PostSDigits","AliLoader::PostSDigits returned error");
328 return ReadSDigits();
331 //____________________________________________________________________________
332 Int_t AliEMCALLoader::PostDigits()
334 // Posts the Digits array to the folder structure
335 Int_t reval = AliLoader::PostDigits();
338 Error("PostDigits","AliLoader::PostDigits returned error");
344 //____________________________________________________________________________
345 Int_t AliEMCALLoader::PostRecPoints()
347 // Posts the RecPoints array to the folder structure
348 Int_t reval = AliLoader::PostRecPoints();
351 Error("PostRecPoints","AliLoader::PostRecPoints returned error");
354 return ReadRecPoints();
357 //____________________________________________________________________________
358 Int_t AliEMCALLoader::PostRecParticles()
360 // Posts the RecParticles array to the folder structure
362 Int_t reval = AliLoader::PostRecParticles();
365 Error("PostRecParticles","AliLoader::PostRecParticles returned error");
368 return ReadRecParticles();
371 //____________________________________________________________________________
372 Int_t AliEMCALLoader::PostTracks()
374 // Posts the Tracks array to the folder structure
375 Int_t reval = AliLoader::PostTracks();
378 Error("PostTracks","AliLoader::PostTracks returned error");
384 //____________________________________________________________________________
385 Int_t AliEMCALLoader::ReadHits()
387 // If there is no Clones Array in folder creates it and sends to folder
388 // then tries to read
389 // Reads the first entry of EMCAL branch in hit tree TreeH()
390 // Reads data from TreeH and stores it in TClonesArray that sits in DetectorDataFolder
392 TObject** hitref = HitsRef();
399 TClonesArray* hits = dynamic_cast<TClonesArray*>(*hitref);
401 TTree* treeh = TreeH();
405 Error("ReadHits"," Cannot read TreeH from folder");
409 TBranch * hitsbranch = treeh->GetBranch(fDetectorName);
412 Error("ReadHits"," Cannot find branch EMCAL");
417 printf("ReadHits: Reading Hits");
419 if (hitsbranch->GetEntries() > 1)
421 TClonesArray * tempo = new TClonesArray("AliEMCALHit",1000);
423 hitsbranch->SetAddress(&tempo);
426 for (i = 0 ; i < hitsbranch->GetEntries(); i++)
428 hitsbranch->GetEntry(i) ;
430 for ( j = 0 ; j < tempo->GetEntries() ; j++)
432 AliEMCALHit* hit = (AliEMCALHit*)tempo->At(j);
433 new((*hits)[index]) AliEMCALHit( *hit ) ;
441 hitsbranch->SetAddress(hitref);
442 hitsbranch->GetEntry(0) ;
448 //____________________________________________________________________________
449 Int_t AliEMCALLoader::ReadSDigits()
451 // Read the summable digits tree TreeS():
452 // Check if TClones is in folder
453 // if not create and add to folder
454 // connect to tree if available
457 TObject** sdref = SDigitsRef();
461 sdref = SDigitsRef();
464 TTree * treeS = TreeS();
467 //May happen if file is truncated or new in LoadSDigits
468 //Error("ReadSDigits","There is no SDigit Tree");
472 TBranch * branch = treeS->GetBranch(fDetectorName);
474 {//easy, maybe just a new tree
475 //Error("ReadSDigits"," Cannot find branch EMCAL");
479 branch->SetAddress(SDigitsRef());
484 //____________________________________________________________________________
485 Int_t AliEMCALLoader::ReadDigits()
487 // Read the summable digits tree TreeS():
488 // Check if TClones is in folder
489 // if not create and add to folder
490 // connect to tree if available
493 TObject** dref = DigitsRef();
495 {//if there is not array in folder, create it and put it there
500 TTree * treeD = TreeD();
503 //May happen if file is truncated or new in LoadSDigits
504 //Error("ReadDigits","There is no Digit Tree");
508 TBranch * branch = treeD->GetBranch(fDetectorName);
510 {//easy, maybe just a new tree
511 //Error("ReadDigits"," Cannot find branch ",fDetectorName.Data());
515 branch->SetAddress(dref);//connect branch to buffer sitting in folder
516 branch->GetEntry(0);//get first event
521 //____________________________________________________________________________
522 void AliEMCALLoader::UnloadRecParticles()
524 // Unloads the RecParticles array fromthe folder structure
525 fRecParticlesLoaded = kFALSE;
527 if (fTracksLoaded == kFALSE) UnloadTracks();
530 //____________________________________________________________________________
531 void AliEMCALLoader::UnloadTracks()
533 // Unloads the Tracks array fromthe folder structure
534 CleanTracks();//free the memory
535 //in case RecPart are loaded we can not onload tree and close the file
536 if (fRecParticlesLoaded == kFALSE) AliLoader::UnloadTracks();
537 fTracksLoaded = kFALSE;//mark that nobody needs them
540 //____________________________________________________________________________
541 void AliEMCALLoader::Track(Int_t itrack)
543 // Read the first entry of EMCAL branch in hit tree gAlice->TreeH()
548 Error("Track","Can not load hits.");
553 TBranch * hitsbranch = dynamic_cast<TBranch*>(TreeH()->GetListOfBranches()->FindObject("EMCAL")) ;
556 cout << "WARNING: AliEMCALLoader::ReadTreeH -> Cannot find branch EMCAL" << endl ;
559 if(!Hits()) PostHits();
561 hitsbranch->SetAddress(HitsRef());
562 hitsbranch->GetEntry(itrack);
566 //____________________________________________________________________________
567 Int_t AliEMCALLoader::ReadRecPoints()
569 //Creates and posts to folder an array container,
570 //connects branch in tree (if exists), and reads data to array
572 MakeRecPointsArray();
574 TObjArray * eca = 0x0 ;
576 TTree * treeR = TreeR();
580 //May happen if file is truncated or new in LoadSDigits
586 TBranch * ecabranch = treeR->GetBranch(fgkECARecPointsBranchName);
587 if (ecabranch == 0x0)
589 Error("ReadRecPoints","Can not get branch with ECA Rec. Points named %s",fgkECARecPointsBranchName.Data());
594 ecabranch->SetAddress(&eca);
595 ecabranch->GetEntry(0) ;
601 Int_t maxeca = eca->GetEntries() ;
602 for ( ii= 0 ; ii < maxeca ; ii++ )
603 ECARecPoints()->Add(eca->At(ii)) ;
608 //____________________________________________________________________________
609 Int_t AliEMCALLoader::ReadTracks()
611 //Creates and posts to folder an array container,
612 //connects branch in tree (if exists), and reads data to arry
614 TObject** trkref = TracksRef();
616 {//Create and post array
617 MakeTrackSegmentsArray();
618 trkref = TracksRef();
621 TTree * treeT = TreeT();
624 //May happen if file is truncated or new in LoadSDigits, or the file is in update mode,
625 //but tracking was not performed yet for a current event
626 //Error("ReadTracks","There is no Tree with Tracks");
630 TBranch * branch = treeT->GetBranch(fgkTrackSegmentsBranchName);
632 {//easy, maybe just a new tree
633 Error("ReadTracks"," Cannot find branch named %s",fgkTrackSegmentsBranchName.Data());
637 branch->SetAddress(trkref);//connect branch to buffer sitting in folder
638 branch->GetEntry(0);//get first event
643 //____________________________________________________________________________
644 Int_t AliEMCALLoader::ReadRecParticles()
646 //Reads Reconstructed Particles from file
647 //Creates and posts to folder an array container,
648 //connects branch in tree (if exists), and reads data to arry
650 TObject** recpartref = RecParticlesRef();
652 if ( recpartref == 0x0 )
653 {//Create and post array
654 MakeRecParticlesArray();
655 recpartref = RecParticlesRef();
658 TTree * treeP = TreeP();
661 //May happen if file is truncated or new in LoadSDigits,
662 //or the file is in update mode,
663 //but tracking was not performed yet for a current event
664 // Error("ReadRecParticles","There is no Tree with Tracks and Reconstructed Particles");
668 TBranch * branch = treeP->GetBranch(fgkRecParticlesBranchName);
670 {//easy, maybe just a new tree
671 Error("ReadRecParticles"," Cannot find branch %s",fgkRecParticlesBranchName.Data());
675 branch->SetAddress(recpartref);//connect branch to buffer sitting in folder
676 branch->GetEntry(0);//get first event
681 //____________________________________________________________________________
682 AliEMCALGeometry* AliEMCALLoader::GetEMCALGeometry()
684 //returns EMCAL geometry from gAlice
685 //static Method used by some classes where it is not convienient to pass eventfoldername
688 AliEMCAL* emcal=dynamic_cast<AliEMCAL*>(gAlice->GetDetector("EMCAL"));
691 return emcal->GetGeometry();
694 //____________________________________________________________________________
695 AliEMCALLoader* AliEMCALLoader::GetEMCALLoader(const char* eventfoldername)
697 // Get an instance of the EMCALLoader object
698 AliRunLoader* rn = AliRunLoader::GetRunLoader(eventfoldername);
701 cerr<<"Error: <AliEMCALLoader::GetEMCALLoader>: "
702 << "Can not find Run Loader in folder "<<eventfoldername<<endl;
705 return dynamic_cast<AliEMCALLoader*>(rn->GetLoader("EMCALLoader"));
708 //____________________________________________________________________________
709 Bool_t AliEMCALLoader::BranchExists(const TString& recName)
711 if (fBranchTitle.IsNull()) return kFALSE;
712 TString dataname, zername ;
714 if(recName == "SDigits") {
716 dataname = GetDetectorName();
717 zername = "AliEMCALSDigitizer" ;
719 else if(recName == "Digits"){
721 dataname = GetDetectorName();
722 zername = "AliEMCALDigitizer" ;
724 else if(recName == "ECARecPoints"){
726 dataname = fgkECARecPointsBranchName;
727 zername = "AliEMCALClusterizer" ;
729 else if(recName == "TrackSegments"){
731 dataname = fgkTrackSegmentsBranchName;
732 zername = "AliEMCALTrackSegmentMaker";
734 else if(recName == "RecParticles"){
736 dataname = fgkRecParticlesBranchName;
737 zername = "AliEMCALPID";
745 TObjArray * lob = static_cast<TObjArray*>(tree->GetListOfBranches()) ;
747 TBranch * branch = 0 ;
748 TString titleName(fBranchTitle);
751 while ((branch = (static_cast<TBranch*>(next())))) {
752 TString branchName(branch->GetName() ) ;
753 TString branchTitle(branch->GetTitle() ) ;
754 if ( branchName.BeginsWith(dataname) && branchTitle.BeginsWith(fBranchTitle) ){
755 Warning("BranchExists","branch %s with title %s ",dataname.Data(),fBranchTitle.Data());
758 if ( branchName.BeginsWith(zername) && branchTitle.BeginsWith(titleName) ){
759 Warning("BranchExists","branch AliEMCAL... with title %s ",branch->GetTitle());
767 //____________________________________________________________________________
768 void AliEMCALLoader::SetBranchTitle(const TString& btitle)
770 // Gives a name to a branch in the folder structure
771 if (btitle.CompareTo(fBranchTitle) == 0) return;
772 fBranchTitle = btitle;
776 //____________________________________________________________________________
777 void AliEMCALLoader::CleanHits()
779 AliLoader::CleanHits();
781 TClonesArray* hits = Hits();
782 if (hits) hits->Clear();
785 //____________________________________________________________________________
786 void AliEMCALLoader::CleanSDigits()
788 // Cleans the SDigits array in the folder structure
789 AliLoader::CleanSDigits();
790 TClonesArray* sdigits = SDigits();
791 if (sdigits) sdigits->Clear();
794 //____________________________________________________________________________
796 void AliEMCALLoader::CleanDigits()
798 // Cleans the Digits array in the folder structure
799 AliLoader::CleanDigits();
800 TClonesArray* digits = Digits();
801 if (digits) digits->Clear();
804 //____________________________________________________________________________
805 void AliEMCALLoader::CleanRecPoints()
807 // Cleans the RecPoints array in the folder structure
808 AliLoader::CleanRecPoints();
809 TObjArray* recpoints = ECARecPoints();
810 if (recpoints) recpoints->Clear();
814 //____________________________________________________________________________
815 void AliEMCALLoader::CleanTracks()
817 // Cleans the Tracks array in the folder structure
818 AliLoader::CleanTracks();//tree
819 //and clear the array
820 TClonesArray* tracks = TrackSegments();
825 //____________________________________________________________________________
826 void AliEMCALLoader::CleanRecParticles()
828 // Cleans the RecParticles array in the folder structure
829 TClonesArray *recpar = RecParticles();
834 //____________________________________________________________________________
835 // void AliEMCALLoader::ReadCalibrationDB(const char * database,const char * filename)
838 // if(fcdb && (strcmp(database,fcdb->GetTitle())==0))
841 // TFile * file = gROOT->GetFile(filename) ;
843 // file = TFile::Open(filename);
845 // Error ("ReadCalibrationDB", "Cannot open file %s", filename) ;
850 // fcdb = dynamic_cast<AliEMCALCalibrationDB *>(file->Get("AliEMCALCalibrationDB")) ;
852 // Error ("ReadCalibrationDB", "No database %s in file %s", database, filename) ;
854 //____________________________________________________________________________
856 // AliEMCALSDigitizer* AliEMCALLoader::EMCALSDigitizer()
858 // //return EMCAL SDigitizer
859 // return dynamic_cast<AliEMCALSDigitizer*>(SDigitizer()) ;
862 //____________________________________________________________________________
863 void AliEMCALLoader::MakeHitsArray()
865 // Create the array for Hits
867 TClonesArray* hits = new TClonesArray("AliEMCALHit",1000);
868 hits->SetName(fgkHitsName);
869 GetDetectorDataFolder()->Add(hits);
872 //____________________________________________________________________________
873 void AliEMCALLoader::MakeSDigitsArray()
875 // Create the array for SDigits
876 if ( SDigits()) return;
877 TClonesArray* sdigits = new TClonesArray("AliEMCALDigit",1);
878 sdigits->SetName(fgkSDigitsName);
879 GetDetectorDataFolder()->Add(sdigits);
882 //____________________________________________________________________________
883 void AliEMCALLoader::MakeDigitsArray()
885 // Create the array for Digits
886 if ( Digits()) return;
887 TClonesArray* digits = new TClonesArray("AliEMCALDigit",1);
888 digits->SetName(fgkDigitsName);
889 GetDetectorDataFolder()->Add(digits);
893 //____________________________________________________________________________
894 void AliEMCALLoader::MakeRecPointsArray()
896 if ( ECARecPoints() == 0x0) {
898 printf("MakeRecPointsArray: Making array for ECA");
899 TObjArray* eca = new TObjArray(100) ;
900 eca->SetName(fgkECARecPointsName) ;
901 GetDetectorDataFolder()->Add(eca);
905 //____________________________________________________________________________
906 void AliEMCALLoader::MakeTrackSegmentsArray()
908 // Create the array for TrackSegments
909 if ( TrackSegments())
911 TClonesArray * ts = new TClonesArray("AliEMCALTrackSegment",100) ;
912 ts->SetName(fgkTracksName);
913 GetDetectorDataFolder()->Add(ts);
916 //____________________________________________________________________________
917 void AliEMCALLoader::MakeRecParticlesArray()
919 // Create the array for RecParticles
920 if ( RecParticles()) return;
921 TClonesArray * rp = new TClonesArray("AliEMCALRecParticle",100) ;
922 rp->SetName(fgkRecParticlesName);
923 GetDetectorDataFolder()->Add(rp);