28.11.2011 Kamil Sedlak

Added more odet_time_C1 times (not a big change)
This commit is contained in:
sedlak 2011-11-28 11:11:01 +00:00
parent 455786e3fd
commit a8c93b1b8c
4 changed files with 203 additions and 7 deletions

View File

@ -435,6 +435,26 @@ class musrRootOutput {
G4double odet_timeC18[odet_nMax]; G4double odet_timeC18[odet_nMax];
G4double odet_timeC19[odet_nMax]; G4double odet_timeC19[odet_nMax];
G4double odet_timeC20[odet_nMax]; G4double odet_timeC20[odet_nMax];
G4double odet_timeC21[odet_nMax];
G4double odet_timeC22[odet_nMax];
G4double odet_timeC23[odet_nMax];
G4double odet_timeC24[odet_nMax];
G4double odet_timeC25[odet_nMax];
G4double odet_timeC26[odet_nMax];
G4double odet_timeC27[odet_nMax];
G4double odet_timeC28[odet_nMax];
G4double odet_timeC29[odet_nMax];
G4double odet_timeC30[odet_nMax];
G4double odet_timeC31[odet_nMax];
G4double odet_timeC32[odet_nMax];
G4double odet_timeC33[odet_nMax];
G4double odet_timeC34[odet_nMax];
G4double odet_timeC35[odet_nMax];
G4double odet_timeC36[odet_nMax];
G4double odet_timeC37[odet_nMax];
G4double odet_timeC38[odet_nMax];
G4double odet_timeC39[odet_nMax];
G4double odet_timeC40[odet_nMax];
public: public:
static const Int_t save_nMax=1000; static const Int_t save_nMax=1000;

View File

@ -52,13 +52,13 @@ class signalInfo {
public: public:
signalInfo(G4int id, G4int nP, G4int nPprim, G4double tFirst, G4double tSecond, G4double tThird, signalInfo(G4int id, G4int nP, G4int nPprim, G4double tFirst, G4double tSecond, G4double tThird,
G4double tA, G4double tB, G4double tC, G4double tD, G4double tE, G4double tLast, G4double tA, G4double tB, G4double tC, G4double tD, G4double tE, G4double tLast,
G4double tCFD, G4double aCFD, G4double tCFDarray[1000], G4double tOPSAC1array[21]) G4double tCFD, G4double aCFD, G4double tCFDarray[1000], G4double tOPSAC1array[41])
{ {
detID=id; nPhot=nP; nPhotPrim=nPprim; timeFirst=tFirst; timeSecond=tSecond; timeThird=tThird; detID=id; nPhot=nP; nPhotPrim=nPprim; timeFirst=tFirst; timeSecond=tSecond; timeThird=tThird;
timeA=tA; timeB=tB; timeC=tC; timeD=tD; timeE=tE; timeLast=tLast; timeA=tA; timeB=tB; timeC=tC; timeD=tD; timeE=tE; timeLast=tLast;
timeCFD=tCFD; amplCFD=aCFD; timeCFD=tCFD; amplCFD=aCFD;
if (musrRootOutput::store_odet_timeCFDarray) {for(int i=0;i<1000;i++) {timeCFDarray[i]=tCFDarray[i];}} if (musrRootOutput::store_odet_timeCFDarray) {for(int i=0;i<1000;i++) {timeCFDarray[i]=tCFDarray[i];}}
if (musrRootOutput::store_odet_timeC1) {for(int i=1;i<21;i++) {timeC1array[i] =tOPSAC1array[i];}} if (musrRootOutput::store_odet_timeC1) {for(int i=1;i<41;i++) {timeC1array[i] =tOPSAC1array[i];}}
} }
~signalInfo() {} ~signalInfo() {}
void transferDataToRoot(musrRootOutput* myRootOut, G4int nn) { void transferDataToRoot(musrRootOutput* myRootOut, G4int nn) {
@ -222,6 +222,26 @@ class musrScintSD : public G4VSensitiveDetector
static const G4double OPSA_C18_threshold; static const G4double OPSA_C18_threshold;
static const G4double OPSA_C19_threshold; static const G4double OPSA_C19_threshold;
static const G4double OPSA_C20_threshold; static const G4double OPSA_C20_threshold;
static const G4double OPSA_C21_threshold;
static const G4double OPSA_C22_threshold;
static const G4double OPSA_C23_threshold;
static const G4double OPSA_C24_threshold;
static const G4double OPSA_C25_threshold;
static const G4double OPSA_C26_threshold;
static const G4double OPSA_C27_threshold;
static const G4double OPSA_C28_threshold;
static const G4double OPSA_C29_threshold;
static const G4double OPSA_C30_threshold;
static const G4double OPSA_C31_threshold;
static const G4double OPSA_C32_threshold;
static const G4double OPSA_C33_threshold;
static const G4double OPSA_C34_threshold;
static const G4double OPSA_C35_threshold;
static const G4double OPSA_C36_threshold;
static const G4double OPSA_C37_threshold;
static const G4double OPSA_C38_threshold;
static const G4double OPSA_C39_threshold;
static const G4double OPSA_C40_threshold;
}; };

View File

@ -403,6 +403,26 @@ void musrRootOutput::BeginOfRunAction() {
rootTree->Branch("odet_timeC18",&odet_timeC18,"odet_timeC18[odet_n]/D"); rootTree->Branch("odet_timeC18",&odet_timeC18,"odet_timeC18[odet_n]/D");
rootTree->Branch("odet_timeC19",&odet_timeC19,"odet_timeC19[odet_n]/D"); rootTree->Branch("odet_timeC19",&odet_timeC19,"odet_timeC19[odet_n]/D");
rootTree->Branch("odet_timeC20",&odet_timeC20,"odet_timeC20[odet_n]/D"); rootTree->Branch("odet_timeC20",&odet_timeC20,"odet_timeC20[odet_n]/D");
rootTree->Branch("odet_timeC21",&odet_timeC21,"odet_timeC21[odet_n]/D");
rootTree->Branch("odet_timeC22",&odet_timeC22,"odet_timeC22[odet_n]/D");
rootTree->Branch("odet_timeC23",&odet_timeC23,"odet_timeC23[odet_n]/D");
rootTree->Branch("odet_timeC24",&odet_timeC24,"odet_timeC24[odet_n]/D");
rootTree->Branch("odet_timeC25",&odet_timeC25,"odet_timeC25[odet_n]/D");
rootTree->Branch("odet_timeC26",&odet_timeC26,"odet_timeC26[odet_n]/D");
rootTree->Branch("odet_timeC27",&odet_timeC27,"odet_timeC27[odet_n]/D");
rootTree->Branch("odet_timeC28",&odet_timeC28,"odet_timeC28[odet_n]/D");
rootTree->Branch("odet_timeC29",&odet_timeC29,"odet_timeC29[odet_n]/D");
rootTree->Branch("odet_timeC30",&odet_timeC30,"odet_timeC30[odet_n]/D");
rootTree->Branch("odet_timeC31",&odet_timeC31,"odet_timeC31[odet_n]/D");
rootTree->Branch("odet_timeC32",&odet_timeC32,"odet_timeC32[odet_n]/D");
rootTree->Branch("odet_timeC33",&odet_timeC33,"odet_timeC33[odet_n]/D");
rootTree->Branch("odet_timeC34",&odet_timeC34,"odet_timeC34[odet_n]/D");
rootTree->Branch("odet_timeC35",&odet_timeC35,"odet_timeC35[odet_n]/D");
rootTree->Branch("odet_timeC36",&odet_timeC36,"odet_timeC36[odet_n]/D");
rootTree->Branch("odet_timeC37",&odet_timeC37,"odet_timeC37[odet_n]/D");
rootTree->Branch("odet_timeC38",&odet_timeC38,"odet_timeC38[odet_n]/D");
rootTree->Branch("odet_timeC39",&odet_timeC39,"odet_timeC39[odet_n]/D");
rootTree->Branch("odet_timeC40",&odet_timeC40,"odet_timeC40[odet_n]/D");
} }
// htest1 = new TH1F("htest1","The debugging histogram 1",50,-4.,4.); // htest1 = new TH1F("htest1","The debugging histogram 1",50,-4.,4.);
@ -760,6 +780,27 @@ void musrRootOutput::SetTimeC1SpecialInfo (G4double* time) {
odet_timeC18[odet_n-1] = time[18]/microsecond; odet_timeC18[odet_n-1] = time[18]/microsecond;
odet_timeC19[odet_n-1] = time[19]/microsecond; odet_timeC19[odet_n-1] = time[19]/microsecond;
odet_timeC20[odet_n-1] = time[20]/microsecond; odet_timeC20[odet_n-1] = time[20]/microsecond;
odet_timeC21[odet_n-1] = time[21]/microsecond;
odet_timeC22[odet_n-1] = time[22]/microsecond;
odet_timeC23[odet_n-1] = time[23]/microsecond;
odet_timeC24[odet_n-1] = time[24]/microsecond;
odet_timeC25[odet_n-1] = time[25]/microsecond;
odet_timeC26[odet_n-1] = time[26]/microsecond;
odet_timeC27[odet_n-1] = time[27]/microsecond;
odet_timeC28[odet_n-1] = time[28]/microsecond;
odet_timeC29[odet_n-1] = time[29]/microsecond;
odet_timeC30[odet_n-1] = time[30]/microsecond;
odet_timeC31[odet_n-1] = time[31]/microsecond;
odet_timeC32[odet_n-1] = time[32]/microsecond;
odet_timeC33[odet_n-1] = time[33]/microsecond;
odet_timeC34[odet_n-1] = time[34]/microsecond;
odet_timeC35[odet_n-1] = time[35]/microsecond;
odet_timeC36[odet_n-1] = time[36]/microsecond;
odet_timeC37[odet_n-1] = time[37]/microsecond;
odet_timeC38[odet_n-1] = time[38]/microsecond;
odet_timeC39[odet_n-1] = time[39]/microsecond;
odet_timeC40[odet_n-1] = time[40]/microsecond;
// std::cout<<"odet_timeC1["<<odet_n-1<<"]="<<odet_timeC1[odet_n-1]<<std::endl; // std::cout<<"odet_timeC1["<<odet_n-1<<"]="<<odet_timeC1[odet_n-1]<<std::endl;
} }

