449 gStyle->SetTitleAlign(22);
450 gStyle->SetTitleX(0.5);
451 gStyle->SetTitleY(0.97);
454 gStyle->SetTitleFont(62);
461 s.append(
"_profile");
462 TDirectory* plotDir =
output->mkdir( s.data() );
471 if (ColorCode == 1) {
474 zCut[0] =
"sublevel==1";
475 zCut[1] =
"sublevel==2";
476 zCut[2] =
"sublevel==3";
477 zCut[3] =
"sublevel==4";
478 zCut[4] =
"sublevel==5";
479 zCut[5] =
"sublevel==6";
483 double minimumR, maximumR;
484 double minimumZ, maximumZ;
485 double minimumPhi, maximumPhi;
486 double minimumDR, maximumDR;
487 double minimumDZ, maximumDZ;
488 double minimumRDPhi, maximumRDPhi;
489 double minimumDX, maximumDX;
490 double minimumDY, maximumDY;
493 TH1F* phr =
new TH1F(
"phr",
"phr", 200, 0, 200);
494 TH1F* phz =
new TH1F(
"phz",
"phz", 400, -300, 300);
495 TH1F* phphi =
new TH1F(
"phphi",
"phphi", 200, -3.15, 3.15);
496 TH1F* phdr =
new TH1F(
"phdr",
"phdr", 2000, -10, 10);
497 TH1F* phdz =
new TH1F(
"phdz",
"phdz", 2000, -10, 10);
498 TH1F* phrdphi =
new TH1F(
"phrdphi",
"phrdphi", 200, -10, 10);
499 TH1F* phdx =
new TH1F(
"phdx",
"phy", 2000, -10, 10);
500 TH1F* phdy =
new TH1F(
"phdy",
"phy", 2000, -10, 10);
501 data->Project(
"phr",
"r",Cut);
502 data->Project(
"phz",
"z",Cut);
503 data->Project(
"phphi",
"phi",Cut);
504 data->Project(
"phdr",
"dr",Cut);
505 data->Project(
"phdz",
"dz",Cut);
506 data->Project(
"phrdphi",
"r*dphi",Cut );
507 data->Project(
"phdx",
"dx",Cut );
508 data->Project(
"phdy",
"dy",Cut );
519 minimumR = 0., maximumR = 120.;
520 minimumZ = -300., maximumZ = 300.;
521 minimumPhi = -3.15, maximumPhi = 3.15;
522 minimumDR = -1, maximumDR = 1;
523 minimumDZ = -1, maximumDZ = 1;
524 minimumRDPhi = -1, maximumRDPhi = 1;
525 minimumDX = -1, maximumDX = 1;
526 minimumDY = -1, maximumDY = 1;
530 TProfile* hprof_drVr =
new TProfile(
"hprof_drVr",
"#Delta r vs. r",nBins,minimumR,maximumR,minimumDR,maximumDR);
531 TProfile* hprof_dzVr =
new TProfile(
"hprof_dzVr",
"#Delta z vs. r",nBins,minimumR,maximumR,minimumDZ,maximumDZ);
532 TProfile* hprof_rdphiVr =
new TProfile(
"hprof_rdphiVr",
"r#Delta #phi vs. r",nBins,minimumR,maximumR,minimumRDPhi,maximumRDPhi);
533 TProfile* hprof_dxVr =
new TProfile(
"hprof_dxVr",
"#Delta x vs. r", nBins,minimumR,maximumR,minimumDX,maximumDX);
534 TProfile* hprof_dyVr =
new TProfile(
"hprof_dyVr",
"#Delta y vs. r", nBins,minimumR,maximumR,minimumDY,maximumDY);
535 TProfile* hprof_drVz =
new TProfile(
"hprof_drVz",
"#Delta r vs. z", nBins,minimumZ,maximumZ,minimumDR,maximumDR);
536 TProfile* hprof_dzVz =
new TProfile(
"hprof_dzVz",
"#Delta z vs. z", nBins,minimumZ,maximumZ,minimumDZ,maximumDZ);
537 TProfile* hprof_rdphiVz =
new TProfile(
"hprof_rdphiVz",
"r#Delta #phi vs. z", nBins,minimumZ,maximumZ,minimumRDPhi,maximumRDPhi);
538 TProfile* hprof_dxVz =
new TProfile(
"hprof_dxVz",
"#Delta x vs. z", nBins,minimumZ,maximumZ,minimumDX,maximumDX);
539 TProfile* hprof_dyVz =
new TProfile(
"hprof_dyVz",
"#Delta y vs. z", nBins,minimumZ,maximumZ,minimumDY,maximumDY);
540 TProfile* hprof_drVphi =
new TProfile(
"hprof_drVphi",
"#Delta r vs. #phi", nBins,minimumPhi,maximumPhi,minimumDR,maximumDR);
541 TProfile* hprof_dzVphi =
new TProfile(
"hprof_dzVphi",
"#Delta z vs. #phi", nBins,minimumPhi,maximumPhi,minimumDZ,maximumDZ);
542 TProfile* hprof_rdphiVphi =
new TProfile(
"hprof_rdphiVphi",
"r#Delta #phi vs. #phi", nBins,minimumPhi,maximumPhi,minimumRDPhi,maximumRDPhi);
543 TProfile* hprof_dxVphi =
new TProfile(
"hprof_dxVphi",
"#Delta x vs. #phi", nBins,minimumPhi,maximumPhi,minimumDX,maximumDX);
544 TProfile* hprof_dyVphi =
new TProfile(
"hprof_dyVphi",
"#Delta y vs. #phi", nBins,minimumPhi,maximumPhi,minimumDY,maximumDY);
546 TProfile* gr_drVr_Array[
j];
547 THStack* mgr_drVr=
new THStack(
"mgr_drVr",
"");
549 for (
int i = 0;
i <
j;
i++) {
550 data->Draw(
"dr:r>>hprof_drVr",Cut+zCut[
i],
"prof");
551 if (hprof_drVr->GetEntries()>0){
552 gr_drVr_Array[
i] =(TProfile*)hprof_drVr->Clone() ;
553 gr_drVr_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
554 gr_drVr_Array[
i]->SetLineColor(
int(i/4)+i+1);
555 mgr_drVr->Add(gr_drVr_Array[i]);
560 if ( (mgr_drVr->GetMaximum(
"nostack")>0.00005)||(mgr_drVr->GetMinimum(
"nostack")<-0.00005) ){
561 mgr_drVr->SetMaximum( 2.*mgr_drVr->GetMaximum(
"nostack") );
562 mgr_drVr->SetMinimum( 2.*mgr_drVr->GetMinimum(
"nostack") );
565 mgr_drVr->SetMaximum(100*mgr_drVr->GetMaximum(
"nostack"));
566 mgr_drVr->SetMinimum( 100.*mgr_drVr->GetMinimum(
"nostack"));
570 TProfile* gr_dzVr_Array[
j];
571 THStack* mgr_dzVr=
new THStack(
"mgr_dzVr",
"");
572 for (
int i = 0; i <
j; i++) {
573 data->Draw(
"dz:r>>hprof_dzVr",Cut+zCut[i],
"prof");
574 if (hprof_dzVr->GetEntries()>0){
575 gr_dzVr_Array[
i] =(TProfile*)hprof_dzVr->Clone() ;
576 gr_dzVr_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
577 gr_dzVr_Array[
i]->SetLineColor(
int(i/4)+i+1);
578 mgr_dzVr->Add(gr_dzVr_Array[i]);
581 if ( (mgr_dzVr->GetMaximum(
"nostack")>0.00005)||(mgr_dzVr->GetMinimum(
"nostack")<-0.00005) ){
582 mgr_dzVr->SetMaximum( 2.*mgr_dzVr->GetMaximum(
"nostack") );
583 mgr_dzVr->SetMinimum( 2.*mgr_dzVr->GetMinimum(
"nostack") );
586 mgr_dzVr->SetMaximum( 100.*mgr_dzVr->GetMaximum(
"nostack") );
587 mgr_dzVr->SetMinimum( 100.*mgr_dzVr->GetMinimum(
"nostack") );
591 TProfile* gr_rdphiVr_Array[
j];
592 THStack* mgr_rdphiVr=
new THStack();
593 for (
int i = 0; i <
j; i++) {
594 data->Draw(
"r*dphi:r>>hprof_rdphiVr",Cut+zCut[i],
"prof");
595 if (hprof_rdphiVr->GetEntries()>0){
596 gr_rdphiVr_Array[
i] = (TProfile*)hprof_rdphiVr->Clone() ;
597 gr_rdphiVr_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
598 gr_rdphiVr_Array[
i]->SetLineColor(
int(i/4)+i+1);
599 mgr_rdphiVr->Add(gr_rdphiVr_Array[i]);
602 if ( (mgr_rdphiVr->GetMaximum(
"nostack")>0.00005)||(mgr_rdphiVr->GetMinimum(
"nostack")<-0.00005) ){
603 mgr_rdphiVr->SetMaximum( 2.*mgr_rdphiVr->GetMaximum(
"nostack") );
604 mgr_rdphiVr->SetMinimum( 2.*mgr_rdphiVr->GetMinimum(
"nostack") );
607 mgr_rdphiVr->SetMaximum( 100.*mgr_rdphiVr->GetMaximum(
"nostack") );
608 mgr_rdphiVr->SetMinimum( 100.*mgr_rdphiVr->GetMinimum(
"nostack") );
612 TProfile* gr_dxVr_Array[
j];
613 THStack* mgr_dxVr=
new THStack();
614 for (
int i = 0; i <
j; i++) {
615 data->Draw(
"dx:r>>hprof_dxVr",Cut+zCut[i],
"prof");
616 if (hprof_dxVr->GetEntries()>0){
617 gr_dxVr_Array[
i] = (TProfile*)hprof_dxVr->Clone() ;
618 gr_dxVr_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
619 gr_dxVr_Array[
i]->SetLineColor(
int(i/4)+i+1);
620 mgr_dxVr->Add(gr_dxVr_Array[i]);
623 if ( (mgr_dxVr->GetMaximum(
"nostack")>0.00005)||(mgr_dxVr->GetMinimum(
"nostack")<-0.00005) ){
624 mgr_dxVr->SetMaximum( 2.*mgr_dxVr->GetMaximum(
"nostack") );
625 mgr_dxVr->SetMinimum( 2.*mgr_dxVr->GetMinimum(
"nostack") );
628 mgr_dxVr->SetMaximum( 100.*mgr_dxVr->GetMaximum(
"nostack") );
629 mgr_dxVr->SetMinimum( 100.*mgr_dxVr->GetMinimum(
"nostack") );
633 TProfile* gr_dyVr_Array[
j];
634 THStack* mgr_dyVr=
new THStack();
635 for (
int i = 0; i <
j; i++) {
636 data->Draw(
"dy:r>>hprof_dyVr",Cut+zCut[i],
"prof");
637 if (hprof_dyVr->GetEntries()>0){
638 gr_dyVr_Array[
i] = (TProfile*)hprof_dyVr->Clone() ;
639 gr_dyVr_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
640 gr_dyVr_Array[
i]->SetLineColor(
int(i/4)+i+1);
641 mgr_dyVr->Add(gr_dyVr_Array[i]);
644 if ( (mgr_dyVr->GetMaximum(
"nostack")>0.00005)||(mgr_dyVr->GetMinimum(
"nostack")<-0.00005) ){
645 mgr_dyVr->SetMaximum( 2.*mgr_dyVr->GetMaximum(
"nostack") );
646 mgr_dyVr->SetMinimum( 2.*mgr_dyVr->GetMinimum(
"nostack") );
649 mgr_dyVr->SetMaximum( 100.*mgr_dyVr->GetMaximum(
"nostack") );
650 mgr_dyVr->SetMinimum( 100.*mgr_dyVr->GetMinimum(
"nostack") );
653 TProfile* gr_drVz_Array[
j];
654 THStack* mgr_drVz=
new THStack();
655 for (
int i = 0; i <
j; i++) {
656 data->Draw(
"dr:z>>hprof_drVz",Cut+zCut[i],
"prof");
657 if (hprof_drVz->GetEntries()>0){
658 gr_drVz_Array[
i] = (TProfile*)hprof_drVz->Clone() ;
659 gr_drVz_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
660 gr_drVz_Array[
i]->SetLineColor(
int(i/4)+i+1);
661 mgr_drVz->Add(gr_drVz_Array[i]);
664 if ( (mgr_drVr->GetMaximum(
"nostack")>0.00005)||(mgr_drVr->GetMinimum(
"nostack")<-0.00005) ){
665 mgr_drVz->SetMaximum( 2.*mgr_drVz->GetMaximum(
"nostack") );
666 mgr_drVz->SetMinimum( 2.*mgr_drVz->GetMinimum(
"nostack") );
669 mgr_drVz->SetMaximum( 100.*mgr_drVz->GetMaximum(
"nostack") );
670 mgr_drVz->SetMinimum( 100.*mgr_drVz->GetMinimum(
"nostack") );
673 TProfile* gr_dzVz_Array[
j];
674 THStack* mgr_dzVz=
new THStack();
675 for (
int i = 0; i <
j; i++) {
676 data->Draw(
"dz:z>>hprof_dzVz",Cut+zCut[i],
"prof");
677 if (hprof_dzVz->GetEntries()>0){
678 gr_dzVz_Array[
i] = (TProfile*)hprof_dzVz->Clone() ;
679 gr_dzVz_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
680 gr_dzVz_Array[
i]->SetLineColor(
int(i/4)+i+1);
681 mgr_dzVz->Add(gr_dzVz_Array[i]);
684 if ( (mgr_dzVr->GetMaximum(
"nostack")>0.00005)||(mgr_dzVr->GetMinimum(
"nostack")<-0.00005) ){
685 mgr_dzVz->SetMaximum( 2.*mgr_dzVz->GetMaximum(
"nostack") );
686 mgr_dzVz->SetMinimum( 2.*mgr_dzVz->GetMinimum(
"nostack") );
689 mgr_dzVz->SetMaximum( 100.*mgr_dzVz->GetMaximum(
"nostack") );
690 mgr_dzVz->SetMinimum( 100.*mgr_dzVz->GetMinimum(
"nostack") );
694 TProfile* gr_rdphiVz_Array[
j];
695 THStack* mgr_rdphiVz=
new THStack();
696 for (
int i = 0; i <
j; i++) {
697 data->Draw(
"r*dphi:z>>hprof_rdphiVz",Cut+zCut[i],
"prof");
698 if (hprof_rdphiVz->GetEntries()>0){
699 gr_rdphiVz_Array[
i] = (TProfile*)hprof_rdphiVz->Clone() ;
700 gr_rdphiVz_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
701 gr_rdphiVz_Array[
i]->SetLineColor(
int(i/4)+i+1);
702 mgr_rdphiVz->Add(gr_rdphiVz_Array[i]);
705 if ( (mgr_rdphiVz->GetMaximum(
"nostack")>0.00005)||(mgr_rdphiVz->GetMinimum(
"nostack")<-0.00005) ){
706 mgr_rdphiVz->SetMaximum( 2.*mgr_rdphiVz->GetMaximum(
"nostack") );
707 mgr_rdphiVz->SetMinimum( 2.*mgr_rdphiVz->GetMinimum(
"nostack") );
710 mgr_rdphiVz->SetMaximum( 100.*mgr_rdphiVz->GetMaximum(
"nostack") );
711 mgr_rdphiVz->SetMinimum( 100.*mgr_rdphiVz->GetMinimum(
"nostack") );
714 TProfile* gr_dxVz_Array[
j];
715 THStack* mgr_dxVz=
new THStack();
716 for (
int i = 0; i <
j; i++) {
717 data->Draw(
"dx:z>>hprof_dxVz",Cut+zCut[i],
"prof");
718 if (hprof_dxVz->GetEntries()>0){
719 gr_dxVz_Array[
i] = (TProfile*)hprof_dxVz->Clone() ;
720 gr_dxVz_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
721 gr_dxVz_Array[
i]->SetLineColor(
int(i/4)+i+1);
722 mgr_dxVz->Add(gr_dxVz_Array[i]);
725 if ( (mgr_dxVz->GetMaximum(
"nostack")>0.00005)||(mgr_dxVz->GetMinimum(
"nostack")<-0.00005) ){
726 mgr_dxVz->SetMaximum( 2.*mgr_dxVz->GetMaximum(
"nostack") );
727 mgr_dxVz->SetMinimum( 2.*mgr_dxVz->GetMinimum(
"nostack") );
730 mgr_dxVz->SetMaximum( 100.*mgr_dxVz->GetMaximum(
"nostack") );
731 mgr_dxVz->SetMinimum( 100.*mgr_dxVz->GetMinimum(
"nostack") );
735 TProfile* gr_dyVz_Array[
j];
736 THStack* mgr_dyVz=
new THStack();
737 for (
int i = 0; i <
j; i++) {
738 data->Draw(
"dy:z>>hprof_dyVz",Cut+zCut[i],
"prof");
739 if (hprof_dyVz->GetEntries()>0){
740 gr_dyVz_Array[
i] = (TProfile*)hprof_dyVz->Clone() ;
741 gr_dyVz_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
742 gr_dyVz_Array[
i]->SetLineColor(
int(i/4)+i+1);
743 mgr_dyVz->Add(gr_dyVz_Array[i],
"p");
746 if ( (mgr_dyVz->GetMaximum(
"nostack")>0.00005)||(mgr_dyVz->GetMinimum(
"nostack")<-0.00005) ){
747 mgr_dyVz->SetMaximum( 2.*mgr_dyVz->GetMaximum(
"nostack") );
748 mgr_dyVz->SetMinimum( 2.*mgr_dyVz->GetMinimum(
"nostack") );
751 mgr_dyVz->SetMaximum( 100.*mgr_dyVz->GetMaximum(
"nostack") );
752 mgr_dyVz->SetMinimum( 100.*mgr_dyVz->GetMinimum(
"nostack") );
756 TProfile* gr_drVphi_Array[
j];
757 THStack* mgr_drVphi=
new THStack();
758 for (
int i = 0; i <
j; i++) {
759 data->Draw(
"dr:phi>>hprof_drVphi",Cut+zCut[i],
"prof");
760 if (hprof_drVphi->GetEntries()>0){
761 gr_drVphi_Array[
i] = (TProfile*)hprof_drVphi->Clone() ;
762 gr_drVphi_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
763 gr_drVphi_Array[
i]->SetLineColor(
int(i/4)+i+1);
764 mgr_drVphi->Add(gr_drVphi_Array[i],
"p");
767 if ( (mgr_drVphi->GetMaximum(
"nostack")>0.00005)||(mgr_drVphi->GetMinimum(
"nostack")<-0.00005) ){
768 mgr_drVphi->SetMaximum( 2.*mgr_drVphi->GetMaximum(
"nostack") );
769 mgr_drVphi->SetMinimum( 2.*mgr_drVphi->GetMinimum(
"nostack") );
772 mgr_drVphi->SetMaximum( 100.*mgr_drVphi->GetMaximum(
"nostack") );
773 mgr_drVphi->SetMinimum( 100.*mgr_drVphi->GetMinimum(
"nostack") );
776 TProfile* gr_dzVphi_Array[
j];
777 THStack* mgr_dzVphi=
new THStack();
778 for (
int i = 0; i <
j; i++) {
779 data->Draw(
"dz:phi>>hprof_dzVphi",Cut+zCut[i],
"prof");
780 if (hprof_dzVphi->GetEntries()>0){
781 gr_dzVphi_Array[
i] = (TProfile*)hprof_dzVphi->Clone() ;
782 gr_dzVphi_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
783 gr_dzVphi_Array[
i]->SetLineColor(
int(i/4)+i+1);
784 mgr_dzVphi->Add(gr_dzVphi_Array[i],
"p");
787 if ( (mgr_dzVphi->GetMaximum(
"nostack")>0.00005)||(mgr_dzVphi->GetMinimum(
"nostack")<-0.00005) ){
788 mgr_dzVphi->SetMaximum( 2.*mgr_dzVphi->GetMaximum(
"nostack") );
789 mgr_dzVphi->SetMinimum( 2.*mgr_dzVphi->GetMinimum(
"nostack") );
792 mgr_dzVphi->SetMaximum( 100.*mgr_dzVphi->GetMaximum(
"nostack") );
793 mgr_dzVphi->SetMinimum( 100.*mgr_dzVphi->GetMinimum(
"nostack") );
796 TProfile* gr_rdphiVphi_Array[
j];
797 THStack* mgr_rdphiVphi=
new THStack();
798 for (
int i = 0; i <
j; i++) {
799 data->Draw(
"r*dphi:phi>>hprof_rdphiVphi",Cut+zCut[i],
"prof");
800 if (hprof_rdphiVphi->GetEntries()>0){
801 gr_rdphiVphi_Array[
i] = (TProfile*)hprof_rdphiVphi->Clone() ;
802 gr_rdphiVphi_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
803 gr_rdphiVphi_Array[
i]->SetLineColor(
int(i/4)+i+1);
804 mgr_rdphiVphi->Add(gr_rdphiVphi_Array[i],
"p");
807 if ( (mgr_rdphiVphi->GetMaximum(
"nostack")>0.00005)||(mgr_rdphiVphi->GetMinimum(
"nostack")<-0.00005) ){
808 mgr_rdphiVphi->SetMaximum( 2.*mgr_rdphiVphi->GetMaximum(
"nostack") );
809 mgr_rdphiVphi->SetMinimum( 2.*mgr_rdphiVphi->GetMinimum(
"nostack") );
812 mgr_rdphiVphi->SetMaximum( 100.*mgr_rdphiVphi->GetMaximum(
"nostack") );
813 mgr_rdphiVphi->SetMinimum( 100.*mgr_rdphiVphi->GetMinimum(
"nostack") );
816 TProfile* gr_dxVphi_Array[
j];
817 THStack* mgr_dxVphi=
new THStack();
818 for (
int i = 0; i <
j; i++) {
819 data->Draw(
"dx:phi>>hprof_dxVphi",Cut+zCut[i],
"prof");
820 if (hprof_dxVphi->GetEntries()>0){
821 gr_dxVphi_Array[
i] = (TProfile*)hprof_dxVphi->Clone() ;
822 gr_dxVphi_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
823 gr_dxVphi_Array[
i]->SetLineColor(
int(i/4)+i+1);
824 mgr_dxVphi->Add(gr_dxVphi_Array[i],
"p");
827 if ( (mgr_dxVphi->GetMaximum(
"nostack")>0.00005)||(mgr_dxVphi->GetMinimum(
"nostack")<-0.00005) ){
828 mgr_dxVphi->SetMaximum( 2.*mgr_dxVphi->GetMaximum(
"nostack") );
829 mgr_dxVphi->SetMinimum( 2.*mgr_dxVphi->GetMinimum(
"nostack") );
832 mgr_dxVphi->SetMaximum( 100.*mgr_dxVphi->GetMaximum(
"nostack") );
833 mgr_dxVphi->SetMinimum( 100.*mgr_dxVphi->GetMinimum(
"nostack") );
836 TProfile* gr_dyVphi_Array[
j];
837 THStack* mgr_dyVphi=
new THStack();
838 for (
int i = 0; i <
j; i++) {
839 data->Draw(
"dy:phi>>hprof_dyVphi",Cut+zCut[i],
"prof");
840 if (hprof_dyVphi->GetEntries()>0){
841 gr_dyVphi_Array[
i] = (TProfile*)hprof_dyVphi->Clone() ;
842 gr_dyVphi_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
843 gr_dyVphi_Array[
i]->SetLineColor(
int(i/4)+i+1);
844 mgr_dyVphi->Add(gr_dyVphi_Array[i],
"p");
847 if ( (mgr_dyVphi->GetMaximum(
"nostack")>0.00005)||(mgr_dyVphi->GetMinimum(
"nostack")<-0.00005) ){
848 mgr_dyVphi->SetMaximum( 2.*mgr_dyVphi->GetMaximum(
"nostack") );
849 mgr_dyVphi->SetMinimum( 2.*mgr_dyVphi->GetMinimum(
"nostack") );
852 mgr_dyVphi->SetMaximum( 100.*mgr_dyVphi->GetMaximum(
"nostack") );
853 mgr_dyVphi->SetMinimum( 100.*mgr_dyVphi->GetMinimum(
"nostack") );
868 mgr_drVr->SetTitle(
"#Delta r vs. r");
869 mgr_dzVr->SetTitle(
"#Delta z vs. r");
870 mgr_rdphiVr->SetTitle(
"r#Delta #phi vs. r");
871 mgr_dxVr->SetTitle(
"#Delta x vs. r");
872 mgr_dyVr->SetTitle(
"#Delta y vs. r");
873 mgr_drVz->SetTitle(
"#Delta r vs. z");
874 mgr_dzVz->SetTitle(
"#Delta z vs. z");
875 mgr_rdphiVz->SetTitle(
"r#Delta #phi vs. z");
876 mgr_dxVz->SetTitle(
"#Delta x vs. z");
877 mgr_dyVz->SetTitle(
"#Delta y vs. z");
878 mgr_drVphi->SetTitle(
"#Delta r vs. #phi");
879 mgr_dzVphi->SetTitle(
"#Delta z vs. #phi");
880 mgr_rdphiVphi->SetTitle(
"r#Delta #phi vs. #phi");
881 mgr_dxVphi->SetTitle(
"#Delta x vs. #phi");
882 mgr_dyVphi->SetTitle(
"#Delta y vs. #phi");
885 TCanvas*
c =
new TCanvas(
"c",
"c", 200, 10, 1200, 700);
887 data->SetMarkerSize(0.5);
888 data->SetMarkerStyle(6);
891 if (!autolimits) mgr_drVr->Draw(
"nostack");
892 if (autolimits) mgr_drVr->Draw(
"nostack");
895 if (!autolimits) mgr_dzVr->Draw(
"nostack");
896 if (autolimits) mgr_dzVr->Draw(
"nostack");
899 if (!autolimits) mgr_rdphiVr->Draw(
"nostack");
900 if (autolimits) mgr_rdphiVr->Draw(
"nostack");
902 if (!autolimits) mgr_dxVr->Draw(
"nostack");
903 if (autolimits) mgr_dxVr->Draw(
"nostack");
905 if (!autolimits) mgr_dyVr->Draw(
"nostack");
906 if (autolimits) mgr_dyVr->Draw(
"nostack");
908 if (!autolimits) mgr_drVz->Draw(
"nostack");
909 if (autolimits) mgr_drVz->Draw(
"nostack");
911 if (!autolimits) mgr_dzVz->Draw(
"nostack");
912 if (autolimits) mgr_dzVz->Draw(
"nostack");
914 if (!autolimits) mgr_rdphiVz->Draw(
"nostack");
915 if (autolimits) mgr_rdphiVz->Draw(
"nostack");
917 if (!autolimits) mgr_dxVz->Draw(
"nostack");
918 if (autolimits) mgr_dxVz->Draw(
"nostack");
920 if (!autolimits) mgr_dyVz->Draw(
"nostack");
921 if (autolimits) mgr_dyVz->Draw(
"nostack");
923 if (!autolimits) mgr_drVphi->Draw(
"nostack");
924 if (autolimits) mgr_drVphi->Draw(
"nostack");
926 if (!autolimits) mgr_dzVphi->Draw(
"nostack");
927 if (autolimits) mgr_dzVphi->Draw(
"nostack");
929 if (!autolimits) mgr_rdphiVphi->Draw(
"nostack");
930 if (autolimits) mgr_rdphiVphi->Draw(
"nostack");
932 if (!autolimits) mgr_dxVphi->Draw(
"nostack");
933 if (autolimits) mgr_dxVphi->Draw(
"nostack");
935 if (!autolimits) mgr_dyVphi->Draw(
"nostack");
936 if (autolimits) mgr_dyVphi->Draw(
"nostack");
943 hprof_drVr->Write(); hprof_dzVr->Write(); hprof_rdphiVr->Write(); hprof_dxVr->Write(); hprof_dyVr->Write();
944 hprof_drVz->Write(); hprof_dzVz->Write(); hprof_rdphiVz->Write(); hprof_dxVz->Write(); hprof_dyVz->Write();
945 hprof_drVphi->Write(); hprof_dzVphi->Write(); hprof_rdphiVphi->Write(); hprof_dxVphi->Write(); hprof_dyVphi->Write();
1008 if (savePlot) c->Print((
_outputDir+
"plot3x5Prof_"+plotName).c_str());
void getHistMaxMin(TH1 *hist, double &max, double &min, int flag)