82 |
|
|
83 |
void CaloLevel0::SetCrossTalk(Bool_t ct){ |
void CaloLevel0::SetCrossTalk(Bool_t ct){ |
84 |
crosst = ct; |
crosst = ct; |
85 |
}; |
} |
86 |
|
|
87 |
void CaloLevel0::SetCrossTalkType(Bool_t ct){ |
void CaloLevel0::SetCrossTalkType(Bool_t ct){ |
88 |
ctground = ct; |
ctground = ct; |
89 |
}; |
} |
90 |
|
|
91 |
void CaloLevel0::SetVerbose(Bool_t ct){ |
void CaloLevel0::SetVerbose(Bool_t ct){ |
92 |
verbose = ct; |
verbose = ct; |
93 |
}; |
} |
94 |
|
|
95 |
/** |
/** |
96 |
* Initialize CaloLevel0 object |
* Initialize CaloLevel0 object |
307 |
fread(&tmp,sizeof(clevel1->xalig),1,f); |
fread(&tmp,sizeof(clevel1->xalig),1,f); |
308 |
fread(&tmp,sizeof(clevel1->yalig),1,f); |
fread(&tmp,sizeof(clevel1->yalig),1,f); |
309 |
fread(&tmp,sizeof(clevel1->zalig),1,f); |
fread(&tmp,sizeof(clevel1->zalig),1,f); |
310 |
|
// clevel1->zalig = -265.82; |
311 |
// |
// |
312 |
}; |
}; |
313 |
fread(&clevel1->emin,sizeof(clevel1->emin),1,f); |
fread(&clevel1->emin,sizeof(clevel1->emin),1,f); |
726 |
}; |
}; |
727 |
// |
// |
728 |
return(0); |
return(0); |
729 |
}; |
} |
730 |
|
|
731 |
void CaloLevel0::FindBaseRaw(Int_t l, Int_t m, Int_t pre){ |
void CaloLevel0::FindBaseRaw(Int_t l, Int_t m, Int_t pre){ |
732 |
Float_t minstrip = 100000.; |
Float_t minstrip = 100000.; |
782 |
// |
// |
783 |
// if it was not a selftrigger event, could it ever been a selftrigger event? if so trigty = 3. |
// if it was not a selftrigger event, could it ever been a selftrigger event? if so trigty = 3. |
784 |
// |
// |
785 |
|
clevel2->nsatstrip = 0.; |
786 |
Int_t val = 0; |
Int_t val = 0; |
787 |
Int_t del = 1100; |
Int_t del = 1100; |
788 |
for (Int_t sec = 0; sec < 4; sec++){ |
for (Int_t sec = 0; sec < 4; sec++){ |
1095 |
if ( clevel1->estrip[j4][m][l] > clevel1->emin ){ |
if ( clevel1->estrip[j4][m][l] > clevel1->emin ){ |
1096 |
// |
// |
1097 |
Float_t savel1 = clevel1->estrip[j4][m][l]; |
Float_t savel1 = clevel1->estrip[j4][m][l]; |
1098 |
if ( dexyc[j4][m][l] == 32767. ) savel1 += 5000.; |
if ( dexyc[l][m][j4] == 32767. ){ |
1099 |
|
savel1 += 5000.; |
1100 |
|
clevel2->nsatstrip += 1.; |
1101 |
|
}; |
1102 |
// |
// |
1103 |
tim = 100000.; |
tim = 100000.; |
1104 |
plo = m; |
plo = m; |
1250 |
memcpy(ca->swerr,clevel2->swerr,sizeof(clevel2->swerr)); |
memcpy(ca->swerr,clevel2->swerr,sizeof(clevel2->swerr)); |
1251 |
memcpy(ca->crc,clevel2->crc,sizeof(clevel2->crc)); |
memcpy(ca->crc,clevel2->crc,sizeof(clevel2->crc)); |
1252 |
ca->nstrip = (Int_t)clevel2->nstrip; |
ca->nstrip = (Int_t)clevel2->nstrip; |
1253 |
|
ca->nsatstrip = (Int_t)clevel2->nsatstrip; |
1254 |
ca->qtot = clevel2->qtot; |
ca->qtot = clevel2->qtot; |
1255 |
// ca->impx = clevel2->impx; |
// ca->impx = clevel2->impx; |
1256 |
// ca->impy = clevel2->impy; |
// ca->impy = clevel2->impy; |
1341 |
clevel2->wartrig = 0.; |
clevel2->wartrig = 0.; |
1342 |
clevel2->good = 0; |
clevel2->good = 0; |
1343 |
clevel2->nstrip = 0.; |
clevel2->nstrip = 0.; |
1344 |
|
clevel2->nsatstrip = 0.; |
1345 |
clevel2->qtot = 0.; |
clevel2->qtot = 0.; |
1346 |
// clevel2->impx = 0.; |
// clevel2->impx = 0.; |
1347 |
// clevel2->impy = 0.; |
// clevel2->impy = 0.; |