908 gStyle->SetTitleFont(62);
909 gStyle->SetOptTitle(0);
911 gStyle->SetFrameBorderMode(0);
912 gStyle->SetCanvasBorderMode(0);
913 gStyle->SetPadBorderMode(0);
914 gStyle->SetPadColor(0);
915 gStyle->SetCanvasColor(0);
916 gStyle->SetTitleColor(1);
917 gStyle->SetStatColor(0);
918 gStyle->SetStatBorderSize(1);
919 gStyle->SetFrameFillColor(0);
921 gStyle->SetTextFont(132);
922 gStyle->SetTextSize(0.08);
923 gStyle->SetLabelFont(132,
"x");
924 gStyle->SetLabelFont(132,
"y");
925 gStyle->SetLabelFont(132,
"z");
926 gStyle->SetTitleSize(0.08,
"x");
927 gStyle->SetTitleSize(0.08,
"y");
928 gStyle->SetTitleSize(0.08,
"z");
929 gStyle->SetLabelSize(0.08,
"x");
930 gStyle->SetLabelSize(0.08,
"y");
931 gStyle->SetLabelSize(0.08,
"z");
933 gStyle->SetTitleAlign(22);
934 gStyle->SetTitleX(0.5);
935 gStyle->SetTitleY(0.97);
936 gStyle->SetTitleFont(62);
938 gStyle->SetPadTickX(1);
939 gStyle->SetPadTickY(1);
941 gStyle->SetPadTopMargin(0.1);
942 gStyle->SetPadRightMargin(0.05);
943 gStyle->SetPadBottomMargin(0.16);
944 gStyle->SetPadLeftMargin(0.18);
950 s.append(
"_profile");
951 TDirectory* plotDir =
output->mkdir( s.data() );
960 if (ColorCode == 1) {
963 zCut[0] =
"sublevel==1";
964 zCut[1] =
"sublevel==2";
965 zCut[2] =
"sublevel==3";
966 zCut[3] =
"sublevel==4";
967 zCut[4] =
"sublevel==5";
968 zCut[5] =
"sublevel==6";
972 double minimumR, maximumR;
973 double minimumZ, maximumZ;
974 double minimumPhi, maximumPhi;
975 double minimumDR, maximumDR;
976 double minimumDZ, maximumDZ;
977 double minimumRDPhi, maximumRDPhi;
978 double minimumDX, maximumDX;
979 double minimumDY, maximumDY;
982 TH1F* phr =
new TH1F(
"phr",
"phr", 200, 0, 200 );
983 TH1F* phz =
new TH1F(
"phz",
"phz", 400, -300, 300 );
984 TH1F* phphi =
new TH1F(
"phphi",
"phphi", 200, -3.15, 3.15);
985 TH1F* phdr =
new TH1F(
"phdr",
"phdr", 20000,-1000, 1000 );
986 TH1F* phdz =
new TH1F(
"phdz",
"phdz", 20000,-1000, 1000 );
987 TH1F* phrdphi =
new TH1F(
"phrdphi",
"phrdphi", 20000,-1000, 1000 );
988 TH1F* phdx =
new TH1F(
"phdx",
"phy", 20000,-1000, 1000 );
989 TH1F* phdy =
new TH1F(
"phdy",
"phy", 20000,-1000, 1000 );
990 data->Project(
"phr",
"r",Cut);
991 data->Project(
"phz",
"z",Cut);
992 data->Project(
"phphi",
"phi",Cut);
993 data->Project(
"phdr",
"dr*10000",Cut);
994 data->Project(
"phdz",
"dz*10000",Cut);
995 data->Project(
"phrdphi",
"r*dphi*10000",Cut );
996 data->Project(
"phdx",
"dx*10000",Cut );
997 data->Project(
"phdy",
"dy*10000",Cut );
1008 minimumR = 0., maximumR = 200.;
1009 minimumZ = -300., maximumZ = 300.;
1010 minimumPhi = -3.15, maximumPhi = 3.15;
1011 minimumDR = -1, maximumDR = 1;
1012 minimumDZ = -1, maximumDZ = 1;
1013 minimumRDPhi = -1, maximumRDPhi = 1;
1014 minimumDX = -1, maximumDX = 1;
1015 minimumDY = -1, maximumDY = 1;
1019 TProfile* hprof_drVr =
new TProfile(
"hprof_drVr",
"#Delta r vs. r",nBins,minimumR,maximumR,minimumDR,maximumDR);
1020 TProfile* hprof_dzVr =
new TProfile(
"hprof_dzVr",
"#Delta z vs. r",nBins,minimumR,maximumR,minimumDZ,maximumDZ);
1021 TProfile* hprof_rdphiVr =
new TProfile(
"hprof_rdphiVr",
"r#Delta #phi vs. r",nBins,minimumR,maximumR,minimumRDPhi,maximumRDPhi);
1022 TProfile* hprof_dxVr =
new TProfile(
"hprof_dxVr",
"#Delta x vs. r", nBins,minimumR,maximumR,minimumDX,maximumDX);
1023 TProfile* hprof_dyVr =
new TProfile(
"hprof_dyVr",
"#Delta y vs. r", nBins,minimumR,maximumR,minimumDY,maximumDY);
1024 TProfile* hprof_drVz =
new TProfile(
"hprof_drVz",
"#Delta r vs. z", nBins,minimumZ,maximumZ,minimumDR,maximumDR);
1025 TProfile* hprof_dzVz =
new TProfile(
"hprof_dzVz",
"#Delta z vs. z", nBins,minimumZ,maximumZ,minimumDZ,maximumDZ);
1026 TProfile* hprof_rdphiVz =
new TProfile(
"hprof_rdphiVz",
"r#Delta #phi vs. z", nBins,minimumZ,maximumZ,minimumRDPhi,maximumRDPhi);
1027 TProfile* hprof_dxVz =
new TProfile(
"hprof_dxVz",
"#Delta x vs. z", nBins,minimumZ,maximumZ,minimumDX,maximumDX);
1028 TProfile* hprof_dyVz =
new TProfile(
"hprof_dyVz",
"#Delta y vs. z", nBins,minimumZ,maximumZ,minimumDY,maximumDY);
1029 TProfile* hprof_drVphi =
new TProfile(
"hprof_drVphi",
"#Delta r vs. #phi", nBins,minimumPhi,maximumPhi,minimumDR,maximumDR);
1030 TProfile* hprof_dzVphi =
new TProfile(
"hprof_dzVphi",
"#Delta z vs. #phi", nBins,minimumPhi,maximumPhi,minimumDZ,maximumDZ);
1031 TProfile* hprof_rdphiVphi =
new TProfile(
"hprof_rdphiVphi",
"r#Delta #phi vs. #phi", nBins,minimumPhi,maximumPhi,minimumRDPhi,maximumRDPhi);
1032 TProfile* hprof_dxVphi =
new TProfile(
"hprof_dxVphi",
"#Delta x vs. #phi", nBins,minimumPhi,maximumPhi,minimumDX,maximumDX);
1033 TProfile* hprof_dyVphi =
new TProfile(
"hprof_dyVphi",
"#Delta y vs. #phi", nBins,minimumPhi,maximumPhi,minimumDY,maximumDY);
1035 TProfile* gr_drVr_Array[
j];
1036 THStack* mgr_drVr=
new THStack(
"mgr_drVr",
"");
1038 for (
int i = 0;
i <
j;
i++) {
1039 data->Draw(
"dr*10000:r>>hprof_drVr",Cut+zCut[
i],
"prof");
1040 if (hprof_drVr->GetEntries()>0){
1041 gr_drVr_Array[
i] =(TProfile*)hprof_drVr->Clone() ;
1042 gr_drVr_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1043 gr_drVr_Array[
i]->SetLineColor(
int(i/4)+i+1);
1044 mgr_drVr->Add(gr_drVr_Array[i]);
1049 if ( (mgr_drVr->GetMaximum(
"nostack")>0.0005*10000)||(mgr_drVr->GetMinimum(
"nostack")<-0.0005*10000) ){
1050 mgr_drVr->SetMaximum( 2.*mgr_drVr->GetMaximum(
"nostack") );
1051 mgr_drVr->SetMinimum( 2.*mgr_drVr->GetMinimum(
"nostack") );
1054 mgr_drVr->SetMaximum(10.);
1055 mgr_drVr->SetMinimum( -10.);
1059 TProfile* gr_dzVr_Array[
j];
1060 THStack* mgr_dzVr=
new THStack(
"mgr_dzVr",
"");
1061 for (
int i = 0; i <
j; i++) {
1062 data->Draw(
"dz*10000:r>>hprof_dzVr",Cut+zCut[i],
"prof");
1063 if (hprof_dzVr->GetEntries()>0){
1064 gr_dzVr_Array[
i] =(TProfile*)hprof_dzVr->Clone() ;
1065 gr_dzVr_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1066 gr_dzVr_Array[
i]->SetLineColor(
int(i/4)+i+1);
1067 mgr_dzVr->Add(gr_dzVr_Array[i]);
1070 if ( (mgr_dzVr->GetMaximum(
"nostack")>0.0005*10000)||(mgr_dzVr->GetMinimum(
"nostack")<-0.0005*10000) ){
1071 mgr_dzVr->SetMaximum( 2.*mgr_dzVr->GetMaximum(
"nostack") );
1072 mgr_dzVr->SetMinimum( 2.*mgr_dzVr->GetMinimum(
"nostack") );
1075 mgr_dzVr->SetMaximum( 10.);
1076 mgr_dzVr->SetMinimum( -10.);
1080 TProfile* gr_rdphiVr_Array[
j];
1081 THStack* mgr_rdphiVr=
new THStack();
1082 for (
int i = 0; i <
j; i++) {
1083 data->Draw(
"r*dphi*10000:r>>hprof_rdphiVr",Cut+zCut[i],
"prof");
1084 if (hprof_rdphiVr->GetEntries()>0){
1085 gr_rdphiVr_Array[
i] = (TProfile*)hprof_rdphiVr->Clone() ;
1086 gr_rdphiVr_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1087 gr_rdphiVr_Array[
i]->SetLineColor(
int(i/4)+i+1);
1088 mgr_rdphiVr->Add(gr_rdphiVr_Array[i]);
1091 if ( (mgr_rdphiVr->GetMaximum(
"nostack")>0.0005*10000)||(mgr_rdphiVr->GetMinimum(
"nostack")<-0.0005*10000) ){
1092 mgr_rdphiVr->SetMaximum( 2.*mgr_rdphiVr->GetMaximum(
"nostack") );
1093 mgr_rdphiVr->SetMinimum( 2.*mgr_rdphiVr->GetMinimum(
"nostack") );
1096 mgr_rdphiVr->SetMaximum( 10.);
1097 mgr_rdphiVr->SetMinimum( -10.);
1101 TProfile* gr_dxVr_Array[
j];
1102 THStack* mgr_dxVr=
new THStack();
1103 for (
int i = 0; i <
j; i++) {
1104 data->Draw(
"dx*10000:r>>hprof_dxVr",Cut+zCut[i],
"prof");
1105 if (hprof_dxVr->GetEntries()>0){
1106 gr_dxVr_Array[
i] = (TProfile*)hprof_dxVr->Clone() ;
1107 gr_dxVr_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1108 gr_dxVr_Array[
i]->SetLineColor(
int(i/4)+i+1);
1109 mgr_dxVr->Add(gr_dxVr_Array[i]);
1112 if ( (mgr_dxVr->GetMaximum(
"nostack")>0.0005*10000)||(mgr_dxVr->GetMinimum(
"nostack")<-0.0005*10000) ){
1113 mgr_dxVr->SetMaximum( 2.*mgr_dxVr->GetMaximum(
"nostack") );
1114 mgr_dxVr->SetMinimum( 2.*mgr_dxVr->GetMinimum(
"nostack") );
1117 mgr_dxVr->SetMaximum( 10.);
1118 mgr_dxVr->SetMinimum( -10.);
1122 TProfile* gr_dyVr_Array[
j];
1123 THStack* mgr_dyVr=
new THStack();
1124 for (
int i = 0; i <
j; i++) {
1125 data->Draw(
"dy*1000:r>>hprof_dyVr",Cut+zCut[i],
"prof");
1126 if (hprof_dyVr->GetEntries()>0){
1127 gr_dyVr_Array[
i] = (TProfile*)hprof_dyVr->Clone() ;
1128 gr_dyVr_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1129 gr_dyVr_Array[
i]->SetLineColor(
int(i/4)+i+1);
1130 mgr_dyVr->Add(gr_dyVr_Array[i]);
1133 if ( (mgr_dyVr->GetMaximum(
"nostack")>0.0005*10000)||(mgr_dyVr->GetMinimum(
"nostack")<-0.0005*10000) ){
1134 mgr_dyVr->SetMaximum( 2.*mgr_dyVr->GetMaximum(
"nostack") );
1135 mgr_dyVr->SetMinimum( 2.*mgr_dyVr->GetMinimum(
"nostack") );
1138 mgr_dyVr->SetMaximum( 10.);
1139 mgr_dyVr->SetMinimum( -10.);
1143 TProfile* gr_drVz_Array[
j];
1144 THStack* mgr_drVz=
new THStack();
1145 for (
int i = 0; i <
j; i++) {
1146 data->Draw(
"dr*10000:z>>hprof_drVz",Cut+zCut[i],
"prof");
1147 if (hprof_drVz->GetEntries()>0){
1148 gr_drVz_Array[
i] = (TProfile*)hprof_drVz->Clone() ;
1149 gr_drVz_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1150 gr_drVz_Array[
i]->SetLineColor(
int(i/4)+i+1);
1151 mgr_drVz->Add(gr_drVz_Array[i]);
1154 if ( (mgr_drVz->GetMaximum(
"nostack")>0.0005*10000)||(mgr_drVz->GetMinimum(
"nostack")<-0.0005*10000) ){
1155 mgr_drVz->SetMaximum( 2.*mgr_drVz->GetMaximum(
"nostack") );
1156 mgr_drVz->SetMinimum( 2.*mgr_drVz->GetMinimum(
"nostack") );
1159 mgr_drVz->SetMaximum( 10.);
1160 mgr_drVz->SetMinimum( -10.);
1164 TProfile* gr_dzVz_Array[
j];
1165 THStack* mgr_dzVz=
new THStack();
1166 for (
int i = 0; i <
j; i++) {
1167 data->Draw(
"dz*10000:z>>hprof_dzVz",Cut+zCut[i],
"prof");
1168 if (hprof_dzVz->GetEntries()>0){
1169 gr_dzVz_Array[
i] = (TProfile*)hprof_dzVz->Clone() ;
1170 gr_dzVz_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1171 gr_dzVz_Array[
i]->SetLineColor(
int(i/4)+i+1);
1172 mgr_dzVz->Add(gr_dzVz_Array[i]);
1175 if ( (mgr_dzVz->GetMaximum(
"nostack")>0.0005*10000)||(mgr_dzVz->GetMinimum(
"nostack")<-0.0005*10000) ){
1176 mgr_dzVz->SetMaximum( 2.*mgr_dzVz->GetMaximum(
"nostack") );
1177 mgr_dzVz->SetMinimum( 2.*mgr_dzVz->GetMinimum(
"nostack") );
1180 mgr_dzVz->SetMaximum( 10.);
1181 mgr_dzVz->SetMinimum( -10.);
1185 TProfile* gr_rdphiVz_Array[
j];
1186 THStack* mgr_rdphiVz=
new THStack();
1187 for (
int i = 0; i <
j; i++) {
1188 data->Draw(
"r*dphi*10000:z>>hprof_rdphiVz",Cut+zCut[i],
"prof");
1189 if (hprof_rdphiVz->GetEntries()>0){
1190 gr_rdphiVz_Array[
i] = (TProfile*)hprof_rdphiVz->Clone() ;
1191 gr_rdphiVz_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1192 gr_rdphiVz_Array[
i]->SetLineColor(
int(i/4)+i+1);
1193 mgr_rdphiVz->Add(gr_rdphiVz_Array[i]);
1196 if ( (mgr_rdphiVz->GetMaximum(
"nostack")>0.0005*10000)||(mgr_rdphiVz->GetMinimum(
"nostack")<-0.0005*10000) ){
1197 mgr_rdphiVz->SetMaximum( 2.*mgr_rdphiVz->GetMaximum(
"nostack") );
1198 mgr_rdphiVz->SetMinimum( 2.*mgr_rdphiVz->GetMinimum(
"nostack") );
1201 mgr_rdphiVz->SetMaximum( 10.);
1202 mgr_rdphiVz->SetMinimum( -10.);
1206 TProfile* gr_dxVz_Array[
j];
1207 THStack* mgr_dxVz=
new THStack();
1208 for (
int i = 0; i <
j; i++) {
1209 data->Draw(
"dx*10000:z>>hprof_dxVz",Cut+zCut[i],
"prof");
1210 if (hprof_dxVz->GetEntries()>0){
1211 gr_dxVz_Array[
i] = (TProfile*)hprof_dxVz->Clone() ;
1212 gr_dxVz_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1213 gr_dxVz_Array[
i]->SetLineColor(
int(i/4)+i+1);
1214 mgr_dxVz->Add(gr_dxVz_Array[i]);
1217 if ( (mgr_dxVz->GetMaximum(
"nostack")>0.0005*10000)||(mgr_dxVz->GetMinimum(
"nostack")<-0.0005*10000) ){
1218 mgr_dxVz->SetMaximum( 2.*mgr_dxVz->GetMaximum(
"nostack") );
1219 mgr_dxVz->SetMinimum( 2.*mgr_dxVz->GetMinimum(
"nostack") );
1222 mgr_dxVz->SetMaximum( 10.);
1223 mgr_dxVz->SetMinimum( -10.);
1227 TProfile* gr_dyVz_Array[
j];
1228 THStack* mgr_dyVz=
new THStack();
1229 for (
int i = 0; i <
j; i++) {
1230 data->Draw(
"dy*10000:z>>hprof_dyVz",Cut+zCut[i],
"prof");
1231 if (hprof_dyVz->GetEntries()>0){
1232 gr_dyVz_Array[
i] = (TProfile*)hprof_dyVz->Clone() ;
1233 gr_dyVz_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1234 gr_dyVz_Array[
i]->SetLineColor(
int(i/4)+i+1);
1235 mgr_dyVz->Add(gr_dyVz_Array[i],
"p");
1238 if ( (mgr_dyVz->GetMaximum(
"nostack")>0.0005*10000)||(mgr_dyVz->GetMinimum(
"nostack")<-0.0005*10000) ){
1239 mgr_dyVz->SetMaximum( 2.*mgr_dyVz->GetMaximum(
"nostack") );
1240 mgr_dyVz->SetMinimum( 2.*mgr_dyVz->GetMinimum(
"nostack") );
1243 mgr_dyVz->SetMaximum( 10.);
1244 mgr_dyVz->SetMinimum( -10.);
1248 TProfile* gr_drVphi_Array[
j];
1249 THStack* mgr_drVphi=
new THStack();
1250 for (
int i = 0; i <
j; i++) {
1251 data->Draw(
"dr*10000:phi>>hprof_drVphi",Cut+zCut[i],
"prof");
1252 if (hprof_drVphi->GetEntries()>0){
1253 gr_drVphi_Array[
i] = (TProfile*)hprof_drVphi->Clone() ;
1254 gr_drVphi_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1255 gr_drVphi_Array[
i]->SetLineColor(
int(i/4)+i+1);
1256 mgr_drVphi->Add(gr_drVphi_Array[i],
"p");
1259 if ( (mgr_drVphi->GetMaximum(
"nostack")>0.0005*10000)||(mgr_drVphi->GetMinimum(
"nostack")<-0.0005*10000) ){
1260 mgr_drVphi->SetMaximum( 2.*mgr_drVphi->GetMaximum(
"nostack") );
1261 mgr_drVphi->SetMinimum( 2.*mgr_drVphi->GetMinimum(
"nostack") );
1264 mgr_drVphi->SetMaximum( 10.);
1265 mgr_drVphi->SetMinimum( -10.);
1269 TProfile* gr_dzVphi_Array[
j];
1270 THStack* mgr_dzVphi=
new THStack();
1271 for (
int i = 0; i <
j; i++) {
1272 data->Draw(
"dz*10000:phi>>hprof_dzVphi",Cut+zCut[i],
"prof");
1273 if (hprof_dzVphi->GetEntries()>0){
1274 gr_dzVphi_Array[
i] = (TProfile*)hprof_dzVphi->Clone() ;
1275 gr_dzVphi_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1276 gr_dzVphi_Array[
i]->SetLineColor(
int(i/4)+i+1);
1277 mgr_dzVphi->Add(gr_dzVphi_Array[i],
"p");
1280 if ( (mgr_dzVphi->GetMaximum(
"nostack")>0.0005*10000)||(mgr_dzVphi->GetMinimum(
"nostack")<-0.0005*10000) ){
1281 mgr_dzVphi->SetMaximum( 2.*mgr_dzVphi->GetMaximum(
"nostack") );
1282 mgr_dzVphi->SetMinimum( 2.*mgr_dzVphi->GetMinimum(
"nostack") );
1285 mgr_dzVphi->SetMaximum( 10.);
1286 mgr_dzVphi->SetMinimum( -10.);
1290 TProfile* gr_rdphiVphi_Array[
j];
1291 THStack* mgr_rdphiVphi=
new THStack();
1292 for (
int i = 0; i <
j; i++) {
1293 data->Draw(
"r*dphi*10000:phi>>hprof_rdphiVphi",Cut+zCut[i],
"prof");
1294 if (hprof_rdphiVphi->GetEntries()>0){
1295 gr_rdphiVphi_Array[
i] = (TProfile*)hprof_rdphiVphi->Clone() ;
1296 gr_rdphiVphi_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1297 gr_rdphiVphi_Array[
i]->SetLineColor(
int(i/4)+i+1);
1298 mgr_rdphiVphi->Add(gr_rdphiVphi_Array[i],
"p");
1301 if ( (mgr_rdphiVphi->GetMaximum(
"nostack")>0.0005*10000)||(mgr_rdphiVphi->GetMinimum(
"nostack")<-0.0005*10000) ){
1302 mgr_rdphiVphi->SetMaximum( 2.*mgr_rdphiVphi->GetMaximum(
"nostack") );
1303 mgr_rdphiVphi->SetMinimum( 2.*mgr_rdphiVphi->GetMinimum(
"nostack") );
1306 mgr_rdphiVphi->SetMaximum( 10.);
1307 mgr_rdphiVphi->SetMinimum( -10.);
1311 TProfile* gr_dxVphi_Array[
j];
1312 THStack* mgr_dxVphi=
new THStack();
1313 for (
int i = 0; i <
j; i++) {
1314 data->Draw(
"dx*10000:phi>>hprof_dxVphi",Cut+zCut[i],
"prof");
1315 if (hprof_dxVphi->GetEntries()>0){
1316 gr_dxVphi_Array[
i] = (TProfile*)hprof_dxVphi->Clone() ;
1317 gr_dxVphi_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1318 gr_dxVphi_Array[
i]->SetLineColor(
int(i/4)+i+1);
1319 mgr_dxVphi->Add(gr_dxVphi_Array[i],
"p");
1322 if ( (mgr_dxVphi->GetMaximum(
"nostack")>0.0005*10000)||(mgr_dxVphi->GetMinimum(
"nostack")<-0.0005*10000) ){
1323 mgr_dxVphi->SetMaximum( 2.*mgr_dxVphi->GetMaximum(
"nostack") );
1324 mgr_dxVphi->SetMinimum( 2.*mgr_dxVphi->GetMinimum(
"nostack") );
1327 mgr_dxVphi->SetMaximum( 10.);
1328 mgr_dxVphi->SetMinimum( -10.);
1332 TProfile* gr_dyVphi_Array[
j];
1333 THStack* mgr_dyVphi=
new THStack();
1334 for (
int i = 0; i <
j; i++) {
1335 data->Draw(
"dy*10000:phi>>hprof_dyVphi",Cut+zCut[i],
"prof");
1336 if (hprof_dyVphi->GetEntries()>0){
1337 gr_dyVphi_Array[
i] = (TProfile*)hprof_dyVphi->Clone() ;
1338 gr_dyVphi_Array[
i]->SetMarkerColor(
int(i/4)+i+1);
1339 gr_dyVphi_Array[
i]->SetLineColor(
int(i/4)+i+1);
1340 mgr_dyVphi->Add(gr_dyVphi_Array[i],
"p");
1343 if ( (mgr_dyVphi->GetMaximum(
"nostack")>0.0005*10000)||(mgr_dyVphi->GetMinimum(
"nostack")<-0.0005*10000) ){
1344 mgr_dyVphi->SetMaximum( 2.*mgr_dyVphi->GetMaximum(
"nostack") );
1345 mgr_dyVphi->SetMinimum( 2.*mgr_dyVphi->GetMinimum(
"nostack") );
1348 mgr_dyVphi->SetMaximum( 10.);
1349 mgr_dyVphi->SetMinimum( -10.);
1352 mgr_drVr->SetTitle(
"#Delta r vs. r");
1353 mgr_dzVr->SetTitle(
"#Delta z vs. r");
1354 mgr_rdphiVr->SetTitle(
"r#Delta #phi vs. r");
1355 mgr_dxVr->SetTitle(
"#Delta x vs. r");
1356 mgr_dyVr->SetTitle(
"#Delta y vs. r");
1357 mgr_drVz->SetTitle(
"#Delta r vs. z");
1358 mgr_dzVz->SetTitle(
"#Delta z vs. z");
1359 mgr_rdphiVz->SetTitle(
"r#Delta #phi vs. z");
1360 mgr_dxVz->SetTitle(
"#Delta x vs. z");
1361 mgr_dyVz->SetTitle(
"#Delta y vs. z");
1362 mgr_drVphi->SetTitle(
"#Delta r vs. #phi");
1363 mgr_dzVphi->SetTitle(
"#Delta z vs. #phi");
1364 mgr_rdphiVphi->SetTitle(
"r#Delta #phi vs. #phi");
1365 mgr_dxVphi->SetTitle(
"#Delta x vs. #phi");
1366 mgr_dyVphi->SetTitle(
"#Delta y vs. #phi");
1369 TCanvas*
c =
new TCanvas(
"c",
"c", 200, 10, 1200, 700);
1371 data->SetMarkerSize(0.5);
1372 data->SetMarkerStyle(6);
1375 if (!autolimits) mgr_drVr->Draw(
"nostack");
1376 if (autolimits) mgr_drVr->Draw(
"nostack");
1379 if (!autolimits) mgr_dzVr->Draw(
"nostack");
1380 if (autolimits) mgr_dzVr->Draw(
"nostack");
1383 if (!autolimits) mgr_rdphiVr->Draw(
"nostack");
1384 if (autolimits) mgr_rdphiVr->Draw(
"nostack");
1386 if (!autolimits) mgr_dxVr->Draw(
"nostack");
1387 if (autolimits) mgr_dxVr->Draw(
"nostack");
1389 if (!autolimits) mgr_dyVr->Draw(
"nostack");
1390 if (autolimits) mgr_dyVr->Draw(
"nostack");
1392 if (!autolimits) mgr_drVz->Draw(
"nostack");
1393 if (autolimits) mgr_drVz->Draw(
"nostack");
1395 if (!autolimits) mgr_dzVz->Draw(
"nostack");
1396 if (autolimits) mgr_dzVz->Draw(
"nostack");
1398 if (!autolimits) mgr_rdphiVz->Draw(
"nostack");
1399 if (autolimits) mgr_rdphiVz->Draw(
"nostack");
1401 if (!autolimits) mgr_dxVz->Draw(
"nostack");
1402 if (autolimits) mgr_dxVz->Draw(
"nostack");
1404 if (!autolimits) mgr_dyVz->Draw(
"nostack");
1405 if (autolimits) mgr_dyVz->Draw(
"nostack");
1407 if (!autolimits) mgr_drVphi->Draw(
"nostack");
1408 if (autolimits) mgr_drVphi->Draw(
"nostack");
1410 if (!autolimits) mgr_dzVphi->Draw(
"nostack");
1411 if (autolimits) mgr_dzVphi->Draw(
"nostack");
1413 if (!autolimits) mgr_rdphiVphi->Draw(
"nostack");
1414 if (autolimits) mgr_rdphiVphi->Draw(
"nostack");
1416 if (!autolimits) mgr_dxVphi->Draw(
"nostack");
1417 if (autolimits) mgr_dxVphi->Draw(
"nostack");
1419 if (!autolimits) mgr_dyVphi->Draw(
"nostack");
1420 if (autolimits) mgr_dyVphi->Draw(
"nostack");
1422 mgr_drVr->GetXaxis()->SetTitle(
"r (cm)");
1423 mgr_dzVr->GetXaxis()->SetTitle(
"r (cm)");
1424 mgr_rdphiVr->GetXaxis()->SetTitle(
"r (cm)");
1425 mgr_dxVr->GetXaxis()->SetTitle(
"r (cm)");
1426 mgr_dyVr->GetXaxis()->SetTitle(
"r (cm)");
1427 mgr_drVz->GetXaxis()->SetTitle(
"z (cm)");
1428 mgr_dzVz->GetXaxis()->SetTitle(
"z (cm)");
1429 mgr_rdphiVz->GetXaxis()->SetTitle(
"z (cm)");
1430 mgr_dxVz->GetXaxis()->SetTitle(
"z (cm)");
1431 mgr_dyVz->GetXaxis()->SetTitle(
"z (cm)");
1432 mgr_drVphi->GetXaxis()->SetTitle(
"#phi");
1433 mgr_dzVphi->GetXaxis()->SetTitle(
"#phi");
1434 mgr_rdphiVphi->GetXaxis()->SetTitle(
"#phi");
1435 mgr_dxVphi->GetXaxis()->SetTitle(
"#phi");
1436 mgr_dyVphi->GetXaxis()->SetTitle(
"#phi");
1438 mgr_drVr->GetYaxis()->SetTitle(
"#Delta r (#mum)");
1439 mgr_dzVr->GetYaxis()->SetTitle(
"#Delta z (#mum)");
1440 mgr_rdphiVr->GetYaxis()->SetTitle(
"r#Delta #phi (#mum)");
1441 mgr_dxVr->GetYaxis()->SetTitle(
"#Delta x (#mum)");
1442 mgr_dyVr->GetYaxis()->SetTitle(
"#Delta y (#mum)");
1443 mgr_drVz->GetYaxis()->SetTitle(
"#Delta r (#mum)");
1444 mgr_dzVz->GetYaxis()->SetTitle(
"#Delta z (#mum)");
1445 mgr_rdphiVz->GetYaxis()->SetTitle(
"r#Delta #phi (#mum)");
1446 mgr_dxVz->GetYaxis()->SetTitle(
"#Delta x (#mum)");
1447 mgr_dyVz->GetYaxis()->SetTitle(
"#Delta y (#mum)");
1448 mgr_drVphi->GetYaxis()->SetTitle(
"#Delta r (#mum)");
1449 mgr_dzVphi->GetYaxis()->SetTitle(
"#Delta z (#mum)");
1450 mgr_rdphiVphi->GetYaxis()->SetTitle(
"r#Delta #phi (#mum)");
1451 mgr_dxVphi->GetYaxis()->SetTitle(
"#Delta x (#mum)");
1452 mgr_dyVphi->GetYaxis()->SetTitle(
"#Delta y (#mum)");
1454 mgr_drVr->GetYaxis()->SetTitleOffset(1.15);
1455 mgr_dzVr->GetYaxis()->SetTitleOffset(1.15);
1456 mgr_rdphiVr->GetYaxis()->SetTitleOffset(1.15);
1457 mgr_dxVr->GetYaxis()->SetTitleOffset(1.15);
1458 mgr_dyVr->GetYaxis()->SetTitleOffset(1.15);
1459 mgr_drVz->GetYaxis()->SetTitleOffset(1.15);
1460 mgr_dzVz->GetYaxis()->SetTitleOffset(1.15);
1461 mgr_rdphiVz->GetYaxis()->SetTitleOffset(1.15);
1462 mgr_dxVz->GetYaxis()->SetTitleOffset(1.15);
1463 mgr_dyVz->GetYaxis()->SetTitleOffset(1.15);
1464 mgr_drVphi->GetYaxis()->SetTitleOffset(1.15);
1465 mgr_dzVphi->GetYaxis()->SetTitleOffset(1.15);
1466 mgr_rdphiVphi->GetYaxis()->SetTitleOffset(1.15);
1467 mgr_dxVphi->GetYaxis()->SetTitleOffset(1.15);
1468 mgr_dyVphi->GetYaxis()->SetTitleOffset(1.15);
1475 hprof_drVr->Write(); hprof_dzVr->Write(); hprof_rdphiVr->Write(); hprof_dxVr->Write(); hprof_dyVr->Write();
1476 hprof_drVz->Write(); hprof_dzVz->Write(); hprof_rdphiVz->Write(); hprof_dxVz->Write(); hprof_dyVz->Write();
1477 hprof_drVphi->Write(); hprof_dzVphi->Write(); hprof_rdphiVphi->Write(); hprof_dxVphi->Write(); hprof_dyVphi->Write();
1540 if (savePlot) c->Print((
_outputDir+
"plot3x5Prof_"+plotName).c_str());
void getHistMaxMin(TH1 *hist, double &max, double &min, int flag)