624 |
return 0; |
return 0; |
625 |
} |
} |
626 |
|
|
627 |
|
/** |
628 |
|
* |
629 |
|
* |
630 |
|
*/ |
631 |
|
float* TrkLevel1::GetPfaCoord(TString pfa, int nview, int nladder, int nang){ |
632 |
|
|
633 |
|
int nbins = GetPfaNbinsETA(); |
634 |
|
if(!nbins)return 0; |
635 |
|
|
636 |
|
float *fcorr = new float [nbins]; |
637 |
|
|
638 |
|
if(!pfa.CompareTo("ETA2",TString::kIgnoreCase)){ |
639 |
|
for(int ib=0; ib<nbins; ib++){ |
640 |
|
fcorr[ib] = pfa_.feta2[nang][nladder][nview][ib]; |
641 |
|
cout << pfa_.eta2[nang][ib] << " - " << pfa_.feta2[nang][nladder][nview][ib]<<endl;; |
642 |
|
} |
643 |
|
}else if (!pfa.CompareTo("ETA3",TString::kIgnoreCase)){ |
644 |
|
for(int ib=0; ib<nbins; ib++)fcorr[ib] = pfa_.feta3[nang][nladder][nview][ib]; |
645 |
|
}else if (!pfa.CompareTo("ETA4",TString::kIgnoreCase)){ |
646 |
|
for(int ib=0; ib<nbins; ib++)fcorr[ib] = pfa_.feta4[nang][nladder][nview][ib]; |
647 |
|
}else{ |
648 |
|
cout << pfa<<" pfa parameters not implemented "<<endl; |
649 |
|
return 0; |
650 |
|
} |
651 |
|
|
652 |
|
return fcorr; |
653 |
|
|
654 |
|
}; |
655 |
|
|
656 |
|
float* TrkLevel1::GetPfaAbs(TString pfa, int nang){ |
657 |
|
|
658 |
|
int nbins = GetPfaNbinsETA(); |
659 |
|
if(!nbins)return 0; |
660 |
|
|
661 |
|
float *fcorr = new float [nbins]; |
662 |
|
|
663 |
|
if(!pfa.CompareTo("ETA2",TString::kIgnoreCase)){ |
664 |
|
for(int ib=0; ib<nbins; ib++)fcorr[ib] = pfa_.eta2[nang][ib]; |
665 |
|
}else if (!pfa.CompareTo("ETA3",TString::kIgnoreCase)){ |
666 |
|
for(int ib=0; ib<nbins; ib++)fcorr[ib] = pfa_.eta3[nang][ib]; |
667 |
|
}else if (!pfa.CompareTo("ETA4",TString::kIgnoreCase)){ |
668 |
|
for(int ib=0; ib<nbins; ib++)fcorr[ib] = pfa_.eta4[nang][ib]; |
669 |
|
}else{ |
670 |
|
cout << pfa<<" pfa parameters not implemented "<<endl; |
671 |
|
return 0; |
672 |
|
} |
673 |
|
|
674 |
|
return fcorr; |
675 |
|
|
676 |
|
|
677 |
|
}; |
678 |
|
|
679 |
|
|
680 |
|
|
681 |
ClassImp(TrkLevel1); |
ClassImp(TrkLevel1); |
682 |
ClassImp(TrkCluster); |
ClassImp(TrkCluster); |