908 |
void TrkLevel1::Set(TrkLevel1 *trkl1, float mipCut, float fCut){ |
void TrkLevel1::Set(TrkLevel1 *trkl1, float mipCut, float fCut){ |
909 |
|
|
910 |
|
|
|
|
|
911 |
|
|
912 |
if(!trkl1)return; |
if(!trkl1)return; |
913 |
|
|
929 |
Cluster = new TClonesArray("TrkCluster"); |
Cluster = new TClonesArray("TrkCluster"); |
930 |
TClonesArray &t = *Cluster; |
TClonesArray &t = *Cluster; |
931 |
|
|
932 |
int isel=0; |
if ( trkl1->GetClusters() ){ // EM: crash nuclei alg when DSP status: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 |
933 |
for(int icl=0 ; icl< trkl1->GetClusters()->GetEntries(); icl++){ |
int isel=0; |
934 |
|
for(int icl=0 ; icl< trkl1->GetClusters()->GetEntries(); icl++){ |
935 |
TrkCluster *cl = trkl1->GetCluster(icl); |
TrkCluster *cl = trkl1->GetCluster(icl); |
936 |
|
|
937 |
float mip = TrkParams::GetMIP(cl->GetLadder()-1,cl->view-1); |
float mip = TrkParams::GetMIP(cl->GetLadder()-1,cl->view-1); |
938 |
float smip = cl->GetSignal()/(mip>0.?mip:1.); |
float smip = cl->GetSignal()/(mip>0.?mip:1.); |
939 |
float smax = cl->clsignal[cl->indmax]/(mip>0.?mip:1.); |
float smax = cl->clsignal[cl->indmax]/(mip>0.?mip:1.); |
941 |
if(smip<mipCut)continue; |
if(smip<mipCut)continue; |
942 |
if(smax<0.5*mipCut)continue; |
if(smax<0.5*mipCut)continue; |
943 |
|
|
944 |
|
|
945 |
|
|
946 |
new(t[isel]) TrkCluster(*cl); // <<< store cluster |
new(t[isel]) TrkCluster(*cl); // <<< store cluster |
947 |
isel++; |
isel++; |
948 |
|
} |
949 |
} |
} |
950 |
|
|
951 |
|
|