Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:34:32

0001 void SiPixelDigiCompare()
0002 {
0003 
0004  gROOT ->Reset();
0005  char*  sfilename = "pixeldigihisto.root";
0006  char*  rfilename = "../pixeldigihisto.root"; 
0007 
0008  delete gROOT->GetListOfFiles()->FindObject(rfilename);
0009  delete gROOT->GetListOfFiles()->FindObject(sfilename);
0010 
0011  TText* te = new TText();
0012  TFile * rfile = new TFile(rfilename);
0013  TDirectory * rdir=gDirectory; 
0014  TFile * sfile = new TFile(sfilename);
0015  TDirectory * sdir=gDirectory; 
0016  Char_t histo[200];
0017 
0018 
0019  TLegend leg(0.3, 0.83, 0.55, 0.90);
0020  //Get list of Keys from the Reference file.
0021   TList* ref_list = rfile->GetListOfKeys() ;
0022   if (!ref_list) {
0023       std::cout<<"=========>> AutoComaprison:: There is no Keys available in the Reference file."<<std::endl;
0024       exit(1) ;
0025    }
0026 
0027   //Get list of Keys from the New file.
0028   TList* new_list = sfile->GetListOfKeys() ;
0029   if (!new_list) {
0030       std::cout<<"=========>> AutoComaprison:: There is no Keys available in New file."<<std::endl;
0031       exit(1) ;
0032    }
0033 
0034 
0035   //Iterate on the List of Keys of the  Reference file.
0036   TIter     refkey_iter( ref_list) ;
0037   TKey*     ref_key ;
0038   TObject*  ref_obj ;
0039 
0040   char rver[50];
0041   char cver[50];
0042   while ( ref_key = (TKey*) refkey_iter() ) {
0043       ref_obj = ref_key->ReadObj() ;
0044       if (strcmp(ref_obj->IsA()->GetName(),"TObjString")==0) {
0045 
0046          TObjString * rversion = dynamic_cast< TObjString*> (ref_obj);
0047          sprintf(rver, "%s", rversion->GetName());
0048          std::cout<<" Ref. version =" << rver<<std::endl;
0049          break;
0050 
0051       }
0052   }
0053 
0054   //Iterate on the List of Keys of the  Reference file.
0055   TIter     newkey_iter( new_list) ;
0056   TKey*     new_key ;
0057   TObject*  new_obj ;
0058   while ( new_key = (TKey*) newkey_iter() ) {
0059       new_obj = new_key->ReadObj() ;
0060       if (strcmp(new_obj->IsA()->GetName(),"TObjString")==0) {
0061 
0062          TObjString * cversion = dynamic_cast< TObjString*> (new_obj);
0063          sprintf(cver, "%s", cversion->GetName());
0064          std::cout<<" Cur version =" << cver<<std::endl;
0065          break;
0066 
0067       }
0068   }
0069 
0070  if(rfile->cd("DQMData/Run 1/TrackerDigisV"))rfile->cd("DQMData/Run 1/TrackerDigisV/Run summary/TrackerDigis/Pixel");
0071  else rfile->cd("DQMData/TrackerDigisV/TrackerDigis/Pixel");
0072  rdir=gDirectory;
0073 
0074  if(sfile->cd("DQMData/Run 1/TrackerDigisV"))sfile->cd("DQMData/Run 1/TrackerDigisV/Run summary/TrackerDigis/Pixel");
0075  else sfile->cd("DQMData/TrackerDigisV/TrackerDigis/Pixel");
0076  sdir=gDirectory; 
0077 
0078  gROOT->ProcessLine(".x HistoCompare.C");
0079  HistoCompare * myPV = new HistoCompare();
0080 
0081 ////////////////////////////////////
0082 //            Barrel Pixel        //
0083 ////////////////////////////////////
0084 
0085 ///1st Layer
0086 if (1) {
0087    TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
0088    Pixel->Divide(2,4);
0089 
0090    TH1* meAdcLadder_[8];
0091    TH1* newmeAdcLadder_[8];
0092 
0093    for (Int_t i=0; i<8; i++){
0094       sprintf(histo,"adc_layer1ring%d;1",i+1);
0095       rdir->GetObject(histo ,meAdcLadder_[i]);
0096       sdir->GetObject(histo ,newmeAdcLadder_[i]); 
0097       meAdcLadder_[i];
0098       newmeAdcLadder_[i];
0099       Pixel->cd(i+1);
0100       gPad->SetLogy();
0101       meAdcLadder_[i]->SetLineColor(2);
0102       meAdcLadder_[i]->Draw();
0103       newmeAdcLadder_[i]->SetLineColor(4);
0104       newmeAdcLadder_[i]->SetLineStyle(2);
0105       newmeAdcLadder_[i]->Draw("Sames"); 
0106       myPV->PVCompute(meAdcLadder_[i] , newmeAdcLadder_[i] , te );
0107       leg.Clear();
0108       leg.AddEntry(meAdcLadder_[i],rver , "l");
0109       leg.AddEntry(newmeAdcLadder_[i],cver , "l");
0110       leg.Draw();
0111 
0112 
0113     }
0114    
0115    Pixel->Print("AdcOfPXBLayer1_compare.eps");
0116    Pixel->Print("AdcOfPXBLayer1_compare.gif");
0117 }
0118 
0119 if (1) {
0120    TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
0121    Pixel->Divide(2,4);
0122 
0123    TH1* meAdcLadder_[8];
0124    TH1* newmeAdcLadder_[8];
0125 
0126    for (Int_t i=0; i<8; i++){
0127       sprintf(histo,"row_layer1ring%d;1",i+1);
0128       rdir->GetObject(histo ,meAdcLadder_[i]);
0129       sdir->GetObject(histo ,newmeAdcLadder_[i]);
0130       meAdcLadder_[i];
0131       newmeAdcLadder_[i];
0132 
0133       Pixel->cd(i+1);
0134       meAdcLadder_[i]->Draw();
0135       meAdcLadder_[i]->SetLineColor(2);
0136       newmeAdcLadder_[i]->SetLineColor(4);
0137       newmeAdcLadder_[i]->SetLineStyle(2); 
0138       newmeAdcLadder_[i]->Draw("Sames");
0139       myPV->PVCompute(meAdcLadder_[i] , newmeAdcLadder_[i] , te );
0140       leg.Clear();
0141       leg.AddEntry(meAdcLadder_[i],rver , "l");
0142       leg.AddEntry(newmeAdcLadder_[i],cver , "l");
0143       leg.Draw();
0144 
0145     }
0146 
0147    Pixel->Print("RowOfPXBLayer1_compare.eps");
0148    Pixel->Print("RowOfPXBLayer1_compare.gif");
0149 }
0150 
0151 if (1) {
0152    TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
0153    Pixel->Divide(2,4);
0154 
0155    TH1* meAdcLadder_[8];
0156    TH1* newmeAdcLadder_[8];
0157 
0158    for (Int_t i=0; i<8; i++){
0159       sprintf(histo,"col_layer1ring%d;1",i+1);
0160       rdir->GetObject(histo ,meAdcLadder_[i]);
0161       sdir->GetObject(histo ,newmeAdcLadder_[i]); 
0162       meAdcLadder_[i];
0163       newmeAdcLadder_[i];
0164       Pixel->cd(i+1);
0165       meAdcLadder_[i]->SetLineColor(2);  
0166       meAdcLadder_[i]->Draw();
0167       newmeAdcLadder_[i]->SetLineColor(4);
0168       newmeAdcLadder_[i]->SetLineStyle(2);   
0169       newmeAdcLadder_[i]->Draw("Sames");
0170       myPV->PVCompute(meAdcLadder_[i] , newmeAdcLadder_[i] , te );
0171       leg.Clear();
0172       leg.AddEntry(meAdcLadder_[i],rver , "l");
0173       leg.AddEntry(newmeAdcLadder_[i],cver , "l");
0174       leg.Draw();
0175 
0176     }
0177 
0178    Pixel->Print("ColOfPXBLayer1_compare.eps");
0179    Pixel->Print("ColOfPXBLayer1_compare.gif");
0180 }
0181 
0182 if (1) {
0183   TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
0184    Pixel->Divide(2,4);
0185 
0186    TH1* meAdcLadder_[8];
0187    TH1* newmeAdcLadder_[8];
0188 
0189    for (Int_t i=0; i<8; i++){
0190       sprintf(histo,"digimulti_layer1ring%d;1",i+1);
0191       rdir->GetObject(histo ,meAdcLadder_[i]);
0192       sdir->GetObject(histo ,newmeAdcLadder_[i]);
0193       meAdcLadder_[i];
0194       newmeAdcLadder_[i];
0195       Pixel->cd(i+1);
0196       gPad->SetLogy();
0197       meAdcLadder_[i]->SetLineColor(2);
0198       meAdcLadder_[i]->Draw();
0199       newmeAdcLadder_[i]->SetLineColor(4);
0200       newmeAdcLadder_[i]->SetLineStyle(2);
0201       newmeAdcLadder_[i]->Draw("Sames");
0202       myPV->PVCompute(meAdcLadder_[i] , newmeAdcLadder_[i] , te );
0203       leg.Clear();
0204       leg.AddEntry(meAdcLadder_[i],rver , "l");
0205       leg.AddEntry(newmeAdcLadder_[i],cver , "l");
0206       leg.Draw();
0207 
0208     }
0209 
0210 
0211    Pixel->Print("DigiMultiPXBLayer1_compare.eps");
0212    Pixel->Print("DigiMultiPXBLayer1_compare.gif");
0213 }
0214 
0215 ///2nd Layer
0216 
0217 if (1) {
0218    TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
0219    Pixel->Divide(2,4);
0220 
0221    TH1* meAdcLadder_[8];
0222    TH1* newmeAdcLadder_[8];
0223    for (Int_t i=0; i<8; i++){
0224       sprintf(histo,"adc_layer2ring%d;1",i+1);
0225       rdir->GetObject(histo ,meAdcLadder_[i]);
0226       sdir->GetObject(histo ,newmeAdcLadder_[i]);
0227       meAdcLadder_[i];
0228       newmeAdcLadder_[i]; 
0229       Pixel->cd(i+1);
0230       gPad->SetLogy();
0231       meAdcLadder_[i]->SetLineColor(2);
0232       meAdcLadder_[i]->Draw();
0233       newmeAdcLadder_[i]->SetLineColor(4);
0234       newmeAdcLadder_[i]->SetLineStyle(2);
0235       newmeAdcLadder_[i]->Draw("Sames");
0236       myPV->PVCompute(meAdcLadder_[i] , newmeAdcLadder_[i] , te );
0237       leg.Clear();
0238       leg.AddEntry(meAdcLadder_[i],rver , "l");
0239       leg.AddEntry(newmeAdcLadder_[i],cver , "l");
0240       leg.Draw();
0241   
0242     }
0243 
0244    Pixel->Print("AdcOfPXBLayer2_compare.eps");
0245    Pixel->Print("AdcOfPXBLayer2_compare.gif");
0246 }
0247 
0248 if (1) {
0249    TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
0250    Pixel->Divide(2,4);
0251 
0252    TH1* meAdcLadder_[8];
0253    TH1* newmeAdcLadder_[8];
0254    for (Int_t i=0; i<8; i++){
0255       sprintf(histo,"row_layer2ring%d;1",i+1);
0256       rdir->GetObject(histo ,meAdcLadder_[i]);
0257       sdir->GetObject(histo ,newmeAdcLadder_[i]);
0258       meAdcLadder_[i];
0259       newmeAdcLadder_[i];
0260       Pixel->cd(i+1);
0261       meAdcLadder_[i]->SetLineColor(2);
0262       meAdcLadder_[i]->Draw();
0263       newmeAdcLadder_[i]->SetLineColor(4);
0264       newmeAdcLadder_[i]->SetLineStyle(2);
0265       newmeAdcLadder_[i]->Draw("Sames");
0266       myPV->PVCompute(meAdcLadder_[i] , newmeAdcLadder_[i] , te );
0267       leg.Clear();
0268       leg.AddEntry(meAdcLadder_[i],rver , "l");
0269       leg.AddEntry(newmeAdcLadder_[i],cver , "l");
0270       leg.Draw();
0271 
0272     }
0273 
0274    Pixel->Print("RowOfPXBLayer2_compare.eps");
0275    Pixel->Print("RowOfPXBLayer2_compare.gif");
0276 }
0277 
0278 if (1) {
0279    TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
0280    Pixel->Divide(2,4);
0281 
0282    TH1* meAdcLadder_[8];
0283    TH1* newmeAdcLadder_[8];
0284    for (Int_t i=0; i<8; i++){
0285       sprintf(histo,"col_layer2ring%d;1",i+1);
0286       rdir->GetObject(histo ,meAdcLadder_[i]);
0287       sdir->GetObject(histo ,newmeAdcLadder_[i]);
0288       meAdcLadder_[i];
0289       newmeAdcLadder_[i];
0290       Pixel->cd(i+1);
0291       meAdcLadder_[i]->SetLineColor(2);  
0292       meAdcLadder_[i]->Draw();
0293       newmeAdcLadder_[i]->SetLineColor(4);
0294       newmeAdcLadder_[i]->SetLineStyle(2);
0295       newmeAdcLadder_[i]->Draw("Sames");
0296       myPV->PVCompute(meAdcLadder_[i] , newmeAdcLadder_[i] , te );
0297       leg.Clear();
0298       leg.AddEntry(meAdcLadder_[i],rver , "l");
0299       leg.AddEntry(newmeAdcLadder_[i],cver , "l");
0300       leg.Draw();
0301 
0302     }
0303   
0304    Pixel->Print("ColOfPXBLayer2_compare.eps");
0305    Pixel->Print("ColOfPXBLayer2_compare.gif");
0306 }
0307 if (1) {
0308   TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
0309    Pixel->Divide(2,4);
0310 
0311    TH1* meAdcLadder_[8];
0312    TH1* newmeAdcLadder_[8];
0313 
0314    for (Int_t i=0; i<8; i++){
0315       sprintf(histo,"digimulti_layer2ring%d;1",i+1);
0316       rdir->GetObject(histo ,meAdcLadder_[i]);
0317       sdir->GetObject(histo ,newmeAdcLadder_[i]);
0318       meAdcLadder_[i];
0319       newmeAdcLadder_[i];
0320       Pixel->cd(i+1);
0321       gPad->SetLogy();
0322       meAdcLadder_[i]->SetLineColor(2);
0323       meAdcLadder_[i]->Draw();
0324       newmeAdcLadder_[i]->SetLineColor(4);
0325       newmeAdcLadder_[i]->SetLineStyle(2);
0326       newmeAdcLadder_[i]->Draw("Sames");
0327       myPV->PVCompute(meAdcLadder_[i] , newmeAdcLadder_[i] , te );
0328       leg.Clear();
0329       leg.AddEntry(meAdcLadder_[i],rver , "l");
0330       leg.AddEntry(newmeAdcLadder_[i],cver , "l");
0331       leg.Draw();
0332 
0333     }
0334 
0335 
0336    Pixel->Print("DigiMultiPXBLayer2_compare.eps");
0337    Pixel->Print("DigiMultiPXBLayer2_compare.gif");
0338 }
0339 
0340 ///3rd Layer
0341 if (1) {
0342    TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
0343    Pixel->Divide(2,4);
0344 
0345    TH1* meAdcLadder_[8];
0346    TH1* newmeAdcLadder_[8];
0347 
0348    for (Int_t i=0; i<8; i++){
0349       sprintf(histo,"adc_layer3ring%d;1",i+1);
0350       rdir->GetObject(histo ,meAdcLadder_[i]);
0351       sdir->GetObject(histo ,newmeAdcLadder_[i]);
0352       meAdcLadder_[i];
0353       newmeAdcLadder_[i];
0354       Pixel->cd(i+1);
0355       gPad->SetLogy();
0356       meAdcLadder_[i]->SetLineColor(2);
0357       meAdcLadder_[i]->Draw();
0358       newmeAdcLadder_[i]->SetLineColor(4);
0359       newmeAdcLadder_[i]->SetLineStyle(2);
0360       newmeAdcLadder_[i]->Draw("Sames");
0361       myPV->PVCompute(meAdcLadder_[i] , newmeAdcLadder_[i] , te );
0362       leg.Clear();
0363       leg.AddEntry(meAdcLadder_[i],rver , "l");
0364       leg.AddEntry(newmeAdcLadder_[i],cver , "l");
0365       leg.Draw();
0366  
0367     }
0368 
0369    Pixel->Print("AdcOfPXBLayer3_compare.eps");
0370    Pixel->Print("AdcOfPXBLayer3_compare.gif");
0371 }
0372 if (1) {
0373    TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
0374    Pixel->Divide(2,4);
0375 
0376    TH1* meAdcLadder_[8];
0377    TH1* newmeAdcLadder_[8];
0378 
0379    for (Int_t i=0; i<8; i++){
0380       sprintf(histo,"row_layer3ring%d;1",i+1);
0381       rdir->GetObject(histo ,meAdcLadder_[i]);
0382       sdir->GetObject(histo ,newmeAdcLadder_[i]);
0383       meAdcLadder_[i];
0384       newmeAdcLadder_[i];
0385       Pixel->cd(i+1);
0386       meAdcLadder_[i]->SetLineColor(2);
0387       meAdcLadder_[i]->Draw();
0388       newmeAdcLadder_[i]->SetLineColor(4);
0389       newmeAdcLadder_[i]->SetLineStyle(2);
0390       newmeAdcLadder_[i]->Draw("Sames");
0391       myPV->PVCompute(meAdcLadder_[i] , newmeAdcLadder_[i] , te );
0392       leg.Clear();
0393       leg.AddEntry(meAdcLadder_[i],rver , "l");
0394       leg.AddEntry(newmeAdcLadder_[i],cver , "l");
0395       leg.Draw();
0396 
0397     }
0398 
0399    Pixel->Print("RowOfPXBLayer3_compare.eps");
0400    Pixel->Print("RowOfPXBLayer3_compare.gif");
0401 }
0402 
0403 if (1) {
0404    TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
0405    Pixel->Divide(2,4);
0406 
0407    TH1* meAdcLadder_[8];
0408    TH1* newmeAdcLadder_[8];
0409 
0410    for (Int_t i=0; i<8; i++){
0411       sprintf(histo,"col_layer3ring%d;1",i+1);
0412       rdir->GetObject(histo ,meAdcLadder_[i]);
0413       sdir->GetObject(histo ,newmeAdcLadder_[i]);
0414       meAdcLadder_[i];
0415       newmeAdcLadder_[i];
0416       Pixel->cd(i+1);
0417       meAdcLadder_[i]->SetLineColor(2);
0418       meAdcLadder_[i]->Draw();
0419       newmeAdcLadder_[i]->SetLineColor(4);
0420       newmeAdcLadder_[i]->SetLineStyle(2);
0421       newmeAdcLadder_[i]->Draw("Sames");
0422       myPV->PVCompute(meAdcLadder_[i] , newmeAdcLadder_[i] , te );
0423       leg.Clear();
0424       leg.AddEntry(meAdcLadder_[i],rver , "l");
0425       leg.AddEntry(newmeAdcLadder_[i],cver , "l");
0426       leg.Draw();
0427 
0428     }
0429 
0430    Pixel->Print("ColOfPXBLayer3_compare.eps");
0431    Pixel->Print("ColOfPXBLayer3_compare.gif");
0432 }
0433 
0434 /* digi multiplicity per ring */
0435 if (1) {
0436   TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
0437    Pixel->Divide(2,4);
0438 
0439    TH1* meAdcLadder_[8];
0440    TH1* newmeAdcLadder_[8];
0441 
0442    for (Int_t i=0; i<8; i++){
0443       sprintf(histo,"digimulti_layer3ring%d;1",i+1);
0444       rdir->GetObject(histo ,meAdcLadder_[i]);
0445       sdir->GetObject(histo ,newmeAdcLadder_[i]);
0446       meAdcLadder_[i];
0447       newmeAdcLadder_[i];
0448       Pixel->cd(i+1);
0449       gPad->SetLogy();
0450       meAdcLadder_[i]->SetLineColor(2);
0451       meAdcLadder_[i]->Draw();
0452       newmeAdcLadder_[i]->SetLineColor(4);
0453       newmeAdcLadder_[i]->SetLineStyle(2);
0454       newmeAdcLadder_[i]->Draw("Sames");
0455       myPV->PVCompute(meAdcLadder_[i] , newmeAdcLadder_[i] , te );
0456       leg.Clear();
0457       leg.AddEntry(meAdcLadder_[i],rver , "l");
0458       leg.AddEntry(newmeAdcLadder_[i],cver , "l");
0459       leg.Draw();
0460 
0461     }
0462 
0463 
0464    Pixel->Print("DigiMultiPXBLayer3_compare.eps");
0465    Pixel->Print("DigiMultiPXBLayer3_compare.gif");
0466 }
0467 
0468 /* Digi Number versus Ladder Num. */
0469 if (1) {
0470   TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
0471    Pixel->Divide(1,3);
0472    TProfile* meLadder_[3];
0473    TProfile* newmeLadder_[3];
0474 
0475    for (Int_t i=0; i<3; i++){
0476       sprintf(histo,"digi_layer%d_ladders;1",i+1);
0477       rdir->GetObject(histo ,meLadder_[i]);
0478       sdir->GetObject(histo ,newmeLadder_[i]);
0479       meLadder_[i];
0480       newmeLadder_[i];
0481       Pixel->cd(i+1);
0482       //gPad->SetLogy();
0483       meLadder_[i]->SetLineColor(2);
0484       meLadder_[i]->Draw();
0485       newmeAdcLadder_[i]->SetLineColor(4);
0486       newmeLadder_[i]->SetLineStyle(2);
0487       newmeLadder_[i]->Draw("Sames");
0488       myPV->PVCompute(meLadder_[i] , newmeLadder_[i] , te );
0489       leg.Clear();
0490       leg.AddEntry(meAdcLadder_[i],rver , "l");
0491       leg.AddEntry(newmeAdcLadder_[i],cver , "l");
0492       leg.Draw();
0493 
0494     }
0495 
0496    Pixel->Print("DigiMultiPXBLadders_compare.eps");
0497    Pixel->Print("DigiMultiPXBLadders_compare.gif");
0498 }
0499 
0500 ///////////////////////////////////////////////////
0501 //        Forward Pixel  Plots                  //
0502 //////////////////////////////////////////////////
0503 /*  Z Minus Side Disk 1 */
0504 if (1) {
0505    TCanvas * Pixel = new TCanvas("Pixel","Pixel",1000,1000);
0506    Pixel->Divide(2,2);
0507 
0508    TH1* meAdc_[4];
0509    TH1* newmeAdc_[4];
0510    for (Int_t i=0; i<4; i++){
0511       sprintf(histo,"adc_zm_disk1_panel1_plaq%d;1",i+1);
0512       rdir->GetObject(histo ,meAdc_[i]);
0513       sdir->GetObject(histo ,newmeAdc_[i]);
0514       meAdc_[i];
0515       newmeAdc_[i];
0516       Pixel->cd(i+1);
0517       gPad->SetLogy();
0518       meAdc_[i]->SetLineColor(2);
0519       newmeAdc_[i]->SetLineColor(4);
0520       newmeAdc_[i]->SetLineStyle(2);
0521       meAdc_[i]->Draw();
0522       newmeAdc_[i]->Draw("sames");
0523       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);  
0524       leg.Clear();
0525       leg.AddEntry(meAdc_[i],rver , "l");
0526       leg.AddEntry(newmeAdc_[i],cver , "l");
0527       leg.Draw();
0528 
0529     }
0530 
0531    Pixel->Print("AdcZmDisk1Panel1_compare.eps");
0532    Pixel->Print("AdcZmDisk1Panel1_compare.gif");
0533 }
0534 if (1) {
0535    TCanvas * Pixel = new TCanvas("Pixel","Pixel",1000,1000);
0536    Pixel->Divide(2,2);
0537 
0538    TH1* meAdc_[4];
0539    TH1* newmeAdc_[4];
0540    for (Int_t i=0; i<4; i++){
0541       sprintf(histo,"row_zm_disk1_panel1_plaq%d;1",i+1);
0542       rdir->GetObject(histo ,meAdc_[i]);
0543       sdir->GetObject(histo ,newmeAdc_[i]);
0544       meAdc_[i];
0545       newmeAdc_[i];
0546       Pixel->cd(i+1);
0547       meAdc_[i]->SetLineColor(2);
0548       newmeAdc_[i]->SetLineColor(4);
0549       newmeAdc_[i]->SetLineStyle(2);
0550       meAdc_[i]->Draw();
0551       newmeAdc_[i]->Draw("sames");
0552       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0553       leg.Clear();
0554       leg.AddEntry(meAdc_[i],rver , "l");
0555       leg.AddEntry(newmeAdc_[i],cver , "l");
0556       leg.Draw();
0557 
0558     }
0559 
0560    Pixel->Print("RowZmDisk1Panel1_compare.eps");
0561    Pixel->Print("RowZmDisk1Panel1_compare.gif");
0562 }
0563 
0564 if (1) {
0565    TCanvas * Pixel = new TCanvas("Pixel","Pixel",1000,1000);
0566    Pixel->Divide(2,2);
0567 
0568    TH1* meAdc_[4];
0569    TH1* newmeAdc_[4];
0570 
0571    for (Int_t i=0; i<4; i++){
0572       sprintf(histo,"col_zm_disk1_panel1_plaq%d;1",i+1);
0573       rdir->GetObject(histo ,meAdc_[i]);
0574       sdir->GetObject(histo ,newmeAdc_[i]);
0575       meAdc_[i];
0576       newmeAdc_[i];
0577       Pixel->cd(i+1);
0578       meAdc_[i]->SetLineColor(2);
0579       newmeAdc_[i]->SetLineColor(4);
0580       newmeAdc_[i]->SetLineStyle(2);
0581       meAdc_[i]->Draw();
0582       newmeAdc_[i]->Draw("sames");
0583       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0584       leg.Clear();
0585       leg.AddEntry(meAdc_[i],rver , "l");
0586       leg.AddEntry(newmeAdc_[i],cver , "l");
0587       leg.Draw();
0588 
0589     }
0590 
0591    Pixel->Print("ColZmDisk1Panel1_compare.eps");
0592    Pixel->Print("ColZmDisk1Panel1_compare.gif");
0593 }
0594 
0595 if (1) {
0596    TCanvas * Pixel = new TCanvas("Pixel","Pixel",600,1000);
0597    Pixel->Divide(1,3);
0598    
0599    TH1* meAdc_[3];
0600    TH1* newmeAdc_[4];
0601    for (Int_t i=0; i<3; i++){
0602       sprintf(histo,"adc_zm_disk1_panel2_plaq%d;1",i+1);
0603       rdir->GetObject(histo ,meAdc_[i]);
0604        sdir->GetObject(histo ,newmeAdc_[i]);
0605       meAdc_[i];
0606       newmeAdc_[i];
0607       Pixel->cd(i+1);
0608       gPad->SetLogy();
0609       meAdc_[i]->SetLineColor(2);
0610       newmeAdc_[i]->SetLineColor(4);
0611       newmeAdc_[i]->SetLineStyle(2);
0612       meAdc_[i]->Draw();
0613       newmeAdc_[i]->Draw("sames");
0614       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0615       leg.Clear();
0616       leg.AddEntry(meAdc_[i],rver , "l");
0617       leg.AddEntry(newmeAdc_[i],cver , "l");
0618       leg.Draw();
0619 
0620     }
0621 
0622    Pixel->Print("AdcZmDisk1Panel2_compare.eps");
0623    Pixel->Print("AdcZmDisk1Panel2_compare.gif");
0624 }
0625 
0626 if (1) {
0627    TCanvas * Pixel = new TCanvas("Pixel","Pixel",600,1000);
0628    Pixel->Divide(1,3);
0629 
0630    TH1* meAdc_[3];
0631    TH1* newmeAdc_[4];
0632 
0633    for (Int_t i=0; i<3; i++){
0634       sprintf(histo,"row_zm_disk1_panel2_plaq%d;1",i+1);
0635       rdir->GetObject(histo ,meAdc_[i]);
0636       sdir->GetObject(histo ,newmeAdc_[i]);
0637       meAdc_[i];
0638       newmeAdc_[i];
0639       Pixel->cd(i+1);
0640       meAdc_[i]->SetLineColor(2);
0641       newmeAdc_[i]->SetLineColor(4);
0642       newmeAdc_[i]->SetLineStyle(2);
0643       meAdc_[i]->Draw();
0644       newmeAdc_[i]->Draw("sames");
0645       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0646       leg.Clear();
0647       leg.AddEntry(meAdc_[i],rver , "l");
0648       leg.AddEntry(newmeAdc_[i],cver , "l");
0649       leg.Draw();
0650 
0651     }
0652 
0653    Pixel->Print("RowZmDisk1Panel2_compare.eps");
0654    Pixel->Print("RowZmDisk1Panel2_compare.gif");
0655 }
0656 if (1) {
0657    TCanvas * Pixel = new TCanvas("Pixel","Pixel",600,1000);
0658    Pixel->Divide(1,3);
0659 
0660    TH1* meAdc_[3];
0661    TH1* newmeAdc_[4];
0662 
0663    for (Int_t i=0; i<3; i++){
0664       sprintf(histo,"col_zm_disk1_panel2_plaq%d;1",i+1);
0665       rdir->GetObject(histo ,meAdc_[i]);
0666       sdir->GetObject(histo ,newmeAdc_[i]);
0667       meAdc_[i];
0668       newmeAdc_[i];
0669       Pixel->cd(i+1);
0670       meAdc_[i]->SetLineColor(2);
0671       newmeAdc_[i]->SetLineColor(4);
0672       newmeAdc_[i]->SetLineStyle(2);
0673       meAdc_[i]->Draw();
0674       newmeAdc_[i]->Draw("sames");
0675       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0676       leg.Clear();
0677       leg.AddEntry(meAdc_[i],rver , "l");
0678       leg.AddEntry(newmeAdc_[i],cver , "l");
0679       leg.Draw();
0680 
0681     }
0682 
0683    Pixel->Print("ColZmDisk1Panel2_compare.eps");
0684    Pixel->Print("ColZmDisk1Panel2_compare.gif");
0685 }
0686 
0687 /* Z Minus Side Disk 2 */
0688 if (1) {
0689    TCanvas * Pixel = new TCanvas("Pixel","Pixel",1000,1000);
0690    Pixel->Divide(2,2);
0691 
0692    TH1* meAdc_[4];
0693    TH1* newmeAdc_[4];
0694    for (Int_t i=0; i<4; i++){
0695       sprintf(histo,"adc_zm_disk2_panel1_plaq%d;1",i+1);
0696       rdir->GetObject(histo ,meAdc_[i]);
0697       sdir->GetObject(histo ,newmeAdc_[i]);
0698       meAdc_[i];
0699       newmeAdc_[i];
0700       Pixel->cd(i+1);
0701       gPad->SetLogy();
0702       meAdc_[i]->SetLineColor(2);
0703       newmeAdc_[i]->SetLineColor(4);
0704       newmeAdc_[i]->SetLineStyle(2);
0705       meAdc_[i]->Draw();
0706       newmeAdc_[i]->Draw("sames");
0707       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0708       leg.Clear();
0709       leg.AddEntry(meAdc_[i],rver , "l");
0710       leg.AddEntry(newmeAdc_[i],cver , "l");
0711       leg.Draw();
0712 
0713     }
0714 
0715    Pixel->Print("AdcZmDisk2Panel1_compare.eps");
0716    Pixel->Print("AdcZmDisk2Panel1_compare.gif");
0717 }
0718 if (1) {
0719    TCanvas * Pixel = new TCanvas("Pixel","Pixel",1000,1000);
0720    Pixel->Divide(2,2);
0721 
0722    TH1* meAdc_[4];
0723    TH1* newmeAdc_[4];
0724    for (Int_t i=0; i<4; i++){
0725       sprintf(histo,"row_zm_disk2_panel1_plaq%d;1",i+1);
0726       rdir->GetObject(histo ,meAdc_[i]);
0727       sdir->GetObject(histo ,newmeAdc_[i]);
0728       meAdc_[i];
0729       newmeAdc_[i];
0730       Pixel->cd(i+1);
0731       meAdc_[i]->SetLineColor(2);
0732       newmeAdc_[i]->SetLineColor(4);
0733       newmeAdc_[i]->SetLineStyle(2);
0734       meAdc_[i]->Draw();
0735       newmeAdc_[i]->Draw("sames");
0736       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0737       leg.Clear();
0738       leg.AddEntry(meAdc_[i],rver , "l");
0739       leg.AddEntry(newmeAdc_[i],cver , "l");
0740       leg.Draw();
0741 
0742     }
0743 
0744    Pixel->Print("RowZmDisk2Panel1_compare.eps");
0745    Pixel->Print("RowZmDisk2Panel1_compare.gif");
0746 }
0747 if (1) {
0748    TCanvas * Pixel = new TCanvas("Pixel","Pixel",1000,1000);
0749    Pixel->Divide(2,2);
0750 
0751    TH1* meAdc_[4];
0752    TH1* newmeAdc_[4];
0753 
0754    for (Int_t i=0; i<4; i++){
0755       sprintf(histo,"col_zm_disk2_panel1_plaq%d;1",i+1);
0756       rdir->GetObject(histo ,meAdc_[i]);
0757       sdir->GetObject(histo ,newmeAdc_[i]);
0758       meAdc_[i]; 
0759       newmeAdc_[i];
0760       Pixel->cd(i+1);
0761       meAdc_[i]->SetLineColor(2);
0762       newmeAdc_[i]->SetLineColor(4);
0763       newmeAdc_[i]->SetLineStyle(2);
0764       meAdc_[i]->Draw();
0765       newmeAdc_[i]->Draw("sames");
0766       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0767       leg.Clear();
0768       leg.AddEntry(meAdc_[i],rver , "l");
0769       leg.AddEntry(newmeAdc_[i],cver , "l");
0770       leg.Draw();
0771 
0772     }
0773 
0774    Pixel->Print("ColZmDisk2Panel1_compare.eps");
0775    Pixel->Print("ColZmDisk2Panel1_compare.gif");
0776 }
0777 
0778 if (1) {
0779    TCanvas * Pixel = new TCanvas("Pixel","Pixel",600,1000);
0780    Pixel->Divide(1,3);
0781 
0782    TH1* meAdc_[3];
0783    TH1* newmeAdc_[4];
0784 
0785    for (Int_t i=0; i<3; i++){
0786       sprintf(histo,"adc_zm_disk2_panel2_plaq%d;1",i+1);
0787       rdir->GetObject(histo ,meAdc_[i]);
0788       sdir->GetObject(histo ,newmeAdc_[i]);
0789       meAdc_[i];
0790       newmeAdc_[i];
0791       Pixel->cd(i+1);
0792       gPad->SetLogy();
0793       meAdc_[i]->SetLineColor(2);
0794       newmeAdc_[i]->SetLineColor(4);
0795       newmeAdc_[i]->SetLineStyle(2);
0796       meAdc_[i]->Draw();
0797       newmeAdc_[i]->Draw("sames");
0798       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0799       leg.Clear();
0800       leg.AddEntry(meAdc_[i],rver , "l");
0801       leg.AddEntry(newmeAdc_[i],cver , "l");
0802       leg.Draw();
0803 
0804     }
0805 
0806    Pixel->Print("AdcZmDisk2Panel2_compare.eps");
0807    Pixel->Print("AdcZmDisk2Panel2_compare.gif");
0808 }
0809 if (1) {
0810    TCanvas * Pixel = new TCanvas("Pixel","Pixel",600,1000);
0811    Pixel->Divide(1,3);
0812 
0813    TH1* meAdc_[3];
0814    TH1* newmeAdc_[4];
0815 
0816    for (Int_t i=0; i<3; i++){
0817       sprintf(histo,"row_zm_disk2_panel2_plaq%d;1",i+1);
0818       rdir->GetObject(histo ,meAdc_[i]);
0819       sdir->GetObject(histo ,newmeAdc_[i]);
0820       meAdc_[i];
0821       newmeAdc_[i];
0822       Pixel->cd(i+1);
0823       meAdc_[i]->SetLineColor(2);
0824       newmeAdc_[i]->SetLineColor(4);
0825       newmeAdc_[i]->SetLineStyle(2);
0826       meAdc_[i]->Draw();
0827       newmeAdc_[i]->Draw("sames");
0828       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0829       leg.Clear();
0830       leg.AddEntry(meAdc_[i],rver , "l");
0831       leg.AddEntry(newmeAdc_[i],cver , "l");
0832       leg.Draw();
0833 
0834     }
0835 
0836    Pixel->Print("RowZmDisk2Panel2_compare.eps");
0837    Pixel->Print("RowZmDisk2Panel2_compare.gif");
0838 }
0839 if (1) {
0840    TCanvas * Pixel = new TCanvas("Pixel","Pixel",600,1000);
0841    Pixel->Divide(1,3);
0842 
0843    TH1* meAdc_[3];
0844    TH1* newmeAdc_[4];
0845 
0846    for (Int_t i=0; i<3; i++){
0847       sprintf(histo,"col_zm_disk2_panel2_plaq%d;1",i+1);
0848       rdir->GetObject(histo ,meAdc_[i]);
0849       sdir->GetObject(histo ,newmeAdc_[i]);
0850       meAdc_[i];
0851       newmeAdc_[i];
0852       Pixel->cd(i+1);
0853       meAdc_[i]->SetLineColor(2);
0854       newmeAdc_[i]->SetLineColor(4);
0855       newmeAdc_[i]->SetLineStyle(2);
0856       meAdc_[i]->Draw();
0857       newmeAdc_[i]->Draw("sames");
0858       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0859       leg.Clear();
0860       leg.AddEntry(meAdc_[i],rver , "l");
0861       leg.AddEntry(newmeAdc_[i],cver , "l");
0862       leg.Draw();
0863 
0864     }
0865 
0866    Pixel->Print("ColZmDisk2Panel2_compare.eps");
0867    Pixel->Print("ColZmDisk2Panel2_compare.gif");
0868 }
0869 
0870 /*  Z Plus  Side  Disk 1 */
0871 if (1) {
0872    TCanvas * Pixel = new TCanvas("Pixel","Pixel",1000,1000);
0873    Pixel->Divide(2,2);
0874 
0875    TH1* meAdc_[4];
0876    TH1* newmeAdc_[4];
0877 
0878    for (Int_t i=0; i<4; i++){
0879       sprintf(histo,"adc_zp_disk1_panel1_plaq%d;1",i+1);
0880       rdir->GetObject(histo ,meAdc_[i]);
0881       sdir->GetObject(histo ,newmeAdc_[i]);
0882       meAdc_[i];
0883       newmeAdc_[i];
0884       Pixel->cd(i+1);
0885       gPad->SetLogy();
0886       meAdc_[i]->SetLineColor(2);
0887       newmeAdc_[i]->SetLineColor(4);
0888       newmeAdc_[i]->SetLineStyle(2);
0889       meAdc_[i]->Draw();
0890       newmeAdc_[i]->Draw("sames");
0891       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0892       leg.Clear();
0893       leg.AddEntry(meAdc_[i],rver , "l");
0894       leg.AddEntry(newmeAdc_[i],cver , "l");
0895       leg.Draw();
0896 
0897     }
0898 
0899    Pixel->Print("AdcZpDisk1Panel1_compare.eps");
0900    Pixel->Print("AdcZpDisk1Panel1_compare.gif");
0901 }
0902 
0903 if (1) {
0904    TCanvas * Pixel = new TCanvas("Pixel","Pixel",1000,1000);
0905    Pixel->Divide(2,2);
0906 
0907    TH1* meAdc_[4];
0908    TH1* newmeAdc_[4];
0909 
0910    for (Int_t i=0; i<4; i++){
0911       sprintf(histo,"row_zp_disk1_panel1_plaq%d;1",i+1);
0912       rdir->GetObject(histo ,meAdc_[i]);
0913       sdir->GetObject(histo ,newmeAdc_[i]);
0914       meAdc_[i];
0915       newmeAdc_[i];
0916       Pixel->cd(i+1);
0917       meAdc_[i]->SetLineColor(2);
0918       newmeAdc_[i]->SetLineColor(4);
0919       newmeAdc_[i]->SetLineStyle(2);
0920       meAdc_[i]->Draw();
0921       newmeAdc_[i]->Draw("sames");
0922       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0923       leg.Clear();
0924       leg.AddEntry(meAdc_[i],rver , "l");
0925       leg.AddEntry(newmeAdc_[i],cver , "l");
0926       leg.Draw();
0927 
0928     }
0929 
0930    Pixel->Print("RowZpDisk1Panel1_compare.eps");
0931    Pixel->Print("RowZpDisk1Panel1_compare.gif");
0932 }
0933 if (1) {
0934    TCanvas * Pixel = new TCanvas("Pixel","Pixel",1000,1000);
0935    Pixel->Divide(2,2);
0936 
0937    TH1* meAdc_[4];
0938    TH1* newmeAdc_[4];
0939 
0940    for (Int_t i=0; i<4; i++){
0941       sprintf(histo,"col_zp_disk1_panel1_plaq%d;1",i+1);
0942       rdir->GetObject(histo ,meAdc_[i]);
0943       sdir->GetObject(histo ,newmeAdc_[i]);  
0944       meAdc_[i];
0945       newmeAdc_[i];
0946       Pixel->cd(i+1);
0947       meAdc_[i]->SetLineColor(2);
0948       newmeAdc_[i]->SetLineColor(4);
0949       newmeAdc_[i]->SetLineStyle(2);
0950       meAdc_[i]->Draw();
0951       newmeAdc_[i]->Draw("sames");
0952       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0953       leg.Clear();
0954       leg.AddEntry(meAdc_[i],rver , "l");
0955       leg.AddEntry(newmeAdc_[i],cver , "l");
0956       leg.Draw();
0957 
0958     }
0959 
0960    Pixel->Print("ColZpDisk1Panel1_compare.eps");
0961    Pixel->Print("ColZpDisk1Panel1_compare.gif");
0962 }
0963 
0964 if (1) {
0965    TCanvas * Pixel = new TCanvas("Pixel","Pixel",600,1000);
0966    Pixel->Divide(1,3);
0967 
0968    TH1* meAdc_[3];
0969    TH1* newmeAdc_[4];
0970 
0971    for (Int_t i=0; i<3; i++){
0972       sprintf(histo,"adc_zp_disk1_panel2_plaq%d;1",i+1);
0973       rdir->GetObject(histo ,meAdc_[i]);
0974       sdir->GetObject(histo ,newmeAdc_[i]);
0975       meAdc_[i];
0976       newmeAdc_[i];
0977       Pixel->cd(i+1);
0978       gPad->SetLogy();
0979       meAdc_[i]->SetLineColor(2);
0980       newmeAdc_[i]->SetLineColor(4);
0981       newmeAdc_[i]->SetLineStyle(2);
0982       meAdc_[i]->Draw();
0983       newmeAdc_[i]->Draw("sames");
0984       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
0985       leg.Clear();
0986       leg.AddEntry(meAdc_[i],rver , "l");
0987       leg.AddEntry(newmeAdc_[i],cver , "l");
0988       leg.Draw();
0989 
0990     }
0991 
0992    Pixel->Print("AdcZpDisk1Panel2_compare.eps");
0993    Pixel->Print("AdcZpDisk1Panel2_compare.gif");
0994 }
0995 if (1) {
0996    TCanvas * Pixel = new TCanvas("Pixel","Pixel",600,1000);
0997    Pixel->Divide(1,3);
0998 
0999    TH1* meAdc_[3];
1000    TH1* newmeAdc_[4];
1001 
1002    for (Int_t i=0; i<3; i++){
1003       sprintf(histo,"row_zp_disk1_panel2_plaq%d;1",i+1);
1004       rdir->GetObject(histo ,meAdc_[i]);
1005       sdir->GetObject(histo ,newmeAdc_[i]);
1006       meAdc_[i];
1007       newmeAdc_[i];
1008       Pixel->cd(i+1);
1009       meAdc_[i]->SetLineColor(2);
1010       newmeAdc_[i]->SetLineColor(4);
1011       newmeAdc_[i]->SetLineStyle(2);
1012       meAdc_[i]->Draw();
1013       newmeAdc_[i]->Draw("sames");
1014       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
1015       leg.Clear();
1016       leg.AddEntry(meAdc_[i],rver , "l");
1017       leg.AddEntry(newmeAdc_[i],cver , "l");
1018       leg.Draw();
1019 
1020     }
1021 
1022    Pixel->Print("RowZpDisk1Panel2_compare.eps");
1023    Pixel->Print("RowZpDisk1Panel2_compare.gif");
1024 }
1025 if (1) {
1026    TCanvas * Pixel = new TCanvas("Pixel","Pixel",600,1000);
1027    Pixel->Divide(1,3);
1028 
1029    TH1* meAdc_[3];
1030    TH1* newmeAdc_[4];
1031 
1032    for (Int_t i=0; i<3; i++){
1033       sprintf(histo,"col_zp_disk1_panel2_plaq%d;1",i+1);
1034       rdir->GetObject(histo ,meAdc_[i]);
1035       sdir->GetObject(histo ,newmeAdc_[i]);
1036       meAdc_[i];
1037       newmeAdc_[i];
1038       Pixel->cd(i+1);
1039       meAdc_[i]->SetLineColor(2);
1040       newmeAdc_[i]->SetLineColor(4);
1041       newmeAdc_[i]->SetLineStyle(2);
1042       meAdc_[i]->Draw();
1043       newmeAdc_[i]->Draw("sames");
1044       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
1045       leg.Clear();
1046       leg.AddEntry(meAdc_[i],rver , "l");
1047       leg.AddEntry(newmeAdc_[i],cver , "l");
1048       leg.Draw();
1049 
1050     }
1051 
1052    Pixel->Print("ColZpDisk1Panel2_compare.eps");
1053    Pixel->Print("ColZpDisk1Panel2_compare.gif");
1054 }
1055 
1056 /* Z Plus Side  Disk2 */
1057 if (1) {
1058    TCanvas * Pixel = new TCanvas("Pixel","Pixel",1000,1000);
1059    Pixel->Divide(2,2);
1060 
1061    TH1* meAdc_[4];
1062    TH1* newmeAdc_[4];
1063 
1064    for (Int_t i=0; i<4; i++){
1065       sprintf(histo,"adc_zp_disk2_panel1_plaq%d;1",i+1);
1066       rdir->GetObject(histo ,meAdc_[i]);
1067       sdir->GetObject(histo ,newmeAdc_[i]);
1068       meAdc_[i];
1069       newmeAdc_[i];
1070       Pixel->cd(i+1);
1071       gPad->SetLogy();
1072       meAdc_[i]->SetLineColor(2);
1073       newmeAdc_[i]->SetLineColor(4);
1074       newmeAdc_[i]->SetLineStyle(2); 
1075       meAdc_[i]->Draw();
1076       newmeAdc_[i]->Draw("sames");
1077       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
1078       leg.Clear();
1079       leg.AddEntry(meAdc_[i],rver , "l");
1080       leg.AddEntry(newmeAdc_[i],cver , "l");
1081       leg.Draw();
1082 
1083     }
1084 
1085    Pixel->Print("AdcZpDisk2Panel1_compare.eps");
1086    Pixel->Print("AdcZpDisk2Panel1_compare.gif");
1087 }
1088 if (1) {
1089    TCanvas * Pixel = new TCanvas("Pixel","Pixel",1000,1000);
1090    Pixel->Divide(2,2);
1091 
1092    TH1* meAdc_[4];
1093    TH1* newmeAdc_[4];
1094    for (Int_t i=0; i<4; i++){
1095       sprintf(histo,"row_zp_disk2_panel1_plaq%d;1",i+1);
1096       rdir->GetObject(histo ,meAdc_[i]);
1097       sdir->GetObject(histo ,newmeAdc_[i]);
1098       meAdc_[i];
1099       newmeAdc_[i];
1100       Pixel->cd(i+1);
1101       meAdc_[i]->SetLineColor(2);
1102       newmeAdc_[i]->SetLineColor(4);
1103       newmeAdc_[i]->SetLineStyle(2);
1104       meAdc_[i]->Draw();
1105       newmeAdc_[i]->Draw("sames");
1106       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
1107       leg.Clear();
1108       leg.AddEntry(meAdc_[i],rver , "l");
1109       leg.AddEntry(newmeAdc_[i],cver , "l");
1110       leg.Draw();
1111 
1112     }
1113 
1114    Pixel->Print("RowZpDisk2Panel1_compare.eps");
1115    Pixel->Print("RowZpDisk2Panel1_compare.gif");
1116 }
1117 if (1) {
1118    TCanvas * Pixel = new TCanvas("Pixel","Pixel",1000,1000);
1119    Pixel->Divide(2,2);
1120 
1121    TH1* meAdc_[4];
1122    TH1* newmeAdc_[4];
1123 
1124    for (Int_t i=0; i<4; i++){
1125       sprintf(histo,"col_zp_disk2_panel1_plaq%d;1",i+1);
1126       rdir->GetObject(histo ,meAdc_[i]);
1127       sdir->GetObject(histo ,newmeAdc_[i]);
1128       meAdc_[i];
1129       newmeAdc_[i];
1130       Pixel->cd(i+1);
1131       meAdc_[i]->SetLineColor(2);
1132       newmeAdc_[i]->SetLineColor(4);
1133       newmeAdc_[i]->SetLineStyle(2);
1134       meAdc_[i]->Draw();
1135       newmeAdc_[i]->Draw("sames");
1136       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
1137       leg.Clear();
1138       leg.AddEntry(meAdc_[i],rver , "l");
1139       leg.AddEntry(newmeAdc_[i],cver , "l");
1140       leg.Draw();
1141 
1142     }
1143 
1144    Pixel->Print("ColZpDisk2Panel1_compare.eps");
1145    Pixel->Print("ColZpDisk2Panel1_compare.gif");
1146 }
1147 
1148 
1149 if (1) {
1150    TCanvas * Pixel = new TCanvas("Pixel","Pixel",600,1000);
1151    Pixel->Divide(1,3);
1152 
1153    TH1* meAdc_[3];
1154    TH1* newmeAdc_[4];
1155 
1156    for (Int_t i=0; i<3; i++){
1157       sprintf(histo,"adc_zp_disk2_panel2_plaq%d;1",i+1);
1158       rdir->GetObject(histo ,meAdc_[i]);
1159       sdir->GetObject(histo ,newmeAdc_[i]);
1160       meAdc_[i];
1161       newmeAdc_[i];
1162       Pixel->cd(i+1);
1163       gPad->SetLogy();
1164       meAdc_[i]->SetLineColor(2);
1165       newmeAdc_[i]->SetLineColor(4);
1166       newmeAdc_[i]->SetLineStyle(2);
1167       meAdc_[i]->Draw();
1168       newmeAdc_[i]->Draw("sames");
1169       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
1170       leg.Clear();
1171       leg.AddEntry(meAdc_[i],rver , "l");
1172       leg.AddEntry(newmeAdc_[i],cver , "l");
1173       leg.Draw();
1174 
1175     }
1176 
1177    Pixel->Print("AdcZpDisk2Panel2_compare.eps");
1178    Pixel->Print("AdcZpDisk2Panel2_compare.gif");
1179 }
1180 
1181 if (1) {
1182    TCanvas * Pixel = new TCanvas("Pixel","Pixel",600,1000);
1183    Pixel->Divide(1,3);
1184 
1185    TH1* meAdc_[3];
1186    TH1* newmeAdc_[4];
1187 
1188    for (Int_t i=0; i<3; i++){
1189       sprintf(histo,"row_zp_disk2_panel2_plaq%d;1",i+1);
1190       rdir->GetObject(histo ,meAdc_[i]);
1191       sdir->GetObject(histo ,newmeAdc_[i]);
1192       meAdc_[i];
1193       newmeAdc_[i];
1194       Pixel->cd(i+1);
1195       meAdc_[i]->SetLineColor(2);
1196       newmeAdc_[i]->SetLineColor(4);
1197       newmeAdc_[i]->SetLineStyle(2);
1198       meAdc_[i]->Draw();
1199       newmeAdc_[i]->Draw("sames");
1200       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
1201       leg.Clear();
1202       leg.AddEntry(meAdc_[i],rver , "l");
1203       leg.AddEntry(newmeAdc_[i],cver , "l");
1204       leg.Draw();
1205 
1206     }
1207 
1208    Pixel->Print("RowZpDisk2Panel2_compare.eps");
1209    Pixel->Print("RowZpDisk2Panel2_compare.gif");
1210 }
1211 if (1) {
1212    TCanvas * Pixel = new TCanvas("Pixel","Pixel",600,1000);
1213    Pixel->Divide(1,3);
1214 
1215    TH1* meAdc_[3];
1216    TH1* newmeAdc_[4];
1217 
1218    for (Int_t i=0; i<3; i++){
1219       sprintf(histo,"col_zp_disk2_panel2_plaq%d;1",i+1);
1220       rdir->GetObject(histo ,meAdc_[i]);
1221       sdir->GetObject(histo ,newmeAdc_[i]);
1222       meAdc_[i];
1223       newmeAdc_[i];
1224       Pixel->cd(i+1);
1225       meAdc_[i]->SetLineColor(2);
1226       newmeAdc_[i]->SetLineColor(4);
1227       newmeAdc_[i]->SetLineStyle(2);
1228       meAdc_[i]->Draw();
1229       newmeAdc_[i]->Draw("sames");
1230       myPV->PVCompute(meAdc_[i],newmeAdc_[i],te);
1231       leg.Clear();
1232       leg.AddEntry(meAdc_[i],rver , "l");
1233       leg.AddEntry(newmeAdc_[i],cver , "l");
1234       leg.Draw();
1235 
1236     }
1237 
1238    Pixel->Print("ColZpDisk2Panel2_compare.eps");
1239    Pixel->Print("ColZpDisk2Panel2_compare.gif");
1240 }
1241 
1242 if (1) {
1243    TCanvas * Pixel = new TCanvas("Pixel","Pixel",800,1200);
1244    Pixel->Divide(2,4);
1245 
1246    TH1* meMulti_[8];
1247    TH1* newmeMulti_[8];
1248 
1249       rdir->GetObject("digi_zp_disk1_panel1;1" ,meMulti_[0]);
1250       meMulti_[0];
1251       rdir->GetObject("digi_zp_disk1_panel2;1" ,meMulti_[1]);
1252       meMulti_[1];
1253       rdir->GetObject("digi_zp_disk2_panel1;1" ,meMulti_[2]);
1254       meMulti_[2];
1255       rdir->GetObject("digi_zp_disk2_panel2;1" ,meMulti_[3]);
1256       meMulti_[3];
1257       rdir->GetObject("digi_zm_disk1_panel1;1" ,meMulti_[4]);
1258       meMulti_[4];
1259       rdir->GetObject("digi_zm_disk1_panel2;1" ,meMulti_[5]);
1260       meMulti_[5];
1261       rdir->GetObject("digi_zm_disk2_panel1;1" ,meMulti_[6]);
1262       meMulti_[6];
1263       rdir->GetObject("digi_zm_disk2_panel2;1" ,meMulti_[7]);
1264       meMulti_[7];
1265 
1266       sdir->GetObject("digi_zp_disk1_panel1;1" ,newmeMulti_[0]);
1267       newmeMulti_[0];
1268       sdir->GetObject("digi_zp_disk1_panel2;1" ,newmeMulti_[1]);
1269       newmeMulti_[1];
1270       sdir->GetObject("digi_zp_disk2_panel1;1" ,newmeMulti_[2]);
1271       newmeMulti_[2];
1272       sdir->GetObject("digi_zp_disk2_panel2;1" ,newmeMulti_[3]);
1273       newmeMulti_[3];
1274       sdir->GetObject("digi_zm_disk1_panel1;1" ,newmeMulti_[4]);
1275       newmeMulti_[4];
1276       sdir->GetObject("digi_zm_disk1_panel2;1" ,newmeMulti_[5]);
1277       newmeMulti_[5];
1278       sdir->GetObject("digi_zm_disk2_panel1;1" ,newmeMulti_[6]);
1279       newmeMulti_[6];
1280       sdir->GetObject("digi_zm_disk2_panel2;1" ,newmeMulti_[7]);
1281       newmeMulti_[7];
1282 
1283    for(int i = 0; i< 8; i ++) {
1284       Pixel->cd(i+1);
1285       gPad->SetLogy();
1286       meMulti_[i]->SetLineColor(2);
1287       newmeMulti_[i]->SetLineColor(4);
1288       newmeMulti_[i]->SetLineStyle(2);
1289       meMulti_[i]->Draw();
1290       newmeMulti_[i]->Draw("sames");
1291       myPV->PVCompute(meMulti_[i],newmeMulti_[i],te);
1292       leg.Clear();
1293       leg.AddEntry(meMulti_[i],rver , "l");
1294       leg.AddEntry(newmeMulti_[i],cver , "l");
1295       leg.Draw();
1296 
1297    }
1298  
1299    Pixel->Print("DigiMultiOfEndcap_compare.eps");
1300    Pixel->Print("DigiMultiOfEndcap_compare.gif");
1301 }
1302 
1303 
1304 }