13.12.2011 Kamil Sedlak

musrSim:

1) implemented volume type "boxbox" (box with a box hole)
2) suppressing optical photon output in case optical photons are not simulated

 musrSimAna:
3)  musrWriteDump modified (needed only for a dump-file creation)
This commit is contained in:
2011-12-13 08:56:25 +00:00
parent a8c93b1b8c
commit 1b6ebb06c0
3 changed files with 149 additions and 132 deletions

View File

@ -64,7 +64,7 @@ void musrWriteDump::send_to_dump(unsigned int channel, Long64_t tdcBin, int flus
it5 = it4; it5++;
it6 = it5; it6++;
double prob = (float)rand()/RAND_MAX;
std::cout<<"IIIIIIIIIIIIIIII prob= "<<prob<<"; MAX_TIME_JITTER= "<<MAX_TIME_JITTER<<std::endl;
// std::cout<<"IIIIIIIIIIIIIIII prob= "<<prob<<"; MAX_TIME_JITTER= "<<MAX_TIME_JITTER<<std::endl;
if ( ((it2->first)-(it1->first)) <= MAX_TIME_JITTER) { if (prob<0.6) {it = it2;} }
if ( ((it3->first)-(it1->first)) <= MAX_TIME_JITTER) { if (prob<0.5) {it = it3;} }
if ( ((it4->first)-(it1->first)) <= MAX_TIME_JITTER) { if (prob<0.4) {it = it4;} }
@ -86,6 +86,7 @@ void musrWriteDump::send_to_dump(unsigned int channel, Long64_t tdcBin, int flus
write_to_dump(ch_num, tdcDifference, false);
// std::cout<<"Setrideno: ch="<<it->first<<", "<<it->second<<std::endl;
kamilHitMultimap.erase(it);
if (tdcDifference<=MAX_TIME_JITTER) tdcBin0 -= TDC_BIT_RANGE;
}
}