Esempio n. 1
0
void drawHalfTgt_redTree(){
  //TFile *fin_half=TFile::Open("../output/dump_prexII_halfLead/file_redTree_anaRedTTree.root","READ");
  //TFile *fin_half=TFile::Open("../output/dump_prexII_0p75Tgt/file5_redTree_anaRedTTree.root","READ");
  //TFile *fin_full=TFile::Open("/home/ciprian/hdd2/prexOutput/dump_prexII_newHRS_newDet/file_redTree_anaRedTTree.root","READ");

  TFile *fin_full=TFile::Open("../output/dump_prexII_fatPipe_prex2End/file3_redTree_anaRedTTree.root","READ");
  TFile *fin_half=TFile::Open("../output/dump_crex5_fatPipe_prex2End/file4_redTree_anaRedTTree.root","READ");

  gStyle->SetOptStat(0);
  TCanvas *c1=new TCanvas("c1","c1");
  drawHeatMap((TH2D*)fin_full->Get("h1"),(TH2D*)fin_half->Get("h1"),c1);

  TCanvas *c2=new TCanvas("c2","c2");
  drawHeatMap((TH2D*)fin_full->Get("h2"),(TH2D*)fin_half->Get("h2"),c2);

  int nH[6]={0,1,2,3,6,7};
  TCanvas *c3=new TCanvas("c3","c3");
  c3->Divide(3,2);
  for(int i=0;i<6;i++){
    c3->cd(i+1);
    string histNm=Form("h3_%d",nH[i]);
    drawRdist((TH1D*)fin_full->Get(histNm.c_str()),(TH1D*)fin_half->Get(histNm.c_str()));
    c3->Modified();
    c3->Update();
  }

  TCanvas *c5=new TCanvas("c5","c5");
  c5->Divide(3,2);
  for(int i=0;i<6;i++){
    c5->cd(i+1);
    string histNm=Form("h3_%d",nH[i]);
    drawRdist(removeArea((TH1D*)fin_full->Get(histNm.c_str())),
	      removeArea((TH1D*)fin_half->Get(histNm.c_str())));
    c5->Modified();
    c5->Update();
  }

  TCanvas *c4=new TCanvas("c4","c4");
  c4->Divide(3,2);
  for(int i=0;i<6;i++){
    c4->cd(i+1);
    string histNm=Form("h4_%d",nH[i]);
    drawRdist((TH1D*)fin_full->Get(histNm.c_str()),(TH1D*)fin_half->Get(histNm.c_str()));
    c4->Modified();
    c4->Update();
  }
  
  TCanvas *c6=new TCanvas("c6","c6");
  c6->Divide(3,2);
  for(int i=0;i<6;i++){
    c6->cd(i+1);
    string histNm=Form("h4_%d",nH[i]);
    drawRdist(removeArea((TH1D*)fin_full->Get(histNm.c_str())),
	      removeArea((TH1D*)fin_half->Get(histNm.c_str())));
    c6->Modified();
    c6->Update();
  }
}
Esempio n. 2
0
bool TRoomDB::removeArea( QString name )
{
    if( areaNamesMap.values().contains( name ) )
    {
        return removeArea( areaNamesMap.key( name ) );
    }
    return false;
}
Esempio n. 3
0
void LazyGraph::remove(Area *a)
{
    removeArea(a->getId());
}
Esempio n. 4
0
void TRoomDB::removeArea( TArea * pA )
{
    removeArea( getAreaID(pA) );
}