6 printProvenanceInfo(
false), nRawGenPart(0), config_(iPSet),
count(0)
15 m_Prov.getUntrackedParameter<
bool>(
"GetAllProvenances");
17 m_Prov.getUntrackedParameter<
bool>(
"PrintProvenanceInfo");
39 produces<PTrackerSimHit>(
label);
44 <<
"\n===============================\n"
45 <<
"Initialized as EDProducer with parameter values:\n"
46 <<
" Name =" <<
fName <<
"\n"
47 <<
" Verbosity =" << verbosity <<
"\n"
48 <<
" Label =" << label <<
"\n"
49 <<
" GetProv =" << getAllProvenances <<
"\n"
50 <<
" PrintProv =" << printProvenanceInfo <<
"\n"
51 <<
" PxlBrlLowSrc = " << PxlBrlLowSrc_.label()
52 <<
":" << PxlBrlLowSrc_.instance() <<
"\n"
53 <<
" PxlBrlHighSrc = " << PxlBrlHighSrc_.
label()
54 <<
":" << PxlBrlHighSrc_.
instance() <<
"\n"
55 <<
" PxlFwdLowSrc = " << PxlFwdLowSrc_.
label()
56 <<
":" << PxlBrlLowSrc_.instance() <<
"\n"
57 <<
" PxlFwdHighSrc = " << PxlFwdHighSrc_.
label()
58 <<
":" << PxlBrlHighSrc_.
instance() <<
"\n"
59 <<
" SiTIBLowSrc = " << SiTIBLowSrc_.
label()
60 <<
":" << SiTIBLowSrc_.
instance() <<
"\n"
61 <<
" SiTIBHighSrc = " << SiTIBHighSrc_.
label()
62 <<
":" << SiTIBHighSrc_.
instance() <<
"\n"
63 <<
" SiTOBLowSrc = " << SiTOBLowSrc_.
label()
64 <<
":" << SiTOBLowSrc_.
instance() <<
"\n"
65 <<
" SiTOBHighSrc = " << SiTOBHighSrc_.
label()
66 <<
":" << SiTOBHighSrc_.
instance() <<
"\n"
67 <<
" SiTIDLowSrc = " << SiTIDLowSrc_.
label()
68 <<
":" << SiTIDLowSrc_.
instance() <<
"\n"
69 <<
" SiTIDHighSrc = " << SiTIDHighSrc_.
label()
70 <<
":" << SiTIDHighSrc_.
instance() <<
"\n"
71 <<
" SiTECLowSrc = " << SiTECLowSrc_.
label()
72 <<
":" << SiTECLowSrc_.
instance() <<
"\n"
73 <<
" SiTECHighSrc = " << SiTECHighSrc_.
label()
74 <<
":" << SiTECHighSrc_.
instance() <<
"\n"
75 <<
"===============================\n"; }
86 <<
"Starting the job...";
95 <<
"Terminating having processed" <<
count <<
"events.";
106 int nrun = iEvent.
id().
run();
115 <<
"Processing run" << nrun <<
"," <<
"event " <<
nevt;
124 std::vector<const edm::Provenance*> AllProv;
129 <<
"Number of Provenances =" << AllProv.size();
132 TString eventout(
"\nProvenance info:\n");
134 for (
unsigned int i = 0;
i < AllProv.size(); ++
i) {
135 eventout +=
"\n ******************************";
136 eventout +=
"\n Module : ";
137 eventout += AllProv[
i]->moduleLabel();
138 eventout +=
"\n ProductID process index: ";
139 eventout += AllProv[
i]->productID().processIndex();
140 eventout +=
"\n ProductID product index: ";
141 eventout += AllProv[
i]->productID().productIndex();
142 eventout +=
"\n ClassName : ";
143 eventout += AllProv[
i]->className();
144 eventout +=
"\n InstanceName : ";
145 eventout += AllProv[
i]->productInstanceName();
146 eventout +=
"\n BranchName : ";
147 eventout += AllProv[
i]->branchName();
149 eventout +=
" ******************************\n";
150 edm::LogInfo(
"TrackerHitProducer::produce") << eventout;
162 <<
"Done gathering data from event.";
169 <<
"Saving event contents:";
189 eventout =
"\nGathering info:";
198 iEvent.
getByLabel(HepMClabel, HepMCinstance ,HepMCEvt);
201 <<
"Unable to find HepMCProduct in event!";
204 const HepMC::GenEvent* MCEvt = HepMCEvt->GetEvent();
208 eventout +=
"\n Number of Raw Particles collected: ";
217 if (!G4VtxContainer.
isValid()) {
219 <<
"Unable to find SimVertex in event!";
223 edm::SimVertexContainer::const_iterator itVtx;
224 for (itVtx = G4VtxContainer->begin(); itVtx != G4VtxContainer->end();
229 const CLHEP::HepLorentzVector& G4Vtx = CLHEP::HepLorentzVector(itVtx->position().x(),
230 itVtx->position().y(),
231 itVtx->position().z(),
232 itVtx->position().e());
233 G4VtxX.push_back(G4Vtx[0]/micrometer);
234 G4VtxY.push_back(G4Vtx[1]/micrometer);
235 G4VtxZ.push_back(G4Vtx[2]/millimeter);
239 eventout +=
"\n Number of G4Vertices collected: ";
248 if (!G4TrkContainer.
isValid()) {
250 <<
"Unable to find SimTrack in event!";
254 edm::SimTrackContainer::const_iterator itTrk;
255 for (itTrk = G4TrkContainer->begin(); itTrk != G4TrkContainer->end();
260 double etaInit =0, phiInit =0, pInit =0;
261 const CLHEP::HepLorentzVector& G4Trk = CLHEP::HepLorentzVector(itTrk->momentum().x(),
262 itTrk->momentum().y(),
263 itTrk->momentum().z(),
264 itTrk->momentum().e());
265 pInit =
sqrt(G4Trk[0]*G4Trk[0]+G4Trk[1]*G4Trk[1]+G4Trk[2]*G4Trk[2]);
268 <<
"TrackerTest::INFO: Primary has p = 0 ";
270 double costheta = G4Trk[2]/pInit;
272 etaInit = -
log(
tan(theta/2));
274 if ( G4Trk[0] != 0 || G4Trk[1] != 0)
275 phiInit = atan2(G4Trk[1],G4Trk[0]);
277 G4TrkPt.push_back(
sqrt(G4Trk[0]*G4Trk[0]+G4Trk[1]*G4Trk[1]));
278 G4TrkE.push_back(G4Trk[3]);
284 eventout +=
"\n Number of G4Tracks collected: ";
289 edm::LogInfo(
"TrackerHitProducer::fillG4MC") << eventout;
298 TString eventout(
"\nnRawGenPart = ");
300 eventout +=
"\n nG4Vtx = ";
301 eventout +=
G4VtxX.size();
302 for (
unsigned int i = 0;
i <
G4VtxX.size(); ++
i) {
303 eventout +=
"\n (x,y,z) = (";
311 eventout +=
"\n nG4Trk = ";
313 for (
unsigned int i = 0;
i <
G4TrkPt.size(); ++
i) {
314 eventout +=
"\n (pt,e,eta,phi) = (";
324 edm::LogInfo(
"TrackerHitProducer::storeG4MC") << eventout;
340 eventout =
"\nGathering info:";
343 edm::PSimHitContainer::const_iterator itHit;
354 if (!PxlBrlLowContainer.
isValid()) {
356 <<
"Unable to find TrackerHitsPixelBarrelLowTof in event!";
366 for (itHit = PxlBrlLowContainer->begin(); itHit != PxlBrlLowContainer->end(); ++itHit) {
372 HitsDuID.push_back(itHit->detUnitId());
373 HitsTkID.push_back(itHit->trackId());
374 HitsProT.push_back(itHit->processType());
375 HitsParT.push_back(itHit->particleType());
376 HitsP.push_back(itHit->pabs());
378 HitsLpX.push_back(itHit->localPosition().x());
379 HitsLpY.push_back(itHit->localPosition().y());
380 HitsLpZ.push_back(itHit->localPosition().z());
382 HitsLdX.push_back(itHit->localDirection().x());
383 HitsLdY.push_back(itHit->localDirection().y());
384 HitsLdZ.push_back(itHit->localDirection().z());
385 HitsLdTheta.push_back(itHit->localDirection().theta());
386 HitsLdPhi.push_back(itHit->localDirection().phi());
388 HitsExPx.push_back(itHit->exitPoint().x());
389 HitsExPy.push_back(itHit->exitPoint().y());
390 HitsExPz.push_back(itHit->exitPoint().z());
392 HitsEnPx.push_back(itHit->entryPoint().x());
393 HitsEnPy.push_back(itHit->entryPoint().y());
394 HitsEnPz.push_back(itHit->entryPoint().z());
396 HitsEloss.push_back(itHit->energyLoss());
397 HitsToF.push_back(itHit->tof());
402 eventout +=
"\n Number of Pixel Barrel Low TOF Hits collected: ";
412 if (!PxlBrlHighContainer.
isValid()) {
414 <<
"Unable to find TrackerHitsPixelBarrelHighTof in event!";
421 for (itHit = PxlBrlHighContainer->begin(); itHit != PxlBrlHighContainer->end(); ++itHit) {
426 HitsDuID.push_back(itHit->detUnitId());
427 HitsTkID.push_back(itHit->trackId());
428 HitsProT.push_back(itHit->processType());
429 HitsParT.push_back(itHit->particleType());
430 HitsP.push_back(itHit->pabs());
432 HitsLpX.push_back(itHit->localPosition().x());
433 HitsLpY.push_back(itHit->localPosition().y());
434 HitsLpZ.push_back(itHit->localPosition().z());
436 HitsLdX.push_back(itHit->localDirection().x());
437 HitsLdY.push_back(itHit->localDirection().y());
438 HitsLdZ.push_back(itHit->localDirection().z());
439 HitsLdTheta.push_back(itHit->localDirection().theta());
440 HitsLdPhi.push_back(itHit->localDirection().phi());
442 HitsExPx.push_back(itHit->exitPoint().x());
443 HitsExPy.push_back(itHit->exitPoint().y());
444 HitsExPz.push_back(itHit->exitPoint().z());
446 HitsEnPx.push_back(itHit->entryPoint().x());
447 HitsEnPy.push_back(itHit->entryPoint().y());
448 HitsEnPz.push_back(itHit->entryPoint().z());
450 HitsEloss.push_back(itHit->energyLoss());
451 HitsToF.push_back(itHit->tof());
456 eventout +=
"\n Number of Pixel Barrel High TOF Hits collected: ";
468 if (!PxlFwdLowContainer.
isValid()) {
470 <<
"Unable to find TrackerHitsPixelEndcapLowTof in event!";
476 for (itHit = PxlFwdLowContainer->begin(); itHit != PxlFwdLowContainer->end(); ++itHit) {
481 HitsDuID.push_back(itHit->detUnitId());
482 HitsTkID.push_back(itHit->trackId());
483 HitsProT.push_back(itHit->processType());
484 HitsParT.push_back(itHit->particleType());
485 HitsP.push_back(itHit->pabs());
487 HitsLpX.push_back(itHit->localPosition().x());
488 HitsLpY.push_back(itHit->localPosition().y());
489 HitsLpZ.push_back(itHit->localPosition().z());
491 HitsLdX.push_back(itHit->localDirection().x());
492 HitsLdY.push_back(itHit->localDirection().y());
493 HitsLdZ.push_back(itHit->localDirection().z());
494 HitsLdTheta.push_back(itHit->localDirection().theta());
495 HitsLdPhi.push_back(itHit->localDirection().phi());
497 HitsExPx.push_back(itHit->exitPoint().x());
498 HitsExPy.push_back(itHit->exitPoint().y());
499 HitsExPz.push_back(itHit->exitPoint().z());
501 HitsEnPx.push_back(itHit->entryPoint().x());
502 HitsEnPy.push_back(itHit->entryPoint().y());
503 HitsEnPz.push_back(itHit->entryPoint().z());
505 HitsEloss.push_back(itHit->energyLoss());
506 HitsToF.push_back(itHit->tof());
511 eventout +=
"\n Number of Pixel Forward Low TOF Hits collected: ";
520 if (!PxlFwdHighContainer.
isValid()) {
522 <<
"Unable to find TrackerHitsPixelEndcapHighTof in event!";
528 for (itHit = PxlFwdHighContainer->begin(); itHit != PxlFwdHighContainer->end(); ++itHit) {
533 HitsDuID.push_back(itHit->detUnitId());
534 HitsTkID.push_back(itHit->trackId());
535 HitsProT.push_back(itHit->processType());
536 HitsParT.push_back(itHit->particleType());
537 HitsP.push_back(itHit->pabs());
539 HitsLpX.push_back(itHit->localPosition().x());
540 HitsLpY.push_back(itHit->localPosition().y());
541 HitsLpZ.push_back(itHit->localPosition().z());
543 HitsLdX.push_back(itHit->localDirection().x());
544 HitsLdY.push_back(itHit->localDirection().y());
545 HitsLdZ.push_back(itHit->localDirection().z());
546 HitsLdTheta.push_back(itHit->localDirection().theta());
547 HitsLdPhi.push_back(itHit->localDirection().phi());
549 HitsExPx.push_back(itHit->exitPoint().x());
550 HitsExPy.push_back(itHit->exitPoint().y());
551 HitsExPz.push_back(itHit->exitPoint().z());
553 HitsEnPx.push_back(itHit->entryPoint().x());
554 HitsEnPy.push_back(itHit->entryPoint().y());
555 HitsEnPz.push_back(itHit->entryPoint().z());
557 HitsEloss.push_back(itHit->energyLoss());
558 HitsToF.push_back(itHit->tof());
563 eventout +=
"\n Number of Pixel Forward High TOF Hits collected: ";
575 if (!SiTIBLowContainer.
isValid()) {
577 <<
"Unable to find TrackerHitsTIBLowTof in event!";
583 for (itHit = SiTIBLowContainer->begin(); itHit != SiTIBLowContainer->end(); ++itHit) {
588 HitsDuID.push_back(itHit->detUnitId());
589 HitsTkID.push_back(itHit->trackId());
590 HitsProT.push_back(itHit->processType());
591 HitsParT.push_back(itHit->particleType());
592 HitsP.push_back(itHit->pabs());
594 HitsLpX.push_back(itHit->localPosition().x());
595 HitsLpY.push_back(itHit->localPosition().y());
596 HitsLpZ.push_back(itHit->localPosition().z());
598 HitsLdX.push_back(itHit->localDirection().x());
599 HitsLdY.push_back(itHit->localDirection().y());
600 HitsLdZ.push_back(itHit->localDirection().z());
601 HitsLdTheta.push_back(itHit->localDirection().theta());
602 HitsLdPhi.push_back(itHit->localDirection().phi());
604 HitsExPx.push_back(itHit->exitPoint().x());
605 HitsExPy.push_back(itHit->exitPoint().y());
606 HitsExPz.push_back(itHit->exitPoint().z());
608 HitsEnPx.push_back(itHit->entryPoint().x());
609 HitsEnPy.push_back(itHit->entryPoint().y());
610 HitsEnPz.push_back(itHit->entryPoint().z());
612 HitsEloss.push_back(itHit->energyLoss());
613 HitsToF.push_back(itHit->tof());
618 eventout +=
"\n Number of TIB low TOF Hits collected: ";
627 if (!SiTIBHighContainer.
isValid()) {
629 <<
"Unable to find TrackerHitsTIBHighTof in event!";
635 for (itHit = SiTIBHighContainer->begin(); itHit != SiTIBHighContainer->end(); ++itHit) {
640 HitsDuID.push_back(itHit->detUnitId());
641 HitsTkID.push_back(itHit->trackId());
642 HitsProT.push_back(itHit->processType());
643 HitsParT.push_back(itHit->particleType());
644 HitsP.push_back(itHit->pabs());
646 HitsLpX.push_back(itHit->localPosition().x());
647 HitsLpY.push_back(itHit->localPosition().y());
648 HitsLpZ.push_back(itHit->localPosition().z());
650 HitsLdX.push_back(itHit->localDirection().x());
651 HitsLdY.push_back(itHit->localDirection().y());
652 HitsLdZ.push_back(itHit->localDirection().z());
653 HitsLdTheta.push_back(itHit->localDirection().theta());
654 HitsLdPhi.push_back(itHit->localDirection().phi());
656 HitsExPx.push_back(itHit->exitPoint().x());
657 HitsExPy.push_back(itHit->exitPoint().y());
658 HitsExPz.push_back(itHit->exitPoint().z());
660 HitsEnPx.push_back(itHit->entryPoint().x());
661 HitsEnPy.push_back(itHit->entryPoint().y());
662 HitsEnPz.push_back(itHit->entryPoint().z());
664 HitsEloss.push_back(itHit->energyLoss());
665 HitsToF.push_back(itHit->tof());
670 eventout +=
"\n Number of TIB high TOF Hits collected: ";
681 if (!SiTOBLowContainer.
isValid()) {
683 <<
"Unable to find TrackerHitsTOBLowTof in event!";
689 for (itHit = SiTOBLowContainer->begin(); itHit != SiTOBLowContainer->end(); ++itHit) {
694 HitsDuID.push_back(itHit->detUnitId());
695 HitsTkID.push_back(itHit->trackId());
696 HitsProT.push_back(itHit->processType());
697 HitsParT.push_back(itHit->particleType());
698 HitsP.push_back(itHit->pabs());
700 HitsLpX.push_back(itHit->localPosition().x());
701 HitsLpY.push_back(itHit->localPosition().y());
702 HitsLpZ.push_back(itHit->localPosition().z());
704 HitsLdX.push_back(itHit->localDirection().x());
705 HitsLdY.push_back(itHit->localDirection().y());
706 HitsLdZ.push_back(itHit->localDirection().z());
707 HitsLdTheta.push_back(itHit->localDirection().theta());
708 HitsLdPhi.push_back(itHit->localDirection().phi());
710 HitsExPx.push_back(itHit->exitPoint().x());
711 HitsExPy.push_back(itHit->exitPoint().y());
712 HitsExPz.push_back(itHit->exitPoint().z());
714 HitsEnPx.push_back(itHit->entryPoint().x());
715 HitsEnPy.push_back(itHit->entryPoint().y());
716 HitsEnPz.push_back(itHit->entryPoint().z());
718 HitsEloss.push_back(itHit->energyLoss());
719 HitsToF.push_back(itHit->tof());
724 eventout +=
"\n Number of TOB low TOF Hits collected: ";
732 if (!SiTOBHighContainer.
isValid()) {
734 <<
"Unable to find TrackerHitsTOBHighTof in event!";
740 for (itHit = SiTOBHighContainer->begin(); itHit != SiTOBHighContainer->end(); ++itHit) {
745 HitsDuID.push_back(itHit->detUnitId());
746 HitsTkID.push_back(itHit->trackId());
747 HitsProT.push_back(itHit->processType());
748 HitsParT.push_back(itHit->particleType());
749 HitsP.push_back(itHit->pabs());
751 HitsLpX.push_back(itHit->localPosition().x());
752 HitsLpY.push_back(itHit->localPosition().y());
753 HitsLpZ.push_back(itHit->localPosition().z());
755 HitsLdX.push_back(itHit->localDirection().x());
756 HitsLdY.push_back(itHit->localDirection().y());
757 HitsLdZ.push_back(itHit->localDirection().z());
758 HitsLdTheta.push_back(itHit->localDirection().theta());
759 HitsLdPhi.push_back(itHit->localDirection().phi());
761 HitsExPx.push_back(itHit->exitPoint().x());
762 HitsExPy.push_back(itHit->exitPoint().y());
763 HitsExPz.push_back(itHit->exitPoint().z());
765 HitsEnPx.push_back(itHit->entryPoint().x());
766 HitsEnPy.push_back(itHit->entryPoint().y());
767 HitsEnPz.push_back(itHit->entryPoint().z());
769 HitsEloss.push_back(itHit->energyLoss());
770 HitsToF.push_back(itHit->tof());
775 eventout +=
"\n Number of TOB high TOF Hits collected: ";
786 if (!SiTIDLowContainer.
isValid()) {
788 <<
"Unable to find TrackerHitsTIDLowTof in event!";
794 for (itHit = SiTIDLowContainer->begin(); itHit != SiTIDLowContainer->end(); ++itHit) {
799 HitsDuID.push_back(itHit->detUnitId());
800 HitsTkID.push_back(itHit->trackId());
801 HitsProT.push_back(itHit->processType());
802 HitsParT.push_back(itHit->particleType());
803 HitsP.push_back(itHit->pabs());
805 HitsLpX.push_back(itHit->localPosition().x());
806 HitsLpY.push_back(itHit->localPosition().y());
807 HitsLpZ.push_back(itHit->localPosition().z());
809 HitsLdX.push_back(itHit->localDirection().x());
810 HitsLdY.push_back(itHit->localDirection().y());
811 HitsLdZ.push_back(itHit->localDirection().z());
812 HitsLdTheta.push_back(itHit->localDirection().theta());
813 HitsLdPhi.push_back(itHit->localDirection().phi());
815 HitsExPx.push_back(itHit->exitPoint().x());
816 HitsExPy.push_back(itHit->exitPoint().y());
817 HitsExPz.push_back(itHit->exitPoint().z());
819 HitsEnPx.push_back(itHit->entryPoint().x());
820 HitsEnPy.push_back(itHit->entryPoint().y());
821 HitsEnPz.push_back(itHit->entryPoint().z());
823 HitsEloss.push_back(itHit->energyLoss());
824 HitsToF.push_back(itHit->tof());
829 eventout +=
"\n Number of TID low TOF Hits collected: ";
837 if (!SiTIDHighContainer.
isValid()) {
839 <<
"Unable to find TrackerHitsTIDHighTof in event!";
845 for (itHit = SiTIDHighContainer->begin(); itHit != SiTIDHighContainer->end(); ++itHit) {
850 HitsDuID.push_back(itHit->detUnitId());
851 HitsTkID.push_back(itHit->trackId());
852 HitsProT.push_back(itHit->processType());
853 HitsParT.push_back(itHit->particleType());
854 HitsP.push_back(itHit->pabs());
856 HitsLpX.push_back(itHit->localPosition().x());
857 HitsLpY.push_back(itHit->localPosition().y());
858 HitsLpZ.push_back(itHit->localPosition().z());
860 HitsLdX.push_back(itHit->localDirection().x());
861 HitsLdY.push_back(itHit->localDirection().y());
862 HitsLdZ.push_back(itHit->localDirection().z());
863 HitsLdTheta.push_back(itHit->localDirection().theta());
864 HitsLdPhi.push_back(itHit->localDirection().phi());
866 HitsExPx.push_back(itHit->exitPoint().x());
867 HitsExPy.push_back(itHit->exitPoint().y());
868 HitsExPz.push_back(itHit->exitPoint().z());
870 HitsEnPx.push_back(itHit->entryPoint().x());
871 HitsEnPy.push_back(itHit->entryPoint().y());
872 HitsEnPz.push_back(itHit->entryPoint().z());
874 HitsEloss.push_back(itHit->energyLoss());
875 HitsToF.push_back(itHit->tof());
880 eventout +=
"\n Number of TID high TOF Hits collected: ";
891 if (!SiTECLowContainer.
isValid()) {
893 <<
"Unable to find TrackerHitsTECLowTof in event!";
899 for (itHit = SiTECLowContainer->begin(); itHit != SiTECLowContainer->end(); ++itHit) {
904 HitsDuID.push_back(itHit->detUnitId());
905 HitsTkID.push_back(itHit->trackId());
906 HitsProT.push_back(itHit->processType());
907 HitsParT.push_back(itHit->particleType());
908 HitsP.push_back(itHit->pabs());
910 HitsLpX.push_back(itHit->localPosition().x());
911 HitsLpY.push_back(itHit->localPosition().y());
912 HitsLpZ.push_back(itHit->localPosition().z());
914 HitsLdX.push_back(itHit->localDirection().x());
915 HitsLdY.push_back(itHit->localDirection().y());
916 HitsLdZ.push_back(itHit->localDirection().z());
917 HitsLdTheta.push_back(itHit->localDirection().theta());
918 HitsLdPhi.push_back(itHit->localDirection().phi());
920 HitsExPx.push_back(itHit->exitPoint().x());
921 HitsExPy.push_back(itHit->exitPoint().y());
922 HitsExPz.push_back(itHit->exitPoint().z());
924 HitsEnPx.push_back(itHit->entryPoint().x());
925 HitsEnPy.push_back(itHit->entryPoint().y());
926 HitsEnPz.push_back(itHit->entryPoint().z());
928 HitsEloss.push_back(itHit->energyLoss());
929 HitsToF.push_back(itHit->tof());
934 eventout +=
"\n Number of TEC low TOF Hits collected: ";
943 if (!SiTECHighContainer.
isValid()) {
945 <<
"Unable to find TrackerHitsTECHighTof in event!";
950 for (itHit = SiTECHighContainer->begin(); itHit != SiTECHighContainer->end(); ++itHit) {
955 HitsDuID.push_back(itHit->detUnitId());
956 HitsTkID.push_back(itHit->trackId());
957 HitsProT.push_back(itHit->processType());
958 HitsParT.push_back(itHit->particleType());
959 HitsP.push_back(itHit->pabs());
961 HitsLpX.push_back(itHit->localPosition().x());
962 HitsLpY.push_back(itHit->localPosition().y());
963 HitsLpZ.push_back(itHit->localPosition().z());
965 HitsLdX.push_back(itHit->localDirection().x());
966 HitsLdY.push_back(itHit->localDirection().y());
967 HitsLdZ.push_back(itHit->localDirection().z());
968 HitsLdTheta.push_back(itHit->localDirection().theta());
969 HitsLdPhi.push_back(itHit->localDirection().phi());
971 HitsExPx.push_back(itHit->exitPoint().x());
972 HitsExPy.push_back(itHit->exitPoint().y());
973 HitsExPz.push_back(itHit->exitPoint().z());
975 HitsEnPx.push_back(itHit->entryPoint().x());
976 HitsEnPy.push_back(itHit->entryPoint().y());
977 HitsEnPz.push_back(itHit->entryPoint().z());
979 HitsEloss.push_back(itHit->energyLoss());
980 HitsToF.push_back(itHit->tof());
985 eventout +=
"\n Number of TEC high TOF Hits collected: ";
990 edm::LogInfo(
"TrackerHitProducer::fillTrk") << eventout;
1069 <<
"Clearing event holders";
void fillG4MC(edm::Event &)
void storeTrk(PTrackerSimHit &)
T getParameter(std::string const &) const
EventNumber_t event() const
edm::InputTag SiTIBHighSrc_
T getUntrackedParameter(std::string const &, T const &) const
void getAllProvenance(std::vector< Provenance const * > &provenances) const
edm::InputTag PxlFwdHighSrc_
void storeG4MC(PTrackerSimHit &)
#define DEFINE_FWK_MODULE(type)
void putRawGenPart(int n)
Geom::Theta< T > theta() const
void putG4Vtx(std::vector< float > x, std::vector< float > y, std::vector< float > z)
bool getByType(Handle< PROD > &result) const
edm::InputTag PxlBrlHighSrc_
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::InputTag SiTIDHighSrc_
TrackerHitProducer(const edm::ParameterSet &)
virtual ~TrackerHitProducer()
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::InputTag PxlFwdLowSrc_
edm::InputTag SiTOBLowSrc_
Tan< T >::type tan(const T &t)
edm::InputTag SiTECHighSrc_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void putHits(std::vector< int > _sysID, std::vector< float > _detUnitId, std::vector< float >_trackId, std::vector< float >_processType, std::vector< float >_particleType, std::vector< float > _pabs, std::vector< float >_lpx, std::vector< float >_lpy, std::vector< float >_lpz, std::vector< float >_ldx, std::vector< float >_ldy, std::vector< float >_ldz, std::vector< float >_ldtheta, std::vector< float >_ldphi, std::vector< float >_exx, std::vector< float >_exy, std::vector< float >_exz, std::vector< float >_enx, std::vector< float >_eny, std::vector< float >_enz, std::vector< float >_eloss, std::vector< float >_tof)
edm::InputTag PxlBrlLowSrc_
edm::InputTag SiTECLowSrc_
edm::ParameterSet config_
void putG4Trk(std::vector< float > pt, std::vector< float > e, std::vector< float > eta, std::vector< float > phi)
edm::InputTag SiTIDLowSrc_
void fillTrk(edm::Event &, const edm::EventSetup &)
edm::InputTag SiTOBHighSrc_
edm::InputTag SiTIBLowSrc_