- // cout<<"\nAliFMDReconstruction::Exec finished"<<endl;
-};
-
-//------------------------------------------------------------
-Int_t AliFMDReconstruction::Determination_by_thresholds
-(Int_t PadADC[][50][800],Int_t volume, Int_t Rmin, Int_t Rmax,
- Int_t Smin, Int_t Smax)
-{
-
- Int_t thresholdInner[30]={
- 0, 14, 28, 42, 57,
- 72, 89, 104, 124, 129,
- 164, 174, 179, 208, 228,
- 248, 268, 317, 337, 357,
- 392, 407, 416, 426, 436,
- 461, 468, 493, 506, 515};
-
- Int_t thresholdOuter[30]={0, 18, 48, 77, 105,
- 132, 165, 198, 231,
- 264, 286, 308, 334,
- 352, 374, 418, 440,
- 462, 484, 506, 528,
- 550, 572, 594, 616};
- Int_t threshold[30];
- for (Int_t it=0; it<30; it++) {
- if(volume==1||volume==3||volume==5) threshold[it]=thresholdInner[it];
- if(volume==2||volume==4) threshold[it]=thresholdOuter[it];
- }
- Int_t threshold_array_size = 30;
- Int_t NumPart=0;
- //Inner Si
- for (Int_t iring=Rmin; iring<Rmax; iring++)
- {
- for (Int_t isector=Smin; isector<Smax; isector++)
- {
- for (int i=0;i<threshold_array_size-1;i++)
- {
- if(PadADC[volume-1][isector][iring]>threshold[i]
- &&PadADC[volume-1][isector][iring]<=threshold[i+1])
- {
- NumPart+=i;
- break;
- }; // if in threshol interval
- }; //threshold_array_size
- }; //iring
- }; //sector
- // cout<<"\nEnd threshol method"<<endl;
- return NumPart;