+ cout<<"\nStart AliFMDReconstruction::Exec(...)"<<endl;
+ Int_t const knumVolumes=5;
+ Int_t padADC;
+ Float_t eta, etain,etaout,rad,theta;
+ Int_t ivol, iSector, iRing;
+ Float_t rin[5]={4.2,15.4,4.2,15.4,4.2};
+ Float_t rout[5]={17.4,28.4,17.4,28.4,17.4};
+ Float_t z[5]={-62.8, -75.2, 83.4, 75.2, 340.};
+ Int_t numberOfRings[5]={512,256,512,256,512};
+ Int_t numberOfSectors[5]= {20,40,20,40,20};
+ Int_t numberOfEtaIntervals[5];
+ // number of ring for boundary 0.1 eta
+
+
+ if (fRunLoader == 0x0)
+ {
+ Error("Exec","Run Loader loader is NULL - Session not opened");
+ return;
+ }
+
+
+ AliLoader* gime = fRunLoader->GetLoader("FMDLoader");
+ if (gime == 0x0)
+ {
+ Fatal("AliFMDReconstruction","Can not find FMD (loader) in specified event");
+ return;//never reached
+ }
+
+ fRunLoader->LoadgAlice();
+ fRunLoader->LoadHeader();
+ Int_t retval;
+ TDirectory* cwd = gDirectory;
+ gDirectory = 0x0;
+ Text_t buf1[20];
+ TH2F* hTotal[10];
+ for (Int_t j=1; j<=5; j++){
+ sprintf(buf1,"hTotal%d",j);
+
+ hTotal[j] = new TH2F(buf1," Number of primary particles ",
+ numberOfSectors[j-1],1,numberOfSectors[j-1],
+ numberOfRings[j-1],1,numberOfRings[j-1]);
+ }
+ gDirectory = cwd;
+
+
+ if(fNevents == 0) fNevents=Int_t (fRunLoader->TreeE()->GetEntries());
+ cout<<" fNevents "<<fNevents<<endl;
+ for(Int_t ievent=0;ievent<fNevents;ievent++)