489 {
490
491
492 std::string jpsi_kap_mom =
path +
"/share/JPsi/kaon/dedx_kap.txt";
493 std::string jpsi_kap_mom_mc =
path +
"/share/JPsi/kaon/dedx_kap_mc.txt";
494 ifstream inputmomdata6(jpsi_kap_mom.c_str(),std::ios_base::in);
495 if ( !inputmomdata6 ) {
496 cout << " can not open: " << jpsi_kap_mom << endl;
497 exit(1);
498 }
499 ifstream inputmomdata6mc(jpsi_kap_mom_mc.c_str(),std::ios_base::in);
500 if ( !inputmomdata6mc ) {
501 cout << " can not open: " << jpsi_kap_mom_mc << endl;
502 exit(1);
503 }
504 for(int i=0; i<12; i++) {
505 inputmomdata6>>m_jpsi_kap_ptrk_offset[i];
506 inputmomdata6>>m_jpsi_kap_ptrk_sigma[i];
507 inputmomdata6mc>>m_jpsi_mc_kap_ptrk_offset[i];
508 inputmomdata6mc>>m_jpsi_mc_kap_ptrk_sigma[i];
509 }
510
511
512 std::string jpsi_kam_mom =
path +
"/share/JPsi/kaon/dedx_kam.txt";
513 std::string jpsi_kam_mom_mc =
path +
"/share/JPsi/kaon/dedx_kam_mc.txt";
514 ifstream inputmomdata7(jpsi_kam_mom.c_str(),std::ios_base::in);
515 if ( !inputmomdata7 ) {
516 cout << " can not open: " << jpsi_kam_mom << endl;
517 exit(1);
518 }
519 ifstream inputmomdata7mc(jpsi_kam_mom_mc.c_str(),std::ios_base::in);
520 if ( !inputmomdata7mc ) {
521 cout << " can not open: " << jpsi_kam_mom_mc << endl;
522 exit(1);
523 }
524 for(int i=0; i<12; i++) {
525 inputmomdata7>>m_jpsi_kam_ptrk_offset[i];
526 inputmomdata7>>m_jpsi_kam_ptrk_sigma[i];
527 inputmomdata7mc>>m_jpsi_mc_kam_ptrk_offset[i];
528 inputmomdata7mc>>m_jpsi_mc_kam_ptrk_sigma[i];
529
530 }
531
532
533
534 std::string jpsi_kap_the =
path +
"/share/JPsi/kaon/dedx_kap_theta.txt";
535 std::string jpsi_kap_the_mc =
path +
"/share/JPsi/kaon/dedx_kap_theta_mc.txt";
536 ifstream inputmomdata8(jpsi_kap_the.c_str(),std::ios_base::in);
537 if ( !inputmomdata8 ) {
538 cout << " can not open: " << jpsi_kap_the << endl;
539 exit(1);
540 }
541 ifstream inputmomdata8mc(jpsi_kap_the_mc.c_str(),std::ios_base::in);
542 if ( !inputmomdata8mc ) {
543 cout << " can not open: " << jpsi_kap_the_mc << endl;
544 exit(1);
545 }
546 for(int i=0; i<18; i++) {
547 inputmomdata8>>m_jpsi_kap_theta_offset[i];
548 inputmomdata8>>m_jpsi_kap_theta_sigma[i];
549 inputmomdata8mc>>m_jpsi_mc_kap_theta_offset[i];
550 inputmomdata8mc>>m_jpsi_mc_kap_theta_sigma[i];
551 }
552
553
554 std::string jpsi_kam_the =
path +
"/share/JPsi/kaon/dedx_kam_theta.txt";
555 std::string jpsi_kam_the_mc =
path +
"/share/JPsi/kaon/dedx_kam_theta_mc.txt";
556 ifstream inputmomdata9(jpsi_kam_the.c_str(),std::ios_base::in);
557 if ( !inputmomdata9 ) {
558 cout << " can not open: " << jpsi_kam_the << endl;
559 exit(1);
560 }
561 ifstream inputmomdata9mc(jpsi_kam_the_mc.c_str(),std::ios_base::in);
562 if ( !inputmomdata9mc ) {
563 cout << " can not open: " << jpsi_kam_the_mc << endl;
564 exit(1);
565 }
566 for(int i=0; i<18; i++) {
567 inputmomdata9>>m_jpsi_kam_theta_offset[i];
568 inputmomdata9>>m_jpsi_kam_theta_sigma[i];
569 inputmomdata9mc>>m_jpsi_mc_kam_theta_offset[i];
570 inputmomdata9mc>>m_jpsi_mc_kam_theta_sigma[i];
571 }
572
573
574 std::string jpsi_protonp_mom =
path +
"/share/JPsi/proton/dedx_protonp.txt";
575 std::string jpsi_protonp_mom_mc =
path +
"/share/JPsi/proton/dedx_protonp_mc.txt";
576 ifstream inputmomdata12(jpsi_protonp_mom.c_str(),std::ios_base::in);
577 if ( !inputmomdata12 ) {
578 cout << " can not open: " << jpsi_protonp_mom << endl;
579 exit(1);
580 }
581 ifstream inputmomdata12mc(jpsi_protonp_mom_mc.c_str(),std::ios_base::in);
582 if ( !inputmomdata12mc ) {
583 cout << " can not open: " << jpsi_protonp_mom_mc << endl;
584 exit(1);
585 }
586 for(int i=0; i<8; i++) {
587 inputmomdata12>>m_jpsi_protonp_ptrk_offset[i];
588 inputmomdata12>>m_jpsi_protonp_ptrk_sigma[i];
589 inputmomdata12mc>>m_jpsi_mc_protonp_ptrk_offset[i];
590 inputmomdata12mc>>m_jpsi_mc_protonp_ptrk_sigma[i];
591 }
592
593
594 std::string jpsi_protonm_mom =
path +
"/share/JPsi/proton/dedx_protonm.txt";
595 std::string jpsi_protonm_mom_mc =
path +
"/share/JPsi/proton/dedx_protonm_mc.txt";
596 ifstream inputmomdata13(jpsi_protonm_mom.c_str(),std::ios_base::in);
597 if ( !inputmomdata13 ) {
598 cout << " can not open: " << jpsi_protonm_mom << endl;
599 exit(1);
600 }
601 ifstream inputmomdata13mc(jpsi_protonm_mom_mc.c_str(),std::ios_base::in);
602 if ( !inputmomdata13mc ) {
603 cout << " can not open: " << jpsi_protonm_mom_mc << endl;
604 exit(1);
605 }
606 for(int i=0; i<8; i++) {
607 inputmomdata13>>m_jpsi_protonm_ptrk_offset[i];
608 inputmomdata13>>m_jpsi_protonm_ptrk_sigma[i];
609 inputmomdata13mc>>m_jpsi_mc_protonm_ptrk_offset[i];
610 inputmomdata13mc>>m_jpsi_mc_protonm_ptrk_sigma[i];
611 }
612
613
614 std::string jpsi_protonp_the =
path +
"/share/JPsi/proton/dedx_protonp_theta.txt";
615 std::string jpsi_protonp_the_mc =
path +
"/share/JPsi/proton/dedx_protonp_theta_mc.txt";
616
617 ifstream inputmomdata14(jpsi_protonp_the.c_str(),std::ios_base::in);
618 if ( !inputmomdata14 ) {
619 cout << " can not open: " << jpsi_protonp_the << endl;
620 exit(1);
621 }
622 ifstream inputmomdata14mc(jpsi_protonp_the_mc.c_str(),std::ios_base::in);
623 if ( !inputmomdata14mc ) {
624 cout << " can not open: " << jpsi_protonp_the_mc << endl;
625 exit(1);
626 }
627 for(int i=0; i<18; i++) {
628 inputmomdata14>>m_jpsi_protonp_theta_offset[i];
629 inputmomdata14>>m_jpsi_protonp_theta_sigma[i];
630 inputmomdata14mc>>m_jpsi_mc_protonp_theta_offset[i];
631 inputmomdata14mc>>m_jpsi_mc_protonp_theta_sigma[i];
632 }
633
634
635 std::string jpsi_protonm_the =
path +
"/share/JPsi/proton/dedx_protonm_theta.txt";
636 std::string jpsi_protonm_the_mc =
path +
"/share/JPsi/proton/dedx_protonm_theta_mc.txt";
637 ifstream inputmomdata15(jpsi_protonm_the.c_str(),std::ios_base::in);
638 if ( !inputmomdata15 ) {
639 cout << " can not open: " << jpsi_protonm_the << endl;
640 exit(1);
641 }
642 ifstream inputmomdata15mc(jpsi_protonm_the_mc.c_str(),std::ios_base::in);
643 if ( !inputmomdata15mc ) {
644 cout << " can not open: " << jpsi_protonm_the_mc << endl;
645 exit(1);
646 }
647 for(int i=0; i<18; i++) {
648 inputmomdata15>>m_jpsi_protonm_theta_offset[i];
649 inputmomdata15>>m_jpsi_protonm_theta_sigma[i];
650 inputmomdata15mc>>m_jpsi_mc_protonm_theta_offset[i];
651 inputmomdata15mc>>m_jpsi_mc_protonm_theta_sigma[i];
652 }
653
654
655
656
657
658 std::string psip_kap_mom =
path +
"/share/Psip/kaon/dedx_kap.txt";
659 std::string psip_kap_mom_mc =
path +
"/share/Psip/kaon/dedx_kap_mc.txt";
660 ifstream inputmomdata24(psip_kap_mom.c_str(),std::ios_base::in);
661 if ( !inputmomdata24 ) {
662 cout << " can not open: " << psip_kap_mom << endl;
663 exit(1);
664 }
665 ifstream inputmomdata24mc(psip_kap_mom_mc.c_str(),std::ios_base::in);
666 if ( !inputmomdata24mc ) {
667 cout << " can not open: " << psip_kap_mom_mc << endl;
668 exit(1);
669 }
670 for(int i=0; i<9; i++) {
671 inputmomdata24>>m_psip_kap_ptrk_offset[i];
672 inputmomdata24>>m_psip_kap_ptrk_sigma[i];
673 inputmomdata24mc>>m_psip_mc_kap_ptrk_offset[i];
674 inputmomdata24mc>>m_psip_mc_kap_ptrk_sigma[i];
675 }
676
677
678 std::string psip_kam_mom =
path +
"/share/Psip/kaon/dedx_kam.txt";
679 std::string psip_kam_mom_mc =
path +
"/share/Psip/kaon/dedx_kam_mc.txt";
680 ifstream inputmomdata25(psip_kam_mom.c_str(),std::ios_base::in);
681 if ( !inputmomdata25 ) {
682 cout << " can not open: " << psip_kam_mom << endl;
683 exit(1);
684 }
685 ifstream inputmomdata25mc(psip_kam_mom_mc.c_str(),std::ios_base::in);
686 if ( !inputmomdata25mc ) {
687 cout << " can not open: " << psip_kam_mom_mc << endl;
688 exit(1);
689 }
690 for(int i=0; i<9; i++) {
691 inputmomdata25>>m_psip_kam_ptrk_offset[i];
692 inputmomdata25>>m_psip_kam_ptrk_sigma[i];
693 inputmomdata25mc>>m_psip_mc_kam_ptrk_offset[i];
694 inputmomdata25mc>>m_psip_mc_kam_ptrk_sigma[i];
695 }
696
697
698
699 std::string psip_protonp_mom =
path +
"/share/Psip/proton/dedx_protonp.txt";
700 std::string psip_protonp_mom_mc =
path +
"/share/Psip/proton/dedx_protonp_mc.txt";
701 ifstream inputmomdata26(psip_protonp_mom.c_str(),std::ios_base::in);
702 if ( !inputmomdata26 ) {
703 cout << " can not open: " << psip_protonp_mom << endl;
704 exit(1);
705 }
706 ifstream inputmomdata26mc(psip_protonp_mom_mc.c_str(),std::ios_base::in);
707 if ( !inputmomdata26mc ) {
708 cout << " can not open: " << psip_protonp_mom_mc << endl;
709 exit(1);
710 }
711 for(int i=0; i<9; i++) {
712 inputmomdata26>>m_psip_protonp_ptrk_offset[i];
713 inputmomdata26>>m_psip_protonp_ptrk_sigma[i];
714 inputmomdata26mc>>m_psip_mc_protonp_ptrk_offset[i];
715 inputmomdata26mc>>m_psip_mc_protonp_ptrk_sigma[i];
716 }
717
718
719 std::string psip_protonm_mom =
path +
"/share/Psip/proton/dedx_protonm.txt";
720 std::string psip_protonm_mom_mc =
path +
"/share/Psip/proton/dedx_protonm_mc.txt";
721 ifstream inputmomdata27(psip_protonm_mom.c_str(),std::ios_base::in);
722 if ( !inputmomdata27 ) {
723 cout << " can not open: " << psip_protonm_mom << endl;
724 exit(1);
725 }
726 ifstream inputmomdata27mc(psip_protonm_mom_mc.c_str(),std::ios_base::in);
727 if ( !inputmomdata27mc ) {
728 cout << " can not open: " << psip_protonm_mom_mc << endl;
729 exit(1);
730 }
731 for(int i=0; i<9; i++) {
732 inputmomdata27>>m_psip_protonm_ptrk_offset[i];
733 inputmomdata27>>m_psip_protonm_ptrk_sigma[i];
734 inputmomdata27mc>>m_psip_mc_protonm_ptrk_offset[i];
735 inputmomdata27mc>>m_psip_mc_protonm_ptrk_sigma[i];
736 }
737
738
739 std::string psipp_pi_mom =
path +
"/share/Psipp/pion/dedx_pi.txt";
740 std::string psipp_pi_mom_mc =
path +
"/share/Psipp/pion/dedx_pi_mc.txt";
741 ifstream inputmomdata28(psipp_pi_mom.c_str(),std::ios_base::in);
742 if ( !inputmomdata28 ) {
743 cout << " can not open: " << psipp_pi_mom << endl;
744 exit(1);
745 }
746 ifstream inputmomdata28mc(psipp_pi_mom_mc.c_str(),std::ios_base::in);
747 if ( !inputmomdata28mc ) {
748 cout << " can not open: " << psipp_pi_mom_mc << endl;
749 exit(1);
750 }
751 for(int i=0; i<18; i++) {
752 inputmomdata28>>m_psipp_pi_ptrk_offset[i];
753 inputmomdata28>>m_psipp_pi_ptrk_sigma[i];
754 inputmomdata28mc>>m_psipp_mc_pi_ptrk_offset[i];
755 inputmomdata28mc>>m_psipp_mc_pi_ptrk_sigma[i];
756 }
757
758
759 std::string psipp_pi_the =
path +
"/share/Psipp/pion/dedx_pi_theta.txt";
760 std::string psipp_pi_the_mc =
path +
"/share/Psipp/pion/dedx_pi_theta_mc.txt";
761 ifstream inputmomdata29(psipp_pi_the.c_str(),std::ios_base::in);
762 if ( !inputmomdata29 ) {
763 cout << " can not open: " << psipp_pi_the << endl;
764 exit(1);
765 }
766 ifstream inputmomdata29mc(psipp_pi_the_mc.c_str(),std::ios_base::in);
767 if ( !inputmomdata29mc ) {
768 cout << " can not open: " << psipp_pi_the_mc << endl;
769 exit(1);
770 }
771 for(int i=0; i<16; i++) {
772 inputmomdata29>>m_psipp_pi_theta_offset[i];
773 inputmomdata29>>m_psipp_pi_theta_sigma[i];
774 inputmomdata29mc>>m_psipp_mc_pi_theta_offset[i];
775 inputmomdata29mc>>m_psipp_mc_pi_theta_sigma[i];
776 }
777
778
779 std::string psipp_ka_mom =
path +
"/share/Psipp/kaon/dedx_ka.txt";
780 std::string psipp_ka_mom_mc =
path +
"/share/Psipp/kaon/dedx_ka_mc.txt";
781 ifstream inputmomdata30(psipp_ka_mom.c_str(),std::ios_base::in);
782 if ( !inputmomdata30 ) {
783 cout << " can not open: " << psipp_ka_mom << endl;
784 exit(1);
785 }
786 ifstream inputmomdata30mc(psipp_ka_mom_mc.c_str(),std::ios_base::in);
787 if ( !inputmomdata30mc ) {
788 cout << " can not open: " << psipp_ka_mom_mc << endl;
789 exit(1);
790 }
791 for(int i=0; i<17; i++) {
792 inputmomdata30>>m_psipp_ka_ptrk_offset[i];
793 inputmomdata30>>m_psipp_ka_ptrk_sigma[i];
794 inputmomdata30mc>>m_psipp_mc_ka_ptrk_offset[i];
795 inputmomdata30mc>>m_psipp_mc_ka_ptrk_sigma[i];
796 }
797
798
799 std::string psipp_ka_the =
path +
"/share/Psipp/kaon/dedx_ka_theta.txt";
800 std::string psipp_ka_the_mc =
path +
"/share/Psipp/kaon/dedx_ka_theta_mc.txt";
801 ifstream inputmomdata31(psipp_ka_the.c_str(),std::ios_base::in);
802 if ( !inputmomdata31 ) {
803 cout << " can not open: " << psipp_ka_the << endl;
804 exit(1);
805 }
806 ifstream inputmomdata31mc(psipp_ka_the_mc.c_str(),std::ios_base::in);
807 if ( !inputmomdata31mc ) {
808 cout << " can not open: " << psipp_ka_the_mc << endl;
809 exit(1);
810 }
811 for(int i=0; i<16; i++) {
812 inputmomdata31>>m_psipp_ka_theta_offset[i];
813 inputmomdata31>>m_psipp_ka_theta_sigma[i];
814 inputmomdata31mc>>m_psipp_mc_ka_theta_offset[i];
815 inputmomdata31mc>>m_psipp_mc_ka_theta_sigma[i];
816 }
817
818
819
820 std::string psipp_proton_mom =
path +
"/share/Psipp/proton/dedx_proton.txt";
821 std::string psipp_proton_mom_mc =
path +
"/share/Psipp/proton/dedx_proton_mc.txt";
822 ifstream inputmomdata32(psipp_proton_mom.c_str(),std::ios_base::in);
823 if ( !inputmomdata32 ) {
824 cout << " can not open: " << psipp_proton_mom << endl;
825 exit(1);
826 }
827 ifstream inputmomdata32mc(psipp_proton_mom_mc.c_str(),std::ios_base::in);
828 if ( !inputmomdata32mc ) {
829 cout << " can not open: " << psipp_proton_mom_mc << endl;
830 exit(1);
831 }
832 for(int i=0; i<18; i++) {
833 inputmomdata32>>m_psipp_proton_ptrk_offset[i];
834 inputmomdata32>>m_psipp_proton_ptrk_sigma[i];
835 }
836 for(int i=0; i<9; i++) {
837 inputmomdata32mc>>m_psipp_mc_proton_ptrk_offset[i];
838 inputmomdata32mc>>m_psipp_mc_proton_ptrk_sigma[i];
839 }
840
841
842 std::string psipp_proton_the =
path +
"/share/Psipp/proton/dedx_proton_theta.txt";
843 std::string psipp_proton_the_mc =
path +
"/share/Psipp/proton/dedx_proton_theta_mc.txt";
844 ifstream inputmomdata33(psipp_proton_the.c_str(),std::ios_base::in);
845 if ( !inputmomdata33 ) {
846 cout << " can not open: " << psipp_proton_the << endl;
847 exit(1);
848 }
849 ifstream inputmomdata33mc(psipp_proton_the_mc.c_str(),std::ios_base::in);
850 if ( !inputmomdata33mc ) {
851 cout << " can not open: " << psipp_proton_the_mc << endl;
852 exit(1);
853 }
854 for(int i=0; i<18; i++) {
855 inputmomdata33>>m_psipp_proton_theta_offset[i];
856 inputmomdata33>>m_psipp_proton_theta_sigma[i];
857 inputmomdata33mc>>m_psipp_mc_proton_theta_offset[i];
858 inputmomdata33mc>>m_psipp_mc_proton_theta_sigma[i];
859 }
860
861}