155 std::cout <<
" ============== DigitizerFP420: start produce= " << std::endl;
167 std::vector<const CrossingFrame<PSimHit> *> cf_simhitvec;
170 cf_simhitvec.push_back(cf_simhit.product()); }
219 std::cout <<
" ============== DigitizerFP420: MixCollection treatment= " << std::endl;
224 for (isim=allTrackerHits->begin(); isim!= allTrackerHits->end();isim++) {
225 unsigned int unitID = (*isim).detUnitId();
226 int det,
zside, sector, zmodule;
235 double losenergy = (*isim).energyLoss();
237 std::cout <<
" ============== DigitizerFP420: losenergy= " << losenergy << std::endl;
238 std::cout <<
" === for intindex = " << intindex << std::endl;
249 std::cout <<
" ============== DigitizerFP420: put zero to container " << std::endl;
254 for (
int det=1; det<
dn0; det++) {
255 for (
int sector=1; sector<
sn0; sector++) {
256 for (
int zmodule=1; zmodule<
pn0; zmodule++) {
257 for (
int zside=1; zside<
rn0; zside++) {
265 inputRange.first = collector.begin();
266 inputRange.second = collector.end();
267 output->putclear(inputRange,detID);
281 std::cout <<
" ============== DigitizerFP420: start loop over det iu " << std::endl;
282 std::cout <<
" ============== DigitizerFP420: SimHitMap.size()= " <<
SimHitMap.size() << std::endl;
308 for(
unsigned int i = 0; i <
SimHitMap.size(); i++ ) {
309 vector<PSimHit>::const_iterator simHitIter =
SimHitMap[
i].begin();
310 vector<PSimHit>::const_iterator simHitIterEnd =
SimHitMap[
i].end();
311 for (;simHitIter != simHitIterEnd; ++simHitIter) {
312 const PSimHit ihit = *simHitIter;
315 int det,
zside, sector, zmodule;
330 if(
verbosity>0 ||
verbosity==-50)
std::cout <<
"for Hits iu = " << iu <<
" sector = " << sector <<
" zmodule = " << zmodule <<
" zside = " << zside <<
" det=" << det << std::endl;
336 std::cout <<
" DigitizerFP420: index = " << index <<
" iu = " << iu << std::endl;
341 G4ThreeVector bfield( 0., 0., 0.0 );
347 std::cout <<
" ============== DigitizerFP420: call run for iu= " << iu << std::endl;
363 std::cout <<
"======= DigitizerFP420: collector size = " << collector.size() << std::endl;
376 if (collector.size()>0){
378 std::cout <<
" ============= DigitizerFP420:collector start!!!!!!!!!!!!!!" << std::endl;
381 outputRange.first = collector.begin();
382 outputRange.second = collector.end();
387 unsigned int detID0= 0;
388 output->put(outputRange,detID0);
392 output->put(outputRange,iu);
429 for (
int det=1; det<
dn0; det++) {
430 for (
int sector=1; sector<
sn0; sector++) {
431 for (
int zmodule=1; zmodule<
pn0; zmodule++) {
432 for (
int zside=1; zside<
rn0; zside++) {
436 std::cout <<
"****DigitizerFP420:check2" << std::endl;
439 int newdet, newzside, newsector, newzmodule;
441 std::cout <<
" newdet = " << newdet <<
" newsector = " << newsector <<
" newzmodule = " << newzmodule <<
" newzside = " << newzside << std::endl;
446 outputRange =
output->get(iu);
453 for ( ;sort_begin != sort_end; ++sort_begin ) {
454 collector.push_back(*sort_begin);
458 std::cout <<
"====== collector size = " << collector.size() << std::endl;
459 if(collector.size()>0) {
460 std::cout <<
" iu = " << iu <<
" sector = " << sector <<
" zmodule = " << zmodule <<
" zside = " << zside <<
" det=" << det <<
" layer = " << layer <<
" orient = " << orient << std::endl;
463 vector<HDigiFP420>::const_iterator simHitIter = collector.begin();
464 vector<HDigiFP420>::const_iterator simHitIterEnd = collector.end();
465 for (;simHitIter != simHitIterEnd; ++simHitIter) {
467 std::cout <<
" strip number=" << istrip.
strip() <<
" adc=" << istrip.
adc() << std::endl;
471 std::cout <<
" ===================================================" << std::endl;
491 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)
static int unpackLayerIndex(int rn0, int zside)
std::vector< HDigiFP420 > collector
static void unpackMYIndex(const int &idx, int rn0, int pn0, int sn0, int &det, int &zside, int §or, int &zmodule)
std::vector< HDigiFP420 > run(const std::vector< PSimHit > &input, const G4ThreeVector &, unsigned int)
static unsigned packMYIndex(int rn0, int pn0, int sn0, int det, int zside, int sector, int zmodule)
static unsigned int packFP420Index(int det, int zside, int station, int superplane)
std::pair< ContainerIterator, ContainerIterator > Range
static int unpackOrientation(int rn0, int zside)
vstring trackerContainers
unsigned int detUnitId() const