Analyze.
351 edm::PSimHitContainer::const_iterator itHit;
358 if (!PxlBrlLowContainer.
isValid()) {
360 <<
"Unable to find TrackerHitsPixelBarrelLowTof in event!";
366 if (!PxlBrlHighContainer.
isValid()) {
368 <<
"Unable to find TrackerHitsPixelBarrelHighTof in event!";
377 if (!PxlFwdLowContainer.
isValid()) {
379 <<
"Unable to find TrackerHitsPixelEndcapLowTof in event!";
385 if (!PxlFwdHighContainer.
isValid()) {
387 <<
"Unable to find TrackerHitsPixelEndcapHighTof in event!";
396 if (!SiTIBLowContainer.
isValid()) {
398 <<
"Unable to find TrackerHitsTIBLowTof in event!";
405 if (!SiTIBHighContainer.
isValid()) {
407 <<
"Unable to find TrackerHitsTIBHighTof in event!";
416 if (!SiTOBLowContainer.
isValid()) {
418 <<
"Unable to find TrackerHitsTOBLowTof in event!";
425 if (!SiTOBHighContainer.
isValid()) {
427 <<
"Unable to find TrackerHitsTOBHighTof in event!";
437 if (!SiTIDLowContainer.
isValid()) {
439 <<
"Unable to find TrackerHitsTIDLowTof in event!";
446 if (!SiTIDHighContainer.
isValid()) {
448 <<
"Unable to find TrackerHitsTIDHighTof in event!";
457 if (!SiTECLowContainer.
isValid()) {
459 <<
"Unable to find TrackerHitsTECLowTof in event!";
466 if (!SiTECHighContainer.
isValid()) {
468 <<
"Unable to find TrackerHitsTECHighTof in event!";
478 if (!G4TrkContainer.
isValid()) {
480 <<
"Unable to find SimTrack in event!";
492 edm::SimTrackContainer::const_iterator itTrk;
493 for (itTrk = G4TrkContainer->begin(); itTrk != G4TrkContainer->end();
498 const CLHEP::HepLorentzVector& G4Trk = CLHEP::HepLorentzVector(itTrk->momentum().x(),
499 itTrk->momentum().y(),
500 itTrk->momentum().z(),
501 itTrk->momentum().e());
502 p =
sqrt(G4Trk[0]*G4Trk[0]+G4Trk[1]*G4Trk[1]+G4Trk[2]*G4Trk[2]);
505 <<
"TrackerTest::INFO: Primary has p = 0 ";
507 double costheta = G4Trk[2]/
p;
511 if (eta>0.0 && eta<=0.5) ir = 0;
512 if (eta>0.5 && eta<=1.0) ir = 1;
513 if (eta>1.0 && eta<=1.5) ir = 2;
514 if (eta>1.5 && eta<=2.0) ir = 3;
515 if (eta>2.0 && eta<=2.5) ir = 4;
518 if (eta>-0.5 && eta<= 0.0) ir = 6;
519 if (eta>-1.0 && eta<=-0.5) ir = 7;
520 if (eta>-1.5 && eta<=-1.0) ir = 8;
521 if (eta>-2.0 && eta<=-1.5) ir = 9;
522 if (eta>-2.5 && eta<=-2.0) ir = 10;
523 if (eta<=-2.5) ir = 11;
536 for (itHit = PxlBrlLowContainer->begin(); itHit != PxlBrlLowContainer->end(); ++itHit) {
539 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
545 h5e[ir]->
Fill(itHit->energyLoss());
546 h5ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
547 h5ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
548 h5ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
549 h5lx[ir]->
Fill(itHit->localPosition().x());
550 h5ly[ir]->
Fill(itHit->localPosition().y());
552 for (itHit = PxlBrlHighContainer->begin(); itHit != PxlBrlHighContainer->end(); ++itHit) {
555 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
562 h5e[ir]->
Fill(itHit->energyLoss());
563 h5ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
564 h5ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
565 h5ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
566 h5lx[ir]->
Fill(itHit->localPosition().x());
567 h5ly[ir]->
Fill(itHit->localPosition().y());
569 for (itHit = PxlFwdLowContainer->begin(); itHit != PxlFwdLowContainer->end(); ++itHit) {
572 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
579 h6e[ir]->
Fill(itHit->energyLoss());
580 h6ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
581 h6ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
582 h6ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
583 h6lx[ir]->
Fill(itHit->localPosition().x());
584 h6ly[ir]->
Fill(itHit->localPosition().y());
586 for (itHit = PxlFwdHighContainer->begin(); itHit != PxlFwdHighContainer->end(); ++itHit) {
589 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
596 h6e[ir]->
Fill(itHit->energyLoss());
597 h6ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
598 h6ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
599 h6ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
600 h6lx[ir]->
Fill(itHit->localPosition().x());
601 h6ly[ir]->
Fill(itHit->localPosition().y());
607 for (itHit = SiTIBLowContainer->begin(); itHit != SiTIBLowContainer->end(); ++itHit) {
610 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
617 h1e[ir]->
Fill(itHit->energyLoss());
618 h1ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
619 h1ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
620 h1ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
621 h1lx[ir]->
Fill(itHit->localPosition().x());
622 h1ly[ir]->
Fill(itHit->localPosition().y());
624 for (itHit = SiTIBHighContainer->begin(); itHit != SiTIBHighContainer->end(); ++itHit) {
627 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
634 h1e[ir]->
Fill(itHit->energyLoss());
635 h1ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
636 h1ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
637 h1ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
638 h1lx[ir]->
Fill(itHit->localPosition().x());
639 h1ly[ir]->
Fill(itHit->localPosition().y());
644 for (itHit = SiTOBLowContainer->begin(); itHit != SiTOBLowContainer->end(); ++itHit) {
647 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
654 h2e[ir]->
Fill(itHit->energyLoss());
655 h2ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
656 h2ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
657 h2ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
658 h2lx[ir]->
Fill(itHit->localPosition().x());
659 h2ly[ir]->
Fill(itHit->localPosition().y());
661 for (itHit = SiTOBHighContainer->begin(); itHit != SiTOBHighContainer->end(); ++itHit) {
664 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
670 h2e[ir]->
Fill(itHit->energyLoss());
671 h2ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
672 h2ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
673 h2ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
674 h2lx[ir]->
Fill(itHit->localPosition().x());
675 h2ly[ir]->
Fill(itHit->localPosition().y());
680 for (itHit = SiTIDLowContainer->begin(); itHit != SiTIDLowContainer->end(); ++itHit) {
683 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
689 h3e[ir]->
Fill(itHit->energyLoss());
690 h3ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
691 h3ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
692 h3ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
693 h3lx[ir]->
Fill(itHit->localPosition().x());
694 h3ly[ir]->
Fill(itHit->localPosition().y());
696 for (itHit = SiTIDHighContainer->begin(); itHit != SiTIDHighContainer->end(); ++itHit) {
699 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
705 h3e[ir]->
Fill(itHit->energyLoss());
706 h3ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
707 h3ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
708 h3ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
709 h3lx[ir]->
Fill(itHit->localPosition().x());
710 h3ly[ir]->
Fill(itHit->localPosition().y());
715 for (itHit = SiTECLowContainer->begin(); itHit != SiTECLowContainer->end(); ++itHit) {
718 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
724 h4e[ir]->
Fill(itHit->energyLoss());
725 h4ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
726 h4ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
727 h4ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
728 h4lx[ir]->
Fill(itHit->localPosition().x());
729 h4ly[ir]->
Fill(itHit->localPosition().y());
731 for (itHit = SiTECHighContainer->begin(); itHit != SiTECHighContainer->end(); ++itHit) {
734 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
740 h4e[ir]->
Fill(itHit->energyLoss());
741 h4ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
742 h4ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
743 h4ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
744 h4lx[ir]->
Fill(itHit->localPosition().x());
745 h4ly[ir]->
Fill(itHit->localPosition().y());
EventNumber_t event() const
MonitorElement * h2lx[12]
MonitorElement * h1lx[12]
MonitorElement * h6ex[12]
MonitorElement * h1ey[12]
edm::EDGetTokenT< edm::PSimHitContainer > edmPSimHitContainer_siTECLow_Token_
MonitorElement * h3ly[12]
MonitorElement * h5ez[12]
MonitorElement * h4ex[12]
edm::EDGetTokenT< edm::SimTrackContainer > edmSimTrackContainerToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * h1ez[12]
MonitorElement * h3ez[12]
edm::EDGetTokenT< edm::PSimHitContainer > edmPSimHitContainer_pxlBrlLow_Token_
Geom::Phi< T > phi() const
Geom::Theta< T > theta() const
MonitorElement * h5ey[12]
MonitorElement * h3lx[12]
edm::EDGetTokenT< edm::PSimHitContainer > edmPSimHitContainer_siTOBLow_Token_
edm::EDGetTokenT< edm::PSimHitContainer > edmPSimHitContainer_pxlFwdLow_Token_
MonitorElement * h6ly[12]
MonitorElement * h5ex[12]
MonitorElement * h5ly[12]
const TrackerGeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
edm::EDGetTokenT< edm::PSimHitContainer > edmPSimHitContainer_siTIBLow_Token_
edm::EDGetTokenT< edm::PSimHitContainer > edmPSimHitContainer_siTOBHigh_Token_
MonitorElement * h1ex[12]
MonitorElement * h6ey[12]
Tan< T >::type tan(const T &t)
MonitorElement * h4lx[12]
MonitorElement * h2ex[12]
MonitorElement * h6ez[12]
edm::EDGetTokenT< edm::PSimHitContainer > edmPSimHitContainer_siTIDLow_Token_
MonitorElement * h2ez[12]
edm::EDGetTokenT< edm::PSimHitContainer > edmPSimHitContainer_pxlBrlHigh_Token_
MonitorElement * h5lx[12]
MonitorElement * h4ey[12]
MonitorElement * h1ly[12]
MonitorElement * h4ly[12]
return(e1-e2)*(e1-e2)+dp *dp
MonitorElement * h3ex[12]
MonitorElement * h3ey[12]
MonitorElement * h2ey[12]
MonitorElement * h2ly[12]
edm::EDGetTokenT< edm::PSimHitContainer > edmPSimHitContainer_siTIBHigh_Token_
edm::EDGetTokenT< edm::PSimHitContainer > edmPSimHitContainer_pxlFwdHigh_Token_
edm::EDGetTokenT< edm::PSimHitContainer > edmPSimHitContainer_siTECHigh_Token_
edm::EDGetTokenT< edm::PSimHitContainer > edmPSimHitContainer_siTIDHigh_Token_
MonitorElement * h6lx[12]
MonitorElement * h4ez[12]