156 std::cout <<
" ============== DigitizerFP420: start produce= " << std::endl;
168 std::vector<const CrossingFrame<PSimHit> *> cf_simhitvec;
171 cf_simhitvec.push_back(cf_simhit.product()); }
220 std::cout <<
" ============== DigitizerFP420: MixCollection treatment= " << std::endl;
225 for (isim=allTrackerHits->begin(); isim!= allTrackerHits->end();isim++) {
226 unsigned int unitID = (*isim).detUnitId();
227 int det,
zside, sector, zmodule;
236 double losenergy = (*isim).energyLoss();
238 std::cout <<
" ============== DigitizerFP420: losenergy= " << losenergy << std::endl;
239 std::cout <<
" === for intindex = " << intindex << std::endl;
250 std::cout <<
" ============== DigitizerFP420: put zero to container " << std::endl;
255 for (
int det=1; det<
dn0; det++) {
256 for (
int sector=1; sector<
sn0; sector++) {
257 for (
int zmodule=1; zmodule<
pn0; zmodule++) {
258 for (
int zside=1; zside<
rn0; zside++) {
260 unsigned int detID =
theFP420NumberingScheme->FP420NumberingScheme::packMYIndex(rn0, pn0, sn0, det, zside, sector, zmodule);
266 inputRange.first = collector.begin();
267 inputRange.second = collector.end();
268 output->putclear(inputRange,detID);
282 std::cout <<
" ============== DigitizerFP420: start loop over det iu " << std::endl;
283 std::cout <<
" ============== DigitizerFP420: SimHitMap.size()= " <<
SimHitMap.size() << std::endl;
309 for(
unsigned int i = 0; i <
SimHitMap.size(); i++ ) {
310 vector<PSimHit>::const_iterator simHitIter =
SimHitMap[
i].begin();
311 vector<PSimHit>::const_iterator simHitIterEnd =
SimHitMap[
i].end();
312 for (;simHitIter != simHitIterEnd; ++simHitIter) {
313 const PSimHit ihit = *simHitIter;
316 int det,
zside, sector, zmodule;
330 unsigned int iu =
theFP420NumberingScheme->FP420NumberingScheme::packMYIndex(rn0, pn0, sn0, det, zside, sector, zmodule);
331 if(
verbosity>0 ||
verbosity==-50)
std::cout <<
"for Hits iu = " << iu <<
" sector = " << sector <<
" zmodule = " << zmodule <<
" zside = " << zside <<
" det=" << det << std::endl;
337 std::cout <<
" DigitizerFP420: index = " << index <<
" iu = " << iu << std::endl;
342 G4ThreeVector bfield( 0., 0., 0.0 );
348 std::cout <<
" ============== DigitizerFP420: call run for iu= " << iu << std::endl;
364 std::cout <<
"======= DigitizerFP420: collector size = " << collector.size() << std::endl;
377 if (collector.size()>0){
379 std::cout <<
" ============= DigitizerFP420:collector start!!!!!!!!!!!!!!" << std::endl;
382 outputRange.first = collector.begin();
383 outputRange.second = collector.end();
388 unsigned int detID0= 0;
389 output->put(outputRange,detID0);
393 output->put(outputRange,iu);
430 for (
int det=1; det<
dn0; det++) {
431 for (
int sector=1; sector<
sn0; sector++) {
432 for (
int zmodule=1; zmodule<
pn0; zmodule++) {
433 for (
int zside=1; zside<
rn0; zside++) {
434 unsigned int iu =
theFP420NumberingScheme->FP420NumberingScheme::packMYIndex(rn0, pn0, sn0, det, zside, sector, zmodule);
437 std::cout <<
"****DigitizerFP420:check2" << std::endl;
440 int newdet, newzside, newsector, newzmodule;
441 theFP420NumberingScheme->FP420NumberingScheme::unpackMYIndex(iu, rn0, pn0, sn0, newdet, newzside, newsector, newzmodule);
442 std::cout <<
" newdet = " << newdet <<
" newsector = " << newsector <<
" newzmodule = " << newzmodule <<
" newzside = " << newzside << std::endl;
447 outputRange =
output->get(iu);
454 for ( ;sort_begin != sort_end; ++sort_begin ) {
455 collector.push_back(*sort_begin);
459 std::cout <<
"====== collector size = " << collector.size() << std::endl;
460 if(collector.size()>0) {
461 std::cout <<
" iu = " << iu <<
" sector = " << sector <<
" zmodule = " << zmodule <<
" zside = " << zside <<
" det=" << det <<
" layer = " << layer <<
" orient = " << orient << std::endl;
464 vector<HDigiFP420>::const_iterator simHitIter = collector.begin();
465 vector<HDigiFP420>::const_iterator simHitIterEnd = collector.end();
466 for (;simHitIter != simHitIterEnd; ++simHitIter) {
468 std::cout <<
" strip number=" << istrip.
strip() <<
" adc=" << istrip.
adc() << std::endl;
472 std::cout <<
" ===================================================" << std::endl;
492 std::cout <<
"DigitizerFP420 recoutput" << std::endl;
inputRange
Get input source.
FP420DigiMain * stripDigitizer_
std::vector< HDigiFP420 >::const_iterator ContainerIterator
static void unpackFP420Index(const unsigned int &idx, int &det, int &zside, int &station, int &superplane)
std::vector< HDigiFP420 > collector
std::vector< HDigiFP420 > run(const std::vector< PSimHit > &input, const G4ThreeVector &, unsigned int)
std::pair< ContainerIterator, ContainerIterator > Range
FP420NumberingScheme * theFP420NumberingScheme
vstring trackerContainers
unsigned int detUnitId() const