Analyze.
339 edm::PSimHitContainer::const_iterator itHit;
346 if (!PxlBrlLowContainer.
isValid()) {
348 <<
"Unable to find TrackerHitsPixelBarrelLowTof in event!";
354 if (!PxlBrlHighContainer.
isValid()) {
356 <<
"Unable to find TrackerHitsPixelBarrelHighTof in event!";
365 if (!PxlFwdLowContainer.
isValid()) {
367 <<
"Unable to find TrackerHitsPixelEndcapLowTof in event!";
373 if (!PxlFwdHighContainer.
isValid()) {
375 <<
"Unable to find TrackerHitsPixelEndcapHighTof in event!";
385 if (!SiTIBLowContainer.
isValid()) {
387 <<
"Unable to find TrackerHitsTIBLowTof in event!";
394 if (!SiTIBHighContainer.
isValid()) {
396 <<
"Unable to find TrackerHitsTIBHighTof in event!";
405 if (!SiTOBLowContainer.
isValid()) {
407 <<
"Unable to find TrackerHitsTOBLowTof in event!";
414 if (!SiTOBHighContainer.
isValid()) {
416 <<
"Unable to find TrackerHitsTOBHighTof in event!";
426 if (!SiTIDLowContainer.
isValid()) {
428 <<
"Unable to find TrackerHitsTIDLowTof in event!";
435 if (!SiTIDHighContainer.
isValid()) {
437 <<
"Unable to find TrackerHitsTIDHighTof in event!";
446 if (!SiTECLowContainer.
isValid()) {
448 <<
"Unable to find TrackerHitsTECLowTof in event!";
455 if (!SiTECHighContainer.
isValid()) {
457 <<
"Unable to find TrackerHitsTECHighTof in event!";
467 if (!G4TrkContainer.
isValid()) {
469 <<
"Unable to find SimTrack in event!";
481 edm::SimTrackContainer::const_iterator itTrk;
482 for (itTrk = G4TrkContainer->begin(); itTrk != G4TrkContainer->end();
487 const CLHEP::HepLorentzVector& G4Trk = CLHEP::HepLorentzVector(itTrk->momentum().x(),
488 itTrk->momentum().y(),
489 itTrk->momentum().z(),
490 itTrk->momentum().e());
491 p =
sqrt(G4Trk[0]*G4Trk[0]+G4Trk[1]*G4Trk[1]+G4Trk[2]*G4Trk[2]);
494 <<
"TrackerTest::INFO: Primary has p = 0 ";
496 double costheta = G4Trk[2]/
p;
500 if (eta>0.0 && eta<=0.5) ir = 0;
501 if (eta>0.5 && eta<=1.0) ir = 1;
502 if (eta>1.0 && eta<=1.5) ir = 2;
503 if (eta>1.5 && eta<=2.0) ir = 3;
504 if (eta>2.0 && eta<=2.5) ir = 4;
507 if (eta>-0.5 && eta<= 0.0) ir = 6;
508 if (eta>-1.0 && eta<=-0.5) ir = 7;
509 if (eta>-1.5 && eta<=-1.0) ir = 8;
510 if (eta>-2.0 && eta<=-1.5) ir = 9;
511 if (eta>-2.5 && eta<=-2.0) ir = 10;
512 if (eta<=-2.5) ir = 11;
522 for (itHit = PxlBrlLowContainer->begin(); itHit != PxlBrlLowContainer->end(); ++itHit) {
525 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
531 h5e[ir]->
Fill(itHit->energyLoss());
532 h5ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
533 h5ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
534 h5ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
535 h5lx[ir]->
Fill(itHit->localPosition().x());
536 h5ly[ir]->
Fill(itHit->localPosition().y());
538 for (itHit = PxlBrlHighContainer->begin(); itHit != PxlBrlHighContainer->end(); ++itHit) {
541 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
548 h5e[ir]->
Fill(itHit->energyLoss());
549 h5ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
550 h5ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
551 h5ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
552 h5lx[ir]->
Fill(itHit->localPosition().x());
553 h5ly[ir]->
Fill(itHit->localPosition().y());
555 for (itHit = PxlFwdLowContainer->begin(); itHit != PxlFwdLowContainer->end(); ++itHit) {
558 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
565 h6e[ir]->
Fill(itHit->energyLoss());
566 h6ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
567 h6ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
568 h6ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
569 h6lx[ir]->
Fill(itHit->localPosition().x());
570 h6ly[ir]->
Fill(itHit->localPosition().y());
572 for (itHit = PxlFwdHighContainer->begin(); itHit != PxlFwdHighContainer->end(); ++itHit) {
575 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
582 h6e[ir]->
Fill(itHit->energyLoss());
583 h6ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
584 h6ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
585 h6ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
586 h6lx[ir]->
Fill(itHit->localPosition().x());
587 h6ly[ir]->
Fill(itHit->localPosition().y());
592 for (itHit = SiTIBLowContainer->begin(); itHit != SiTIBLowContainer->end(); ++itHit) {
595 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
602 h1e[ir]->
Fill(itHit->energyLoss());
603 h1ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
604 h1ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
605 h1ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
606 h1lx[ir]->
Fill(itHit->localPosition().x());
607 h1ly[ir]->
Fill(itHit->localPosition().y());
609 for (itHit = SiTIBHighContainer->begin(); itHit != SiTIBHighContainer->end(); ++itHit) {
612 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
619 h1e[ir]->
Fill(itHit->energyLoss());
620 h1ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
621 h1ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
622 h1ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
623 h1lx[ir]->
Fill(itHit->localPosition().x());
624 h1ly[ir]->
Fill(itHit->localPosition().y());
629 for (itHit = SiTOBLowContainer->begin(); itHit != SiTOBLowContainer->end(); ++itHit) {
632 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
639 h2e[ir]->
Fill(itHit->energyLoss());
640 h2ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
641 h2ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
642 h2ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
643 h2lx[ir]->
Fill(itHit->localPosition().x());
644 h2ly[ir]->
Fill(itHit->localPosition().y());
646 for (itHit = SiTOBHighContainer->begin(); itHit != SiTOBHighContainer->end(); ++itHit) {
649 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
655 h2e[ir]->
Fill(itHit->energyLoss());
656 h2ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
657 h2ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
658 h2ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
659 h2lx[ir]->
Fill(itHit->localPosition().x());
660 h2ly[ir]->
Fill(itHit->localPosition().y());
665 for (itHit = SiTIDLowContainer->begin(); itHit != SiTIDLowContainer->end(); ++itHit) {
668 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
674 h3e[ir]->
Fill(itHit->energyLoss());
675 h3ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
676 h3ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
677 h3ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
678 h3lx[ir]->
Fill(itHit->localPosition().x());
679 h3ly[ir]->
Fill(itHit->localPosition().y());
681 for (itHit = SiTIDHighContainer->begin(); itHit != SiTIDHighContainer->end(); ++itHit) {
684 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
690 h3e[ir]->
Fill(itHit->energyLoss());
691 h3ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
692 h3ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
693 h3ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
694 h3lx[ir]->
Fill(itHit->localPosition().x());
695 h3ly[ir]->
Fill(itHit->localPosition().y());
700 for (itHit = SiTECLowContainer->begin(); itHit != SiTECLowContainer->end(); ++itHit) {
703 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
709 h4e[ir]->
Fill(itHit->energyLoss());
710 h4ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
711 h4ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
712 h4ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
713 h4lx[ir]->
Fill(itHit->localPosition().x());
714 h4ly[ir]->
Fill(itHit->localPosition().y());
716 for (itHit = SiTECHighContainer->begin(); itHit != SiTECHighContainer->end(); ++itHit) {
719 GlobalPoint gpos=det->toGlobal(itHit->localPosition());
725 h4e[ir]->
Fill(itHit->energyLoss());
726 h4ex[ir]->
Fill(itHit->entryPoint().x()-itHit->exitPoint().x());
727 h4ey[ir]->
Fill(itHit->entryPoint().y()-itHit->exitPoint().y());
728 h4ez[ir]->
Fill(std::fabs(itHit->entryPoint().z()-itHit->exitPoint().z()));
729 h4lx[ir]->
Fill(itHit->localPosition().x());
730 h4ly[ir]->
Fill(itHit->localPosition().y());
EventNumber_t event() const
const TrackerGeomDet * idToDetUnit(DetId) const
Return the pointer to the GeomDetUnit corresponding to a given DetId.
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]
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]