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 "AliEMCALGetter.h"
50 #include "AliEMCALHit.h"
51 #include "AliEMCALLoader.h"
53 #include "AliObjectLoader.h"
55 ClassImp(AliEMCALLoader)
58 const TString AliEMCALLoader::fgkHitsName("HITS");//Name for TClonesArray with hits from one event
59 const TString AliEMCALLoader::fgkSDigitsName("SDIGITS");//Name for TClonesArray
60 const TString AliEMCALLoader::fgkDigitsName("DIGITS");//Name for TClonesArray
61 const TString AliEMCALLoader::fgkECARecPointsName("ECARECPOINTS");//Name for TClonesArray
62 const TString AliEMCALLoader::fgkTracksName("TRACKS");//Name for TClonesArray
63 const TString AliEMCALLoader::fgkRecParticlesName("RECPARTICLES");//Name for TClonesArray
65 const TString AliEMCALLoader::fgkECARecPointsBranchName("EMCALECARP");//Name for branch with ECA Reconstructed Points
66 const TString AliEMCALLoader::fgkTrackSegmentsBranchName("EMCALTS");//Name for branch with TrackSegments
67 const TString AliEMCALLoader::fgkRecParticlesBranchName("EMCALRP");//Name for branch with Reconstructed Particles
69 //____________________________________________________________________________
70 AliEMCALLoader::AliEMCALLoader()
73 fRecParticlesLoaded = kFALSE;
76 //____________________________________________________________________________
77 AliEMCALLoader::AliEMCALLoader(const Char_t *detname,const Char_t *eventfoldername):
78 AliLoader(detname,eventfoldername)
81 fRecParticlesLoaded = kFALSE;
84 //____________________________________________________________________________
85 AliEMCALLoader::~AliEMCALLoader()
87 //remove and delete arrays
89 Clean(fgkSDigitsName);
91 Clean(fgkECARecPointsName);
93 Clean(fgkRecParticlesName);
95 // set to 0x0 the objgetter in AliGetter ... weird isn it !
96 AliEMCALGetter * gime = AliEMCALGetter::Instance() ;
101 //____________________________________________________________________________
102 void AliEMCALLoader::CleanFolders()
105 AliLoader::CleanFolders();
108 //____________________________________________________________________________
109 Int_t AliEMCALLoader::SetEvent()
111 //Cleans loaded stuff and and sets Files and Directories
112 // do not post any data to folder/tasks
115 Int_t retval = AliLoader::SetEvent();
118 Error("SetEvent","AliLoader::SetEvent returned error");
123 if (Hits()) Hits()->Clear();
124 if (SDigits()) SDigits()->Clear();
125 if (Digits()) Digits()->Clear();
126 if (ECARecPoints()) ECARecPoints()->Clear();
127 if (TrackSegments()) TrackSegments()->Clear();
128 if (RecParticles()) RecParticles()->Clear();
133 //____________________________________________________________________________
134 Int_t AliEMCALLoader::GetEvent()
136 //Overloads GetEvent method called by AliRunLoader::GetEvent(Int_t) method
137 //to add Rec Particles specific for EMCAL
139 //First call the original method to get whatever from std. setup is needed
142 retval = AliLoader::GetEvent();
145 Error("GetEvent","AliLoader::GetEvent returned error");
149 if (GetHitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadHits();
150 if (GetSDigitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadSDigits();
151 if (GetDigitsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadDigits();
152 if (GetRecPointsDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadRecPoints();
153 if (GetTracksDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadTracks();
154 if (GetRecParticlesDataLoader()->GetBaseDataLoader()->IsLoaded()) ReadRecParticles();
157 //Now, check if RecPart were loaded
161 //____________________________________________________________________________
162 const AliEMCAL * AliEMCALLoader::EMCAL()
164 // returns the EMCAL object
165 AliEMCAL * emcal = dynamic_cast<AliEMCAL*>(GetModulesFolder()->FindObject(fDetectorName));
168 cout << "WARNING: AliEMCALLoader::EMCAL -> EMCAL module not found in Folders" << endl ;
172 //____________________________________________________________________________
173 const AliEMCALGeometry * AliEMCALLoader::EMCALGeometry()
175 // Gets the EMCAL Geometry object
176 AliEMCALGeometry * rv = 0 ;
178 rv = EMCAL()->GetGeometry();
182 //____________________________________________________________________________
183 Int_t AliEMCALLoader::LoadHits(Option_t* opt)
185 //------- Hits ----------------------
186 //Overload (extends) LoadHits implemented in AliLoader
190 //First call the AliLoader's method to send the TreeH to folder
191 res = AliLoader::LoadHits(opt);
195 AliError("returned error");
199 //read the data from tree in folder and send it to folder
204 //____________________________________________________________________________
205 Int_t AliEMCALLoader::LoadSDigits(Option_t* opt)
207 // Loads the SDigits array in the folder structure
209 //First call the AliLoader's method to send the TreeS to folder
210 res = AliLoader::LoadSDigits(opt);
213 Error("PostSDigits","AliLoader::LoadSDigits returned error");
216 return ReadSDigits();
220 //____________________________________________________________________________
221 Int_t AliEMCALLoader::LoadDigits(Option_t* opt)
223 // Loads the Digits array in the folder structure
226 //First call the AliLoader's method to send the TreeS to folder
227 res = AliLoader::LoadDigits(opt);
230 Error("LoadDigits","AliLoader::LoadDigits returned error");
236 //____________________________________________________________________________
237 Int_t AliEMCALLoader::LoadRecPoints(Option_t* opt)
239 // Loads the RecPoints array in the folder structure
241 //First call the AliLoader's method to send the TreeR to folder
242 res = AliLoader::LoadRecPoints(opt);
245 Error("LoadRecPoints","AliLoader::LoadRecPoints returned error");
249 TFolder * emcalFolder = GetDetectorDataFolder();
250 if ( emcalFolder == 0x0 )
252 Error("LoadRecPoints","Can not get detector data folder");
255 return ReadRecPoints();
258 //____________________________________________________________________________
259 Int_t AliEMCALLoader::LoadTracks(Option_t* opt)
261 //Loads Tracks: Open File, Reads Tree and posts, Read Data and Posts
262 AliDebug(1, Form("opt = %s",opt));
264 res = AliLoader::LoadTracks(opt);
267 AliError("returned error");
274 //____________________________________________________________________________
275 Int_t AliEMCALLoader::LoadRecParticles(Option_t* opt)
277 // Loads the RecParticles array in the folder structure
279 //First call the AliLoader's method to send the TreeS to folder
280 res = AliLoader::LoadRecParticles(opt);
283 Error("LoadRecParticles","AliLoader::LoadRecParticles returned error");
286 return ReadRecParticles();
289 //____________________________________________________________________________
290 Int_t AliEMCALLoader::PostHits()
293 Int_t reval = AliLoader::PostHits();
296 Error("PostHits","AliLoader:: returned error");
299 return const_cast<AliEMCALLoader *>(this)->ReadHits();
302 //____________________________________________________________________________
303 Int_t AliEMCALLoader::PostSDigits()
305 // Posts the SDigits array to the folder structure
306 Int_t reval = AliLoader::PostSDigits();
309 Error("PostSDigits","AliLoader::PostSDigits returned error");
312 return const_cast<AliEMCALLoader *>(this)->ReadSDigits();
315 //____________________________________________________________________________
316 Int_t AliEMCALLoader::PostDigits()
318 // Posts the Digits array to the folder structure
319 Int_t reval = AliLoader::PostDigits();
322 Error("PostDigits","AliLoader::PostDigits returned error");
325 return const_cast<AliEMCALLoader *>(this)->ReadDigits();
328 //____________________________________________________________________________
329 Int_t AliEMCALLoader::PostRecPoints()
331 // Posts the RecPoints array to the folder structure
332 Int_t reval = AliLoader::PostRecPoints();
335 Error("PostRecPoints","AliLoader::PostRecPoints returned error");
338 return const_cast<AliEMCALLoader *>(this)->ReadRecPoints();
341 //____________________________________________________________________________
342 Int_t AliEMCALLoader::PostRecParticles()
344 // Posts the RecParticles array to the folder structure
346 Int_t reval = AliLoader::PostRecParticles();
349 Error("PostRecParticles","AliLoader::PostRecParticles returned error");
352 return const_cast<AliEMCALLoader *>(this)->ReadRecParticles();
355 //____________________________________________________________________________
356 Int_t AliEMCALLoader::PostTracks()
358 // Posts the Tracks array to the folder structure
359 Int_t reval = AliLoader::PostTracks();
362 Error("PostTracks","AliLoader::PostTracks returned error");
365 return const_cast<AliEMCALLoader *>(this)->ReadTracks();
368 //____________________________________________________________________________
369 Int_t AliEMCALLoader::ReadHits()
371 // If there is no Clones Array in folder creates it and sends to folder
372 // then tries to read
373 // Reads the first entry of EMCAL branch in hit tree TreeH()
374 // Reads data from TreeH and stores it in TClonesArray that sits in DetectorDataFolder
376 TObject** hitref = HitsRef();
383 TClonesArray* hits = dynamic_cast<TClonesArray*>(*hitref);
385 TTree* treeh = TreeH();
389 AliError("Cannot read TreeH from folder");
393 TBranch * hitsbranch = treeh->GetBranch(fDetectorName);
396 AliError("Cannot find branch EMCAL");
400 AliDebug(1, "Reading Hits");
402 if (hitsbranch->GetEntries() > 1)
404 TClonesArray * tempo = new TClonesArray("AliEMCALHit",1000);
406 hitsbranch->SetAddress(&tempo);
409 for (i = 0 ; i < hitsbranch->GetEntries(); i++)
411 hitsbranch->GetEntry(i) ;
413 for ( j = 0 ; j < tempo->GetEntries() ; j++)
415 AliEMCALHit* hit = (AliEMCALHit*)tempo->At(j);
416 new((*hits)[index]) AliEMCALHit( *hit ) ;
425 hitsbranch->SetAddress(hitref);
426 hitsbranch->GetEntry(0) ;
432 //____________________________________________________________________________
433 Int_t AliEMCALLoader::ReadSDigits()
435 // Read the summable digits tree TreeS():
436 // Check if TClones is in folder
437 // if not create and add to folder
438 // connect to tree if available
441 TObject** sdref = SDigitsRef();
445 sdref = SDigitsRef();
448 TTree * treeS = TreeS();
451 //May happen if file is truncated or new in LoadSDigits
452 //Error("ReadSDigits","There is no SDigit Tree");
456 TBranch * branch = treeS->GetBranch(fDetectorName);
458 {//easy, maybe just a new tree
459 //Error("ReadSDigits"," Cannot find branch EMCAL");
463 branch->SetAddress(SDigitsRef());
468 //____________________________________________________________________________
469 Int_t AliEMCALLoader::ReadDigits()
471 // Read the summable digits tree TreeS():
472 // Check if TClones is in folder
473 // if not create and add to folder
474 // connect to tree if available
477 TObject** dref = DigitsRef();
479 {//if there is not array in folder, create it and put it there
484 TTree * treeD = TreeD();
487 //May happen if file is truncated or new in LoadSDigits
488 //Error("ReadDigits","There is no Digit Tree");
492 TBranch * branch = treeD->GetBranch(fDetectorName);
494 {//easy, maybe just a new tree
495 //Error("ReadDigits"," Cannot find branch ",fDetectorName.Data());
499 branch->SetAddress(dref);//connect branch to buffer sitting in folder
500 branch->GetEntry(0);//get first event
505 //____________________________________________________________________________
506 void AliEMCALLoader::UnloadRecParticles()
508 // Unloads the RecParticles array fromthe folder structure
509 fRecParticlesLoaded = kFALSE;
511 if (fTracksLoaded == kFALSE) UnloadTracks();
514 //____________________________________________________________________________
515 void AliEMCALLoader::UnloadTracks()
517 // Unloads the Tracks array fromthe folder structure
518 CleanTracks();//free the memory
519 //in case RecPart are loaded we can not onload tree and close the file
520 if (fRecParticlesLoaded == kFALSE) AliLoader::UnloadTracks();
521 fTracksLoaded = kFALSE;//mark that nobody needs them
524 //____________________________________________________________________________
525 void AliEMCALLoader::Track(Int_t itrack)
527 // Read the first entry of EMCAL branch in hit tree gAlice->TreeH()
532 Error("Track","Can not load hits.");
537 TBranch * hitsbranch = dynamic_cast<TBranch*>(TreeH()->GetListOfBranches()->FindObject("EMCAL")) ;
540 cout << "WARNING: AliEMCALLoader::ReadTreeH -> Cannot find branch EMCAL" << endl ;
543 if(!Hits()) PostHits();
545 hitsbranch->SetAddress(HitsRef());
546 hitsbranch->GetEntry(itrack);
550 //____________________________________________________________________________
551 Int_t AliEMCALLoader::ReadRecPoints()
553 //Creates and posts to folder an array container,
554 //connects branch in tree (if exists), and reads data to array
556 MakeRecPointsArray();
558 TObjArray * eca = 0x0 ;
560 TTree * treeR = TreeR();
564 //May happen if file is truncated or new in LoadSDigits
570 TBranch * ecabranch = treeR->GetBranch(fgkECARecPointsBranchName);
571 if (ecabranch == 0x0)
573 Error("ReadRecPoints","Can not get branch with ECA Rec. Points named %s",fgkECARecPointsBranchName.Data());
578 ecabranch->SetAddress(&eca);
579 ecabranch->GetEntry(0) ;
585 Int_t maxeca = eca->GetEntries() ;
586 for ( ii= 0 ; ii < maxeca ; ii++ )
587 ECARecPoints()->Add(eca->At(ii)) ;
592 //____________________________________________________________________________
593 Int_t AliEMCALLoader::ReadTracks()
595 //Creates and posts to folder an array container,
596 //connects branch in tree (if exists), and reads data to arry
598 TObject** trkref = TracksRef();
600 {//Create and post array
601 MakeTrackSegmentsArray();
602 trkref = TracksRef();
605 TTree * treeT = TreeT();
608 //May happen if file is truncated or new in LoadSDigits, or the file is in update mode,
609 //but tracking was not performed yet for a current event
610 //Error("ReadTracks","There is no Tree with Tracks");
614 TBranch * branch = treeT->GetBranch(fgkTrackSegmentsBranchName);
616 {//easy, maybe just a new tree
617 Error("ReadTracks"," Cannot find branch named %s",fgkTrackSegmentsBranchName.Data());
621 branch->SetAddress(trkref);//connect branch to buffer sitting in folder
622 branch->GetEntry(0);//get first event
627 //____________________________________________________________________________
628 Int_t AliEMCALLoader::ReadRecParticles()
630 //Reads Reconstructed Particles from file
631 //Creates and posts to folder an array container,
632 //connects branch in tree (if exists), and reads data to arry
634 TObject** recpartref = RecParticlesRef();
636 if ( recpartref == 0x0 )
637 {//Create and post array
638 MakeRecParticlesArray();
639 recpartref = RecParticlesRef();
642 TTree * treeP = TreeP();
645 //May happen if file is truncated or new in LoadSDigits,
646 //or the file is in update mode,
647 //but tracking was not performed yet for a current event
648 // Error("ReadRecParticles","There is no Tree with Tracks and Reconstructed Particles");
652 TBranch * branch = treeP->GetBranch(fgkRecParticlesBranchName);
654 {//easy, maybe just a new tree
655 Error("ReadRecParticles"," Cannot find branch %s",fgkRecParticlesBranchName.Data());
659 branch->SetAddress(recpartref);//connect branch to buffer sitting in folder
660 branch->GetEntry(0);//get first event
665 //____________________________________________________________________________
666 AliEMCALGeometry* AliEMCALLoader::GetEMCALGeometry()
668 //returns EMCAL geometry from gAlice
669 //static Method used by some classes where it is not convienient to pass eventfoldername
672 AliEMCAL* emcal=dynamic_cast<AliEMCAL*>(gAlice->GetDetector("EMCAL"));
675 return emcal->GetGeometry();
678 //____________________________________________________________________________
679 AliEMCALLoader* AliEMCALLoader::GetEMCALLoader(const char* eventfoldername)
681 // Get an instance of the EMCALLoader object
682 AliRunLoader* rn = AliRunLoader::GetRunLoader(eventfoldername);
685 cerr<<"Error: <AliEMCALLoader::GetEMCALLoader>: "
686 << "Can not find Run Loader in folder "<<eventfoldername<<endl;
689 return dynamic_cast<AliEMCALLoader*>(rn->GetLoader("EMCALLoader"));
692 //____________________________________________________________________________
693 Bool_t AliEMCALLoader::BranchExists(const TString& recName)
695 // Check is branch exists
696 if (fBranchTitle.IsNull()) return kFALSE;
697 TString dataname, zername ;
699 if(recName == "SDigits") {
701 dataname = GetDetectorName();
702 zername = "AliEMCALSDigitizer" ;
704 else if(recName == "Digits"){
706 dataname = GetDetectorName();
707 zername = "AliEMCALDigitizer" ;
709 else if(recName == "ECARecPoints"){
711 dataname = fgkECARecPointsBranchName;
712 zername = "AliEMCALClusterizer" ;
714 else if(recName == "TrackSegments"){
716 dataname = fgkTrackSegmentsBranchName;
717 zername = "AliEMCALTrackSegmentMaker";
719 else if(recName == "RecParticles"){
721 dataname = fgkRecParticlesBranchName;
722 zername = "AliEMCALPID";
730 TObjArray * lob = static_cast<TObjArray*>(tree->GetListOfBranches()) ;
732 TBranch * branch = 0 ;
733 TString titleName(fBranchTitle);
736 while ((branch = (static_cast<TBranch*>(next())))) {
737 TString branchName(branch->GetName() ) ;
738 TString branchTitle(branch->GetTitle() ) ;
739 if ( branchName.BeginsWith(dataname) && branchTitle.BeginsWith(fBranchTitle) ){
740 Warning("BranchExists","branch %s with title %s ",dataname.Data(),fBranchTitle.Data());
743 if ( branchName.BeginsWith(zername) && branchTitle.BeginsWith(titleName) ){
744 Warning("BranchExists","branch AliEMCAL... with title %s ",branch->GetTitle());
752 //____________________________________________________________________________
753 void AliEMCALLoader::SetBranchTitle(const TString& btitle)
755 // Gives a name to a branch in the folder structure
756 if (btitle.CompareTo(fBranchTitle) == 0) return;
757 fBranchTitle = btitle;
761 //____________________________________________________________________________
762 void AliEMCALLoader::CleanHits()
765 AliLoader::CleanHits();
767 TClonesArray* hits = Hits();
772 //____________________________________________________________________________
773 void AliEMCALLoader::CleanSDigits()
775 // Cleans the SDigits array in the folder structure
776 AliLoader::CleanSDigits();
777 TClonesArray* sdigits = SDigits();
778 if (sdigits) sdigits->Clear();
781 //____________________________________________________________________________
783 void AliEMCALLoader::CleanDigits()
785 // Cleans the Digits array in the folder structure
786 AliLoader::CleanDigits();
787 TClonesArray* digits = Digits();
788 if (digits) digits->Clear();
791 //____________________________________________________________________________
792 void AliEMCALLoader::CleanRecPoints()
794 // Cleans the RecPoints array in the folder structure
795 AliLoader::CleanRecPoints();
796 TObjArray* recpoints = ECARecPoints();
797 if (recpoints) recpoints->Clear();
801 //____________________________________________________________________________
802 void AliEMCALLoader::CleanTracks()
804 // Cleans the Tracks array in the folder structure
805 AliLoader::CleanTracks();//tree
806 //and clear the array
807 TClonesArray* tracks = TrackSegments();
812 //____________________________________________________________________________
813 void AliEMCALLoader::CleanRecParticles()
815 // Cleans the RecParticles array in the folder structure
816 TClonesArray *recpar = RecParticles();
821 //____________________________________________________________________________
822 // void AliEMCALLoader::ReadCalibrationDB(const char * database,const char * filename)
825 // if(fcdb && (strcmp(database,fcdb->GetTitle())==0))
828 // TFile * file = gROOT->GetFile(filename) ;
830 // file = TFile::Open(filename);
832 // Error ("ReadCalibrationDB", "Cannot open file %s", filename) ;
837 // fcdb = dynamic_cast<AliEMCALCalibrationDB *>(file->Get("AliEMCALCalibrationDB")) ;
839 // Error ("ReadCalibrationDB", "No database %s in file %s", database, filename) ;
841 //____________________________________________________________________________
843 // AliEMCALSDigitizer* AliEMCALLoader::EMCALSDigitizer()
845 // //return EMCAL SDigitizer
846 // return dynamic_cast<AliEMCALSDigitizer*>(SDigitizer()) ;
849 //____________________________________________________________________________
850 void AliEMCALLoader::MakeHitsArray()
852 // Create the array for Hits
854 TClonesArray* hits = new TClonesArray("AliEMCALHit",1000);
855 hits->SetName(fgkHitsName);
856 GetDetectorDataFolder()->Add(hits);
859 //____________________________________________________________________________
860 void AliEMCALLoader::MakeSDigitsArray()
862 // Create the array for SDigits
863 if ( SDigits()) return;
864 TClonesArray* sdigits = new TClonesArray("AliEMCALDigit",1);
865 sdigits->SetName(fgkSDigitsName);
866 GetDetectorDataFolder()->Add(sdigits);
869 //____________________________________________________________________________
870 void AliEMCALLoader::MakeDigitsArray()
872 // Create the array for Digits
873 if ( Digits()) return;
874 TClonesArray* digits = new TClonesArray("AliEMCALDigit",1);
875 digits->SetName(fgkDigitsName);
876 GetDetectorDataFolder()->Add(digits);
880 //____________________________________________________________________________
881 void AliEMCALLoader::MakeRecPointsArray()
883 // Make recpoints array
884 if ( ECARecPoints() == 0x0)
886 AliDebug(9, "Making array for ECA");
887 TObjArray* eca = new TObjArray(100) ;
888 eca->SetName(fgkECARecPointsName) ;
889 GetDetectorDataFolder()->Add(eca);
893 //____________________________________________________________________________
894 void AliEMCALLoader::MakeTrackSegmentsArray()
896 // Create the array for TrackSegments
897 if ( TrackSegments())
899 TClonesArray * ts = new TClonesArray("AliEMCALTrackSegment",100) ;
900 ts->SetName(fgkTracksName);
901 GetDetectorDataFolder()->Add(ts);
904 //____________________________________________________________________________
905 void AliEMCALLoader::MakeRecParticlesArray()
907 // Create the array for RecParticles
908 if ( RecParticles()) return;
909 TClonesArray * rp = new TClonesArray("AliEMCALRecParticle",100) ;
910 rp->SetName(fgkRecParticlesName);
911 GetDetectorDataFolder()->Add(rp);