| 1 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 2 | //
|
|---|
| 3 | // _____Macro for checking the hillas parameters_____
|
|---|
| 4 | //
|
|---|
| 5 | // Ester Aliu <aliu@ifae.es>
|
|---|
| 6 | ////////////////////////////////////////////////////////////////////////////
|
|---|
| 7 | void hillasONOFF()
|
|---|
| 8 | {
|
|---|
| 9 | // general settings
|
|---|
| 10 | gROOT->Reset();
|
|---|
| 11 | gStyle->SetCanvasColor(0);
|
|---|
| 12 | gStyle->SetCanvasBorderMode(0);
|
|---|
| 13 | gStyle->SetPadBorderMode(0);
|
|---|
| 14 | gStyle->SetFrameBorderMode(0);
|
|---|
| 15 | gStyle->SetOptStat(kFALSE);
|
|---|
| 16 | // gStyle->SetTitleSize(0);
|
|---|
| 17 | gStyle->SetStatColor(0);
|
|---|
| 18 | gStyle->SetStatBorderSize(1);
|
|---|
| 19 | gStyle->SetStatW(0.2);
|
|---|
| 20 | gStyle->SetStatH(0.1);
|
|---|
| 21 | gStyle->SetStatX(0.9);
|
|---|
| 22 | gStyle->SetStatY(0.9);
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | // define file, tree, canvas
|
|---|
| 26 | TChain* t= new TChain("Parameters");
|
|---|
| 27 | // t->AddFile("/local_disk/jrico/hillas/hillasOn21.root");
|
|---|
| 28 | // t->AddFile("/local_disk/jrico/hillas/hillasOn22.root");
|
|---|
| 29 | t->AddFile("/local_disk/jrico/hillas/RFOnnoAlpha.root");
|
|---|
| 30 |
|
|---|
| 31 | // define file, tree, canvas
|
|---|
| 32 | TChain *t2 = new TChain("Parameters");
|
|---|
| 33 | // t2->AddFile("/local_disk/jrico/hillas/hillasOff09.root");
|
|---|
| 34 | // t2->AddFile("/local_disk/jrico/hillas/hillasOff18.root");
|
|---|
| 35 | // t2->AddFile("/local_disk/jrico/hillas/hillasOff21.root");
|
|---|
| 36 | t2->AddFile("/local_disk/jrico/hillas/RFOffnoAlpha.root");
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | TString psname="hillasonoff.ps";
|
|---|
| 40 | TString title;
|
|---|
| 41 |
|
|---|
| 42 | TH1F* hLength;
|
|---|
| 43 | TH1F* hWidth;
|
|---|
| 44 | TH1F* hDist;
|
|---|
| 45 | TH1F* hConc;
|
|---|
| 46 | TH1F* hConc1;
|
|---|
| 47 | TH1F* hConc6;
|
|---|
| 48 | TH1F* hAlpha;
|
|---|
| 49 | TH1F* hSize;
|
|---|
| 50 |
|
|---|
| 51 | TH2F *hXY;
|
|---|
| 52 |
|
|---|
| 53 | // define aliases
|
|---|
| 54 | t->SetAlias("length","MHillas.fLength*0.6/189");
|
|---|
| 55 | t->SetAlias("width","MHillas.fWidth*0.6/189");
|
|---|
| 56 | t->SetAlias("dist","MHillasSrc.fDist*0.6/189");
|
|---|
| 57 | t->SetAlias("conc","MNewImagePar.fConc");
|
|---|
| 58 | t->SetAlias("conc1","MNewImagePar.fConc1");
|
|---|
| 59 | t->SetAlias("conc6","MConcentration.fConc[6]");
|
|---|
| 60 | t->SetAlias("size","MHillas.fSize");
|
|---|
| 61 | t->SetAlias("alpha","abs(MHillasSrc.fAlpha)");
|
|---|
| 62 | t->SetAlias("meanx","MHillas.fMeanX");
|
|---|
| 63 | t->SetAlias("meany","MHillas.fMeanY");
|
|---|
| 64 |
|
|---|
| 65 | // define aliases
|
|---|
| 66 | t2->SetAlias("length","MHillas.fLength*0.6/189");
|
|---|
| 67 | t2->SetAlias("width","MHillas.fWidth*0.6/189");
|
|---|
| 68 | t2->SetAlias("dist","MHillasSrc.fDist*0.6/189");
|
|---|
| 69 | t2->SetAlias("conc","MNewImagePar.fConc");
|
|---|
| 70 | t2->SetAlias("conc1","MNewImagePar.fConc1");
|
|---|
| 71 | t2->SetAlias("conc6","MConcentration.fConc[6]");
|
|---|
| 72 | t2->SetAlias("size","MHillas.fSize");
|
|---|
| 73 | t2->SetAlias("alpha","abs(MHillasSrc.fAlpha)");
|
|---|
| 74 | t2->SetAlias("meanx","MHillas.fMeanX");
|
|---|
| 75 | t2->SetAlias("meany","MHillas.fMeanY");
|
|---|
| 76 |
|
|---|
| 77 |
|
|---|
| 78 | // define cuts
|
|---|
| 79 | const char* cut1 = "size>500 && MHadronness.fHadronness<0.1";
|
|---|
| 80 | const char* cut2 = "size>1000";
|
|---|
| 81 | const char* cut3 = "size>2000";
|
|---|
| 82 | const char* cut4 = "size>5000";
|
|---|
| 83 | const char* cut5 = "size>10000";
|
|---|
| 84 |
|
|---|
| 85 | const char* cutDist = "MHillasSrc.fDist*0.6/189.>0.2 && MHillasSrc.fDist*0.6/189.<0.8";
|
|---|
| 86 |
|
|---|
| 87 |
|
|---|
| 88 | /*****************************************************************
|
|---|
| 89 | **** PLOTS ****
|
|---|
| 90 | *****************************************************************/
|
|---|
| 91 |
|
|---|
| 92 | Int_t nbin;
|
|---|
| 93 | Float_t min;
|
|---|
| 94 | Float_t max;
|
|---|
| 95 |
|
|---|
| 96 |
|
|---|
| 97 | TString openpsname;
|
|---|
| 98 | openpsname = psname + "(";
|
|---|
| 99 |
|
|---|
| 100 | TString closepsname;
|
|---|
| 101 | closepsname = psname + ")";
|
|---|
| 102 |
|
|---|
| 103 |
|
|---|
| 104 | //////////////////////////////////////////////////////////////
|
|---|
| 105 | // Cuts in Size
|
|---|
| 106 | //////////////////////////////////////////////////////////////
|
|---|
| 107 | TCanvas *c1 = new TCanvas("c1","c1",500,800);
|
|---|
| 108 | c1->Divide(2,3);
|
|---|
| 109 | /////////////////////////////////////////////////////////////////
|
|---|
| 110 |
|
|---|
| 111 | char* var="length>>hLength";
|
|---|
| 112 |
|
|---|
| 113 | nbin = 40; min = 0.; max = 1.;
|
|---|
| 114 |
|
|---|
| 115 | c1->cd(1);
|
|---|
| 116 | c1->GetPad(1)->SetGrid();
|
|---|
| 117 | title = "length " ;
|
|---|
| 118 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 119 | t->Draw(var, "","goff");
|
|---|
| 120 | hLength->SetXTitle("degrees");
|
|---|
| 121 | hLength->SetNormFactor(1.);
|
|---|
| 122 | hLength->Draw("Ehist");
|
|---|
| 123 | c1->GetPad(1)->Update();
|
|---|
| 124 |
|
|---|
| 125 | c1->cd(2);
|
|---|
| 126 | c1->GetPad(2)->SetGrid();
|
|---|
| 127 | title = "length ";
|
|---|
| 128 | title = title + cut1;
|
|---|
| 129 | hLength = new TH1F("hLength",title, nbin, min, max);
|
|---|
| 130 | t->Draw(var,cut1,"goff");
|
|---|
| 131 | hLength->SetXTitle("degrees");
|
|---|
| 132 | hLength->SetNormFactor(1.);
|
|---|
| 133 | hLength->Draw("Ehist");
|
|---|
| 134 | c1->GetPad(2)->Update();
|
|---|
| 135 |
|
|---|
| 136 | c1->cd(3);
|
|---|
| 137 | c1->GetPad(3)->SetGrid();
|
|---|
| 138 | title = "length ";
|
|---|
| 139 | title = title + cut2;
|
|---|
| 140 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 141 | t->Draw(var,cut2,"goff");
|
|---|
| 142 | hLength->SetXTitle("degrees");
|
|---|
| 143 | hLength->SetNormFactor(1.);
|
|---|
| 144 | hLength->Draw("Ehist");
|
|---|
| 145 | c1->GetPad(3)->Update();
|
|---|
| 146 |
|
|---|
| 147 | c1->cd(4);
|
|---|
| 148 | c1->GetPad(4)->SetGrid();
|
|---|
| 149 | title = "length ";
|
|---|
| 150 | title = title + cut3;
|
|---|
| 151 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 152 | t->Draw(var,cut3, "goff");
|
|---|
| 153 | hLength->SetXTitle("degrees");
|
|---|
| 154 | hLength->SetNormFactor(1.);
|
|---|
| 155 | hLength->Draw("Ehist");
|
|---|
| 156 | c1->GetPad(4)->Update();
|
|---|
| 157 |
|
|---|
| 158 | c1->cd(5);
|
|---|
| 159 | c1->GetPad(5)->SetGrid();
|
|---|
| 160 | title = "length ";
|
|---|
| 161 | title = title + cut4;
|
|---|
| 162 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 163 | t->Draw(var,cut4, "goff");
|
|---|
| 164 | hLength->SetXTitle("degrees");
|
|---|
| 165 | hLength->SetNormFactor(1.);
|
|---|
| 166 | hLength->Draw("Ehist");
|
|---|
| 167 | c1->GetPad(5)->Update();
|
|---|
| 168 |
|
|---|
| 169 | c1->cd(6);
|
|---|
| 170 | c1->GetPad(6)->SetGrid();
|
|---|
| 171 | title = "length ";
|
|---|
| 172 | title = title + cut5;
|
|---|
| 173 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 174 | t->Draw(var,cut5, "goff");
|
|---|
| 175 | hLength->SetXTitle("degrees");
|
|---|
| 176 | hLength->SetNormFactor(1.);
|
|---|
| 177 | hLength->Draw("Ehist");
|
|---|
| 178 | c1->GetPad(6)->Update();
|
|---|
| 179 |
|
|---|
| 180 | //off data
|
|---|
| 181 |
|
|---|
| 182 | c1->cd(1);
|
|---|
| 183 | title = "length " ;
|
|---|
| 184 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 185 | t2->Draw(var, "","goff");
|
|---|
| 186 | hLength->SetXTitle("degrees");
|
|---|
| 187 | //hLength->SetLineStyle(2);
|
|---|
| 188 | hLength->SetMarkerStyle(20);
|
|---|
| 189 | hLength->SetMarkerSize(0.4);
|
|---|
| 190 | hLength->SetNormFactor(1);
|
|---|
| 191 | hLength->Draw("samePE");
|
|---|
| 192 | c1->GetPad(1)->Modified();
|
|---|
| 193 | c1->GetPad(1)->Update();
|
|---|
| 194 |
|
|---|
| 195 | c1->cd(2);
|
|---|
| 196 | title = "length ";
|
|---|
| 197 | title = title + cut1;
|
|---|
| 198 | hLength = new TH1F("hLength",title, nbin, min, max);
|
|---|
| 199 | t2->Draw(var,cut1,"goff");
|
|---|
| 200 | hLength->SetXTitle("degrees");
|
|---|
| 201 | //hLength->SetLineStyle(2);
|
|---|
| 202 | hLength->SetMarkerSize(0.4);
|
|---|
| 203 | hLength->SetMarkerStyle(20);
|
|---|
| 204 | hLength->SetNormFactor(1);
|
|---|
| 205 | hLength->Draw("samePE");
|
|---|
| 206 | c1->GetPad(2)->Modified();
|
|---|
| 207 | c1->GetPad(2)->Update();
|
|---|
| 208 |
|
|---|
| 209 | c1->cd(3);
|
|---|
| 210 | title = "length ";
|
|---|
| 211 | title = title + cut2;
|
|---|
| 212 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 213 | t2->Draw(var,cut2,"goff");
|
|---|
| 214 | //hLength->SetXTitle("degrees");
|
|---|
| 215 | hLength->SetMarkerSize(0.4);
|
|---|
| 216 | hLength->SetMarkerStyle(20);
|
|---|
| 217 | //hLength->SetLineStyle(2);
|
|---|
| 218 | hLength->SetNormFactor(1);
|
|---|
| 219 | hLength->Draw("samePE");
|
|---|
| 220 | c1->GetPad(3)->Modified();
|
|---|
| 221 | c1->GetPad(3)->Update();
|
|---|
| 222 |
|
|---|
| 223 | c1->cd(4);
|
|---|
| 224 | title = "length ";
|
|---|
| 225 | title = title + cut3;
|
|---|
| 226 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 227 | t2->Draw(var,cut3, "goff");
|
|---|
| 228 | hLength->SetXTitle("degrees");
|
|---|
| 229 | // hLength->SetLineStyle(2);
|
|---|
| 230 | hLength->SetMarkerStyle(20);
|
|---|
| 231 | hLength->SetMarkerSize(0.4);
|
|---|
| 232 | hLength->SetNormFactor(1);
|
|---|
| 233 | hLength->Draw("samePE");
|
|---|
| 234 | c1->GetPad(4)->Modified();
|
|---|
| 235 | c1->GetPad(4)->Update();
|
|---|
| 236 |
|
|---|
| 237 | c1->cd(5);
|
|---|
| 238 | title = "length ";
|
|---|
| 239 | title = title + cut4;
|
|---|
| 240 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 241 | t2->Draw(var,cut4, "goff");
|
|---|
| 242 | hLength->SetXTitle("degrees");
|
|---|
| 243 | //hLength->SetLineStyle(2);
|
|---|
| 244 | hLength->SetMarkerStyle(20);
|
|---|
| 245 | hLength->SetMarkerSize(0.4);
|
|---|
| 246 | hLength->SetNormFactor(1);
|
|---|
| 247 | hLength->Draw("samePE");
|
|---|
| 248 | c1->GetPad(5)->Modified();
|
|---|
| 249 | c1->GetPad(5)->Update();
|
|---|
| 250 |
|
|---|
| 251 | c1->cd(6);
|
|---|
| 252 | title = "length ";
|
|---|
| 253 | title = title + cut5;
|
|---|
| 254 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 255 | t2->Draw(var,cut5, "goff");
|
|---|
| 256 | hLength->SetXTitle("degrees");
|
|---|
| 257 | // hLength->SetLineStyle(2);
|
|---|
| 258 | hLength->SetMarkerStyle(20);
|
|---|
| 259 | hLength->SetMarkerSize(0.4);
|
|---|
| 260 | hLength->SetNormFactor(1);
|
|---|
| 261 | hLength->Draw("samePE");
|
|---|
| 262 | c1->GetPad(6)->Modified();
|
|---|
| 263 | c1->GetPad(6)->Update();
|
|---|
| 264 |
|
|---|
| 265 | c1->Print(openpsname);
|
|---|
| 266 |
|
|---|
| 267 | /////////////////////////////////////////////////////////////////
|
|---|
| 268 | char* var="width>>hWidth";
|
|---|
| 269 |
|
|---|
| 270 | nbin = 40; min = 0.; max = 0.8;
|
|---|
| 271 |
|
|---|
| 272 | c1->cd(1);
|
|---|
| 273 | title = "width ";
|
|---|
| 274 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 275 | t->Draw(var, "", "goff");
|
|---|
| 276 | hWidth->SetXTitle("degrees");
|
|---|
| 277 | hWidth->SetNormFactor(1.);
|
|---|
| 278 | hWidth->Draw("Ehist");
|
|---|
| 279 | c1->GetPad(1)->Update();
|
|---|
| 280 |
|
|---|
| 281 | c1->cd(2);
|
|---|
| 282 | title = "width ";
|
|---|
| 283 | title = title + cut1;
|
|---|
| 284 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 285 | t->Draw(var,cut1, "goff");
|
|---|
| 286 | hWidth->SetXTitle("degrees");
|
|---|
| 287 | hWidth->SetNormFactor(1.);
|
|---|
| 288 | hWidth->Draw("Ehist");
|
|---|
| 289 | c1->GetPad(2)->Update();
|
|---|
| 290 |
|
|---|
| 291 | c1->cd(3);
|
|---|
| 292 | title = "width ";
|
|---|
| 293 | title = title + cut2;
|
|---|
| 294 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 295 | t->Draw(var,cut2, "goff");
|
|---|
| 296 | hWidth->SetXTitle("degrees");
|
|---|
| 297 | hWidth->SetNormFactor(1.);
|
|---|
| 298 | hWidth->Draw("Ehist");
|
|---|
| 299 | c1->GetPad(3)->Update();
|
|---|
| 300 |
|
|---|
| 301 | c1->cd(4);
|
|---|
| 302 | title = "width ";
|
|---|
| 303 | title = title + cut3;
|
|---|
| 304 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 305 | t->Draw(var,cut3, "goff");
|
|---|
| 306 | hWidth->SetXTitle("degrees");
|
|---|
| 307 | hWidth->SetNormFactor(1.);
|
|---|
| 308 | hWidth->Draw("Ehist");
|
|---|
| 309 | c1->GetPad(4)->Update();
|
|---|
| 310 |
|
|---|
| 311 | c1->cd(5);
|
|---|
| 312 | title = "width ";
|
|---|
| 313 | title = title + cut4;
|
|---|
| 314 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 315 | t->Draw(var,cut4, "goff");
|
|---|
| 316 | hWidth->SetXTitle("degrees");
|
|---|
| 317 | hWidth->SetNormFactor(1.);
|
|---|
| 318 | hWidth->Draw("Ehist");
|
|---|
| 319 | c1->GetPad(5)->Update();
|
|---|
| 320 |
|
|---|
| 321 | c1->cd(6);
|
|---|
| 322 | title = "width ";
|
|---|
| 323 | title = title + cut5;
|
|---|
| 324 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 325 | t->Draw(var,cut5, "goff");
|
|---|
| 326 | hWidth->SetXTitle("degrees");
|
|---|
| 327 | hWidth->SetNormFactor(1.);
|
|---|
| 328 | hWidth->Draw("Ehist");
|
|---|
| 329 | c1->GetPad(6)->Update();
|
|---|
| 330 |
|
|---|
| 331 | // offdata
|
|---|
| 332 |
|
|---|
| 333 | c1->cd(1);
|
|---|
| 334 | title = "width ";
|
|---|
| 335 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 336 | t2->Draw(var, "", "goff");
|
|---|
| 337 | hWidth->SetXTitle("degrees");
|
|---|
| 338 | //hWidth->SetLineStyle(2);
|
|---|
| 339 | hWidth->SetMarkerStyle(20);
|
|---|
| 340 | hWidth->SetMarkerSize(0.4);
|
|---|
| 341 | hWidth->SetNormFactor(1);
|
|---|
| 342 | hWidth->Draw("samePE");
|
|---|
| 343 | c1->GetPad(1)->Modified();
|
|---|
| 344 | c1->GetPad(1)->Update();
|
|---|
| 345 |
|
|---|
| 346 | c1->cd(2);
|
|---|
| 347 | title = "width ";
|
|---|
| 348 | title = title + cut1;
|
|---|
| 349 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 350 | t2->Draw(var,cut1, "goff");
|
|---|
| 351 | hWidth->SetXTitle("degrees");
|
|---|
| 352 | //hWidth->SetLineStyle(2);
|
|---|
| 353 | hWidth->SetMarkerStyle(20);
|
|---|
| 354 | hWidth->SetMarkerSize(0.4);
|
|---|
| 355 | hWidth->SetNormFactor(1);
|
|---|
| 356 | hWidth->Draw("samePE");
|
|---|
| 357 | c1->GetPad(2)->Modified();
|
|---|
| 358 | c1->GetPad(2)->Update();
|
|---|
| 359 |
|
|---|
| 360 | c1->cd(3);
|
|---|
| 361 | title = "width ";
|
|---|
| 362 | title = title + cut2;
|
|---|
| 363 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 364 | t2->Draw(var,cut2, "goff");
|
|---|
| 365 | hWidth->SetXTitle("degrees");
|
|---|
| 366 | //hWidth->SetLineStyle(2);
|
|---|
| 367 | hWidth->SetMarkerStyle(20);
|
|---|
| 368 | hWidth->SetMarkerSize(0.4);
|
|---|
| 369 | hWidth->SetNormFactor(1);
|
|---|
| 370 | hWidth->Draw("samePE");
|
|---|
| 371 | c1->GetPad(3)->Modified();
|
|---|
| 372 | c1->GetPad(3)->Update();
|
|---|
| 373 |
|
|---|
| 374 | c1->cd(4);
|
|---|
| 375 | title = "width ";
|
|---|
| 376 | title = title + cut3;
|
|---|
| 377 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 378 | t2->Draw(var,cut3, "goff");
|
|---|
| 379 | hWidth->SetXTitle("degrees");
|
|---|
| 380 | //hWidth->SetLineStyle(2);
|
|---|
| 381 | hWidth->SetMarkerStyle(20);
|
|---|
| 382 | hWidth->SetMarkerSize(0.4);
|
|---|
| 383 | hWidth->SetNormFactor(1);
|
|---|
| 384 | hWidth->Draw("samePE");
|
|---|
| 385 | c1->GetPad(4)->Modified();
|
|---|
| 386 | c1->GetPad(4)->Update();
|
|---|
| 387 |
|
|---|
| 388 | c1->cd(5);
|
|---|
| 389 | title = "width ";
|
|---|
| 390 | title = title + cut4;
|
|---|
| 391 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 392 | t2->Draw(var,cut4, "goff");
|
|---|
| 393 | hWidth->SetXTitle("degrees");
|
|---|
| 394 | // hWidth->SetLineStyle(2);
|
|---|
| 395 | hWidth->SetMarkerStyle(20);
|
|---|
| 396 | hWidth->SetMarkerSize(0.4);
|
|---|
| 397 | hWidth->SetNormFactor(1);
|
|---|
| 398 | hWidth->Draw("samePE");
|
|---|
| 399 | c1->GetPad(5)->Modified();
|
|---|
| 400 | c1->GetPad(5)->Update();
|
|---|
| 401 |
|
|---|
| 402 | c1->cd(6);
|
|---|
| 403 | title = "width ";
|
|---|
| 404 | title = title + cut5;
|
|---|
| 405 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 406 | t2->Draw(var,cut5, "goff");
|
|---|
| 407 | hWidth->SetXTitle("degrees");
|
|---|
| 408 | //hWidth->SetLineStyle(2);
|
|---|
| 409 | hWidth->SetMarkerStyle(20);
|
|---|
| 410 | hWidth->SetMarkerSize(0.4);
|
|---|
| 411 | hWidth->SetNormFactor(1);
|
|---|
| 412 | hWidth->Draw("samePE");
|
|---|
| 413 | c1->GetPad(6)->Modified();
|
|---|
| 414 | c1->GetPad(6)->Update();
|
|---|
| 415 |
|
|---|
| 416 |
|
|---|
| 417 | c1->Print(psname);
|
|---|
| 418 |
|
|---|
| 419 | /////////////////////////////////////////////////////////////////
|
|---|
| 420 |
|
|---|
| 421 | char* var="dist>>hDist";
|
|---|
| 422 |
|
|---|
| 423 | nbin = 40; min = 0.; max = 1.6;
|
|---|
| 424 |
|
|---|
| 425 | c1->cd(1);
|
|---|
| 426 | title = "dist ";
|
|---|
| 427 | hDist = new TH1F("hDist",title,nbin, min, max);
|
|---|
| 428 | t->Draw(var, "", "goff");
|
|---|
| 429 | hDist->SetXTitle("degrees");
|
|---|
| 430 | hDist->SetNormFactor(1.);
|
|---|
| 431 | hDist->Draw("Ehist");
|
|---|
| 432 | c1->GetPad(1)->Update();
|
|---|
| 433 |
|
|---|
| 434 | c1->cd(2);
|
|---|
| 435 | title = "dist ";
|
|---|
| 436 | title = title + cut1;
|
|---|
| 437 | hDist = new TH1F("hDist",title,nbin, min, max);
|
|---|
| 438 | t->Draw(var,cut1, "goff");
|
|---|
| 439 | hDist->SetXTitle("degrees");
|
|---|
| 440 | hDist->SetNormFactor(1.);
|
|---|
| 441 | hDist->Draw("Ehist");
|
|---|
| 442 | c1->GetPad(2)->Update();
|
|---|
| 443 |
|
|---|
| 444 | c1->cd(3);
|
|---|
| 445 | title = "dist ";
|
|---|
| 446 | title = title + cut2;
|
|---|
| 447 | hDist = new TH1F("hDist",title,nbin, min, max);
|
|---|
| 448 | t->Draw(var,cut2, "goff");
|
|---|
| 449 | hDist->SetXTitle("degrees");
|
|---|
| 450 | hDist->SetNormFactor(1.);
|
|---|
| 451 | hDist->Draw("Ehist");
|
|---|
| 452 | c1->GetPad(3)->Update();
|
|---|
| 453 |
|
|---|
| 454 | c1->cd(4);
|
|---|
| 455 | title = "dist ";
|
|---|
| 456 | title = title + cut3;
|
|---|
| 457 | hDist = new TH1F("hDist",title,nbin, min, max);
|
|---|
| 458 | t->Draw(var,cut3, "goff");
|
|---|
| 459 | hDist->SetXTitle("degrees");
|
|---|
| 460 | hDist->SetNormFactor(1.);
|
|---|
| 461 | hDist->Draw("Ehist");
|
|---|
| 462 | c1->GetPad(4)->Update();
|
|---|
| 463 |
|
|---|
| 464 | c1->cd(5);
|
|---|
| 465 | title = "dist ";
|
|---|
| 466 | title = title + cut4;
|
|---|
| 467 | hDist = new TH1F("hDist",title,nbin, min, max);
|
|---|
| 468 | t->Draw(var,cut4, "goff");
|
|---|
| 469 | hDist->SetXTitle("degrees");
|
|---|
| 470 | hDist->SetNormFactor(1.);
|
|---|
| 471 | hDist->Draw("Ehist");
|
|---|
| 472 | c1->GetPad(5)->Update();
|
|---|
| 473 |
|
|---|
| 474 | c1->cd(6);
|
|---|
| 475 | title = "dist ";
|
|---|
| 476 | title = title + cut5;
|
|---|
| 477 | hDist = new TH1F("hDist",title,nbin, min, max);
|
|---|
| 478 | t->Draw(var,cut5,"goff");
|
|---|
| 479 | hDist->SetXTitle("degrees");
|
|---|
| 480 | hDist->SetNormFactor(1.);
|
|---|
| 481 | hDist->Draw("Ehist");
|
|---|
| 482 | c1->GetPad(6)->Update();
|
|---|
| 483 |
|
|---|
| 484 | //offdata
|
|---|
| 485 |
|
|---|
| 486 | c1->cd(1);
|
|---|
| 487 | title = "dist ";
|
|---|
| 488 | hDist = new TH1F("hDist",title,nbin, min, max);
|
|---|
| 489 | t2->Draw(var, "", "goff");
|
|---|
| 490 | hDist->SetXTitle("degrees");
|
|---|
| 491 | //hDist->SetLineStyle(2);
|
|---|
| 492 | hDist->SetMarkerStyle(20);
|
|---|
| 493 | hDist->SetMarkerSize(0.4);
|
|---|
| 494 | hDist->SetNormFactor(1);
|
|---|
| 495 | hDist->Draw("samePE");
|
|---|
| 496 | c1->GetPad(1)->Modified();
|
|---|
| 497 | c1->GetPad(1)->Update();
|
|---|
| 498 |
|
|---|
| 499 | c1->cd(2);
|
|---|
| 500 | title = "dist ";
|
|---|
| 501 | title = title + cut1;
|
|---|
| 502 | hDist = new TH1F("hDist",title,nbin, min, max);
|
|---|
| 503 | t2->Draw(var,cut1, "goff");
|
|---|
| 504 | hDist->SetXTitle("degrees");
|
|---|
| 505 | //hDist->SetLineStyle(2);
|
|---|
| 506 | hDist->SetMarkerStyle(20);
|
|---|
| 507 | hDist->SetMarkerSize(0.4);
|
|---|
| 508 | hDist->SetNormFactor(1);
|
|---|
| 509 | hDist->Draw("samePE");
|
|---|
| 510 | c1->GetPad(2)->Modified();
|
|---|
| 511 | c1->GetPad(2)->Update();
|
|---|
| 512 |
|
|---|
| 513 | c1->cd(3);
|
|---|
| 514 | title = "dist ";
|
|---|
| 515 | title = title + cut2;
|
|---|
| 516 | hDist = new TH1F("hDist",title,nbin, min, max);
|
|---|
| 517 | t2->Draw(var,cut2, "goff");
|
|---|
| 518 | hDist->SetXTitle("degrees");
|
|---|
| 519 | //hDist->SetLineStyle(2);
|
|---|
| 520 | hDist->SetMarkerStyle(20);
|
|---|
| 521 | hDist->SetMarkerSize(0.4);
|
|---|
| 522 | hDist->SetNormFactor(1);
|
|---|
| 523 | hDist->Draw("samePE");
|
|---|
| 524 | c1->GetPad(3)->Modified();
|
|---|
| 525 | c1->GetPad(3)->Update();
|
|---|
| 526 |
|
|---|
| 527 | c1->cd(4);
|
|---|
| 528 | title = "dist ";
|
|---|
| 529 | title = title + cut3;
|
|---|
| 530 | hDist = new TH1F("hDist",title,nbin, min, max);
|
|---|
| 531 | t2->Draw(var,cut3, "goff");
|
|---|
| 532 | hDist->SetXTitle("degrees");
|
|---|
| 533 | //hDist->SetLineStyle(2);
|
|---|
| 534 | hDist->SetMarkerStyle(20);
|
|---|
| 535 | hDist->SetMarkerSize(0.4);
|
|---|
| 536 | hDist->SetNormFactor(1);
|
|---|
| 537 | hDist->Draw("samePE");
|
|---|
| 538 | c1->GetPad(4)->Modified();
|
|---|
| 539 | c1->GetPad(4)->Update();
|
|---|
| 540 |
|
|---|
| 541 | c1->cd(5);
|
|---|
| 542 | title = "dist ";
|
|---|
| 543 | title = title + cut4;
|
|---|
| 544 | hDist = new TH1F("hDist",title,nbin, min, max);
|
|---|
| 545 | t2->Draw(var,cut4, "goff");
|
|---|
| 546 | hDist->SetXTitle("degrees");
|
|---|
| 547 | //hDist->SetLineStyle(2);
|
|---|
| 548 | hDist->SetMarkerStyle(20);
|
|---|
| 549 | hDist->SetMarkerSize(0.4);
|
|---|
| 550 | hDist->SetNormFactor(1);
|
|---|
| 551 | hDist->Draw("samePE");
|
|---|
| 552 | c1->GetPad(5)->Modified();
|
|---|
| 553 | c1->GetPad(5)->Update();
|
|---|
| 554 |
|
|---|
| 555 | c1->cd(6);
|
|---|
| 556 | title = "dist ";
|
|---|
| 557 | title = title + cut5;
|
|---|
| 558 | hDist = new TH1F("hDist",title,nbin, min, max);
|
|---|
| 559 | t2->Draw(var,cut5,"goff");
|
|---|
| 560 | hDist->SetXTitle("degrees");
|
|---|
| 561 | //hDist->SetLineStyle(2);
|
|---|
| 562 | hDist->SetMarkerStyle(20);
|
|---|
| 563 | hDist->SetMarkerSize(0.4);
|
|---|
| 564 | hDist->SetNormFactor(1);
|
|---|
| 565 | hDist->Draw("samePE");
|
|---|
| 566 | c1->GetPad(6)->Modified();
|
|---|
| 567 | c1->GetPad(6)->Update();
|
|---|
| 568 |
|
|---|
| 569 | c1->Print(psname);
|
|---|
| 570 |
|
|---|
| 571 | /////////////////////////////////////////////////////////////////
|
|---|
| 572 | char* var="conc>>hConc";
|
|---|
| 573 |
|
|---|
| 574 | nbin = 40; min = 0.; max = 1.;
|
|---|
| 575 |
|
|---|
| 576 | c1->cd(1);
|
|---|
| 577 | title = "conc ";
|
|---|
| 578 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 579 | t->Draw(var,"","goff");
|
|---|
| 580 | hConc->SetNormFactor(1.);
|
|---|
| 581 | hConc->Draw("Ehist");
|
|---|
| 582 | c1->GetPad(1)->Update();
|
|---|
| 583 |
|
|---|
| 584 | c1->cd(2);
|
|---|
| 585 | title = "conc ";
|
|---|
| 586 | title = title + cut1;
|
|---|
| 587 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 588 | t->Draw(var,cut1,"goff");
|
|---|
| 589 | hConc->SetNormFactor(1.);
|
|---|
| 590 | hConc->Draw("Ehist");
|
|---|
| 591 | c1->GetPad(2)->Update();
|
|---|
| 592 |
|
|---|
| 593 | c1->cd(3);
|
|---|
| 594 | title = "conc ";
|
|---|
| 595 | title = title + cut2;
|
|---|
| 596 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 597 | t->Draw(var,cut2,"goff");
|
|---|
| 598 | hConc->SetNormFactor(1.);
|
|---|
| 599 | hConc->Draw("Ehist");
|
|---|
| 600 | c1->GetPad(3)->Update();
|
|---|
| 601 |
|
|---|
| 602 | c1->cd(4);
|
|---|
| 603 | title = "conc ";
|
|---|
| 604 | title = title + cut3;
|
|---|
| 605 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 606 | t->Draw(var,cut3,"goff");
|
|---|
| 607 | hConc->SetNormFactor(1.);
|
|---|
| 608 | hConc->Draw("Ehist");
|
|---|
| 609 | c1->GetPad(4)->Update();
|
|---|
| 610 |
|
|---|
| 611 | c1->cd(5);
|
|---|
| 612 | title = "conc ";
|
|---|
| 613 | title = title + cut4;
|
|---|
| 614 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 615 | t->Draw(var,cut4,"goff");
|
|---|
| 616 | hConc->SetNormFactor(1.);
|
|---|
| 617 | hConc->Draw("Ehist");
|
|---|
| 618 | c1->GetPad(5)->Update();
|
|---|
| 619 |
|
|---|
| 620 | c1->cd(6);
|
|---|
| 621 | title = "conc ";
|
|---|
| 622 | title = title + cut5;
|
|---|
| 623 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 624 | t->Draw(var,cut5,"goff");
|
|---|
| 625 | hConc->SetNormFactor(1.);
|
|---|
| 626 | hConc->Draw("Ehist");
|
|---|
| 627 | c1->GetPad(6)->Update();
|
|---|
| 628 |
|
|---|
| 629 | //offdata
|
|---|
| 630 |
|
|---|
| 631 | c1->cd(1);
|
|---|
| 632 | title = "conc ";
|
|---|
| 633 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 634 | t2->Draw(var, "","goff");
|
|---|
| 635 | hConc->SetNormFactor(1.);
|
|---|
| 636 | //hConc->SetLineStyle(2);
|
|---|
| 637 | hConc->SetMarkerStyle(20);
|
|---|
| 638 | hConc->SetMarkerSize(0.4);
|
|---|
| 639 | hConc->Draw("samePE");
|
|---|
| 640 | c1->GetPad(1)->Modified();
|
|---|
| 641 | c1->GetPad(1)->Update();
|
|---|
| 642 |
|
|---|
| 643 | c1->cd(2);
|
|---|
| 644 | title = "conc ";
|
|---|
| 645 | title = title + cut1;
|
|---|
| 646 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 647 | t2->Draw(var,cut1,"goff");
|
|---|
| 648 | hConc->SetNormFactor(1.);
|
|---|
| 649 | hConc->SetMarkerStyle(20);
|
|---|
| 650 | hConc->SetMarkerSize(0.4);
|
|---|
| 651 | // hConc->SetLineStyle(2);
|
|---|
| 652 | hConc->Draw("samePE");
|
|---|
| 653 | c1->GetPad(2)->Modified();
|
|---|
| 654 | c1->GetPad(2)->Update();
|
|---|
| 655 |
|
|---|
| 656 | c1->cd(3);
|
|---|
| 657 | title = "conc ";
|
|---|
| 658 | title = title + cut2;
|
|---|
| 659 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 660 | t2->Draw(var,cut2,"goff");
|
|---|
| 661 | hConc->SetNormFactor(1.);
|
|---|
| 662 | hConc->SetMarkerStyle(20);
|
|---|
| 663 | hConc->SetMarkerSize(0.4);
|
|---|
| 664 | //hConc->SetLineStyle(2);
|
|---|
| 665 | hConc->Draw("samePE");
|
|---|
| 666 | c1->GetPad(3)->Modified();
|
|---|
| 667 | c1->GetPad(3)->Update();
|
|---|
| 668 |
|
|---|
| 669 | c1->cd(4);
|
|---|
| 670 | title = "conc ";
|
|---|
| 671 | title = title + cut3;
|
|---|
| 672 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 673 | t2->Draw(var,cut3,"goff");
|
|---|
| 674 | hConc->SetNormFactor(1.);
|
|---|
| 675 | hConc->SetMarkerStyle(20);
|
|---|
| 676 | hConc->SetMarkerSize(0.4);
|
|---|
| 677 | //hConc->SetLineStyle(2);
|
|---|
| 678 | hConc->Draw("samePE");
|
|---|
| 679 | c1->GetPad(4)->Modified();
|
|---|
| 680 | c1->GetPad(4)->Update();
|
|---|
| 681 |
|
|---|
| 682 | c1->cd(5);
|
|---|
| 683 | title = "conc ";
|
|---|
| 684 | title = title + cut4;
|
|---|
| 685 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 686 | t2->Draw(var,cut4,"goff");
|
|---|
| 687 | hConc->SetNormFactor(1.);
|
|---|
| 688 | hConc->SetMarkerStyle(20);
|
|---|
| 689 | hConc->SetMarkerSize(0.4);
|
|---|
| 690 | //hConc->SetLineStyle(2);
|
|---|
| 691 | hConc->Draw("samePE");
|
|---|
| 692 | c1->GetPad(5)->Modified();
|
|---|
| 693 | c1->GetPad(5)->Update();
|
|---|
| 694 |
|
|---|
| 695 | c1->cd(6);
|
|---|
| 696 | title = "conc ";
|
|---|
| 697 | title = title + cut5;
|
|---|
| 698 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 699 | t2->Draw(var,cut5,"goff");
|
|---|
| 700 | hConc->SetNormFactor(1.);
|
|---|
| 701 | hConc->SetMarkerStyle(20);
|
|---|
| 702 | hConc->SetMarkerSize(0.4);
|
|---|
| 703 | //hConc->SetLineStyle(2);
|
|---|
| 704 | hConc->Draw("samePE");
|
|---|
| 705 | c1->GetPad(6)->Modified();
|
|---|
| 706 | c1->GetPad(6)->Update();
|
|---|
| 707 |
|
|---|
| 708 | c1->Print(psname);
|
|---|
| 709 |
|
|---|
| 710 | /////////////////////////////////////////////////////////////////
|
|---|
| 711 | char* var="conc6>>hConc6";
|
|---|
| 712 |
|
|---|
| 713 | nbin = 40; min = 0.; max = 1.;
|
|---|
| 714 |
|
|---|
| 715 | c1->cd(1);
|
|---|
| 716 | title = "conc6 ";
|
|---|
| 717 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 718 | t->Draw(var,"","goff");
|
|---|
| 719 | hConc6->SetNormFactor(1.);
|
|---|
| 720 | hConc6->Draw("Ehist");
|
|---|
| 721 | c1->GetPad(1)->Update();
|
|---|
| 722 |
|
|---|
| 723 | c1->cd(2);
|
|---|
| 724 | title = "conc6 ";
|
|---|
| 725 | title = title + cut1;
|
|---|
| 726 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 727 | t->Draw(var,cut1,"goff");
|
|---|
| 728 | hConc6->SetNormFactor(1.);
|
|---|
| 729 | hConc6->Draw("Ehist");
|
|---|
| 730 | c1->GetPad(2)->Update();
|
|---|
| 731 |
|
|---|
| 732 | c1->cd(3);
|
|---|
| 733 | title = "conc6 ";
|
|---|
| 734 | title = title + cut2;
|
|---|
| 735 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 736 | t->Draw(var,cut2,"goff");
|
|---|
| 737 | hConc6->SetNormFactor(1.);
|
|---|
| 738 | hConc6->Draw("Ehist");
|
|---|
| 739 | c1->GetPad(3)->Update();
|
|---|
| 740 |
|
|---|
| 741 | c1->cd(4);
|
|---|
| 742 | title = "conc6 ";
|
|---|
| 743 | title = title + cut3;
|
|---|
| 744 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 745 | t->Draw(var,cut3,"goff");
|
|---|
| 746 | hConc6->SetNormFactor(1.);
|
|---|
| 747 | hConc6->Draw("Ehist");
|
|---|
| 748 | c1->GetPad(4)->Update();
|
|---|
| 749 |
|
|---|
| 750 | c1->cd(5);
|
|---|
| 751 | title = "conc6 ";
|
|---|
| 752 | title = title + cut4;
|
|---|
| 753 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 754 | t->Draw(var,cut4,"goff");
|
|---|
| 755 | hConc6->SetNormFactor(1.);
|
|---|
| 756 | hConc6->Draw("Ehist");
|
|---|
| 757 | c1->GetPad(5)->Update();
|
|---|
| 758 |
|
|---|
| 759 | c1->cd(6);
|
|---|
| 760 | title = "conc6 ";
|
|---|
| 761 | title = title + cut5;
|
|---|
| 762 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 763 | t->Draw(var,cut5,"goff");
|
|---|
| 764 | hConc6->SetNormFactor(1.);
|
|---|
| 765 | hConc6->Draw("Ehist");
|
|---|
| 766 | c1->GetPad(6)->Update();
|
|---|
| 767 |
|
|---|
| 768 | //offdata
|
|---|
| 769 |
|
|---|
| 770 | c1->cd(1);
|
|---|
| 771 | title = "conc6 ";
|
|---|
| 772 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 773 | t2->Draw(var,"","goff");
|
|---|
| 774 | hConc6->SetNormFactor(1.);
|
|---|
| 775 | hConc6->SetMarkerStyle(20);
|
|---|
| 776 | hConc6->SetMarkerSize(0.4);
|
|---|
| 777 | //hConc6->SetLineStyle(2);
|
|---|
| 778 | hConc6->Draw("samePE");
|
|---|
| 779 | c1->GetPad(1)->Modified();
|
|---|
| 780 | c1->GetPad(1)->Update();
|
|---|
| 781 |
|
|---|
| 782 | c1->cd(2);
|
|---|
| 783 | title = "conc6 ";
|
|---|
| 784 | title = title + cut1;
|
|---|
| 785 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 786 | t2->Draw(var,cut1,"goff");
|
|---|
| 787 | hConc6->SetNormFactor(1.);
|
|---|
| 788 | hConc6->SetMarkerStyle(20);
|
|---|
| 789 | hConc6->SetMarkerSize(0.4);
|
|---|
| 790 | //hConc6->SetLineStyle(2);
|
|---|
| 791 | hConc6->Draw("samePE");
|
|---|
| 792 | c1->GetPad(2)->Modified();
|
|---|
| 793 | c1->GetPad(2)->Update();
|
|---|
| 794 |
|
|---|
| 795 | c1->cd(3);
|
|---|
| 796 | title = "conc6 ";
|
|---|
| 797 | title = title + cut2;
|
|---|
| 798 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 799 | t2->Draw(var,cut2,"goff");
|
|---|
| 800 | hConc6->SetNormFactor(1.);
|
|---|
| 801 | hConc6->SetMarkerStyle(20);
|
|---|
| 802 | hConc6->SetMarkerSize(0.4);
|
|---|
| 803 | //hConc6->SetLineStyle(2);
|
|---|
| 804 | hConc6->Draw("samePE");
|
|---|
| 805 | c1->GetPad(3)->Modified();
|
|---|
| 806 | c1->GetPad(3)->Update();
|
|---|
| 807 |
|
|---|
| 808 | c1->cd(4);
|
|---|
| 809 | title = "conc6 ";
|
|---|
| 810 | title = title + cut3;
|
|---|
| 811 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 812 | t2->Draw(var,cut3,"goff");
|
|---|
| 813 | hConc6->SetNormFactor(1.);
|
|---|
| 814 | hConc6->SetMarkerStyle(20);
|
|---|
| 815 | hConc6->SetMarkerSize(0.4);
|
|---|
| 816 | //hConc6->SetLineStyle(2);
|
|---|
| 817 | hConc6->Draw("samePE");
|
|---|
| 818 | c1->GetPad(4)->Modified();
|
|---|
| 819 | c1->GetPad(4)->Update();
|
|---|
| 820 |
|
|---|
| 821 | c1->cd(5);
|
|---|
| 822 | title = "conc6 ";
|
|---|
| 823 | title = title + cut4;
|
|---|
| 824 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 825 | t2->Draw(var,cut4,"goff");
|
|---|
| 826 | hConc6->SetNormFactor(1.);
|
|---|
| 827 | hConc6->SetMarkerStyle(20);
|
|---|
| 828 | hConc6->SetMarkerSize(0.4);
|
|---|
| 829 | // hConc6->SetLineStyle(2);
|
|---|
| 830 | hConc6->Draw("samePE");
|
|---|
| 831 | c1->GetPad(5)->Modified();
|
|---|
| 832 | c1->GetPad(5)->Update();
|
|---|
| 833 |
|
|---|
| 834 | c1->cd(6);
|
|---|
| 835 | title = "conc6 ";
|
|---|
| 836 | title = title + cut5;
|
|---|
| 837 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 838 | t2->Draw(var,cut5,"goff");
|
|---|
| 839 | hConc6->SetNormFactor(1.);
|
|---|
| 840 | hConc6->SetMarkerStyle(20);
|
|---|
| 841 | hConc6->SetMarkerSize(0.4);
|
|---|
| 842 | //hConc6->SetLineStyle(2);
|
|---|
| 843 | hConc6->Draw("samePE");
|
|---|
| 844 | c1->GetPad(6)->Modified();
|
|---|
| 845 | c1->GetPad(6)->Update();
|
|---|
| 846 |
|
|---|
| 847 | c1->Print(psname);
|
|---|
| 848 |
|
|---|
| 849 | /////////////////////////////////////////////////////////////////
|
|---|
| 850 | char* var="alpha>>hAlpha";
|
|---|
| 851 |
|
|---|
| 852 | nbin = 18; min = 0.; max = 90.;
|
|---|
| 853 |
|
|---|
| 854 | c1->cd(1);
|
|---|
| 855 | title = "alpha ";
|
|---|
| 856 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 857 | t->Draw(var, "", "goff");
|
|---|
| 858 | hAlpha->SetXTitle("degrees");
|
|---|
| 859 | hAlpha->SetNormFactor(1);
|
|---|
| 860 | hAlpha->Draw("Ehist");
|
|---|
| 861 | c1->GetPad(1)->Update();
|
|---|
| 862 |
|
|---|
| 863 | c1->cd(2);
|
|---|
| 864 | title = "alpha ";
|
|---|
| 865 | title = title + cut1;
|
|---|
| 866 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 867 | t->Draw(var,cut1, "goff");
|
|---|
| 868 | hAlpha->SetXTitle("degrees");
|
|---|
| 869 | hAlpha->SetNormFactor(1);
|
|---|
| 870 | hAlpha->Draw("Ehist");
|
|---|
| 871 | c1->GetPad(2)->Update();
|
|---|
| 872 |
|
|---|
| 873 | c1->cd(3);
|
|---|
| 874 | title = "alpha ";
|
|---|
| 875 | title = title + cut2;
|
|---|
| 876 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 877 | t->Draw(var,cut2, "goff");
|
|---|
| 878 | hAlpha->SetXTitle("degrees");
|
|---|
| 879 | hAlpha->SetNormFactor(1);
|
|---|
| 880 | hAlpha->Draw("Ehist");
|
|---|
| 881 | c1->GetPad(3)->Update();
|
|---|
| 882 |
|
|---|
| 883 | c1->cd(4);
|
|---|
| 884 | title = "alpha ";
|
|---|
| 885 | title = title + cut3;
|
|---|
| 886 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 887 | t->Draw(var,cut3, "goff");
|
|---|
| 888 | hAlpha->SetXTitle("degrees");
|
|---|
| 889 | hAlpha->SetNormFactor(1);
|
|---|
| 890 | hAlpha->Draw("Ehist");
|
|---|
| 891 | c1->GetPad(4)->Update();
|
|---|
| 892 |
|
|---|
| 893 | c1->cd(5);
|
|---|
| 894 | title = "alpha ";
|
|---|
| 895 | title = title + cut4;
|
|---|
| 896 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 897 | t->Draw(var,cut4, "goff");
|
|---|
| 898 | hAlpha->SetXTitle("degrees");
|
|---|
| 899 | hAlpha->SetNormFactor(1);
|
|---|
| 900 | hAlpha->Draw("Ehist");
|
|---|
| 901 | c1->GetPad(5)->Update();
|
|---|
| 902 |
|
|---|
| 903 | c1->cd(6);
|
|---|
| 904 | title = "alpha ";
|
|---|
| 905 | title = title + cut5;
|
|---|
| 906 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 907 | t->Draw(var,cut5, "goff");
|
|---|
| 908 | hAlpha->SetXTitle("degrees");
|
|---|
| 909 | hAlpha->SetNormFactor(1);
|
|---|
| 910 | hAlpha->Draw("Ehist");
|
|---|
| 911 | c1->GetPad(6)->Update();
|
|---|
| 912 |
|
|---|
| 913 | //offdata
|
|---|
| 914 |
|
|---|
| 915 | c1->cd(1);
|
|---|
| 916 | title = "alpha ";
|
|---|
| 917 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 918 | t2->Draw(var, "", "goff");
|
|---|
| 919 | hAlpha->SetXTitle("degrees");
|
|---|
| 920 | //hAlpha->SetLineStyle(2);
|
|---|
| 921 | hAlpha->SetNormFactor(1);
|
|---|
| 922 | hAlpha->SetMarkerStyle(20);
|
|---|
| 923 | hAlpha->SetMarkerSize(0.4);
|
|---|
| 924 | hAlpha->Draw("samePE");
|
|---|
| 925 | c1->GetPad(1)->Modified();
|
|---|
| 926 | c1->GetPad(1)->Update();
|
|---|
| 927 |
|
|---|
| 928 | c1->cd(2);
|
|---|
| 929 | title = "alpha ";
|
|---|
| 930 | title = title + cut1;
|
|---|
| 931 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 932 | t2->Draw(var,cut1, "goff");
|
|---|
| 933 | hAlpha->SetXTitle("degrees");
|
|---|
| 934 | //hAlpha->SetLineStyle(2);
|
|---|
| 935 | hAlpha->SetMarkerStyle(20);
|
|---|
| 936 | hAlpha->SetMarkerSize(0.4);
|
|---|
| 937 | hAlpha->SetNormFactor(1);
|
|---|
| 938 | hAlpha->Draw("samePE");
|
|---|
| 939 | c1->GetPad(2)->Modified();
|
|---|
| 940 | c1->GetPad(2)->Update();
|
|---|
| 941 |
|
|---|
| 942 | c1->cd(3);
|
|---|
| 943 | title = "alpha ";
|
|---|
| 944 | title = title + cut2;
|
|---|
| 945 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 946 | t2->Draw(var,cut2, "goff");
|
|---|
| 947 | hAlpha->SetXTitle("degrees");
|
|---|
| 948 | //hAlpha->SetLineStyle(2);
|
|---|
| 949 | hAlpha->SetNormFactor(1);
|
|---|
| 950 | hAlpha->SetMarkerStyle(20);
|
|---|
| 951 | hAlpha->SetMarkerSize(0.4);
|
|---|
| 952 | hAlpha->Draw("samePE");
|
|---|
| 953 | c1->GetPad(3)->Modified();
|
|---|
| 954 | c1->GetPad(3)->Update();
|
|---|
| 955 |
|
|---|
| 956 | c1->cd(4);
|
|---|
| 957 | title = "alpha ";
|
|---|
| 958 | title = title + cut3;
|
|---|
| 959 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 960 | t2->Draw(var,cut3, "goff");
|
|---|
| 961 | hAlpha->SetXTitle("degrees");
|
|---|
| 962 | //hAlpha->SetLineStyle(2);
|
|---|
| 963 | hAlpha->SetMarkerStyle(20);
|
|---|
| 964 | hAlpha->SetMarkerSize(0.4);
|
|---|
| 965 | hAlpha->SetNormFactor(1);
|
|---|
| 966 | hAlpha->Draw("samePE");
|
|---|
| 967 | c1->GetPad(4)->Modified();
|
|---|
| 968 | c1->GetPad(4)->Update();
|
|---|
| 969 |
|
|---|
| 970 | c1->cd(5);
|
|---|
| 971 | title = "alpha ";
|
|---|
| 972 | title = title + cut4;
|
|---|
| 973 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 974 | t2->Draw(var,cut4, "goff");
|
|---|
| 975 | hAlpha->SetXTitle("degrees");
|
|---|
| 976 | //hAlpha->SetLineStyle(2);
|
|---|
| 977 | hAlpha->SetMarkerStyle(20);
|
|---|
| 978 | hAlpha->SetMarkerSize(0.4);
|
|---|
| 979 | hAlpha->SetNormFactor(1);
|
|---|
| 980 | hAlpha->Draw("samePE");
|
|---|
| 981 | c1->GetPad(5)->Modified();
|
|---|
| 982 | c1->GetPad(5)->Update();
|
|---|
| 983 |
|
|---|
| 984 | c1->cd(6);
|
|---|
| 985 | title = "alpha ";
|
|---|
| 986 | title = title + cut5;
|
|---|
| 987 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 988 | t2->Draw(var,cut5, "goff");
|
|---|
| 989 | hAlpha->SetXTitle("degrees");
|
|---|
| 990 | //hAlpha->SetLineStyle(2);
|
|---|
| 991 | hAlpha->SetMarkerStyle(20);
|
|---|
| 992 | hAlpha->SetMarkerSize(0.4);
|
|---|
| 993 | hAlpha->SetNormFactor(1);
|
|---|
| 994 | hAlpha->Draw("samePE");
|
|---|
| 995 | c1->GetPad(6)->Modified();
|
|---|
| 996 | c1->GetPad(6)->Update();
|
|---|
| 997 |
|
|---|
| 998 | c1->Print(psname);
|
|---|
| 999 |
|
|---|
| 1000 | /////////////////////////////////////////////////////////////////
|
|---|
| 1001 | // Cuts in Dist
|
|---|
| 1002 | /////////////////////////////////////////////////////////////////
|
|---|
| 1003 |
|
|---|
| 1004 | TCanvas *c2 = new TCanvas("c2","Cuts in Dist",500,800);
|
|---|
| 1005 | c2->Divide(2,3);
|
|---|
| 1006 | /////////////////////////////////////////////////////////////////
|
|---|
| 1007 | char* var="length>>hLength";
|
|---|
| 1008 |
|
|---|
| 1009 | nbin = 40; min = 0.; max = 1.;
|
|---|
| 1010 |
|
|---|
| 1011 | c2->cd(1);
|
|---|
| 1012 | // c2->GetPad(1)->SetGrid();
|
|---|
| 1013 | title = "length ";
|
|---|
| 1014 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 1015 | t->Draw(var, "", "goff");
|
|---|
| 1016 | hLength->SetXTitle("degrees");
|
|---|
| 1017 | hLength->SetNormFactor(1);
|
|---|
| 1018 | hLength->Draw("Ehist");
|
|---|
| 1019 | c2->GetPad(1)->Update();
|
|---|
| 1020 |
|
|---|
| 1021 | c2->cd(2);
|
|---|
| 1022 | //c2->GetPad(2)->SetGrid();
|
|---|
| 1023 | title = "length ";
|
|---|
| 1024 | title = title + cutDist;
|
|---|
| 1025 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 1026 | t->Draw(var,cutDist, "goff");
|
|---|
| 1027 | hLength->SetXTitle("degrees");
|
|---|
| 1028 | hLength->SetNormFactor(1);
|
|---|
| 1029 | hLength->Draw("Ehist");
|
|---|
| 1030 | c2->GetPad(2)->Update();
|
|---|
| 1031 |
|
|---|
| 1032 | //offdata
|
|---|
| 1033 |
|
|---|
| 1034 | c2->cd(1);
|
|---|
| 1035 | c2->GetPad(1)->SetGrid();
|
|---|
| 1036 | title = "length ";
|
|---|
| 1037 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 1038 | t2->Draw(var, "", "goff");
|
|---|
| 1039 | hLength->SetXTitle("degrees");
|
|---|
| 1040 | // hLength->SetLineStyle(2);
|
|---|
| 1041 | hLength->SetMarkerStyle(20);
|
|---|
| 1042 | hLength->SetMarkerSize(0.4);
|
|---|
| 1043 | hLength->SetNormFactor(1);
|
|---|
| 1044 | hLength->Draw("samePE");
|
|---|
| 1045 | c2->GetPad(1)->Modified();
|
|---|
| 1046 | c2->GetPad(1)->Update();
|
|---|
| 1047 |
|
|---|
| 1048 | c2->cd(2);
|
|---|
| 1049 | c2->GetPad(2)->SetGrid();
|
|---|
| 1050 | title = "length ";
|
|---|
| 1051 | title = title + cutDist;
|
|---|
| 1052 | hLength = new TH1F("hLength",title,nbin, min, max);
|
|---|
| 1053 | t2->Draw(var,cutDist, "goff");
|
|---|
| 1054 | hLength->SetXTitle("degrees");
|
|---|
| 1055 | hLength->SetMarkerStyle(20);
|
|---|
| 1056 | hLength->SetMarkerSize(0.4);
|
|---|
| 1057 | //hLength->SetLineStyle(2);
|
|---|
| 1058 | hLength->SetNormFactor(1);
|
|---|
| 1059 | hLength->Draw("samePE");
|
|---|
| 1060 | c2->GetPad(1)->Modified();
|
|---|
| 1061 | c2->GetPad(2)->Update();
|
|---|
| 1062 |
|
|---|
| 1063 | /////////////////////////////////////////////////////////////////
|
|---|
| 1064 | char* var="width>>hWidth";
|
|---|
| 1065 |
|
|---|
| 1066 | nbin = 40; min = 0.; max = 1.;
|
|---|
| 1067 |
|
|---|
| 1068 | c2->cd(3);
|
|---|
| 1069 | c2->GetPad(3)->SetGrid();
|
|---|
| 1070 | title = "width ";
|
|---|
| 1071 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 1072 | t->Draw(var, "", "goff");
|
|---|
| 1073 | hWidth->SetXTitle("degrees");
|
|---|
| 1074 | hWidth->SetNormFactor(1);
|
|---|
| 1075 | hWidth->Draw("Ehist");
|
|---|
| 1076 | c2->GetPad(3)->Update();
|
|---|
| 1077 |
|
|---|
| 1078 | c2->cd(4);
|
|---|
| 1079 | c2->GetPad(4)->SetGrid();
|
|---|
| 1080 | title = "width ";
|
|---|
| 1081 | title = title + cutDist;
|
|---|
| 1082 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 1083 | t->Draw(var,cutDist, "goff");
|
|---|
| 1084 | hWidth->SetXTitle("degrees");
|
|---|
| 1085 | hWidth->SetNormFactor(1);
|
|---|
| 1086 | hWidth->Draw("Ehist");
|
|---|
| 1087 | c2->GetPad(4)->Update();
|
|---|
| 1088 |
|
|---|
| 1089 | //offdata
|
|---|
| 1090 |
|
|---|
| 1091 | c2->cd(3);
|
|---|
| 1092 | c2->GetPad(3)->SetGrid();
|
|---|
| 1093 | title = "width ";
|
|---|
| 1094 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 1095 | t2->Draw(var, "", "goff");
|
|---|
| 1096 | hWidth->SetXTitle("degrees");
|
|---|
| 1097 | //hWidth->SetLineStyle(2);
|
|---|
| 1098 | hWidth->SetMarkerStyle(20);
|
|---|
| 1099 | hWidth->SetMarkerSize(0.4);
|
|---|
| 1100 | hWidth->SetNormFactor(1);
|
|---|
| 1101 | hWidth->Draw("samePE");
|
|---|
| 1102 | c2->GetPad(3)->Modified();
|
|---|
| 1103 | c2->GetPad(3)->Update();
|
|---|
| 1104 |
|
|---|
| 1105 | c2->cd(4);
|
|---|
| 1106 | c2->GetPad(4)->SetGrid();
|
|---|
| 1107 | title = "width ";
|
|---|
| 1108 | title = title + cutDist;
|
|---|
| 1109 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
|---|
| 1110 | t2->Draw(var,cutDist, "goff");
|
|---|
| 1111 | hWidth->SetXTitle("degrees");
|
|---|
| 1112 | //hWidth->SetLineStyle(2);
|
|---|
| 1113 | hWidth->SetMarkerStyle(20);
|
|---|
| 1114 | hWidth->SetMarkerSize(0.4);
|
|---|
| 1115 | hWidth->SetNormFactor(1);
|
|---|
| 1116 | hWidth->Draw("samePE");
|
|---|
| 1117 | c2->GetPad(4)->Modified();
|
|---|
| 1118 | c2->GetPad(4)->Update();
|
|---|
| 1119 |
|
|---|
| 1120 | /////////////////////////////////////////////////////////////////
|
|---|
| 1121 | char* var="conc>>hConc";
|
|---|
| 1122 |
|
|---|
| 1123 | nbin = 40; min = 0.; max = 1.;
|
|---|
| 1124 |
|
|---|
| 1125 | c2->cd(5);
|
|---|
| 1126 | c2->GetPad(5)->SetGrid();
|
|---|
| 1127 | title = "conc ";
|
|---|
| 1128 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 1129 | t->Draw(var,"","goff");
|
|---|
| 1130 | hConc->SetNormFactor(1.);
|
|---|
| 1131 | hConc->Draw("Ehist");
|
|---|
| 1132 | c2->GetPad(5)->Update();
|
|---|
| 1133 |
|
|---|
| 1134 | c2->cd(6);
|
|---|
| 1135 | c2->GetPad(6)->SetGrid();
|
|---|
| 1136 | title = "conc ";
|
|---|
| 1137 | title = title + cutDist;
|
|---|
| 1138 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 1139 | t->Draw(var,cutDist,"goff");
|
|---|
| 1140 | hConc->SetNormFactor(1.);
|
|---|
| 1141 | hConc->Draw("Ehist");
|
|---|
| 1142 | c2->GetPad(6)->Update();
|
|---|
| 1143 |
|
|---|
| 1144 | //offdata
|
|---|
| 1145 |
|
|---|
| 1146 | c2->cd(5);
|
|---|
| 1147 | c2->GetPad(5)->SetGrid();
|
|---|
| 1148 | title = "conc ";
|
|---|
| 1149 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 1150 | t2->Draw(var,"", "goff");
|
|---|
| 1151 | // hConc->SetLineStyle(2);
|
|---|
| 1152 | hConc->SetMarkerStyle(20);
|
|---|
| 1153 | hConc->SetMarkerSize(0.4);
|
|---|
| 1154 | hConc->SetNormFactor(1.);
|
|---|
| 1155 | hConc->Draw("samePE");
|
|---|
| 1156 | c2->GetPad(5)->Modified();
|
|---|
| 1157 | c2->GetPad(5)->Update();
|
|---|
| 1158 |
|
|---|
| 1159 | c2->cd(6);
|
|---|
| 1160 | c2->GetPad(6)->SetGrid();
|
|---|
| 1161 | title = "conc ";
|
|---|
| 1162 | title = title + cutDist;
|
|---|
| 1163 | hConc = new TH1F("hConc",title,nbin, min, max);
|
|---|
| 1164 | t2->Draw(var,cutDist,"goff");
|
|---|
| 1165 | //hConc->SetLineStyle(2);
|
|---|
| 1166 | hConc->SetMarkerStyle(20);
|
|---|
| 1167 | hConc->SetMarkerSize(0.4);
|
|---|
| 1168 | hConc->SetNormFactor(1.);
|
|---|
| 1169 | hConc->Draw("samePE");
|
|---|
| 1170 | c2->GetPad(6)->Modified();
|
|---|
| 1171 | c2->GetPad(6)->Update();
|
|---|
| 1172 |
|
|---|
| 1173 | c2->Print(psname);
|
|---|
| 1174 |
|
|---|
| 1175 | /////////////////////////////////////////////////////////////////
|
|---|
| 1176 | char* var="conc6>>hConc6";
|
|---|
| 1177 |
|
|---|
| 1178 | nbin = 40; min = 0.; max = 1.;
|
|---|
| 1179 |
|
|---|
| 1180 | c2->cd(1);
|
|---|
| 1181 | title = "conc6 ";
|
|---|
| 1182 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 1183 | t->Draw(var,"","goff");
|
|---|
| 1184 | hConc6->SetNormFactor(1.);
|
|---|
| 1185 | hConc6->Draw("Ehist");
|
|---|
| 1186 | c2->GetPad(1)->Update();
|
|---|
| 1187 |
|
|---|
| 1188 | c2->cd(2);
|
|---|
| 1189 | title = "conc6 ";
|
|---|
| 1190 | title = title + cutDist;
|
|---|
| 1191 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 1192 | t->Draw(var,cutDist,"goff");
|
|---|
| 1193 | hConc6->SetNormFactor(1.);
|
|---|
| 1194 | hConc6->Draw("Ehist");
|
|---|
| 1195 | c2->GetPad(2)->Update();
|
|---|
| 1196 |
|
|---|
| 1197 | //offdata
|
|---|
| 1198 |
|
|---|
| 1199 | c2->cd(1);
|
|---|
| 1200 | title = "conc6 ";
|
|---|
| 1201 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 1202 | t2->Draw(var,"","goff");
|
|---|
| 1203 | //hConc6->SetLineStyle(2);
|
|---|
| 1204 | hConc6->SetMarkerStyle(20);
|
|---|
| 1205 | hConc6->SetMarkerSize(0.4);
|
|---|
| 1206 | hConc6->SetNormFactor(1.);
|
|---|
| 1207 | hConc6->Draw("samePE");
|
|---|
| 1208 | c2->GetPad(1)->Modified();
|
|---|
| 1209 | c2->GetPad(1)->Update();
|
|---|
| 1210 |
|
|---|
| 1211 | c2->cd(2);
|
|---|
| 1212 | title = "conc6 ";
|
|---|
| 1213 | title = title + cutDist;
|
|---|
| 1214 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
|---|
| 1215 | t2->Draw(var,cutDist,"goff");
|
|---|
| 1216 | // hConc6->SetLineStyle(2);
|
|---|
| 1217 | hConc6->SetMarkerStyle(20);
|
|---|
| 1218 | hConc6->SetMarkerSize(0.4);
|
|---|
| 1219 | hConc6->SetNormFactor(1.);
|
|---|
| 1220 | hConc6->Draw("samePE");
|
|---|
| 1221 | c2->GetPad(2)->Modified();
|
|---|
| 1222 | c2->GetPad(2)->Update();
|
|---|
| 1223 |
|
|---|
| 1224 | /////////////////////////////////////////////////////////////////
|
|---|
| 1225 | char* var="alpha>>hAlpha";
|
|---|
| 1226 |
|
|---|
| 1227 | nbin = 18; min = 0.; max = 90.;
|
|---|
| 1228 |
|
|---|
| 1229 | c2->cd(3);
|
|---|
| 1230 | title = "alpha ";
|
|---|
| 1231 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 1232 | t->Draw(var, "", "goff");
|
|---|
| 1233 | hAlpha->SetXTitle("degrees");
|
|---|
| 1234 | hAlpha->SetNormFactor(1);
|
|---|
| 1235 | hAlpha->Draw("Ehist");
|
|---|
| 1236 | c2->GetPad(3)->Update();
|
|---|
| 1237 |
|
|---|
| 1238 | c2->cd(4);
|
|---|
| 1239 | title = "alpha ";
|
|---|
| 1240 | title = title + cutDist;
|
|---|
| 1241 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 1242 | t->Draw(var,cutDist, "goff");
|
|---|
| 1243 | hAlpha->SetXTitle("degrees");
|
|---|
| 1244 | hAlpha->SetNormFactor(1);
|
|---|
| 1245 | hAlpha->Draw("Ehist");
|
|---|
| 1246 | c2->GetPad(4)->Update();
|
|---|
| 1247 |
|
|---|
| 1248 | //offdata
|
|---|
| 1249 |
|
|---|
| 1250 | c2->cd(3);
|
|---|
| 1251 | title = "alpha ";
|
|---|
| 1252 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 1253 | t2->Draw(var, "", "goff");
|
|---|
| 1254 | hAlpha->SetXTitle("degrees");
|
|---|
| 1255 | //hAlpha->SetLineStyle(2);
|
|---|
| 1256 | hAlpha->SetMarkerStyle(20);
|
|---|
| 1257 | hAlpha->SetMarkerSize(0.4);
|
|---|
| 1258 | hAlpha->SetNormFactor(1);
|
|---|
| 1259 | hAlpha->Draw("samePE");
|
|---|
| 1260 | c2->GetPad(3)->Modified();
|
|---|
| 1261 | c2->GetPad(3)->Update();
|
|---|
| 1262 |
|
|---|
| 1263 | c2->cd(4);
|
|---|
| 1264 | title = "alpha ";
|
|---|
| 1265 | title = title + cutDist;
|
|---|
| 1266 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
|---|
| 1267 | t2->Draw(var,cutDist, "goff");
|
|---|
| 1268 | hAlpha->SetXTitle("degrees");
|
|---|
| 1269 | //hAlpha->SetLineStyle(2);
|
|---|
| 1270 | hAlpha->SetMarkerStyle(20);
|
|---|
| 1271 | hAlpha->SetMarkerSize(0.4);
|
|---|
| 1272 | hAlpha->SetNormFactor(1);
|
|---|
| 1273 | hAlpha->Draw("samePE");
|
|---|
| 1274 | c2->GetPad(4)->Modified();
|
|---|
| 1275 | c2->GetPad(4)->Update();
|
|---|
| 1276 |
|
|---|
| 1277 |
|
|---|
| 1278 | /////////////////////////////////////////////////////////////////
|
|---|
| 1279 | char* var="log10(size)>>hSize";
|
|---|
| 1280 |
|
|---|
| 1281 | nbin = 40; min = 0.5; max = 4.5;
|
|---|
| 1282 |
|
|---|
| 1283 | c2->cd(5);
|
|---|
| 1284 | c2->GetPad(5)->SetLogy();
|
|---|
| 1285 | title = "size ";
|
|---|
| 1286 | hSize = new TH1F("hSize",title,nbin, min, max);
|
|---|
| 1287 | t->Draw(var, "1/MHillas.fSize", "goff");
|
|---|
| 1288 | hSize->SetNormFactor(1.);
|
|---|
| 1289 | hSize->SetXTitle("log10(ADC counts)");
|
|---|
| 1290 | hSize->Draw("Ehist");
|
|---|
| 1291 | c2->GetPad(5)->Update();
|
|---|
| 1292 |
|
|---|
| 1293 | c2->cd(6);
|
|---|
| 1294 | c2->GetPad(6)->SetLogy();
|
|---|
| 1295 | title = "size ";
|
|---|
| 1296 | title = title + cutDist;
|
|---|
| 1297 | hSize = new TH1F("hSize",title,nbin, min, max);
|
|---|
| 1298 | t->Draw(var,"1/MHillas.fSize*(MHillasSrc.fDist*0.6/189.>0.2 && MHillasSrc.fDist*0.6/189<0.8)", "goff");
|
|---|
| 1299 | hSize->SetXTitle("log10(ADC counts)");
|
|---|
| 1300 | hSize->SetNormFactor(1.);
|
|---|
| 1301 | hSize->Draw("Ehist");
|
|---|
| 1302 | c2->GetPad(6)->Update();
|
|---|
| 1303 |
|
|---|
| 1304 | //offdata
|
|---|
| 1305 | c2->cd(5);
|
|---|
| 1306 | c2->GetPad(5)->SetLogy();
|
|---|
| 1307 | title = "size ";
|
|---|
| 1308 | hSize = new TH1F("hSize",title,nbin, min, max);
|
|---|
| 1309 | t2->Draw(var, "1/MHillas.fSize", "goff");
|
|---|
| 1310 | hSize->SetXTitle("log10(ADC counts)");
|
|---|
| 1311 | hSize->SetNormFactor(1.);
|
|---|
| 1312 | hSize->SetMarkerStyle(20);
|
|---|
| 1313 | hSize->SetMarkerSize(0.4);
|
|---|
| 1314 | //hSize->SetLineStyle(2);
|
|---|
| 1315 | hSize->Draw("samePE");
|
|---|
| 1316 | c2->GetPad(5)->Modified();
|
|---|
| 1317 | c2->GetPad(5)->Update();
|
|---|
| 1318 |
|
|---|
| 1319 | c2->cd(6);
|
|---|
| 1320 | c2->GetPad(6)->SetLogy();
|
|---|
| 1321 | title = "size ";
|
|---|
| 1322 | title = title + cutDist;
|
|---|
| 1323 | hSize = new TH1F("hSize",title,nbin, min, max);
|
|---|
| 1324 | t2->Draw(var,"1/MHillas.fSize*(MHillasSrc.fDist*0.6/189.>0.2 && MHillasSrc.fDist*0.6/189<0.8)", "goff");
|
|---|
| 1325 | hSize->SetXTitle("log10(ADC counts)");
|
|---|
| 1326 | //hSize->SetLineStyle(2);
|
|---|
| 1327 | hSize->SetNormFactor(1.);
|
|---|
| 1328 | hSize->SetMarkerStyle(20);
|
|---|
| 1329 | hSize->SetMarkerSize(0.4);
|
|---|
| 1330 | hSize->Draw("samePE");
|
|---|
| 1331 | c2->GetPad(6)->Modified();
|
|---|
| 1332 | c2->GetPad(6)->Update();
|
|---|
| 1333 |
|
|---|
| 1334 | c2->Print(closepsname);
|
|---|
| 1335 |
|
|---|
| 1336 | }
|
|---|
| 1337 |
|
|---|
| 1338 |
|
|---|
| 1339 |
|
|---|