/[PAMELA software]/calo/flight/FUTILITIES/macros/FCaloPULSE.cxx
ViewVC logotype

Diff of /calo/flight/FUTILITIES/macros/FCaloPULSE.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mocchiut, Wed Mar 22 15:07:46 2006 UTC revision 1.2 by mocchiut, Mon Sep 22 20:18:46 2008 UTC
# Line 95  void FCaloPULSE(TString filename, TStrin Line 95  void FCaloPULSE(TString filename, TStrin
95    };        };    
96    vdFile->Close();    vdFile->Close();
97    //    //
98      TString fififile =  getFilename(filename);
99      const char *file = fififile;
100      //
101    TCanvas *figura2 = new TCanvas("calpulse", "calpulse", 950, 850);    TCanvas *figura2 = new TCanvas("calpulse", "calpulse", 950, 850);
102    figura2->cd();    figura2->cd();
103      figura2->Range(0,0,100,100);
104      stringstream errore;
105      figura2->SetFillColor(10);
106      errore.str("");
107      errore << "EXPERT  --  File: " << file;
108      errore << " ";
109      TLatex *t=new TLatex();
110      t->SetTextFont(32);
111      t->SetTextColor(1);
112      t->SetTextAlign(12);
113      t->SetTextSize(0.015);
114      t->DrawLatex(2.,99.,errore.str().c_str());
115      //
116    gPad->SetLogy();    gPad->SetLogy();
117    Long64_t ncalibs    = tr->GetEntries();    Long64_t ncalibs    = tr->GetEntries();
118    TH1F *calpulse1;    TH1F *calpulse1;
# Line 150  void FCaloPULSE(TString filename, TStrin Line 166  void FCaloPULSE(TString filename, TStrin
166    //        //    
167    figura2 = new TCanvas("calpulse", "calpulse", 950, 850);    figura2 = new TCanvas("calpulse", "calpulse", 950, 850);
168    figura2->cd();    figura2->cd();
169      //  stringstream errore;
170      figura2->Range(0,0,100,100);
171      figura2->SetFillColor(10);
172      errore.str("");
173      errore << "EXPERT  --  File: " << file;
174      errore << " ";
175      t=new TLatex();
176      t->SetTextFont(32);
177      t->SetTextColor(1);
178      t->SetTextAlign(12);
179      t->SetTextSize(0.015);
180      t->DrawLatex(2.,99.,errore.str().c_str());
181    gPad->SetLogy();    gPad->SetLogy();
182    ncalibs    = tr->GetEntries();    ncalibs    = tr->GetEntries();
183    TH1F *calpulse2;    TH1F *calpulse2;
# Line 282  void FCaloPULSEMATRA(TString filename, T Line 310  void FCaloPULSEMATRA(TString filename, T
310      };      };
311    };        };    
312    vdFile->Close();    vdFile->Close();
313      //
314      TString fififile =  getFilename(filename);
315      const char *file = fififile;
316      //
317    TFile *File = new TFile(filename.Data());    TFile *File = new TFile(filename.Data());
318    TTree *tr = (TTree*)File->Get("CalibCalPulse1");    TTree *tr = (TTree*)File->Get("CalibCalPulse1");
319    tr->AddFriend("CalibCalPulse2", File);    tr->AddFriend("CalibCalPulse2", File);
# Line 299  void FCaloPULSEMATRA(TString filename, T Line 328  void FCaloPULSEMATRA(TString filename, T
328    //    //
329    TCanvas *figura2 = new TCanvas("Calorimeter_tracks", "Calorimeter_tracks", 750, 650);    TCanvas *figura2 = new TCanvas("Calorimeter_tracks", "Calorimeter_tracks", 750, 650);
330    figura2->SetFillColor(10);    figura2->SetFillColor(10);
331    figura2->Range(0,0,100,100);    //
332    Int_t ci = 0;    Int_t ci = 0;
333    int stoppa = 0;    int stoppa = 0;
334    while ( ci < ncalibs ){    while ( ci < ncalibs ){
335      stoppa = 0;      stoppa = 0;
336      int per = 0;      int per = 0;
337      figura2->Clear();      figura2->Clear();
338        figura2->Range(0,0,100,100);
339        stringstream errore;
340        //figura2->SetFillColor(10);
341        errore.str("");
342        errore << "EXPERT  --  File: " << file;
343        errore << " ";
344        TLatex *t=new TLatex();
345        t->SetTextFont(32);
346        t->SetTextColor(1);
347        t->SetTextAlign(12);
348        t->SetTextSize(0.015);
349        t->DrawLatex(2.,99.,errore.str().c_str());
350      //      //
351      // Book the histograms:      // Book the histograms:
352      //      //
# Line 323  void FCaloPULSEMATRA(TString filename, T Line 364  void FCaloPULSEMATRA(TString filename, T
364      // figures:      // figures:
365      //      //
366      Int_t bgcolor = 10;      Int_t bgcolor = 10;
367      TLatex *t=new TLatex();      t=new TLatex();
368      t->SetTextFont(32);      t->SetTextFont(32);
369      t->SetTextColor(1);      t->SetTextColor(1);
370      t->SetTextSize(0.03);      t->SetTextSize(0.03);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23