ROOT logo

// You have to load the class before ... ;-)
// .L DetectorK.cxx++

void standardPlots() {

  DetectorK its("ALICE","ITS");

  its.MakeAliceCurrent(0,0); 

  // its.SetRadius("bpipe",2.1);
  // its.AddLayer("spd0",2.2,0.001,0.0012,0.0012);

  its.PrintLayout();
  its.SolveViaBilloir();
 
  its.MakeStandardPlots(0,2);

  its.AddTPC(0.1,0.1);
  its.SolveViaBilloir();
 
  its.MakeStandardPlots(1,1);

}


void particleDependendResolution() { 
// particle dependency on resolution

  // .L Detector.cxx++

  Detector its("ALICE","ITS");

  its.MakeAliceCurrent(); 
  its.PrintLayout();
  its.PlotLayout();

  its.SolveViaBilloir(0);
 
  its.SetRadius("bpipe",2.1);
  its.AddLayer("spd0",2.2,0.001,0.0012,0.0012);

  TCanvas *c1 = new TCanvas("c1","c1");
 
  c1->Divide(2,1);
  c1->cd(1); gPad->SetGridx();   gPad->SetGridy(); 
  gPad->SetLogx(); //gPad->SetLogy();
  c1->cd(2); gPad->SetGridx();   gPad->SetGridy(); 
  gPad->SetLogx(); //gPad->SetLogy();

  
  // compare to telescope equation ?
  //  c1->cd(1); its.GetGraphPointingResolutionTeleEqu(0,1)->Draw("AC");
  //  c1->cd(2); its.GetGraphPointingResolutionTeleEqu(1,1)->Draw("AC");

  its.SetParticleMass(0.140); // pion  
  its.SolveViaBilloir(0,0);
  c1->cd(1); its.GetGraphPointingResolution(0,1)->Draw("AC");
  c1->cd(2); its.GetGraphPointingResolution(1,1)->Draw("AC");
 
  its.SetParticleMass(0.498); // kaon  
  its.SolveViaBilloir(0,0);
  c1->cd(1); its.GetGraphPointingResolution(0,2)->Draw("C");
  c1->cd(2); its.GetGraphPointingResolution(1,2)->Draw("C");

  its.SetParticleMass(0.00051); // electron  
  its.SolveViaBilloir(0,0);
  c1->cd(1); its.GetGraphPointingResolution(0,3)->Draw("C");
  c1->cd(2); its.GetGraphPointingResolution(1,3)->Draw("C");

  its.SetParticleMass(0.938); // proton  
  its.SolveViaBilloir(0,0);
  c1->cd(1); its.GetGraphPointingResolution(0,4)->Draw("C");
  c1->cd(2); its.GetGraphPointingResolution(1,4)->Draw("C");



}
 testDetector.C:1
 testDetector.C:2
 testDetector.C:3
 testDetector.C:4
 testDetector.C:5
 testDetector.C:6
 testDetector.C:7
 testDetector.C:8
 testDetector.C:9
 testDetector.C:10
 testDetector.C:11
 testDetector.C:12
 testDetector.C:13
 testDetector.C:14
 testDetector.C:15
 testDetector.C:16
 testDetector.C:17
 testDetector.C:18
 testDetector.C:19
 testDetector.C:20
 testDetector.C:21
 testDetector.C:22
 testDetector.C:23
 testDetector.C:24
 testDetector.C:25
 testDetector.C:26
 testDetector.C:27
 testDetector.C:28
 testDetector.C:29
 testDetector.C:30
 testDetector.C:31
 testDetector.C:32
 testDetector.C:33
 testDetector.C:34
 testDetector.C:35
 testDetector.C:36
 testDetector.C:37
 testDetector.C:38
 testDetector.C:39
 testDetector.C:40
 testDetector.C:41
 testDetector.C:42
 testDetector.C:43
 testDetector.C:44
 testDetector.C:45
 testDetector.C:46
 testDetector.C:47
 testDetector.C:48
 testDetector.C:49
 testDetector.C:50
 testDetector.C:51
 testDetector.C:52
 testDetector.C:53
 testDetector.C:54
 testDetector.C:55
 testDetector.C:56
 testDetector.C:57
 testDetector.C:58
 testDetector.C:59
 testDetector.C:60
 testDetector.C:61
 testDetector.C:62
 testDetector.C:63
 testDetector.C:64
 testDetector.C:65
 testDetector.C:66
 testDetector.C:67
 testDetector.C:68
 testDetector.C:69
 testDetector.C:70
 testDetector.C:71
 testDetector.C:72
 testDetector.C:73
 testDetector.C:74
 testDetector.C:75
 testDetector.C:76
 testDetector.C:77
 testDetector.C:78
 testDetector.C:79