View File

@ -80,6 +80,26 @@ const G4double musrScintSD::OPSA_C17_threshold (16.);
const G4double musrScintSD::OPSA_C18_threshold (17.); const G4double musrScintSD::OPSA_C18_threshold (17.);
const G4double musrScintSD::OPSA_C19_threshold (18.); const G4double musrScintSD::OPSA_C19_threshold (18.);
const G4double musrScintSD::OPSA_C20_threshold (19.); const G4double musrScintSD::OPSA_C20_threshold (19.);
const G4double musrScintSD::OPSA_C21_threshold (20.);
const G4double musrScintSD::OPSA_C22_threshold (22.);
const G4double musrScintSD::OPSA_C23_threshold (24.);
const G4double musrScintSD::OPSA_C24_threshold (26.);
const G4double musrScintSD::OPSA_C25_threshold (28.);
const G4double musrScintSD::OPSA_C26_threshold (30.);
const G4double musrScintSD::OPSA_C27_threshold (35.);
const G4double musrScintSD::OPSA_C28_threshold (40.);
const G4double musrScintSD::OPSA_C29_threshold (50.);
const G4double musrScintSD::OPSA_C30_threshold (60.);
const G4double musrScintSD::OPSA_C31_threshold (70.);
const G4double musrScintSD::OPSA_C32_threshold (80.);
const G4double musrScintSD::OPSA_C33_threshold (90.);
const G4double musrScintSD::OPSA_C34_threshold (100.);
const G4double musrScintSD::OPSA_C35_threshold (125.);
const G4double musrScintSD::OPSA_C36_threshold (150.);
const G4double musrScintSD::OPSA_C37_threshold (170.);
const G4double musrScintSD::OPSA_C38_threshold (200.);
const G4double musrScintSD::OPSA_C39_threshold (250.);
const G4double musrScintSD::OPSA_C40_threshold (300.);
musrScintSD::musrScintSD(G4String name) musrScintSD::musrScintSD(G4String name)
:G4VSensitiveDetector(name) :G4VSensitiveDetector(name)
@ -715,7 +735,7 @@ void musrScintSD::EndOfEvent_OptiacalPhotons() {
// if required, convert the histogram with photon times to histogram of electronic pulse shape // if required, convert the histogram with photon times to histogram of electronic pulse shape
G4double timeCFDarray[1000]; G4double timeCFDarray[1000];
G4double OPSA_timeC1[21]; G4double OPSA_timeC1[41];
if (bool_pulseShapeExists) { if (bool_pulseShapeExists) {
// for (Int_t iBin=1; iBin<=OPSAhistoNbin; iBin++) { // loop over all bins of photon histogram // for (Int_t iBin=1; iBin<=OPSAhistoNbin; iBin++) { // loop over all bins of photon histogram
// Double_t photonCount = OPSAhisto ->GetBinContent(iBin); // Double_t photonCount = OPSAhisto ->GetBinContent(iBin);
@ -789,7 +809,7 @@ void musrScintSD::EndOfEvent_OptiacalPhotons() {
if (musrRootOutput::store_odet_timeC1) { if (musrRootOutput::store_odet_timeC1) {
Double_t yValue=-1000; Double_t yValue=-1000;
for (Int_t i=1; i<=20; i++) {OPSA_timeC1[i] = -1000000.;} for (Int_t i=1; i<=40; i++) {OPSA_timeC1[i] = -1000000.;}
G4bool OPSA_C1_time_found = false; G4bool OPSA_C2_time_found = false; G4bool OPSA_C1_time_found = false; G4bool OPSA_C2_time_found = false;
G4bool OPSA_C3_time_found = false; G4bool OPSA_C4_time_found = false; G4bool OPSA_C3_time_found = false; G4bool OPSA_C4_time_found = false;
G4bool OPSA_C5_time_found = false; G4bool OPSA_C6_time_found = false; G4bool OPSA_C5_time_found = false; G4bool OPSA_C6_time_found = false;
@ -800,6 +820,16 @@ void musrScintSD::EndOfEvent_OptiacalPhotons() {
G4bool OPSA_C15_time_found = false; G4bool OPSA_C16_time_found = false; G4bool OPSA_C15_time_found = false; G4bool OPSA_C16_time_found = false;
G4bool OPSA_C17_time_found = false; G4bool OPSA_C18_time_found = false; G4bool OPSA_C17_time_found = false; G4bool OPSA_C18_time_found = false;
G4bool OPSA_C19_time_found = false; G4bool OPSA_C20_time_found = false; G4bool OPSA_C19_time_found = false; G4bool OPSA_C20_time_found = false;
G4bool OPSA_C21_time_found = false; G4bool OPSA_C22_time_found = false;
G4bool OPSA_C23_time_found = false; G4bool OPSA_C24_time_found = false;
G4bool OPSA_C25_time_found = false; G4bool OPSA_C26_time_found = false;
G4bool OPSA_C27_time_found = false; G4bool OPSA_C28_time_found = false;
G4bool OPSA_C29_time_found = false; G4bool OPSA_C30_time_found = false;
G4bool OPSA_C31_time_found = false; G4bool OPSA_C32_time_found = false;
G4bool OPSA_C33_time_found = false; G4bool OPSA_C34_time_found = false;
G4bool OPSA_C35_time_found = false; G4bool OPSA_C36_time_found = false;
G4bool OPSA_C37_time_found = false; G4bool OPSA_C38_time_found = false;
G4bool OPSA_C39_time_found = false; G4bool OPSA_C40_time_found = false;
Double_t OPSAshape_histoMax = OPSAshape->GetMaximum(); Double_t OPSAshape_histoMax = OPSAshape->GetMaximum();
for (Int_t iBin=1; iBin<=OPSAhistoNbin; iBin++) { // loop over all bins of CFD histogram for (Int_t iBin=1; iBin<=OPSAhistoNbin; iBin++) { // loop over all bins of CFD histogram
Double_t xValue = (iBin-0.5)*OPSAhistoBinWidth; Double_t xValue = (iBin-0.5)*OPSAhistoBinWidth;
@ -885,13 +915,98 @@ void musrScintSD::EndOfEvent_OptiacalPhotons() {
OPSA_C20_time_found = true; OPSA_C20_time_found = true;
OPSA_timeC1[20] = OPSA_timeFirst + xValue - (yValue-OPSA_C20_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation OPSA_timeC1[20] = OPSA_timeFirst + xValue - (yValue-OPSA_C20_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
} }
if ( (yValue>=OPSA_C21_threshold) && (!OPSA_C21_time_found) ) { // signal just moved above the threshold
if (OPSA_C20_time_found) { OPSA_C21_time_found = true;
OPSA_timeC1[21] = OPSA_timeFirst + xValue - (yValue-OPSA_C21_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C22_threshold) && (!OPSA_C22_time_found) ) { // signal just moved above the threshold
OPSA_C22_time_found = true;
OPSA_timeC1[22] = OPSA_timeFirst + xValue - (yValue-OPSA_C22_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C23_threshold) && (!OPSA_C23_time_found) ) { // signal just moved above the threshold
OPSA_C23_time_found = true;
OPSA_timeC1[23] = OPSA_timeFirst + xValue - (yValue-OPSA_C23_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C24_threshold) && (!OPSA_C24_time_found) ) { // signal just moved above the threshold
OPSA_C24_time_found = true;
OPSA_timeC1[24] = OPSA_timeFirst + xValue - (yValue-OPSA_C24_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C25_threshold) && (!OPSA_C25_time_found) ) { // signal just moved above the threshold
OPSA_C25_time_found = true;
OPSA_timeC1[25] = OPSA_timeFirst + xValue - (yValue-OPSA_C25_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C26_threshold) && (!OPSA_C26_time_found) ) { // signal just moved above the threshold
OPSA_C26_time_found = true;
OPSA_timeC1[26] = OPSA_timeFirst + xValue - (yValue-OPSA_C26_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C27_threshold) && (!OPSA_C27_time_found) ) { // signal just moved above the threshold
OPSA_C27_time_found = true;
OPSA_timeC1[27] = OPSA_timeFirst + xValue - (yValue-OPSA_C27_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C28_threshold) && (!OPSA_C28_time_found) ) { // signal just moved above the threshold
OPSA_C28_time_found = true;
OPSA_timeC1[28] = OPSA_timeFirst + xValue - (yValue-OPSA_C28_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C29_threshold) && (!OPSA_C29_time_found) ) { // signal just moved above the threshold
OPSA_C29_time_found = true;
OPSA_timeC1[29] = OPSA_timeFirst + xValue - (yValue-OPSA_C29_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C30_threshold) && (!OPSA_C30_time_found) ) { // signal just moved above the threshold
OPSA_C30_time_found = true;
OPSA_timeC1[30] = OPSA_timeFirst + xValue - (yValue-OPSA_C30_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C31_threshold) && (!OPSA_C31_time_found) ) { // signal just moved above the threshold
OPSA_C31_time_found = true;
OPSA_timeC1[31] = OPSA_timeFirst + xValue - (yValue-OPSA_C31_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C32_threshold) && (!OPSA_C32_time_found) ) { // signal just moved above the threshold
OPSA_C32_time_found = true;
OPSA_timeC1[32] = OPSA_timeFirst + xValue - (yValue-OPSA_C32_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C33_threshold) && (!OPSA_C33_time_found) ) { // signal just moved above the threshold
OPSA_C33_time_found = true;
OPSA_timeC1[33] = OPSA_timeFirst + xValue - (yValue-OPSA_C33_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C34_threshold) && (!OPSA_C34_time_found) ) { // signal just moved above the threshold
OPSA_C34_time_found = true;
OPSA_timeC1[34] = OPSA_timeFirst + xValue - (yValue-OPSA_C34_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C35_threshold) && (!OPSA_C35_time_found) ) { // signal just moved above the threshold
OPSA_C35_time_found = true;
OPSA_timeC1[35] = OPSA_timeFirst + xValue - (yValue-OPSA_C35_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C36_threshold) && (!OPSA_C36_time_found) ) { // signal just moved above the threshold
OPSA_C36_time_found = true;
OPSA_timeC1[36] = OPSA_timeFirst + xValue - (yValue-OPSA_C36_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C37_threshold) && (!OPSA_C37_time_found) ) { // signal just moved above the threshold
OPSA_C37_time_found = true;
OPSA_timeC1[37] = OPSA_timeFirst + xValue - (yValue-OPSA_C37_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C38_threshold) && (!OPSA_C38_time_found) ) { // signal just moved above the threshold
OPSA_C38_time_found = true;
OPSA_timeC1[38] = OPSA_timeFirst + xValue - (yValue-OPSA_C38_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C39_threshold) && (!OPSA_C39_time_found) ) { // signal just moved above the threshold
OPSA_C39_time_found = true;
OPSA_timeC1[39] = OPSA_timeFirst + xValue - (yValue-OPSA_C39_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if ( (yValue>=OPSA_C40_threshold) && (!OPSA_C40_time_found) ) { // signal just moved above the threshold
OPSA_C40_time_found = true;
OPSA_timeC1[40] = OPSA_timeFirst + xValue - (yValue-OPSA_C40_threshold)/(yValue-oldYvalue)*OPSAhistoBinWidth; //linear interpolation
}
if (OPSA_C40_time_found) {
if (OPSA_C1_time_found && OPSA_C2_time_found && OPSA_C3_time_found && OPSA_C4_time_found && if (OPSA_C1_time_found && OPSA_C2_time_found && OPSA_C3_time_found && OPSA_C4_time_found &&
OPSA_C5_time_found && OPSA_C6_time_found && OPSA_C7_time_found && OPSA_C8_time_found && OPSA_C5_time_found && OPSA_C6_time_found && OPSA_C7_time_found && OPSA_C8_time_found &&
OPSA_C9_time_found && OPSA_C10_time_found && OPSA_C11_time_found && OPSA_C12_time_found && OPSA_C9_time_found && OPSA_C10_time_found && OPSA_C11_time_found && OPSA_C12_time_found &&
OPSA_C13_time_found && OPSA_C14_time_found && OPSA_C15_time_found && OPSA_C16_time_found && OPSA_C13_time_found && OPSA_C14_time_found && OPSA_C15_time_found && OPSA_C16_time_found &&
OPSA_C17_time_found && OPSA_C18_time_found && OPSA_C19_time_found) break; // all times found OPSA_C17_time_found && OPSA_C18_time_found && OPSA_C19_time_found && OPSA_C20_time_found &&
OPSA_C21_time_found && OPSA_C22_time_found && OPSA_C23_time_found && OPSA_C24_time_found &&
OPSA_C25_time_found && OPSA_C26_time_found && OPSA_C27_time_found && OPSA_C28_time_found &&
OPSA_C29_time_found && OPSA_C30_time_found && OPSA_C31_time_found && OPSA_C32_time_found &&
OPSA_C33_time_found && OPSA_C34_time_found && OPSA_C35_time_found && OPSA_C36_time_found &&
OPSA_C37_time_found && OPSA_C38_time_found && OPSA_C39_time_found) break; // all times found
} }
if (yValue==OPSAshape_histoMax) break; // no need for further searching, because maximum was achieved. if (yValue==OPSAshape_histoMax) break; // no need for further searching, because maximum was achieved.