Main INDEX
Monthly INDEX
PREV
NEXT
Make New Entry,
Make Followup Entry
User name hyde
Log entry time 12:20:25 on December 1,2010
Entry number 342228
keyword=Run 9127 deadtime all splits
full deadtime analysis of all splits of run 9127
Discrepancy between TS livetime and scaler deadtime is 3% at end of run
.x ana.C
{
gStyle.SetPadGridY(1);
gSystem->Load("libDVCS.so");
TChain ch("T");
ch.Add("*.root");
Double_t live1; ch.SetBranchAddress("D.TSscalLive1",&live1);
Double_t live2; ch.SetBranchAddress("D.TSscalLive2",&live2);
Double_t t7c; ch.SetBranchAddress("left_t7c",&t7c);
Double_t t5c; ch.SetBranchAddress("left_t5c",&t5c);
Double_t t10c; ch.SetBranchAddress("left_t10c",&t10c);
Int_t cp[500]; ch.SetBranchAddress("TrigCP",&cp);
ch.GetEntry(0);
Double_t cp2=cp[2];
Double_t cp8=cp[8];
TH2F h("h","h",100,0,900000,100,1.0,1.5);
h.Draw();
ch.Draw(Form("(D.TSscalLive2-%f)/(D.TSscalLive1-%f):Entry$",live2,live1),"","lpsame");
TGraph *graph = (TGraph*)gPad->GetPrimitive("Graph"); // 2D
graph->SetMarkerColor(kRed);
graph->SetLineColor(kRed);
graph->SetName("Graph2");
// graph->SetMinimum(1.1);
// graph->SetMaximum(1.2);
ch.Draw(Form("(left_t7c+left_t10c-%f-%f)/(left_t5c-%f):Entry$",t7c,t10c,t5c),"","lpsame");
TGraph *graph2 = (TGraph*)gPad->GetPrimitive("Graph"); // 2D
graph2->SetMarkerColor(kBlue);
graph2->SetLineColor(kBlue);
graph2->SetName("Graph6");
ch.Draw(Form("(TrigCP[2]-%f)/(TrigCP[8]-%f):Entry$",cp2,cp8),"","lpsame");
TGraph *graph3 = (TGraph*)gPad->GetPrimitive("Graph"); // 2D
graph3->SetMarkerColor(kGreen);
graph3->SetLineColor(kGreen);
}
FIGURE 1