Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:33:44

0001 void SiStripDigiCompare()
0002 {
0003 
0004  gROOT ->Reset();
0005  char*  sfilename = "stripdigihisto.root";
0006  char*  rfilename = "../stripdigihisto.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 
0017  if(rfile->cd("DQMData/Run 1/TrackerDigisV"))rfile->cd("DQMData/Run 1/TrackerDigisV/Run summary/TrackerDigis/Strip");
0018  else rfile->cd("DQMData/TrackerDigisV/TrackerDigis/Strip");
0019  rdir=gDirectory;
0020 
0021  if(sfile->cd("DQMData/Run 1/TrackerDigisV"))sfile->cd("DQMData/Run 1/TrackerDigisV/Run summary/TrackerDigis/Strip");
0022  else sfile->cd("DQMData/TrackerDigisV/TrackerDigis/Strip");
0023  sdir=gDirectory; 
0024 
0025 TLegend leg(0.3, 0.83, 0.55, 0.90);
0026  //Get list of Keys from the Reference file.
0027   TList* ref_list = rfile->GetListOfKeys() ;
0028   if (!ref_list) {
0029       std::cout<<"=========>> AutoComaprison:: There is no Keys available in the Reference file."<<std::endl;
0030       exit(1) ;
0031    }
0032 
0033   //Get list of Keys from the New file.
0034   TList* new_list = sfile->GetListOfKeys() ;
0035   if (!new_list) {
0036       std::cout<<"=========>> AutoComaprison:: There is no Keys available in New file."<<std::endl;
0037       exit(1) ;
0038    }
0039 
0040 
0041   //Iterate on the List of Keys of the  Reference file.
0042   TIter     refkey_iter( ref_list) ;
0043   TKey*     ref_key ;
0044   TObject*  ref_obj ;
0045 
0046   char rver[50];
0047   char cver[50];
0048   while ( ref_key = (TKey*) refkey_iter() ) {
0049       ref_obj = ref_key->ReadObj() ;
0050       if (strcmp(ref_obj->IsA()->GetName(),"TObjString")==0) {
0051 
0052          TObjString * rversion = dynamic_cast< TObjString*> (ref_obj);
0053          sprintf(rver, "%s", rversion->GetName());
0054          std::cout<<" Ref. version =" << rver<<std::endl;
0055          break;
0056       }
0057   }
0058 
0059   //Iterate on the List of Keys of the  Reference file.
0060   TIter     newkey_iter( new_list) ;
0061   TKey*     new_key ;
0062   TObject*  new_obj ;
0063   while ( new_key = (TKey*) newkey_iter() ) {
0064       new_obj = new_key->ReadObj() ;
0065       if (strcmp(new_obj->IsA()->GetName(),"TObjString")==0) {
0066 
0067          TObjString * cversion = dynamic_cast< TObjString*> (new_obj);
0068          sprintf(cver, "%s", cversion->GetName());
0069          std::cout<<" Cur version =" << cver<<std::endl;
0070          break;
0071 
0072       }
0073   }
0074 
0075  //gDirectory->ls();
0076 
0077  Char_t histo[200];
0078 
0079  gROOT->ProcessLine(".x HistoCompare.C");
0080  HistoCompare * myPV = new HistoCompare();
0081 
0082 
0083 // TIB
0084  if (1) {
0085   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
0086    Strip->Divide(2,2);
0087 
0088    TH1* meNdigiTIB_[4];
0089    TH1* newmeNdigiTIB_[4];
0090 
0091    for (Int_t i=0; i<4; i++){
0092       sprintf(histo,"ndigi_tib_layer_%d_zm;1",i+1);
0093       rdir->GetObject(histo ,meNdigiTIB_[i]);
0094       sdir->GetObject(histo ,newmeNdigiTIB_[i]);
0095       meNdigiTIB_[i];
0096       newmeNdigiTIB_[i];
0097       Strip->cd(i+1);
0098       meNdigiTIB_[i]->SetLineColor(2);
0099       newmeNdigiTIB_[i]->SetLineColor(4);
0100       newmeNdigiTIB_[i]->SetLineStyle(2);
0101       meNdigiTIB_[i]->Draw();
0102       newmeNdigiTIB_[i]->Draw("sames");
0103       myPV->PVCompute(meNdigiTIB_[i] , newmeNdigiTIB_[i] , te );
0104       leg.Clear();
0105       leg.AddEntry(meNdigiTIB_[i],rver , "l");
0106       leg.AddEntry(newmeNdigiTIB_[i],cver , "l");
0107       leg.Draw();
0108 
0109    }
0110 
0111    Strip->Print("NdigiTIBCompare_ZM.eps");
0112    Strip->Print("NdigiTIBCompare_ZM.gif");
0113  }
0114 
0115  if (1) {
0116   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
0117    Strip->Divide(2,2);
0118 
0119    TH1* meNdigiTIB_[4];
0120    TH1* newmeNdigiTIB_[4];
0121 
0122    for (Int_t i=0; i<4; i++){
0123       sprintf(histo,"ndigi_tib_layer_%d_zp;1",i+1);
0124       rdir->GetObject(histo ,meNdigiTIB_[i]);
0125       sdir->GetObject(histo ,newmeNdigiTIB_[i]);
0126       meNdigiTIB_[i];
0127       newmeNdigiTIB_[i];
0128       Strip->cd(i+1);
0129       meNdigiTIB_[i]->SetLineColor(2);
0130       newmeNdigiTIB_[i]->SetLineColor(4);
0131       newmeNdigiTIB_[i]->SetLineStyle(2);
0132       meNdigiTIB_[i]->Draw();
0133       newmeNdigiTIB_[i]->Draw("sames");
0134       myPV->PVCompute(meNdigiTIB_[i] , newmeNdigiTIB_[i] , te );
0135       leg.Clear();
0136       leg.AddEntry(meNdigiTIB_[i],rver , "l");
0137       leg.AddEntry(newmeNdigiTIB_[i],cver , "l");
0138       leg.Draw();
0139 
0140    }
0141 
0142    Strip->Print("NdigiTIBCompare_ZP.eps");
0143    Strip->Print("NdigiTIBCompare_ZP.gif");
0144  }
0145 
0146 //TIB  1st Lyaer ADC of both sides
0147  if (1) {
0148   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
0149    Strip->Divide(3,4);
0150 
0151    TH1* meAdcTIB_[12];
0152    TH1* newmeAdcTIB_[12];
0153 
0154    for (Int_t i=0; i<3; i++){
0155       sprintf(histo,"adc_tib_layer1_extmodule%d_zp;1",i+1);
0156       rdir->GetObject(histo ,meAdcTIB_[i]);
0157       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0158       meAdcTIB_[i];
0159       newmeAdcTIB_[i];
0160       Strip->cd(i+1);
0161       gPad->SetLogy();
0162       meAdcTIB_[i]->SetLineColor(2);
0163       newmeAdcTIB_[i]->SetLineColor(4);
0164       newmeAdcTIB_[i]->SetLineStyle(2);
0165       meAdcTIB_[i]->Draw();
0166       newmeAdcTIB_[i]->Draw("sames");
0167       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0168       leg.Clear();
0169       leg.AddEntry(meAdcTIB_[i],rver , "l");
0170       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0171       leg.Draw();
0172 
0173    }
0174 
0175   
0176   for (Int_t i=3; i<6; i++){
0177       sprintf(histo,"adc_tib_layer1_intmodule%d_zp;1",i-2);
0178       rdir->GetObject(histo ,meAdcTIB_[i]);
0179       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0180       meAdcTIB_[i];
0181       newmeAdcTIB_[i];
0182       Strip->cd(i+1);
0183       gPad->SetLogy();
0184       meAdcTIB_[i]->SetLineColor(2);
0185       newmeAdcTIB_[i]->SetLineColor(4);
0186       newmeAdcTIB_[i]->SetLineStyle(2);
0187       meAdcTIB_[i]->Draw();
0188       newmeAdcTIB_[i]->Draw("sames");
0189       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0190       leg.Clear();
0191       leg.AddEntry(meAdcTIB_[i],rver , "l");
0192       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0193       leg.Draw();
0194 
0195    }
0196    for (Int_t i=6; i<9; i++){
0197       sprintf(histo,"adc_tib_layer1_extmodule%d_zm;1",i-5);
0198       rdir->GetObject(histo ,meAdcTIB_[i]);
0199       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0200       meAdcTIB_[i];
0201       newmeAdcTIB_[i];
0202       Strip->cd(i+1);
0203       gPad->SetLogy();
0204       meAdcTIB_[i]->SetLineColor(2);
0205       newmeAdcTIB_[i]->SetLineColor(4);
0206       newmeAdcTIB_[i]->SetLineStyle(2);
0207       meAdcTIB_[i]->Draw();
0208       newmeAdcTIB_[i]->Draw("sames");
0209       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0210       leg.Clear();
0211       leg.AddEntry(meAdcTIB_[i],rver , "l");
0212       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0213       leg.Draw();
0214 
0215    }
0216 
0217   for (Int_t i=9; i<12; i++){
0218       sprintf(histo,"adc_tib_layer1_intmodule%d_zm;1",i-8);
0219       rdir->GetObject(histo ,meAdcTIB_[i]);
0220       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0221       meAdcTIB_[i];
0222       newmeAdcTIB_[i];
0223       Strip->cd(i+1);
0224       gPad->SetLogy();
0225       meAdcTIB_[i]->SetLineColor(2);
0226       newmeAdcTIB_[i]->SetLineColor(4);
0227       newmeAdcTIB_[i]->SetLineStyle(2);
0228       meAdcTIB_[i]->Draw();
0229       newmeAdcTIB_[i]->Draw("sames");
0230       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0231       leg.Clear();
0232       leg.AddEntry(meAdcTIB_[i],rver , "l");
0233       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0234       leg.Draw();
0235 
0236    }
0237 
0238  Strip->Print("AdcOfTIBLayer1Compare.eps"); 
0239  Strip->Print("AdcOfTIBLayer1Compare.gif"); 
0240  }
0241 //TIB  1st Lyaer Strip of both sides
0242  if (1) {
0243   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
0244    Strip->Divide(3,4);
0245 
0246    TH1* meAdcTIB_[12];
0247    TH1* newmeAdcTIB_[12];
0248 
0249    for (Int_t i=0; i<3; i++){
0250       sprintf(histo,"strip_tib_layer1_extmodule%d_zp;1",i+1);
0251       rdir->GetObject(histo ,meAdcTIB_[i]);
0252       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0253       meAdcTIB_[i];
0254       newmeAdcTIB_[i];
0255       Strip->cd(i+1);
0256       gPad->SetLogy();
0257       meAdcTIB_[i]->SetLineColor(2);
0258       newmeAdcTIB_[i]->SetLineColor(4);
0259       newmeAdcTIB_[i]->SetLineStyle(2);
0260       meAdcTIB_[i]->Draw();
0261       newmeAdcTIB_[i]->Draw("sames");
0262       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0263       leg.Clear();
0264       leg.AddEntry(meAdcTIB_[i],rver , "l");
0265       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0266       leg.Draw();
0267 
0268    }
0269 
0270   for (Int_t i=3; i<6; i++){
0271       sprintf(histo,"strip_tib_layer1_intmodule%d_zp;1",i-2);
0272       rdir->GetObject(histo ,meAdcTIB_[i]);
0273       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0274       meAdcTIB_[i];
0275       newmeAdcTIB_[i];
0276       Strip->cd(i+1);
0277       gPad->SetLogy();
0278       meAdcTIB_[i]->SetLineColor(2);
0279       newmeAdcTIB_[i]->SetLineColor(4);
0280       newmeAdcTIB_[i]->SetLineStyle(2);
0281       meAdcTIB_[i]->Draw();
0282       newmeAdcTIB_[i]->Draw("sames");
0283       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0284       leg.Clear();
0285       leg.AddEntry(meAdcTIB_[i],rver , "l");
0286       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0287       leg.Draw();
0288 
0289    }
0290    for (Int_t i=6; i<9; i++){
0291       sprintf(histo,"strip_tib_layer1_extmodule%d_zm;1",i-5);
0292       rdir->GetObject(histo ,meAdcTIB_[i]);
0293       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0294       meAdcTIB_[i];
0295       newmeAdcTIB_[i];
0296       Strip->cd(i+1);
0297       gPad->SetLogy();
0298       meAdcTIB_[i]->SetLineColor(2);
0299       newmeAdcTIB_[i]->SetLineColor(4);
0300       newmeAdcTIB_[i]->SetLineStyle(2);
0301       meAdcTIB_[i]->Draw();
0302       newmeAdcTIB_[i]->Draw("sames");
0303       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0304       leg.Clear();
0305       leg.AddEntry(meAdcTIB_[i],rver , "l");
0306       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0307       leg.Draw();
0308 
0309    }
0310 
0311   for (Int_t i=9; i<12; i++){
0312       sprintf(histo,"strip_tib_layer1_intmodule%d_zm;1",i-8);
0313       rdir->GetObject(histo ,meAdcTIB_[i]);
0314       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0315       meAdcTIB_[i];
0316       newmeAdcTIB_[i];
0317       Strip->cd(i+1);
0318       gPad->SetLogy();
0319       meAdcTIB_[i]->SetLineColor(2);
0320       newmeAdcTIB_[i]->SetLineColor(4);
0321       newmeAdcTIB_[i]->SetLineStyle(2);
0322       meAdcTIB_[i]->Draw();
0323       newmeAdcTIB_[i]->Draw("sames");
0324       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0325       leg.Clear();
0326       leg.AddEntry(meAdcTIB_[i],rver , "l");
0327       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0328       leg.Draw();
0329 
0330    }
0331 
0332  Strip->Print("StripNumOfTIBLayer1Compare.eps");
0333  Strip->Print("StripNumOfTIBLayer1Compare.gif");
0334 
0335  }
0336 //ITB  2nd Lyaer
0337  if (1) {
0338   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
0339    Strip->Divide(3,4);
0340 
0341    TH1* meAdcTIB_[12];
0342    TH1* newmeAdcTIB_[12];
0343 
0344    for (Int_t i=0; i<3; i++){
0345       sprintf(histo,"adc_tib_layer2_extmodule%d_zp;1",i+1);
0346       rdir->GetObject(histo ,meAdcTIB_[i]);
0347       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0348       meAdcTIB_[i];
0349       newmeAdcTIB_[i];
0350       Strip->cd(i+1);
0351       gPad->SetLogy();
0352       meAdcTIB_[i]->SetLineColor(2);
0353       newmeAdcTIB_[i]->SetLineColor(4);
0354       newmeAdcTIB_[i]->SetLineStyle(2);
0355       meAdcTIB_[i]->Draw();
0356       newmeAdcTIB_[i]->Draw("sames");
0357       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0358       leg.Clear();
0359       leg.AddEntry(meAdcTIB_[i],rver , "l");
0360       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0361       leg.Draw();
0362 
0363    }
0364 
0365   for (Int_t i=3; i<6; i++){
0366       sprintf(histo,"adc_tib_layer2_intmodule%d_zp;1",i-2);
0367       rdir->GetObject(histo ,meAdcTIB_[i]);
0368       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0369       meAdcTIB_[i];
0370       newmeAdcTIB_[i];
0371       Strip->cd(i+1);
0372       gPad->SetLogy();
0373       meAdcTIB_[i]->SetLineColor(2);
0374       newmeAdcTIB_[i]->SetLineColor(4);
0375       newmeAdcTIB_[i]->SetLineStyle(2);
0376       meAdcTIB_[i]->Draw();
0377       newmeAdcTIB_[i]->Draw("sames");
0378       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0379       leg.Clear();
0380       leg.AddEntry(meAdcTIB_[i],rver , "l");
0381       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0382       leg.Draw();
0383 
0384    }
0385    for (Int_t i=6; i<9; i++){
0386       sprintf(histo,"adc_tib_layer2_extmodule%d_zm;1",i-5);
0387       rdir->GetObject(histo ,meAdcTIB_[i]);
0388       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0389       meAdcTIB_[i];
0390       newmeAdcTIB_[i];
0391       Strip->cd(i+1);
0392       gPad->SetLogy();
0393       meAdcTIB_[i]->SetLineColor(2);
0394       newmeAdcTIB_[i]->SetLineColor(4);
0395       newmeAdcTIB_[i]->SetLineStyle(2);
0396       meAdcTIB_[i]->Draw();
0397       newmeAdcTIB_[i]->Draw("sames");
0398       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0399       leg.Clear();
0400       leg.AddEntry(meAdcTIB_[i],rver , "l");
0401       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0402       leg.Draw();
0403 
0404    }
0405 
0406   for (Int_t i=9; i<12; i++){
0407       sprintf(histo,"adc_tib_layer2_intmodule%d_zm;1",i-8);
0408       rdir->GetObject(histo ,meAdcTIB_[i]);
0409       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0410       meAdcTIB_[i];
0411       newmeAdcTIB_[i];
0412       Strip->cd(i+1);
0413       gPad->SetLogy();
0414       meAdcTIB_[i]->SetLineColor(2);
0415       newmeAdcTIB_[i]->SetLineColor(4);
0416       newmeAdcTIB_[i]->SetLineStyle(2);
0417       meAdcTIB_[i]->Draw();
0418       newmeAdcTIB_[i]->Draw("sames");
0419       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0420       leg.Clear();
0421       leg.AddEntry(meAdcTIB_[i],rver , "l");
0422       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0423       leg.Draw();
0424 
0425    }
0426 
0427  Strip->Print("AdcOfTIBLayer2Compare.eps");
0428  Strip->Print("AdcOfTIBLayer2Compare.gif");
0429  }
0430 
0431  if (1) {
0432   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
0433    Strip->Divide(3,4);
0434 
0435    TH1* meAdcTIB_[12];
0436    TH1* newmeAdcTIB_[12];
0437 
0438    for (Int_t i=0; i<3; i++){
0439       sprintf(histo,"strip_tib_layer2_extmodule%d_zp;1",i+1);
0440       rdir->GetObject(histo ,meAdcTIB_[i]);
0441       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0442       meAdcTIB_[i];
0443       newmeAdcTIB_[i];
0444       Strip->cd(i+1);
0445       gPad->SetLogy();
0446       meAdcTIB_[i]->SetLineColor(2);
0447       newmeAdcTIB_[i]->SetLineColor(4);
0448       newmeAdcTIB_[i]->SetLineStyle(2);
0449       meAdcTIB_[i]->Draw();
0450       newmeAdcTIB_[i]->Draw("sames");
0451       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0452       leg.Clear();
0453       leg.AddEntry(meAdcTIB_[i],rver , "l");
0454       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0455       leg.Draw();
0456 
0457    }
0458 
0459   for (Int_t i=3; i<6; i++){
0460       sprintf(histo,"strip_tib_layer2_intmodule%d_zp;1",i-2);
0461       rdir->GetObject(histo ,meAdcTIB_[i]);
0462       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0463       meAdcTIB_[i];
0464       newmeAdcTIB_[i];
0465       Strip->cd(i+1);
0466       gPad->SetLogy();
0467       meAdcTIB_[i]->SetLineColor(2);
0468       newmeAdcTIB_[i]->SetLineColor(4);
0469       newmeAdcTIB_[i]->SetLineStyle(2);
0470       meAdcTIB_[i]->Draw();
0471       newmeAdcTIB_[i]->Draw("sames");
0472       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0473       leg.Clear();
0474       leg.AddEntry(meAdcTIB_[i],rver , "l");
0475       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0476       leg.Draw();
0477 
0478    }
0479    for (Int_t i=6; i<9; i++){
0480       sprintf(histo,"strip_tib_layer2_extmodule%d_zm;1",i-5);
0481       rdir->GetObject(histo ,meAdcTIB_[i]);
0482       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0483       meAdcTIB_[i];
0484       newmeAdcTIB_[i];
0485       Strip->cd(i+1);
0486       gPad->SetLogy();
0487       meAdcTIB_[i]->SetLineColor(2);
0488       newmeAdcTIB_[i]->SetLineColor(4);
0489       newmeAdcTIB_[i]->SetLineStyle(2);
0490       meAdcTIB_[i]->Draw();
0491       newmeAdcTIB_[i]->Draw("sames");
0492       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0493       leg.Clear();
0494       leg.AddEntry(meAdcTIB_[i],rver , "l");
0495       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0496       leg.Draw();
0497 
0498    }
0499 
0500   for (Int_t i=9; i<12; i++){
0501       sprintf(histo,"strip_tib_layer2_intmodule%d_zm;1",i-8);
0502       rdir->GetObject(histo ,meAdcTIB_[i]);
0503       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0504       meAdcTIB_[i];
0505       newmeAdcTIB_[i];
0506       Strip->cd(i+1);
0507       gPad->SetLogy();
0508       meAdcTIB_[i]->SetLineColor(2);
0509       newmeAdcTIB_[i]->SetLineColor(4);
0510       newmeAdcTIB_[i]->SetLineStyle(2);
0511       meAdcTIB_[i]->Draw();
0512       newmeAdcTIB_[i]->Draw("sames");
0513       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0514       leg.Clear();
0515       leg.AddEntry(meAdcTIB_[i],rver , "l");
0516       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0517       leg.Draw();
0518 
0519    }
0520 
0521  Strip->Print("StripNumOfTIBLayer2Compare.eps");
0522  Strip->Print("StripNumOfTIBLayer2Compare.gif");
0523 
0524  }
0525 // TIB  3rd Layer
0526  if (1) {
0527   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
0528    Strip->Divide(3,4);
0529 
0530    TH1* meAdcTIB_[12];
0531    TH1* newmeAdcTIB_[12];
0532 
0533    for (Int_t i=0; i<3; i++){
0534       sprintf(histo,"adc_tib_layer3_extmodule%d_zp;1",i+1);
0535       rdir->GetObject(histo ,meAdcTIB_[i]);
0536       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0537       meAdcTIB_[i];
0538       newmeAdcTIB_[i];
0539       Strip->cd(i+1);
0540       gPad->SetLogy();
0541       meAdcTIB_[i]->SetLineColor(2);
0542       newmeAdcTIB_[i]->SetLineColor(4);
0543       newmeAdcTIB_[i]->SetLineStyle(2);
0544       meAdcTIB_[i]->Draw();
0545       newmeAdcTIB_[i]->Draw("sames");
0546       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0547       leg.Clear();
0548       leg.AddEntry(meAdcTIB_[i],rver , "l");
0549       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0550       leg.Draw();
0551 
0552    }
0553 
0554   for (Int_t i=3; i<6; i++){
0555       sprintf(histo,"adc_tib_layer3_intmodule%d_zp;1",i-2);
0556       rdir->GetObject(histo ,meAdcTIB_[i]);
0557       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0558       meAdcTIB_[i];
0559       newmeAdcTIB_[i];
0560       Strip->cd(i+1);
0561       gPad->SetLogy();
0562       meAdcTIB_[i]->SetLineColor(2);
0563       newmeAdcTIB_[i]->SetLineColor(4);
0564       newmeAdcTIB_[i]->SetLineStyle(2);
0565       meAdcTIB_[i]->Draw();
0566       newmeAdcTIB_[i]->Draw("sames");
0567       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0568       leg.Clear();
0569       leg.AddEntry(meAdcTIB_[i],rver , "l");
0570       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0571       leg.Draw();
0572 
0573    }
0574    for (Int_t i=6; i<9; i++){
0575       sprintf(histo,"adc_tib_layer3_extmodule%d_zm;1",i-5);
0576       rdir->GetObject(histo ,meAdcTIB_[i]);
0577       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0578       meAdcTIB_[i];
0579       newmeAdcTIB_[i];
0580       Strip->cd(i+1);
0581       gPad->SetLogy();
0582       meAdcTIB_[i]->SetLineColor(2);
0583       newmeAdcTIB_[i]->SetLineColor(4);
0584       newmeAdcTIB_[i]->SetLineStyle(2);
0585       meAdcTIB_[i]->Draw();
0586       newmeAdcTIB_[i]->Draw("sames");
0587       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0588       leg.Clear();
0589       leg.AddEntry(meAdcTIB_[i],rver , "l");
0590       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0591       leg.Draw();
0592 
0593    }
0594 
0595   for (Int_t i=9; i<12; i++){
0596       sprintf(histo,"adc_tib_layer3_intmodule%d_zm;1",i-8);
0597       rdir->GetObject(histo ,meAdcTIB_[i]);
0598       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0599       meAdcTIB_[i];
0600       newmeAdcTIB_[i];
0601       Strip->cd(i+1);
0602       gPad->SetLogy();
0603       meAdcTIB_[i]->SetLineColor(2);
0604       newmeAdcTIB_[i]->SetLineColor(4);
0605       newmeAdcTIB_[i]->SetLineStyle(2);
0606       meAdcTIB_[i]->Draw();
0607       newmeAdcTIB_[i]->Draw("sames");
0608       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0609       leg.Clear();
0610       leg.AddEntry(meAdcTIB_[i],rver , "l");
0611       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0612       leg.Draw();
0613 
0614    }
0615 
0616  Strip->Print("AdcOfTIBLayer3Compare.eps");
0617  Strip->Print("AdcOfTIBLayer3Compare.gif");
0618  }
0619 
0620  if (1) {
0621   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
0622    Strip->Divide(3,4);
0623 
0624    TH1* meAdcTIB_[12];
0625    TH1* newmeAdcTIB_[12];
0626 
0627    for (Int_t i=0; i<3; i++){
0628       sprintf(histo,"strip_tib_layer3_extmodule%d_zp;1",i+1);
0629       rdir->GetObject(histo ,meAdcTIB_[i]);
0630       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0631       meAdcTIB_[i];
0632       newmeAdcTIB_[i];
0633       Strip->cd(i+1);
0634       gPad->SetLogy();
0635       meAdcTIB_[i]->SetLineColor(2);
0636       newmeAdcTIB_[i]->SetLineColor(4);
0637       newmeAdcTIB_[i]->SetLineStyle(2);
0638       meAdcTIB_[i]->Draw();
0639       newmeAdcTIB_[i]->Draw("sames");
0640       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0641       leg.Clear();
0642       leg.AddEntry(meAdcTIB_[i],rver , "l");
0643       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0644       leg.Draw();
0645 
0646    }
0647 
0648   for (Int_t i=3; i<6; i++){
0649       sprintf(histo,"strip_tib_layer3_intmodule%d_zp;1",i-2);
0650       rdir->GetObject(histo ,meAdcTIB_[i]);
0651       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0652       meAdcTIB_[i];
0653       newmeAdcTIB_[i];
0654       Strip->cd(i+1);
0655       gPad->SetLogy();
0656       meAdcTIB_[i]->SetLineColor(2);
0657       newmeAdcTIB_[i]->SetLineColor(4);
0658       newmeAdcTIB_[i]->SetLineStyle(2);
0659       meAdcTIB_[i]->Draw();
0660       newmeAdcTIB_[i]->Draw("sames");
0661       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0662       leg.Clear();
0663       leg.AddEntry(meAdcTIB_[i],rver , "l");
0664       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0665       leg.Draw();
0666 
0667    }
0668    for (Int_t i=6; i<9; i++){
0669       sprintf(histo,"strip_tib_layer3_extmodule%d_zm;1",i-5);
0670       rdir->GetObject(histo ,meAdcTIB_[i]);
0671       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0672       meAdcTIB_[i];
0673       newmeAdcTIB_[i];
0674       Strip->cd(i+1);
0675       gPad->SetLogy();
0676       meAdcTIB_[i]->SetLineColor(2);
0677       newmeAdcTIB_[i]->SetLineColor(4);
0678       newmeAdcTIB_[i]->SetLineStyle(2);
0679       meAdcTIB_[i]->Draw();
0680       newmeAdcTIB_[i]->Draw("sames");
0681       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0682       leg.Clear();
0683       leg.AddEntry(meAdcTIB_[i],rver , "l");
0684       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0685       leg.Draw();
0686 
0687    }
0688 
0689   for (Int_t i=9; i<12; i++){
0690       sprintf(histo,"strip_tib_layer3_intmodule%d_zm;1",i-8);
0691       rdir->GetObject(histo ,meAdcTIB_[i]);
0692       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0693       meAdcTIB_[i];
0694       newmeAdcTIB_[i];
0695       Strip->cd(i+1);
0696       gPad->SetLogy();
0697       meAdcTIB_[i]->SetLineColor(2);
0698       newmeAdcTIB_[i]->SetLineColor(4);
0699       newmeAdcTIB_[i]->SetLineStyle(2);
0700       meAdcTIB_[i]->Draw();
0701       newmeAdcTIB_[i]->Draw("sames");
0702       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0703       leg.Clear();
0704       leg.AddEntry(meAdcTIB_[i],rver , "l");
0705       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0706       leg.Draw();
0707 
0708    }
0709 
0710  Strip->Print("StripNumOfTIBLayer3Compare.eps");
0711  Strip->Print("StripNumOfTIBLayer3Compare.gif");
0712  }
0713 
0714 
0715 // TIB  4th Layer
0716  if (1) {
0717   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
0718    Strip->Divide(3,4);
0719 
0720    TH1* meAdcTIB_[12];
0721    TH1* newmeAdcTIB_[12];
0722 
0723    for (Int_t i=0; i<3; i++){
0724       sprintf(histo,"adc_tib_layer4_extmodule%d_zp;1",i+1);
0725       rdir->GetObject(histo ,meAdcTIB_[i]);
0726       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0727       meAdcTIB_[i];
0728       newmeAdcTIB_[i];
0729       Strip->cd(i+1);
0730       gPad->SetLogy();
0731       meAdcTIB_[i]->SetLineColor(2);
0732       newmeAdcTIB_[i]->SetLineColor(4);
0733       newmeAdcTIB_[i]->SetLineStyle(2);
0734       meAdcTIB_[i]->Draw();
0735       newmeAdcTIB_[i]->Draw("sames");
0736       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0737       leg.Clear();
0738       leg.AddEntry(meAdcTIB_[i],rver , "l");
0739       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0740       leg.Draw();
0741  
0742   }
0743 
0744   for (Int_t i=3; i<6; i++){
0745       sprintf(histo,"adc_tib_layer4_intmodule%d_zp;1",i-2);
0746       rdir->GetObject(histo ,meAdcTIB_[i]);
0747       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0748       meAdcTIB_[i];
0749       newmeAdcTIB_[i];
0750       Strip->cd(i+1);
0751       gPad->SetLogy();
0752       meAdcTIB_[i]->SetLineColor(2);
0753       newmeAdcTIB_[i]->SetLineColor(4);
0754       newmeAdcTIB_[i]->SetLineStyle(2);
0755       meAdcTIB_[i]->Draw();
0756       newmeAdcTIB_[i]->Draw("sames");
0757       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0758       leg.Clear();
0759       leg.AddEntry(meAdcTIB_[i],rver , "l");
0760       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0761       leg.Draw();
0762    }
0763    for (Int_t i=6; i<9; i++){
0764       sprintf(histo,"adc_tib_layer4_extmodule%d_zm;1",i-5);
0765       rdir->GetObject(histo ,meAdcTIB_[i]);
0766       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0767       meAdcTIB_[i];
0768       newmeAdcTIB_[i];
0769       Strip->cd(i+1);
0770       gPad->SetLogy();
0771       meAdcTIB_[i]->SetLineColor(2);
0772       newmeAdcTIB_[i]->SetLineColor(4);
0773       newmeAdcTIB_[i]->SetLineStyle(2);
0774       meAdcTIB_[i]->Draw();
0775       newmeAdcTIB_[i]->Draw("sames");
0776       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0777       leg.Clear();
0778       leg.AddEntry(meAdcTIB_[i],rver , "l");
0779       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0780       leg.Draw();
0781 
0782    }
0783 
0784   for (Int_t i=9; i<12; i++){
0785       sprintf(histo,"adc_tib_layer4_intmodule%d_zm;1",i-8);
0786       rdir->GetObject(histo ,meAdcTIB_[i]);
0787       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0788       meAdcTIB_[i];
0789       newmeAdcTIB_[i];
0790       Strip->cd(i+1);
0791       gPad->SetLogy();
0792       meAdcTIB_[i]->SetLineColor(2);
0793       newmeAdcTIB_[i]->SetLineColor(4);
0794       newmeAdcTIB_[i]->SetLineStyle(2);
0795       meAdcTIB_[i]->Draw();
0796       newmeAdcTIB_[i]->Draw("sames");
0797       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0798       leg.Clear();
0799       leg.AddEntry(meAdcTIB_[i],rver , "l");
0800       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0801       leg.Draw();
0802 
0803    }
0804 
0805  Strip->Print("AdcOfTIBLayer4Compare.eps");
0806  Strip->Print("AdcOfTIBLayer4Compare.gif");
0807  }
0808 
0809  if (1) {
0810   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
0811    Strip->Divide(3,4);
0812 
0813    TH1* meAdcTIB_[12];
0814    TH1* newmeAdcTIB_[12];
0815 
0816    for (Int_t i=0; i<3; i++){
0817       sprintf(histo,"strip_tib_layer4_extmodule%d_zp;1",i+1);
0818       rdir->GetObject(histo ,meAdcTIB_[i]);
0819       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0820       meAdcTIB_[i];
0821       newmeAdcTIB_[i];
0822       Strip->cd(i+1);
0823       gPad->SetLogy();
0824       meAdcTIB_[i]->SetLineColor(2);
0825       newmeAdcTIB_[i]->SetLineColor(4);
0826       newmeAdcTIB_[i]->SetLineStyle(2);
0827       meAdcTIB_[i]->Draw();
0828       newmeAdcTIB_[i]->Draw("sames");
0829       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0830       leg.Clear();
0831       leg.AddEntry(meAdcTIB_[i],rver , "l");
0832       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0833       leg.Draw();
0834 
0835    }
0836 
0837   for (Int_t i=3; i<6; i++){
0838       sprintf(histo,"strip_tib_layer4_intmodule%d_zp;1",i-2);
0839       rdir->GetObject(histo ,meAdcTIB_[i]);
0840       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0841       meAdcTIB_[i];
0842       newmeAdcTIB_[i];
0843       Strip->cd(i+1);
0844       gPad->SetLogy();
0845       meAdcTIB_[i]->SetLineColor(2);
0846       newmeAdcTIB_[i]->SetLineColor(4);
0847       newmeAdcTIB_[i]->SetLineStyle(2);
0848       meAdcTIB_[i]->Draw();
0849       newmeAdcTIB_[i]->Draw("sames");
0850       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0851       leg.Clear();
0852       leg.AddEntry(meAdcTIB_[i],rver , "l");
0853       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0854       leg.Draw();
0855 
0856    }
0857    for (Int_t i=6; i<9; i++){
0858       sprintf(histo,"strip_tib_layer4_extmodule%d_zm;1",i-5);
0859       rdir->GetObject(histo ,meAdcTIB_[i]);
0860       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0861       meAdcTIB_[i];
0862       newmeAdcTIB_[i];
0863       Strip->cd(i+1);
0864       gPad->SetLogy();
0865       meAdcTIB_[i]->SetLineColor(2);
0866       newmeAdcTIB_[i]->SetLineColor(4);
0867       newmeAdcTIB_[i]->SetLineStyle(2);
0868       meAdcTIB_[i]->Draw();
0869       newmeAdcTIB_[i]->Draw("sames");
0870       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0871       leg.Clear();
0872       leg.AddEntry(meAdcTIB_[i],rver , "l");
0873       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0874       leg.Draw();
0875 
0876    }
0877 
0878   for (Int_t i=9; i<12; i++){
0879       sprintf(histo,"strip_tib_layer4_intmodule%d_zm;1",i-8);
0880       rdir->GetObject(histo ,meAdcTIB_[i]);
0881       sdir->GetObject(histo ,newmeAdcTIB_[i]);
0882       meAdcTIB_[i];
0883       newmeAdcTIB_[i];
0884       Strip->cd(i+1);
0885       gPad->SetLogy();
0886       meAdcTIB_[i]->SetLineColor(2);
0887       newmeAdcTIB_[i]->SetLineColor(4);
0888       newmeAdcTIB_[i]->SetLineStyle(2);
0889       meAdcTIB_[i]->Draw();
0890       newmeAdcTIB_[i]->Draw("sames");
0891       myPV->PVCompute(meAdcTIB_[i] , newmeAdcTIB_[i] , te );
0892       leg.Clear();
0893       leg.AddEntry(meAdcTIB_[i],rver , "l");
0894       leg.AddEntry(newmeAdcTIB_[i],cver , "l");
0895       leg.Draw();
0896 
0897    }
0898 
0899  Strip->Print("StripNumOfTIBLayer4Compare.eps");
0900  Strip->Print("StripNumOfTIBLayer4Compare.gif");
0901 
0902  }
0903 
0904 
0905 
0906 //////////////////////////////////////
0907 // TOB
0908 
0909  if (1) {
0910   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
0911    Strip->Divide(2,3);
0912 
0913    TH1* meNdigiTOB_[6];
0914    TH1* newmeNdigiTOB_[6];
0915 
0916    for (Int_t i=0; i<6; i++){
0917       sprintf(histo,"ndigi_tob_layer_%d_zm;1",i+1);
0918       rdir->GetObject(histo ,meNdigiTOB_[i]);
0919       sdir->GetObject(histo ,newmeNdigiTOB_[i]);
0920       meNdigiTOB_[i];
0921       newmeNdigiTOB_[i];
0922       Strip->cd(i+1);
0923       meNdigiTOB_[i]->SetLineColor(2);
0924       newmeNdigiTOB_[i]->SetLineColor(4);
0925       newmeNdigiTOB_[i]->SetLineStyle(2);
0926       meNdigiTOB_[i]->Draw();
0927       newmeNdigiTOB_[i]->Draw("sames");
0928       myPV->PVCompute(meNdigiTOB_[i] , newmeNdigiTOB_[i] , te );
0929       leg.Clear();
0930       leg.AddEntry(meNdigiTOB_[i],rver , "l");
0931       leg.AddEntry(newmeNdigiTOB_[i],cver , "l");
0932       leg.Draw();
0933 
0934    }
0935 
0936    Strip->Print("NdigiTOBCompare_ZM.eps");
0937    Strip->Print("NdigiTOBCompare_ZM.gif");
0938  }
0939 
0940  if (1) {
0941   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
0942    Strip->Divide(2,3);
0943 
0944    TH1* meNdigiTOB_[6];
0945    TH1* newmeNdigiTOB_[6];
0946 
0947    for (Int_t i=0; i<6; i++){
0948       sprintf(histo,"ndigi_tob_layer_%d_zp;1",i+1);
0949       rdir->GetObject(histo ,meNdigiTOB_[i]);
0950       sdir->GetObject(histo ,newmeNdigiTOB_[i]);
0951       meNdigiTOB_[i];
0952       newmeNdigiTOB_[i];
0953       Strip->cd(i+1);
0954       gPad->SetLogy();
0955       meNdigiTOB_[i]->SetLineColor(2);
0956       newmeNdigiTOB_[i]->SetLineColor(4);
0957       newmeNdigiTOB_[i]->SetLineStyle(2);
0958       meNdigiTOB_[i]->Draw();
0959       newmeNdigiTOB_[i]->Draw("sames");
0960       myPV->PVCompute(meNdigiTOB_[i] , newmeNdigiTOB_[i] , te );
0961       leg.Clear();
0962       leg.AddEntry(meNdigiTOB_[i],rver , "l");
0963       leg.AddEntry(newmeNdigiTOB_[i],cver , "l");
0964       leg.Draw();
0965 
0966    }
0967 
0968    Strip->Print("NdigiTOBCompare_ZP.eps");
0969    Strip->Print("NdigiTOBCompare_ZP.gif");
0970  }
0971 
0972 //TOB 1st Layer
0973 
0974  if(1) {
0975    TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
0976    Strip->Divide(3,4);
0977 
0978    TH1* meAdcTOB_[12];
0979    TH1* newmeAdcTOB_[12];
0980 
0981    for (Int_t i=0; i<6; i++){
0982       sprintf(histo,"adc_tob_layer1_module%d_zp;1",i+1);
0983       rdir->GetObject(histo ,meAdcTOB_[i]);
0984       sdir->GetObject(histo ,newmeAdcTOB_[i]);
0985       meAdcTOB_[i];
0986       newmeAdcTOB_[i];
0987       Strip->cd(i+1);
0988       gPad->SetLogy();
0989       meAdcTOB_[i]->SetLineColor(2);
0990       newmeAdcTOB_[i]->SetLineColor(4);
0991       newmeAdcTOB_[i]->SetLineStyle(2);
0992       meAdcTOB_[i]->Draw();
0993       newmeAdcTOB_[i]->Draw("sames");
0994       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
0995       leg.Clear();
0996       leg.AddEntry(meAdcTOB_[i],rver , "l");
0997       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
0998       leg.Draw();
0999 
1000    }
1001    for (Int_t i=6; i<12; i++){
1002       sprintf(histo,"adc_tob_layer1_module%d_zm;1",i-5);
1003       rdir->GetObject(histo ,meAdcTOB_[i]);
1004       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1005       meAdcTOB_[i];
1006       newmeAdcTOB_[i];
1007       Strip->cd(i+1);
1008       gPad->SetLogy();
1009       meAdcTOB_[i]->SetLineColor(2);
1010       newmeAdcTOB_[i]->SetLineColor(4);
1011       newmeAdcTOB_[i]->SetLineStyle(2);
1012       meAdcTOB_[i]->Draw();
1013       newmeAdcTOB_[i]->Draw("sames");
1014       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1015       leg.Clear();
1016       leg.AddEntry(meAdcTOB_[i],rver , "l");
1017       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1018       leg.Draw();
1019 
1020    }
1021 
1022    Strip->Print("AdcOfTOBLayer1Compare.eps");
1023    Strip->Print("AdcOfTOBLayer1Compare.gif");
1024  }
1025 
1026  if(1) {
1027    TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
1028    Strip->Divide(3,4);
1029 
1030    TH1* meAdcTOB_[12];
1031    TH1* newmeAdcTOB_[12];
1032 
1033    for (Int_t i=0; i<6; i++){
1034       sprintf(histo,"strip_tob_layer1_module%d_zp;1",i+1);
1035       rdir->GetObject(histo ,meAdcTOB_[i]);
1036       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1037       meAdcTOB_[i];
1038       newmeAdcTOB_[i];
1039       Strip->cd(i+1);
1040       gPad->SetLogy();
1041       meAdcTOB_[i]->SetLineColor(2);
1042       newmeAdcTOB_[i]->SetLineColor(4);
1043       newmeAdcTOB_[i]->SetLineStyle(2);
1044       meAdcTOB_[i]->Draw();
1045       newmeAdcTOB_[i]->Draw("sames");
1046       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1047       leg.Clear();
1048       leg.AddEntry(meAdcTOB_[i],rver , "l");
1049       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1050       leg.Draw();
1051 
1052    }
1053    for (Int_t i=6; i<12; i++){
1054       sprintf(histo,"strip_tob_layer1_module%d_zm;1",i-5);
1055       rdir->GetObject(histo ,meAdcTOB_[i]);
1056       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1057       meAdcTOB_[i];
1058       newmeAdcTOB_[i];
1059       Strip->cd(i+1);
1060       gPad->SetLogy();
1061       meAdcTOB_[i]->SetLineColor(2);
1062       newmeAdcTOB_[i]->SetLineColor(4);
1063       newmeAdcTOB_[i]->SetLineStyle(2);
1064       meAdcTOB_[i]->Draw();
1065       newmeAdcTOB_[i]->Draw("sames");
1066       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1067       leg.Clear();
1068       leg.AddEntry(meAdcTOB_[i],rver , "l");
1069       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1070       leg.Draw();
1071 
1072    }
1073 
1074    Strip->Print("StripNumOfTOBLayer1Compare.eps");
1075    Strip->Print("StripNumOfTOBLayer1Compare.gif");
1076  }
1077 //TOB  2nd Layer
1078  if(1) {
1079    TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
1080    Strip->Divide(3,4);
1081 
1082    TH1* meAdcTOB_[12];
1083    TH1* newmeAdcTOB_[12];
1084 
1085    for (Int_t i=0; i<6; i++){
1086       sprintf(histo,"adc_tob_layer2_module%d_zp;1",i+1);
1087       rdir->GetObject(histo ,meAdcTOB_[i]);
1088       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1089       meAdcTOB_[i];
1090       newmeAdcTOB_[i];
1091       Strip->cd(i+1);
1092       gPad->SetLogy();
1093       meAdcTOB_[i]->SetLineColor(2);
1094       newmeAdcTOB_[i]->SetLineColor(4);
1095       newmeAdcTOB_[i]->SetLineStyle(2);
1096       meAdcTOB_[i]->Draw();
1097       newmeAdcTOB_[i]->Draw("sames");
1098       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1099       leg.Clear();
1100       leg.AddEntry(meAdcTOB_[i],rver , "l");
1101       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1102       leg.Draw();
1103 
1104    }
1105    for (Int_t i=6; i<12; i++){
1106       sprintf(histo,"adc_tob_layer2_module%d_zm;1",i-5);
1107       rdir->GetObject(histo ,meAdcTOB_[i]);
1108       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1109       meAdcTOB_[i];
1110       newmeAdcTOB_[i];
1111       Strip->cd(i+1);
1112       gPad->SetLogy();
1113       meAdcTOB_[i]->SetLineColor(2);
1114       newmeAdcTOB_[i]->SetLineColor(4);
1115       newmeAdcTOB_[i]->SetLineStyle(2);
1116       meAdcTOB_[i]->Draw();
1117       newmeAdcTOB_[i]->Draw("sames");
1118       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1119       leg.Clear();
1120       leg.AddEntry(meAdcTOB_[i],rver , "l");
1121       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1122       leg.Draw();
1123 
1124    }
1125 
1126    Strip->Print("AdcOfTOBLayer2Compare.eps");
1127    Strip->Print("AdcOfTOBLayer2Compare.gif");
1128  }
1129 
1130  if(1) {
1131    TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
1132    Strip->Divide(3,4);
1133 
1134    TH1* meAdcTOB_[12];
1135    TH1* newmeAdcTOB_[12];
1136 
1137    for (Int_t i=0; i<6; i++){
1138       sprintf(histo,"strip_tob_layer2_module%d_zp;1",i+1);
1139       rdir->GetObject(histo ,meAdcTOB_[i]);
1140       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1141       meAdcTOB_[i];
1142       newmeAdcTOB_[i];
1143       Strip->cd(i+1);
1144       gPad->SetLogy();
1145       meAdcTOB_[i]->SetLineColor(2);
1146       newmeAdcTOB_[i]->SetLineColor(4);
1147       newmeAdcTOB_[i]->SetLineStyle(2);
1148       meAdcTOB_[i]->Draw();
1149       newmeAdcTOB_[i]->Draw("sames");
1150       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1151       leg.Clear();
1152       leg.AddEntry(meAdcTOB_[i],rver , "l");
1153       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1154       leg.Draw();
1155 
1156    }
1157    for (Int_t i=6; i<12; i++){
1158       sprintf(histo,"strip_tob_layer2_module%d_zm;1",i-5);
1159       rdir->GetObject(histo ,meAdcTOB_[i]);
1160       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1161       meAdcTOB_[i];
1162       newmeAdcTOB_[i];
1163       Strip->cd(i+1);
1164       gPad->SetLogy();
1165       meAdcTOB_[i]->SetLineColor(2);
1166       newmeAdcTOB_[i]->SetLineColor(4);
1167       newmeAdcTOB_[i]->SetLineStyle(2);
1168       meAdcTOB_[i]->Draw();
1169       newmeAdcTOB_[i]->Draw("sames");
1170       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1171       leg.Clear();
1172       leg.AddEntry(meAdcTOB_[i],rver , "l");
1173       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1174       leg.Draw();
1175 
1176    }
1177 
1178    Strip->Print("StripNumOfTOBLayer2Compare.eps");
1179    Strip->Print("StripNumOfTOBLayer2Compare.gif");
1180  }
1181 //TOB  3rd Layer
1182 
1183  if(1) {
1184    TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
1185    Strip->Divide(3,4);
1186 
1187    TH1* meAdcTOB_[12];
1188    TH1* newmeAdcTOB_[12];
1189 
1190    for (Int_t i=0; i<6; i++){
1191       sprintf(histo,"adc_tob_layer3_module%d_zp;1",i+1);
1192       rdir->GetObject(histo ,meAdcTOB_[i]);
1193       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1194       meAdcTOB_[i];
1195       newmeAdcTOB_[i];
1196       Strip->cd(i+1);
1197       gPad->SetLogy();
1198       meAdcTOB_[i]->SetLineColor(2);
1199       newmeAdcTOB_[i]->SetLineColor(4);
1200       newmeAdcTOB_[i]->SetLineStyle(2);
1201       meAdcTOB_[i]->Draw();
1202       newmeAdcTOB_[i]->Draw("sames");
1203       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1204       leg.Clear();
1205       leg.AddEntry(meAdcTOB_[i],rver , "l");
1206       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1207       leg.Draw();
1208 
1209    }
1210    for (Int_t i=6; i<12; i++){
1211       sprintf(histo,"adc_tob_layer3_module%d_zm;1",i-5);
1212       rdir->GetObject(histo ,meAdcTOB_[i]);
1213       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1214       meAdcTOB_[i];
1215       newmeAdcTOB_[i];
1216       Strip->cd(i+1);
1217       gPad->SetLogy();
1218       meAdcTOB_[i]->SetLineColor(2);
1219       newmeAdcTOB_[i]->SetLineColor(4);
1220       newmeAdcTOB_[i]->SetLineStyle(2);
1221       meAdcTOB_[i]->Draw();
1222       newmeAdcTOB_[i]->Draw("sames");
1223       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1224       leg.Clear();
1225       leg.AddEntry(meAdcTOB_[i],rver , "l");
1226       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1227       leg.Draw();
1228 
1229    }
1230 
1231    Strip->Print("AdcOfTOBLayer3Compare.eps");
1232    Strip->Print("AdcOfTOBLayer3Compare.gif");
1233  }
1234 
1235  if(1) {
1236    TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
1237    Strip->Divide(3,4);
1238 
1239    TH1* meAdcTOB_[12];
1240    TH1* newmeAdcTOB_[12];
1241 
1242    for (Int_t i=0; i<6; i++){
1243       sprintf(histo,"strip_tob_layer3_module%d_zp;1",i+1);
1244       rdir->GetObject(histo ,meAdcTOB_[i]);
1245       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1246       meAdcTOB_[i];
1247       newmeAdcTOB_[i];
1248       Strip->cd(i+1);
1249       gPad->SetLogy();
1250       meAdcTOB_[i]->SetLineColor(2);
1251       newmeAdcTOB_[i]->SetLineColor(4);
1252       newmeAdcTOB_[i]->SetLineStyle(2);
1253       meAdcTOB_[i]->Draw();
1254       newmeAdcTOB_[i]->Draw("sames");
1255       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1256       leg.Clear();
1257       leg.AddEntry(meAdcTOB_[i],rver , "l");
1258       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1259       leg.Draw();
1260 
1261    }
1262    for (Int_t i=6; i<12; i++){
1263       sprintf(histo,"strip_tob_layer3_module%d_zm;1",i-5);
1264       rdir->GetObject(histo ,meAdcTOB_[i]);
1265       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1266       meAdcTOB_[i];
1267       newmeAdcTOB_[i];
1268       Strip->cd(i+1);
1269       gPad->SetLogy();
1270       meAdcTOB_[i]->SetLineColor(2);
1271       newmeAdcTOB_[i]->SetLineColor(4);
1272       newmeAdcTOB_[i]->SetLineStyle(2);
1273       meAdcTOB_[i]->Draw();
1274       newmeAdcTOB_[i]->Draw("sames");
1275       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1276       leg.Clear();
1277       leg.AddEntry(meAdcTOB_[i],rver , "l");
1278       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1279       leg.Draw();
1280 
1281    }
1282 
1283    Strip->Print("StripNumOfTOBLayer3Compare.eps");
1284    Strip->Print("StripNumOfTOBLayer3Compare.gif");
1285  }
1286 //TOB  4th Layer
1287 
1288  if(1) {
1289    TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
1290    Strip->Divide(3,4);
1291 
1292    TH1* meAdcTOB_[12];
1293    TH1* newmeAdcTOB_[12];
1294 
1295    for (Int_t i=0; i<6; i++){
1296       sprintf(histo,"adc_tob_layer4_module%d_zp;1",i+1);
1297       rdir->GetObject(histo ,meAdcTOB_[i]);
1298       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1299       meAdcTOB_[i];
1300       newmeAdcTOB_[i];
1301       Strip->cd(i+1);
1302       gPad->SetLogy();
1303       meAdcTOB_[i]->SetLineColor(2);
1304       newmeAdcTOB_[i]->SetLineColor(4);
1305       newmeAdcTOB_[i]->SetLineStyle(2);
1306       meAdcTOB_[i]->Draw();
1307       newmeAdcTOB_[i]->Draw("sames");
1308       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1309       leg.Clear();
1310       leg.AddEntry(meAdcTOB_[i],rver , "l");
1311       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1312       leg.Draw();
1313 
1314    }
1315    for (Int_t i=6; i<12; i++){
1316       sprintf(histo,"adc_tob_layer4_module%d_zm;1",i-5);
1317       rdir->GetObject(histo ,meAdcTOB_[i]);
1318       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1319       meAdcTOB_[i];
1320       newmeAdcTOB_[i];
1321       Strip->cd(i+1);
1322       gPad->SetLogy();
1323       meAdcTOB_[i]->SetLineColor(2);
1324       newmeAdcTOB_[i]->SetLineColor(4);
1325       newmeAdcTOB_[i]->SetLineStyle(2);
1326       meAdcTOB_[i]->Draw();
1327       newmeAdcTOB_[i]->Draw("sames");
1328       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1329       leg.Clear();
1330       leg.AddEntry(meAdcTOB_[i],rver , "l");
1331       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1332       leg.Draw();
1333 
1334    }
1335 
1336    Strip->Print("AdcOfTOBLayer4Compare.eps");
1337    Strip->Print("AdcOfTOBLayer4Compare.gif");
1338  }
1339 
1340  if(1) {
1341    TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
1342    Strip->Divide(3,4);
1343 
1344    TH1* meAdcTOB_[12];
1345    TH1* newmeAdcTOB_[12];
1346 
1347    for (Int_t i=0; i<6; i++){
1348       sprintf(histo,"strip_tob_layer4_module%d_zp;1",i+1);
1349       rdir->GetObject(histo ,meAdcTOB_[i]);
1350       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1351       meAdcTOB_[i];
1352       newmeAdcTOB_[i];
1353       Strip->cd(i+1);
1354       gPad->SetLogy();
1355       meAdcTOB_[i]->SetLineColor(2);
1356       newmeAdcTOB_[i]->SetLineColor(4);
1357       newmeAdcTOB_[i]->SetLineStyle(2);
1358       meAdcTOB_[i]->Draw();
1359       newmeAdcTOB_[i]->Draw("sames");
1360       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1361       leg.Clear();
1362       leg.AddEntry(meAdcTOB_[i],rver , "l");
1363       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1364       leg.Draw();
1365 
1366    }
1367    for (Int_t i=6; i<12; i++){
1368       sprintf(histo,"strip_tob_layer4_module%d_zm;1",i-5);
1369       rdir->GetObject(histo ,meAdcTOB_[i]);
1370       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1371       meAdcTOB_[i];
1372       newmeAdcTOB_[i];
1373       Strip->cd(i+1);
1374       gPad->SetLogy();
1375       meAdcTOB_[i]->SetLineColor(2);
1376       newmeAdcTOB_[i]->SetLineColor(4);
1377       newmeAdcTOB_[i]->SetLineStyle(2);
1378       meAdcTOB_[i]->Draw();
1379       newmeAdcTOB_[i]->Draw("sames");
1380       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1381       leg.Clear();
1382       leg.AddEntry(meAdcTOB_[i],rver , "l");
1383       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1384       leg.Draw();
1385 
1386    }
1387 
1388    Strip->Print("StripNumOfTOBLayer4Compare.eps");
1389    Strip->Print("StripNumOfTOBLayer4Compare.gif");
1390  }
1391 //TOB  5th Layer
1392  if(1) {
1393    TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
1394    Strip->Divide(3,4);
1395 
1396    TH1* meAdcTOB_[12];
1397    TH1* newmeAdcTOB_[12];
1398 
1399    for (Int_t i=0; i<6; i++){
1400       sprintf(histo,"adc_tob_layer5_module%d_zp;1",i+1);
1401       rdir->GetObject(histo ,meAdcTOB_[i]);
1402       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1403       meAdcTOB_[i];
1404       newmeAdcTOB_[i];
1405       Strip->cd(i+1);
1406       gPad->SetLogy();
1407       meAdcTOB_[i]->SetLineColor(2);
1408       newmeAdcTOB_[i]->SetLineColor(4);
1409       newmeAdcTOB_[i]->SetLineStyle(2);
1410       meAdcTOB_[i]->Draw();
1411       newmeAdcTOB_[i]->Draw("sames");
1412       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1413       leg.Clear();
1414       leg.AddEntry(meAdcTOB_[i],rver , "l");
1415       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1416       leg.Draw();
1417 
1418    }
1419    for (Int_t i=6; i<12; i++){
1420       sprintf(histo,"adc_tob_layer5_module%d_zm;1",i-5);
1421       rdir->GetObject(histo ,meAdcTOB_[i]);
1422       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1423       meAdcTOB_[i];
1424       newmeAdcTOB_[i];
1425       Strip->cd(i+1);
1426       gPad->SetLogy();
1427       meAdcTOB_[i]->SetLineColor(2);
1428       newmeAdcTOB_[i]->SetLineColor(4);
1429       newmeAdcTOB_[i]->SetLineStyle(2);
1430       meAdcTOB_[i]->Draw();
1431       newmeAdcTOB_[i]->Draw("sames");
1432       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1433       leg.Clear();
1434       leg.AddEntry(meAdcTOB_[i],rver , "l");
1435       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1436       leg.Draw();
1437 
1438    }
1439 
1440    Strip->Print("AdcOfTOBLayer5Compare.eps");
1441    Strip->Print("AdcOfTOBLayer5Compare.gif");
1442  }
1443 
1444  if(1) {
1445    TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
1446    Strip->Divide(3,4);
1447 
1448    TH1* meAdcTOB_[12];
1449    TH1* newmeAdcTOB_[12];
1450 
1451    for (Int_t i=0; i<6; i++){
1452       sprintf(histo,"strip_tob_layer5_module%d_zp;1",i+1);
1453       rdir->GetObject(histo ,meAdcTOB_[i]);
1454       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1455       meAdcTOB_[i];
1456       newmeAdcTOB_[i];
1457       Strip->cd(i+1);
1458       gPad->SetLogy();
1459       meAdcTOB_[i]->SetLineColor(2);
1460       newmeAdcTOB_[i]->SetLineColor(4);
1461       newmeAdcTOB_[i]->SetLineStyle(2);
1462       meAdcTOB_[i]->Draw();
1463       newmeAdcTOB_[i]->Draw("sames");
1464       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1465       leg.Clear();
1466       leg.AddEntry(meAdcTOB_[i],rver , "l");
1467       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1468       leg.Draw();
1469 
1470    }
1471    for (Int_t i=6; i<12; i++){
1472       sprintf(histo,"strip_tob_layer5_module%d_zm;1",i-5);
1473       rdir->GetObject(histo ,meAdcTOB_[i]);
1474       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1475       meAdcTOB_[i];
1476       newmeAdcTOB_[i];
1477       Strip->cd(i+1);
1478       gPad->SetLogy();
1479       meAdcTOB_[i]->SetLineColor(2);
1480       newmeAdcTOB_[i]->SetLineColor(4);
1481       newmeAdcTOB_[i]->SetLineStyle(2);
1482       meAdcTOB_[i]->Draw();
1483       newmeAdcTOB_[i]->Draw("sames");
1484       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1485       leg.Clear();
1486       leg.AddEntry(meAdcTOB_[i],rver , "l");
1487       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1488       leg.Draw();
1489 
1490    }
1491 
1492    Strip->Print("StripNumOfTOBLayer5Compare.eps");
1493    Strip->Print("StripNumOfTOBLayer5Compare.gif");
1494  }
1495 //TOB  6th Layer
1496 
1497  if(1) {
1498    TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
1499    Strip->Divide(3,4);
1500 
1501    TH1* meAdcTOB_[12];
1502    TH1* newmeAdcTOB_[12];
1503 
1504    for (Int_t i=0; i<6; i++){
1505       sprintf(histo,"adc_tob_layer6_module%d_zp;1",i+1);
1506       rdir->GetObject(histo ,meAdcTOB_[i]);
1507       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1508       meAdcTOB_[i];
1509       newmeAdcTOB_[i];
1510       Strip->cd(i+1);
1511       gPad->SetLogy();
1512       meAdcTOB_[i]->SetLineColor(2);
1513       newmeAdcTOB_[i]->SetLineColor(4);
1514       newmeAdcTOB_[i]->SetLineStyle(2);
1515       meAdcTOB_[i]->Draw();
1516       newmeAdcTOB_[i]->Draw("sames");
1517       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1518       leg.Clear();
1519       leg.AddEntry(meAdcTOB_[i],rver , "l");
1520       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1521       leg.Draw();
1522 
1523    }
1524    for (Int_t i=6; i<12; i++){
1525       sprintf(histo,"adc_tob_layer6_module%d_zm;1",i-5);
1526       rdir->GetObject(histo ,meAdcTOB_[i]);
1527       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1528       meAdcTOB_[i];
1529       newmeAdcTOB_[i];
1530       Strip->cd(i+1);
1531       gPad->SetLogy();
1532       meAdcTOB_[i]->SetLineColor(2);
1533       newmeAdcTOB_[i]->SetLineColor(4);
1534       newmeAdcTOB_[i]->SetLineStyle(2);
1535       meAdcTOB_[i]->Draw();
1536       newmeAdcTOB_[i]->Draw("sames");
1537       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1538       leg.Clear();
1539       leg.AddEntry(meAdcTOB_[i],rver , "l");
1540       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1541       leg.Draw();
1542 
1543    }
1544 
1545    Strip->Print("AdcOfTOBLayer6Compare.eps");
1546    Strip->Print("AdcOfTOBLayer6Compare.gif");
1547  }
1548 
1549  if(1) {
1550    TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
1551    Strip->Divide(3,4);
1552 
1553    TH1* meAdcTOB_[12];
1554    TH1* newmeAdcTOB_[12];
1555 
1556    for (Int_t i=0; i<6; i++){
1557       sprintf(histo,"strip_tob_layer6_module%d_zp;1",i+1);
1558       rdir->GetObject(histo ,meAdcTOB_[i]);
1559       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1560       meAdcTOB_[i];
1561       newmeAdcTOB_[i];
1562       Strip->cd(i+1);
1563       gPad->SetLogy();
1564       meAdcTOB_[i]->SetLineColor(2);
1565       newmeAdcTOB_[i]->SetLineColor(4);
1566       newmeAdcTOB_[i]->SetLineStyle(2);
1567       meAdcTOB_[i]->Draw();
1568       newmeAdcTOB_[i]->Draw("sames");
1569       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1570       leg.Clear();
1571       leg.AddEntry(meAdcTOB_[i],rver , "l");
1572       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1573       leg.Draw();
1574 
1575    }
1576    for (Int_t i=6; i<12; i++){
1577       sprintf(histo,"strip_tob_layer6_module%d_zm;1",i-5);
1578       rdir->GetObject(histo ,meAdcTOB_[i]);
1579       sdir->GetObject(histo ,newmeAdcTOB_[i]);
1580       meAdcTOB_[i];
1581       newmeAdcTOB_[i];
1582       Strip->cd(i+1);
1583       gPad->SetLogy();
1584       meAdcTOB_[i]->SetLineColor(2);
1585       newmeAdcTOB_[i]->SetLineColor(4);
1586       newmeAdcTOB_[i]->SetLineStyle(2);
1587       meAdcTOB_[i]->Draw();
1588       newmeAdcTOB_[i]->Draw("sames");
1589       myPV->PVCompute( meAdcTOB_[i],newmeAdcTOB_[i],te);
1590       leg.Clear();
1591       leg.AddEntry(meAdcTOB_[i],rver , "l");
1592       leg.AddEntry(newmeAdcTOB_[i],cver , "l");
1593       leg.Draw();
1594 
1595    }
1596 
1597    Strip->Print("StripNumOfTOBLayer6Compare.eps");
1598    Strip->Print("StripNumOfTOBLayer6Compare.gif");
1599  }
1600 //TID
1601 
1602  if (1) {
1603   TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
1604    Strip->Divide(1,3);
1605 
1606    TH1* meNdigiTID_[3];
1607    TH1* newmeNdigiTID_[3];
1608 
1609    for (Int_t i=0; i<3; i++){
1610       sprintf(histo,"ndigi_tid_wheel_%d_zm;1",i+1);
1611       rdir->GetObject(histo ,meNdigiTID_[i]);
1612       sdir->GetObject(histo ,newmeNdigiTID_[i]);
1613       meNdigiTID_[i];
1614       newmeNdigiTID_[i];
1615       Strip->cd(i+1);
1616       gPad->SetLogy();
1617       meNdigiTID_[i]->SetLineColor(2);
1618       newmeNdigiTID_[i]->SetLineColor(4);
1619       newmeNdigiTID_[i]->SetLineStyle(2);
1620       meNdigiTID_[i]->Draw();
1621       newmeNdigiTID_[i]->Draw("sames");
1622       myPV->PVCompute(meNdigiTID_[i] , newmeNdigiTID_[i] , te );
1623       leg.Clear();
1624       leg.AddEntry(meNdigiTID_[i],rver , "l");
1625       leg.AddEntry(newmeNdigiTID_[i],cver , "l");
1626       leg.Draw();
1627 
1628    }
1629 
1630    Strip->Print("NdigiTIDCompare_ZM.eps");
1631    Strip->Print("NdigiTIDCompare_ZM.gif");
1632  }
1633 
1634 if (1) {
1635   TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
1636    Strip->Divide(1,3);
1637 
1638    TH1* meNdigiTID_[3];
1639    TH1* newmeNdigiTID_[3];
1640 
1641    for (Int_t i=0; i<3; i++){
1642       sprintf(histo,"ndigi_tid_wheel_%d_zp;1",i+1);
1643       rdir->GetObject(histo ,meNdigiTID_[i]);
1644       sdir->GetObject(histo ,newmeNdigiTID_[i]);
1645       meNdigiTID_[i];
1646       newmeNdigiTID_[i];
1647       Strip->cd(i+1);
1648       gPad->SetLogy();
1649       meNdigiTID_[i]->SetLineColor(2);
1650       newmeNdigiTID_[i]->SetLineColor(4);
1651       newmeNdigiTID_[i]->SetLineStyle(2);
1652       meNdigiTID_[i]->Draw();
1653       newmeNdigiTID_[i]->Draw("sames");
1654       myPV->PVCompute(meNdigiTID_[i] , newmeNdigiTID_[i] , te );
1655       leg.Clear();
1656       leg.AddEntry(meNdigiTID_[i],rver , "l");
1657       leg.AddEntry(newmeNdigiTID_[i],cver , "l");
1658       leg.Draw();
1659 
1660    }
1661 
1662    Strip->Print("NdigiTIDCompare_ZP.eps");
1663    Strip->Print("NdigiTIDCompare_ZP.gif");
1664  }
1665 
1666 // TID  1 st Wheel
1667    if (1) {
1668    TCanvas * Strip = new TCanvas("Strip","Strip",1000,800);
1669    Strip->Divide(3,2);
1670    TH1* meAdcTID_[6];
1671    TH1* newmeAdcTID_[6];
1672 
1673    for (Int_t i=0; i<3; i++){
1674       sprintf(histo,"adc_tid_wheel1_ring%d_zp;1",i+1);
1675       rdir->GetObject(histo ,meAdcTID_[i]);
1676       sdir->GetObject(histo ,newmeAdcTID_[i]);
1677       meAdcTID_[i];
1678       newmeAdcTID_[i];
1679       Strip->cd(i+1);
1680       gPad->SetLogy();
1681       meAdcTID_[i]->SetLineColor(2);
1682       newmeAdcTID_[i]->SetLineColor(4);
1683       newmeAdcTID_[i]->SetLineStyle(2);
1684       meAdcTID_[i]->Draw();
1685       newmeAdcTID_[i]->Draw("sames");
1686       myPV->PVCompute(meAdcTID_[i],newmeAdcTID_[i],te);
1687       leg.Clear();
1688       leg.AddEntry(meAdcTID_[i],rver , "l");
1689       leg.AddEntry(newmeAdcTID_[i],cver , "l");
1690       leg.Draw();
1691 
1692    }
1693 
1694    for (Int_t i=3; i<6; i++){
1695       sprintf(histo,"adc_tid_wheel1_ring%d_zm;1",i-2);
1696       rdir->GetObject(histo ,meAdcTID_[i]);
1697       sdir->GetObject(histo ,newmeAdcTID_[i]);
1698       meAdcTID_[i];
1699       newmeAdcTID_[i];
1700       Strip->cd(i+1);
1701       gPad->SetLogy();
1702       meAdcTID_[i]->SetLineColor(2);
1703       newmeAdcTID_[i]->SetLineColor(4);
1704       newmeAdcTID_[i]->SetLineStyle(2);
1705       meAdcTID_[i]->Draw();
1706       newmeAdcTID_[i]->Draw("sames");
1707       myPV->PVCompute(meAdcTID_[i],newmeAdcTID_[i],te);
1708       leg.Clear();
1709       leg.AddEntry(meAdcTID_[i],rver , "l");
1710       leg.AddEntry(newmeAdcTID_[i],cver , "l");
1711       leg.Draw();
1712 
1713    }
1714    Strip->Print("AdcOfTIDWheel1Compare.eps");
1715    Strip->Print("AdcOfTIDWheel1Compare.gif");
1716 }
1717 
1718 if (1) {
1719    TCanvas * Strip = new TCanvas("Strip","Strip",1000,800);
1720    Strip->Divide(3,2);
1721    TH1* meAdcTID_[6];
1722    TH1* newmeAdcTID_[6];
1723 
1724    for (Int_t i=0; i<3; i++){
1725       sprintf(histo,"strip_tid_wheel1_ring%d_zp;1",i+1);
1726       rdir->GetObject(histo ,meAdcTID_[i]);
1727       sdir->GetObject(histo ,newmeAdcTID_[i]);
1728       meAdcTID_[i];
1729       newmeAdcTID_[i];
1730       Strip->cd(i+1);
1731       gPad->SetLogy();
1732       meAdcTID_[i]->SetLineColor(2);
1733       newmeAdcTID_[i]->SetLineColor(4);
1734       newmeAdcTID_[i]->SetLineStyle(2);
1735       meAdcTID_[i]->Draw();
1736       newmeAdcTID_[i]->Draw("sames");
1737       myPV->PVCompute(meAdcTID_[i],newmeAdcTID_[i],te);
1738       leg.Clear();
1739       leg.AddEntry(meAdcTID_[i],rver , "l");
1740       leg.AddEntry(newmeAdcTID_[i],cver , "l");
1741       leg.Draw();
1742 
1743    }
1744 
1745    for (Int_t i=3; i<6; i++){
1746       sprintf(histo,"strip_tid_wheel1_ring%d_zm;1",i-2);
1747       rdir->GetObject(histo ,meAdcTID_[i]);
1748       sdir->GetObject(histo ,newmeAdcTID_[i]);
1749       meAdcTID_[i];
1750       newmeAdcTID_[i];
1751       Strip->cd(i+1);
1752       gPad->SetLogy();
1753       meAdcTID_[i]->SetLineColor(2);
1754       newmeAdcTID_[i]->SetLineColor(4);
1755       newmeAdcTID_[i]->SetLineStyle(2);
1756       meAdcTID_[i]->Draw();
1757       newmeAdcTID_[i]->Draw("sames");
1758       myPV->PVCompute(meAdcTID_[i],newmeAdcTID_[i],te);
1759       leg.Clear();
1760       leg.AddEntry(meAdcTID_[i],rver , "l");
1761       leg.AddEntry(newmeAdcTID_[i],cver , "l");
1762       leg.Draw();
1763 
1764    }
1765    Strip->Print("StripNumOfTIDWheel1Compare.eps");
1766    Strip->Print("StripNumOfTIDWheel1Compare.gif");
1767 }
1768 //TID 2nd  Wheel
1769 if (1) {
1770    TCanvas * Strip = new TCanvas("Strip","Strip",1000,800);
1771    Strip->Divide(3,2);
1772    TH1* meAdcTID_[6];
1773    TH1* newmeAdcTID_[6];
1774 
1775    for (Int_t i=0; i<3; i++){
1776       sprintf(histo,"adc_tid_wheel2_ring%d_zp;1",i+1);
1777       rdir->GetObject(histo ,meAdcTID_[i]);
1778       sdir->GetObject(histo ,newmeAdcTID_[i]);
1779       meAdcTID_[i];
1780       newmeAdcTID_[i];
1781       Strip->cd(i+1);
1782       gPad->SetLogy();
1783       meAdcTID_[i]->SetLineColor(2);
1784       newmeAdcTID_[i]->SetLineColor(4);
1785       newmeAdcTID_[i]->SetLineStyle(2);
1786       meAdcTID_[i]->Draw();
1787       newmeAdcTID_[i]->Draw("sames");
1788       myPV->PVCompute(meAdcTID_[i],newmeAdcTID_[i],te);
1789       leg.Clear();
1790       leg.AddEntry(meAdcTID_[i],rver , "l");
1791       leg.AddEntry(newmeAdcTID_[i],cver , "l");
1792       leg.Draw();
1793 
1794    }
1795 
1796    for (Int_t i=3; i<6; i++){
1797       sprintf(histo,"adc_tid_wheel2_ring%d_zm;1",i-2);
1798       rdir->GetObject(histo ,meAdcTID_[i]);
1799       sdir->GetObject(histo ,newmeAdcTID_[i]);
1800       meAdcTID_[i];
1801       newmeAdcTID_[i];
1802       Strip->cd(i+1);
1803       gPad->SetLogy();
1804       meAdcTID_[i]->SetLineColor(2);
1805       newmeAdcTID_[i]->SetLineColor(4);
1806       newmeAdcTID_[i]->SetLineStyle(2);
1807       meAdcTID_[i]->Draw();
1808       newmeAdcTID_[i]->Draw("sames");
1809       myPV->PVCompute(meAdcTID_[i],newmeAdcTID_[i],te);
1810       leg.Clear();
1811       leg.AddEntry(meAdcTID_[i],rver , "l");
1812       leg.AddEntry(newmeAdcTID_[i],cver , "l");
1813       leg.Draw();
1814 
1815    }
1816    Strip->Print("AdcOfTIDWheel2Compare.eps");
1817    Strip->Print("AdcOfTIDWheel2Compare.gif");
1818 }
1819 
1820 if (1) {
1821    TCanvas * Strip = new TCanvas("Strip","Strip",1000,800);
1822    Strip->Divide(3,2);
1823    TH1* meAdcTID_[6];
1824    TH1* newmeAdcTID_[6];
1825 
1826    for (Int_t i=0; i<3; i++){
1827       sprintf(histo,"strip_tid_wheel2_ring%d_zp;1",i+1);
1828       rdir->GetObject(histo ,meAdcTID_[i]);
1829       sdir->GetObject(histo ,newmeAdcTID_[i]);
1830       meAdcTID_[i];
1831       newmeAdcTID_[i];
1832       Strip->cd(i+1);
1833       gPad->SetLogy();
1834       meAdcTID_[i]->SetLineColor(2);
1835       newmeAdcTID_[i]->SetLineColor(4);
1836       newmeAdcTID_[i]->SetLineStyle(2);
1837       meAdcTID_[i]->Draw();
1838       newmeAdcTID_[i]->Draw("sames");
1839       myPV->PVCompute(meAdcTID_[i],newmeAdcTID_[i],te);
1840       leg.Clear();
1841       leg.AddEntry(meAdcTID_[i],rver , "l");
1842       leg.AddEntry(newmeAdcTID_[i],cver , "l");
1843       leg.Draw();
1844 
1845    }
1846 
1847    for (Int_t i=3; i<6; i++){
1848       sprintf(histo,"strip_tid_wheel2_ring%d_zm;1",i-2);
1849       rdir->GetObject(histo ,meAdcTID_[i]);
1850       sdir->GetObject(histo ,newmeAdcTID_[i]);
1851       meAdcTID_[i];
1852       newmeAdcTID_[i];
1853       Strip->cd(i+1);
1854       gPad->SetLogy();
1855       meAdcTID_[i]->SetLineColor(2);
1856       newmeAdcTID_[i]->SetLineColor(4);
1857       newmeAdcTID_[i]->SetLineStyle(2);
1858       meAdcTID_[i]->Draw();
1859       newmeAdcTID_[i]->Draw("sames");
1860       myPV->PVCompute(meAdcTID_[i],newmeAdcTID_[i],te);
1861       leg.Clear();
1862       leg.AddEntry(meAdcTID_[i],rver , "l");
1863       leg.AddEntry(newmeAdcTID_[i],cver , "l");
1864       leg.Draw();
1865 
1866    }
1867    Strip->Print("StripNumOfTIDWheel2Compare.eps");
1868    Strip->Print("StripNumOfTIDWheel2Compare.gif");
1869 }
1870 //TID 3rd  Wheel
1871    if (1) {
1872    TCanvas * Strip = new TCanvas("Strip","Strip",1000,800);
1873    Strip->Divide(3,2);
1874    TH1* meAdcTID_[6];
1875    TH1* newmeAdcTID_[6];
1876 
1877    for (Int_t i=0; i<3; i++){
1878       sprintf(histo,"adc_tid_wheel3_ring%d_zp;1",i+1);
1879       rdir->GetObject(histo ,meAdcTID_[i]);
1880       sdir->GetObject(histo ,newmeAdcTID_[i]);
1881       meAdcTID_[i];
1882       newmeAdcTID_[i];
1883       Strip->cd(i+1);
1884       gPad->SetLogy();
1885       meAdcTID_[i]->SetLineColor(2);
1886       newmeAdcTID_[i]->SetLineColor(4);
1887       newmeAdcTID_[i]->SetLineStyle(2);
1888       meAdcTID_[i]->Draw();
1889       newmeAdcTID_[i]->Draw("sames");
1890       myPV->PVCompute(meAdcTID_[i],newmeAdcTID_[i],te);
1891       leg.Clear();
1892       leg.AddEntry(meAdcTID_[i],rver , "l");
1893       leg.AddEntry(newmeAdcTID_[i],cver , "l");
1894       leg.Draw();
1895    }
1896 
1897    for (Int_t i=3; i<6; i++){
1898       sprintf(histo,"adc_tid_wheel3_ring%d_zm;1",i-2);
1899       rdir->GetObject(histo ,meAdcTID_[i]);
1900       sdir->GetObject(histo ,newmeAdcTID_[i]);
1901       meAdcTID_[i];
1902       newmeAdcTID_[i];
1903       Strip->cd(i+1);
1904       gPad->SetLogy();
1905       meAdcTID_[i]->SetLineColor(2);
1906       newmeAdcTID_[i]->SetLineColor(4);
1907       newmeAdcTID_[i]->SetLineStyle(2);
1908       meAdcTID_[i]->Draw();
1909       newmeAdcTID_[i]->Draw("sames");
1910       myPV->PVCompute(meAdcTID_[i],newmeAdcTID_[i],te);
1911       leg.Clear();
1912       leg.AddEntry(meAdcTID_[i],rver , "l");
1913       leg.AddEntry(newmeAdcTID_[i],cver , "l");
1914       leg.Draw();
1915    }
1916    Strip->Print("AdcOfTIDWheel3Compare.eps");
1917    Strip->Print("AdcOfTIDWheel3Compare.gif");
1918 }
1919 
1920 if (1) {
1921    TCanvas * Strip = new TCanvas("Strip","Strip",1000,800);
1922    Strip->Divide(3,2);
1923    TH1* meAdcTID_[6];
1924    TH1* newmeAdcTID_[6];
1925 
1926    for (Int_t i=0; i<3; i++){
1927       sprintf(histo,"strip_tid_wheel3_ring%d_zp;1",i+1);
1928       rdir->GetObject(histo ,meAdcTID_[i]);
1929       sdir->GetObject(histo ,newmeAdcTID_[i]);
1930       meAdcTID_[i];
1931       newmeAdcTID_[i];
1932       Strip->cd(i+1);
1933       gPad->SetLogy();
1934       meAdcTID_[i]->SetLineColor(2);
1935       newmeAdcTID_[i]->SetLineColor(4);
1936       newmeAdcTID_[i]->SetLineStyle(2);
1937       meAdcTID_[i]->Draw();
1938       newmeAdcTID_[i]->Draw("sames");
1939       myPV->PVCompute(meAdcTID_[i],newmeAdcTID_[i],te);
1940       leg.Clear();
1941       leg.AddEntry(meAdcTID_[i],rver , "l");
1942       leg.AddEntry(newmeAdcTID_[i],cver , "l");
1943       leg.Draw();
1944    }
1945 
1946    for (Int_t i=3; i<6; i++){
1947       sprintf(histo,"strip_tid_wheel3_ring%d_zm;1",i-2);
1948       rdir->GetObject(histo ,meAdcTID_[i]);
1949       sdir->GetObject(histo ,newmeAdcTID_[i]);
1950       meAdcTID_[i];
1951       newmeAdcTID_[i];
1952       Strip->cd(i+1);
1953       gPad->SetLogy();
1954       meAdcTID_[i]->SetLineColor(2);
1955       newmeAdcTID_[i]->SetLineColor(4);
1956       newmeAdcTID_[i]->SetLineStyle(2);
1957       meAdcTID_[i]->Draw();
1958       newmeAdcTID_[i]->Draw("sames");
1959       myPV->PVCompute(meAdcTID_[i],newmeAdcTID_[i],te);
1960       leg.Clear();
1961       leg.AddEntry(meAdcTID_[i],rver , "l");
1962       leg.AddEntry(newmeAdcTID_[i],cver , "l");
1963       leg.Draw();
1964    }
1965    Strip->Print("StripNumOfTIDWheel3Compare.eps");
1966    Strip->Print("StripNumOfTIDWheel3Compare.gif");
1967 }
1968 //IEC
1969 if (1) {
1970   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
1971    Strip->Divide(3,3);
1972 
1973    TH1* meNdigiTEC_[9];
1974    TH1* newmeNdigiTEC_[9];
1975 
1976    for (Int_t i=0; i<9; i++){
1977       sprintf(histo,"ndigi_tec_wheel_%d_zm;1",i+1);
1978       rdir->GetObject(histo ,meNdigiTEC_[i]);
1979       sdir->GetObject(histo ,newmeNdigiTEC_[i]);
1980       meNdigiTEC_[i];
1981       newmeNdigiTEC_[i];
1982       Strip->cd(i+1);
1983       gPad->SetLogy();
1984       meNdigiTEC_[i]->SetLineColor(2);
1985       newmeNdigiTEC_[i]->SetLineColor(4);
1986       newmeNdigiTEC_[i]->SetLineStyle(2);
1987       meNdigiTEC_[i]->Draw();
1988       newmeNdigiTEC_[i]->Draw("sames");
1989       myPV->PVCompute(meNdigiTEC_[i] , newmeNdigiTEC_[i] , te );
1990       leg.Clear();
1991       leg.AddEntry(meNdigiTEC_[i],rver , "l");
1992       leg.AddEntry(newmeNdigiTEC_[i],cver , "l");
1993       leg.Draw();
1994 
1995    }
1996 
1997    Strip->Print("NdigiTECCompare_ZM.eps");
1998    Strip->Print("NdigiTECCompare_ZM.gif");
1999  }
2000 if (1) {
2001   TCanvas * Strip = new TCanvas("Strip","Strip",1000,1000);
2002    Strip->Divide(3,3);
2003 
2004    TH1* meNdigiTEC_[9];
2005    TH1* newmeNdigiTEC_[9];
2006 
2007    for (Int_t i=0; i<9; i++){
2008       sprintf(histo,"ndigi_tec_wheel_%d_zp;1",i+1);
2009       rdir->GetObject(histo ,meNdigiTEC_[i]);
2010       sdir->GetObject(histo ,newmeNdigiTEC_[i]);
2011       meNdigiTEC_[i];
2012       newmeNdigiTEC_[i];
2013       Strip->cd(i+1);
2014       gPad->SetLogy();
2015       meNdigiTEC_[i]->SetLineColor(2);
2016       newmeNdigiTEC_[i]->SetLineColor(4);
2017       newmeNdigiTEC_[i]->SetLineStyle(2);
2018       meNdigiTEC_[i]->Draw();
2019       newmeNdigiTEC_[i]->Draw("sames");
2020       myPV->PVCompute(meNdigiTEC_[i] , newmeNdigiTEC_[i] , te );
2021       leg.Clear();
2022       leg.AddEntry(meNdigiTEC_[i],rver , "l");
2023       leg.AddEntry(newmeNdigiTEC_[i],cver , "l");
2024       leg.Draw();
2025 
2026    }
2027 
2028    Strip->Print("NdigiTECCompare_ZP.eps");
2029    Strip->Print("NdigiTECCompare_ZP.gif");
2030  }
2031 
2032 //TEC 1st Wheel in ZMinus Side
2033 if (1) {
2034    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2035    Strip->Divide(2,4);
2036    TH1* meAdcTEC_[7];
2037    TH1* newmeAdcTEC_[7];
2038 
2039    for (Int_t i=0; i<7; i++){
2040       sprintf(histo,"adc_tec_wheel1_ring%d_zm;1",i+1);
2041       rdir->GetObject(histo ,meAdcTEC_[i]);
2042       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2043       meAdcTEC_[i];
2044       newmeAdcTEC_[i];
2045       Strip->cd(i+1);
2046       gPad->SetLogy();
2047       meAdcTEC_[i]->SetLineColor(2);
2048       newmeAdcTEC_[i]->SetLineColor(4);
2049       newmeAdcTEC_[i]->SetLineStyle(2);
2050       meAdcTEC_[i]->Draw();
2051       newmeAdcTEC_[i]->Draw("sames");
2052       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2053       leg.Clear();
2054       leg.AddEntry(meAdcTEC_[i],rver , "l");
2055       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2056       leg.Draw();
2057 
2058    }
2059 
2060    Strip->Print("AdcOfTECWheel1Compare_ZM.eps");
2061    Strip->Print("AdcOfTECWheel1Compare_ZM.gif");
2062 } 
2063 if (1) {
2064    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2065    Strip->Divide(2,4);
2066    TH1* meStripTEC_[7];
2067    TH1* newmeStripTEC_[7];
2068  
2069    for (Int_t i=0; i<7; i++){
2070       sprintf(histo,"strip_tec_wheel1_ring%d_zm;1",i+1);
2071       rdir->GetObject(histo ,meStripTEC_[i]);
2072       sdir->GetObject(histo ,newmeStripTEC_[i]);
2073       meStripTEC_[i];
2074       newmeStripTEC_[i];
2075       Strip->cd(i+1);
2076       gPad->SetLogy(); 
2077       meStripTEC_[i]->SetLineColor(2);
2078       newmeStripTEC_[i]->SetLineColor(4);
2079       newmeStripTEC_[i]->SetLineStyle(2);
2080       meStripTEC_[i]->Draw();
2081       newmeStripTEC_[i]->Draw("sames");
2082       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2083       leg.Clear();
2084       leg.AddEntry(meStripTEC_[i],rver , "l");
2085       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2086       leg.Draw();
2087    }
2088 
2089    Strip->Print("StripNumOfTECWheel1Compare_ZM.eps");
2090    Strip->Print("StripNumOfTECWheel1Compare_ZM.gif");
2091 }
2092 //TEC 2nd Wheel in ZMinus Side
2093 if (1) {
2094    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2095    Strip->Divide(2,4);
2096    TH1* meAdcTEC_[7];
2097    TH1* newmeAdcTEC_[7];
2098 
2099    for (Int_t i=0; i<7; i++){
2100       sprintf(histo,"adc_tec_wheel2_ring%d_zm;1",i+1);
2101       rdir->GetObject(histo ,meAdcTEC_[i]);
2102       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2103       meAdcTEC_[i];
2104       newmeAdcTEC_[i];
2105       Strip->cd(i+1);
2106       gPad->SetLogy();
2107       meAdcTEC_[i]->SetLineColor(2);
2108       newmeAdcTEC_[i]->SetLineColor(4);
2109       newmeAdcTEC_[i]->SetLineStyle(2);
2110       meAdcTEC_[i]->Draw();
2111       newmeAdcTEC_[i]->Draw("sames");
2112       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2113       leg.Clear();
2114       leg.AddEntry(meAdcTEC_[i],rver , "l");
2115       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2116       leg.Draw();
2117 
2118    }
2119 
2120    Strip->Print("AdcOfTECWheel2Compare_ZM.eps");
2121    Strip->Print("AdcOfTECWheel2Compare_ZM.gif");
2122 } 
2123 if (1) {
2124    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2125    Strip->Divide(2,4);
2126    TH1* meStripTEC_[7];
2127    TH1* newmeStripTEC_[7];
2128  
2129    for (Int_t i=0; i<7; i++){
2130       sprintf(histo,"strip_tec_wheel2_ring%d_zm;1",i+1);
2131       rdir->GetObject(histo ,meStripTEC_[i]);
2132       sdir->GetObject(histo ,newmeStripTEC_[i]);
2133       meStripTEC_[i];
2134       newmeStripTEC_[i];
2135       Strip->cd(i+1); 
2136       gPad->SetLogy();
2137       meStripTEC_[i]->SetLineColor(2);
2138       newmeStripTEC_[i]->SetLineColor(4);
2139       newmeStripTEC_[i]->SetLineStyle(2);
2140       meStripTEC_[i]->Draw();
2141       newmeStripTEC_[i]->Draw("sames");
2142       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2143       leg.Clear();
2144       leg.AddEntry(meStripTEC_[i],rver , "l");
2145       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2146       leg.Draw();
2147 
2148    }
2149 
2150    Strip->Print("StripNumOfTECWheel2Compare_ZM.eps");
2151    Strip->Print("StripNumOfTECWheel2Compare_ZM.gif");
2152 }
2153 
2154 //TEC 3rd Wheel in ZMinus Side
2155 if (1) {
2156    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2157    Strip->Divide(2,4);
2158    TH1* meAdcTEC_[7];
2159    TH1* newmeAdcTEC_[7];
2160 
2161    for (Int_t i=0; i<7; i++){
2162       sprintf(histo,"adc_tec_wheel3_ring%d_zm;1",i+1);
2163       rdir->GetObject(histo ,meAdcTEC_[i]);
2164       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2165       meAdcTEC_[i];
2166       newmeAdcTEC_[i];
2167       Strip->cd(i+1);
2168       gPad->SetLogy();
2169       meAdcTEC_[i]->SetLineColor(2);
2170       newmeAdcTEC_[i]->SetLineColor(4);
2171       newmeAdcTEC_[i]->SetLineStyle(2);
2172       meAdcTEC_[i]->Draw();
2173       newmeAdcTEC_[i]->Draw("sames");
2174       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2175       leg.Clear();
2176       leg.AddEntry(meAdcTEC_[i],rver , "l");
2177       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2178       leg.Draw();
2179 
2180    }
2181 
2182    Strip->Print("AdcOfTECWheel3Compare_ZM.eps");
2183    Strip->Print("AdcOfTECWheel3Compare_ZM.gif");
2184 } 
2185 if (1) {
2186    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2187    Strip->Divide(2,4);
2188    TH1* meStripTEC_[7];
2189    TH1* newmeStripTEC_[7];
2190  
2191    for (Int_t i=0; i<7; i++){
2192       sprintf(histo,"strip_tec_wheel3_ring%d_zm;1",i+1);
2193       rdir->GetObject(histo ,meStripTEC_[i]);
2194       sdir->GetObject(histo ,newmeStripTEC_[i]);
2195       meStripTEC_[i];
2196       newmeStripTEC_[i];
2197       Strip->cd(i+1); 
2198       gPad->SetLogy();
2199       meStripTEC_[i]->SetLineColor(2);
2200       newmeStripTEC_[i]->SetLineColor(4);
2201       newmeStripTEC_[i]->SetLineStyle(2);
2202       meStripTEC_[i]->Draw();
2203       newmeStripTEC_[i]->Draw("sames");
2204       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2205       leg.Clear();
2206       leg.AddEntry(meStripTEC_[i],rver , "l");
2207       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2208       leg.Draw();
2209 
2210    }
2211 
2212    Strip->Print("StripNumOfTECWheel3Compare_ZM.eps");
2213    Strip->Print("StripNumOfTECWheel3Compare_ZM.gif");
2214 }
2215 
2216 //TEC 4th Wheel in ZMinus Side
2217 if (1) {
2218    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2219    Strip->Divide(2,3);
2220    TH1* meAdcTEC_[6];
2221    TH1* newmeAdcTEC_[6];
2222 
2223    for (Int_t i=0; i<6; i++){
2224       sprintf(histo,"adc_tec_wheel4_ring%d_zm;1",i+1);
2225       rdir->GetObject(histo ,meAdcTEC_[i]);
2226       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2227       meAdcTEC_[i];
2228       newmeAdcTEC_[i];
2229       Strip->cd(i+1);
2230       gPad->SetLogy();
2231       meAdcTEC_[i]->SetLineColor(2);
2232       newmeAdcTEC_[i]->SetLineColor(4);
2233       newmeAdcTEC_[i]->SetLineStyle(2);
2234       meAdcTEC_[i]->Draw();
2235       newmeAdcTEC_[i]->Draw("sames");
2236       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2237       leg.Clear();
2238       leg.AddEntry(meAdcTEC_[i],rver , "l");
2239       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2240       leg.Draw();
2241 
2242    }
2243 
2244    Strip->Print("AdcOfTECWheel4Compare_ZM.eps");
2245    Strip->Print("AdcOfTECWheel4Compare_ZM.gif");
2246 } 
2247 if (1) {
2248    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2249    Strip->Divide(2,3);
2250    TH1* meStripTEC_[6];
2251    TH1* newmeStripTEC_[6];
2252  
2253    for (Int_t i=0; i<6; i++){
2254       sprintf(histo,"strip_tec_wheel4_ring%d_zm;1",i+1);
2255       rdir->GetObject(histo ,meStripTEC_[i]);
2256       sdir->GetObject(histo ,newmeStripTEC_[i]);
2257       meStripTEC_[i];
2258       newmeStripTEC_[i];
2259       Strip->cd(i+1); 
2260       gPad->SetLogy();
2261       meStripTEC_[i]->SetLineColor(2);
2262       newmeStripTEC_[i]->SetLineColor(4);
2263       newmeStripTEC_[i]->SetLineStyle(2);
2264       meStripTEC_[i]->Draw();
2265       newmeStripTEC_[i]->Draw("sames");
2266       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2267       leg.Clear();
2268       leg.AddEntry(meStripTEC_[i],rver , "l");
2269       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2270       leg.Draw();
2271 
2272    }
2273 
2274    Strip->Print("StripNumOfTECWheel4Compare_ZM.eps");
2275    Strip->Print("StripNumOfTECWheel4Compare_ZM.gif");
2276 }
2277 
2278 //TEC 5th Wheel in ZMinus Side
2279 if (1) {
2280    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2281    Strip->Divide(2,3);
2282    TH1* meAdcTEC_[6];
2283    TH1* newmeAdcTEC_[6];
2284 
2285    for (Int_t i=0; i<6; i++){
2286       sprintf(histo,"adc_tec_wheel5_ring%d_zm;1",i+1);
2287       rdir->GetObject(histo ,meAdcTEC_[i]);
2288       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2289       meAdcTEC_[i];
2290       newmeAdcTEC_[i];
2291       Strip->cd(i+1);
2292       gPad->SetLogy();
2293       meAdcTEC_[i]->SetLineColor(2);
2294       newmeAdcTEC_[i]->SetLineColor(4);
2295       newmeAdcTEC_[i]->SetLineStyle(2);
2296       meAdcTEC_[i]->Draw();
2297       newmeAdcTEC_[i]->Draw("sames");
2298       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2299       leg.Clear();
2300       leg.AddEntry(meAdcTEC_[i],rver , "l");
2301       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2302       leg.Draw();
2303 
2304    }
2305 
2306    Strip->Print("AdcOfTECWheel5Compare_ZM.eps");
2307    Strip->Print("AdcOfTECWheel5Compare_ZM.gif");
2308 } 
2309 if (1) {
2310    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2311    Strip->Divide(2,3);
2312    TH1* meStripTEC_[6];
2313    TH1* newmeStripTEC_[6];
2314  
2315    for (Int_t i=0; i<6; i++){
2316       sprintf(histo,"strip_tec_wheel5_ring%d_zm;1",i+1);
2317       rdir->GetObject(histo ,meStripTEC_[i]);
2318       sdir->GetObject(histo ,newmeStripTEC_[i]);
2319       meStripTEC_[i];
2320       newmeStripTEC_[i];
2321       Strip->cd(i+1); 
2322       gPad->SetLogy();
2323       meStripTEC_[i]->SetLineColor(2);
2324       newmeStripTEC_[i]->SetLineColor(4);
2325       newmeStripTEC_[i]->SetLineStyle(2);
2326       meStripTEC_[i]->Draw();
2327       newmeStripTEC_[i]->Draw("sames");
2328       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2329       leg.Clear();
2330       leg.AddEntry(meStripTEC_[i],rver , "l");
2331       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2332       leg.Draw();
2333 
2334    }
2335 
2336    Strip->Print("StripNumOfTECWheel5Compare_ZM.eps");
2337    Strip->Print("StripNumOfTECWheel5Compare_ZM.gif");
2338 }
2339 
2340 //TEC 6th Wheel in ZMinus Side
2341 if (1) {
2342    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2343    Strip->Divide(2,3);
2344    TH1* meAdcTEC_[6];
2345    TH1* newmeAdcTEC_[6];
2346 
2347    for (Int_t i=0; i<6; i++){
2348       sprintf(histo,"adc_tec_wheel6_ring%d_zm;1",i+1);
2349       rdir->GetObject(histo ,meAdcTEC_[i]);
2350       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2351       meAdcTEC_[i];
2352       newmeAdcTEC_[i];
2353       Strip->cd(i+1);
2354       gPad->SetLogy();
2355       meAdcTEC_[i]->SetLineColor(2);
2356       newmeAdcTEC_[i]->SetLineColor(4);
2357       newmeAdcTEC_[i]->SetLineStyle(2);
2358       meAdcTEC_[i]->Draw();
2359       newmeAdcTEC_[i]->Draw("sames");
2360       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2361       leg.Clear();
2362       leg.AddEntry(meAdcTEC_[i],rver , "l");
2363       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2364       leg.Draw();
2365 
2366    }
2367 
2368    Strip->Print("AdcOfTECWheel6Compare_ZM.eps");
2369    Strip->Print("AdcOfTECWheel6Compare_ZM.gif");
2370 } 
2371 if (1) {
2372    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2373    Strip->Divide(2,3);
2374    TH1* meStripTEC_[6];
2375    TH1* newmeStripTEC_[6];
2376  
2377    for (Int_t i=0; i<6; i++){
2378       sprintf(histo,"strip_tec_wheel6_ring%d_zm;1",i+1);
2379       rdir->GetObject(histo ,meStripTEC_[i]);
2380       sdir->GetObject(histo ,newmeStripTEC_[i]);
2381       meStripTEC_[i];
2382       newmeStripTEC_[i];
2383       Strip->cd(i+1); 
2384       gPad->SetLogy();
2385       meStripTEC_[i]->SetLineColor(2);
2386       newmeStripTEC_[i]->SetLineColor(4);
2387       newmeStripTEC_[i]->SetLineStyle(2);
2388       meStripTEC_[i]->Draw();
2389       newmeStripTEC_[i]->Draw("sames");
2390       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2391       leg.Clear();
2392       leg.AddEntry(meStripTEC_[i],rver , "l");
2393       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2394       leg.Draw();
2395 
2396    }
2397 
2398    Strip->Print("StripNumOfTECWheel6Compare_ZM.eps");
2399    Strip->Print("StripNumOfTECWheel6Compare_ZM.gif");
2400 }
2401 
2402 //TEC 7th Wheel in ZMinus Side
2403 if (1) {
2404    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2405    Strip->Divide(2,3);
2406    TH1* meAdcTEC_[5];
2407    TH1* newmeAdcTEC_[5];
2408 
2409    for (Int_t i=0; i<5; i++){
2410       sprintf(histo,"adc_tec_wheel7_ring%d_zm;1",i+1);
2411       rdir->GetObject(histo ,meAdcTEC_[i]);
2412       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2413       meAdcTEC_[i];
2414       newmeAdcTEC_[i];
2415       Strip->cd(i+1);
2416       gPad->SetLogy();
2417       meAdcTEC_[i]->SetLineColor(2);
2418       newmeAdcTEC_[i]->SetLineColor(4);
2419       newmeAdcTEC_[i]->SetLineStyle(2);
2420       meAdcTEC_[i]->Draw();
2421       newmeAdcTEC_[i]->Draw("sames");
2422       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2423       leg.Clear();
2424       leg.AddEntry(meAdcTEC_[i],rver , "l");
2425       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2426       leg.Draw();
2427 
2428    }
2429 
2430    Strip->Print("AdcOfTECWheel7Compare_ZM.eps");
2431    Strip->Print("AdcOfTECWheel7Compare_ZM.gif");
2432 } 
2433 if (1) {
2434    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2435    Strip->Divide(2,3);
2436    TH1* meStripTEC_[5];
2437    TH1* newmeStripTEC_[5];
2438  
2439    for (Int_t i=0; i<5; i++){
2440       sprintf(histo,"strip_tec_wheel7_ring%d_zm;1",i+1);
2441       rdir->GetObject(histo ,meStripTEC_[i]);
2442       sdir->GetObject(histo ,newmeStripTEC_[i]);
2443       meStripTEC_[i];
2444       newmeStripTEC_[i];
2445       Strip->cd(i+1); 
2446       gPad->SetLogy();
2447       meStripTEC_[i]->SetLineColor(2);
2448       newmeStripTEC_[i]->SetLineColor(4);
2449       newmeStripTEC_[i]->SetLineStyle(2);
2450       meStripTEC_[i]->Draw();
2451       newmeStripTEC_[i]->Draw("sames");
2452       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2453       leg.Clear();
2454       leg.AddEntry(meStripTEC_[i],rver , "l");
2455       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2456       leg.Draw();
2457 
2458    }
2459 
2460    Strip->Print("StripNumOfTECWheel7Compare_ZM.eps");
2461    Strip->Print("StripNumOfTECWheel7Compare_ZM.gif");
2462 }
2463 
2464 //TEC 8th Wheel in ZMinus Side
2465 if (1) {
2466    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2467    Strip->Divide(2,3);
2468    TH1* meAdcTEC_[5];
2469    TH1* newmeAdcTEC_[5];
2470 
2471    for (Int_t i=0; i<5; i++){
2472       sprintf(histo,"adc_tec_wheel8_ring%d_zm;1",i+1);
2473       rdir->GetObject(histo ,meAdcTEC_[i]);
2474       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2475       meAdcTEC_[i];
2476       newmeAdcTEC_[i];
2477       Strip->cd(i+1);
2478       gPad->SetLogy();
2479       meAdcTEC_[i]->SetLineColor(2);
2480       newmeAdcTEC_[i]->SetLineColor(4);
2481       newmeAdcTEC_[i]->SetLineStyle(2);
2482       meAdcTEC_[i]->Draw();
2483       newmeAdcTEC_[i]->Draw("sames");
2484       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2485       leg.Clear();
2486       leg.AddEntry(meAdcTEC_[i],rver , "l");
2487       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2488       leg.Draw();
2489 
2490    }
2491 
2492    Strip->Print("AdcOfTECWheel8Compare_ZM.eps");
2493    Strip->Print("AdcOfTECWheel8Compare_ZM.gif");
2494 } 
2495 if (1) {
2496    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2497    Strip->Divide(2,3);
2498    TH1* meStripTEC_[5];
2499    TH1* newmeStripTEC_[5];
2500  
2501    for (Int_t i=0; i<5; i++){
2502       sprintf(histo,"strip_tec_wheel8_ring%d_zm;1",i+1);
2503       rdir->GetObject(histo ,meStripTEC_[i]);
2504       sdir->GetObject(histo ,newmeStripTEC_[i]);
2505       meStripTEC_[i];
2506       newmeStripTEC_[i];
2507       Strip->cd(i+1); 
2508       gPad->SetLogy();
2509       meStripTEC_[i]->SetLineColor(2);
2510       newmeStripTEC_[i]->SetLineColor(4);
2511       newmeStripTEC_[i]->SetLineStyle(2);
2512       meStripTEC_[i]->Draw();
2513       newmeStripTEC_[i]->Draw("sames");
2514       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2515       leg.Clear();
2516       leg.AddEntry(meStripTEC_[i],rver , "l");
2517       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2518       leg.Draw();
2519 
2520    }
2521 
2522    Strip->Print("StripNumOfTECWheel8Compare_ZM.eps");
2523    Strip->Print("StripNumOfTECWheel8Compare_ZM.gif");
2524  }
2525 
2526 //TEC 9th Wheel in ZMinus Side
2527 if (1) {
2528    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2529    Strip->Divide(2,2);
2530    TH1* meAdcTEC_[4];
2531    TH1* newmeAdcTEC_[4];
2532 
2533    for (Int_t i=0; i<4; i++){
2534       sprintf(histo,"adc_tec_wheel9_ring%d_zm;1",i+1);
2535       rdir->GetObject(histo ,meAdcTEC_[i]);
2536       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2537       meAdcTEC_[i];
2538       newmeAdcTEC_[i];
2539       Strip->cd(i+1);
2540       gPad->SetLogy();
2541       meAdcTEC_[i]->SetLineColor(2);
2542       newmeAdcTEC_[i]->SetLineColor(4);
2543       newmeAdcTEC_[i]->SetLineStyle(2);
2544       meAdcTEC_[i]->Draw();
2545       newmeAdcTEC_[i]->Draw("sames");
2546       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2547       leg.Clear();
2548       leg.AddEntry(meAdcTEC_[i],rver , "l");
2549       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2550       leg.Draw();
2551 
2552    }
2553 
2554    Strip->Print("AdcOfTECWheel9Compare_ZM.eps");
2555    Strip->Print("AdcOfTECWheel9Compare_ZM.gif");
2556    } 
2557    if (1) {
2558    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2559    Strip->Divide(2,2);
2560    TH1* meStripTEC_[4];
2561    TH1* newmeStripTEC_[4];
2562  
2563    for (Int_t i=0; i<4; i++){
2564       sprintf(histo,"strip_tec_wheel9_ring%d_zm;1",i+1);
2565       rdir->GetObject(histo ,meStripTEC_[i]);
2566       sdir->GetObject(histo ,newmeStripTEC_[i]);
2567       meStripTEC_[i];
2568       newmeStripTEC_[i];
2569       Strip->cd(i+1); 
2570       gPad->SetLogy(); 
2571       meStripTEC_[i]->SetLineColor(2);
2572       newmeStripTEC_[i]->SetLineColor(4);
2573       newmeStripTEC_[i]->SetLineStyle(2);
2574       meStripTEC_[i]->Draw();
2575       newmeStripTEC_[i]->Draw("sames");
2576       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2577       leg.Clear();
2578       leg.AddEntry(meStripTEC_[i],rver , "l");
2579       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2580       leg.Draw();
2581 
2582    }
2583 
2584    Strip->Print("StripNumOfTECWheel9Compare_ZM.eps");
2585    Strip->Print("StripNumOfTECWheel9Compare_ZM.gif");
2586    }
2587 
2588 //TEC 1st Wheel in ZPlus  Side
2589    if (1) {
2590    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2591    Strip->Divide(2,4);
2592    TH1* meAdcTEC_[7];
2593    TH1* newmeAdcTEC_[7];
2594 
2595    for (Int_t i=0; i<7; i++){
2596       sprintf(histo,"adc_tec_wheel1_ring%d_zp;1",i+1);
2597       rdir->GetObject(histo ,meAdcTEC_[i]);
2598       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2599       meAdcTEC_[i];
2600       newmeAdcTEC_[i];
2601       Strip->cd(i+1);
2602       gPad->SetLogy();
2603       meAdcTEC_[i]->SetLineColor(2);
2604       newmeAdcTEC_[i]->SetLineColor(4);
2605       newmeAdcTEC_[i]->SetLineStyle(2);
2606       meAdcTEC_[i]->Draw();
2607       newmeAdcTEC_[i]->Draw("sames");
2608       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2609       leg.Clear();
2610       leg.AddEntry(meAdcTEC_[i],rver , "l");
2611       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2612       leg.Draw();
2613 
2614    }
2615 
2616    Strip->Print("AdcOfTECWheel1Compare_ZP.eps");
2617    Strip->Print("AdcOfTECWheel1Compare_ZP.gif");
2618    } 
2619    if (1) {
2620    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2621    Strip->Divide(2,4);
2622    TH1* meStripTEC_[7];
2623    TH1* newmeStripTEC_[7];
2624  
2625    for (Int_t i=0; i<7; i++){
2626       sprintf(histo,"strip_tec_wheel1_ring%d_zp;1",i+1);
2627       rdir->GetObject(histo ,meStripTEC_[i]);
2628       sdir->GetObject(histo ,newmeStripTEC_[i]);
2629       meStripTEC_[i];
2630       newmeStripTEC_[i];
2631       Strip->cd(i+1); 
2632       gPad->SetLogy();
2633       meStripTEC_[i]->SetLineColor(2);
2634       newmeStripTEC_[i]->SetLineColor(4);
2635       newmeStripTEC_[i]->SetLineStyle(2);
2636       meStripTEC_[i]->Draw();
2637       newmeStripTEC_[i]->Draw("sames");
2638       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2639       leg.Clear();
2640       leg.AddEntry(meStripTEC_[i],rver , "l");
2641       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2642       leg.Draw();
2643 
2644    }
2645 
2646    Strip->Print("StripNumOfTECWheel1Compare_ZP.eps");
2647    Strip->Print("StripNumOfTECWheel1Compare_ZP.gif");
2648    }
2649 //TEC 2nd Wheel in ZPlus  Side
2650    if (1) {
2651    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2652    Strip->Divide(2,4);
2653    TH1* meAdcTEC_[7];
2654    TH1* newmeAdcTEC_[7];
2655 
2656    for (Int_t i=0; i<7; i++){
2657       sprintf(histo,"adc_tec_wheel2_ring%d_zp;1",i+1);
2658       rdir->GetObject(histo ,meAdcTEC_[i]);
2659       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2660       meAdcTEC_[i];
2661       newmeAdcTEC_[i];
2662       Strip->cd(i+1);
2663       gPad->SetLogy();
2664       meAdcTEC_[i]->SetLineColor(2);
2665       newmeAdcTEC_[i]->SetLineColor(4);
2666       newmeAdcTEC_[i]->SetLineStyle(2);
2667       meAdcTEC_[i]->Draw();
2668       newmeAdcTEC_[i]->Draw("sames");
2669       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2670       leg.Clear();
2671       leg.AddEntry(meAdcTEC_[i],rver , "l");
2672       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2673       leg.Draw();
2674 
2675    }
2676 
2677    Strip->Print("AdcOfTECWheel2Compare_ZP.eps");
2678    Strip->Print("AdcOfTECWheel2Compare_ZP.gif");
2679    } 
2680    if (1) {
2681    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2682    Strip->Divide(2,4);
2683    TH1* meStripTEC_[7];
2684    TH1* newmeStripTEC_[7];
2685  
2686    for (Int_t i=0; i<7; i++){
2687       sprintf(histo,"strip_tec_wheel2_ring%d_zp;1",i+1);
2688       rdir->GetObject(histo ,meStripTEC_[i]);
2689       sdir->GetObject(histo ,newmeStripTEC_[i]);
2690       meStripTEC_[i];
2691       newmeStripTEC_[i];
2692       Strip->cd(i+1); 
2693       gPad->SetLogy();
2694       meStripTEC_[i]->SetLineColor(2);
2695       newmeStripTEC_[i]->SetLineColor(4);
2696       newmeStripTEC_[i]->SetLineStyle(2);
2697       meStripTEC_[i]->Draw();
2698       newmeStripTEC_[i]->Draw("sames");
2699       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2700       leg.Clear();
2701       leg.AddEntry(meStripTEC_[i],rver , "l");
2702       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2703       leg.Draw();
2704 
2705    }
2706 
2707    Strip->Print("StripNumOfTECWheel2Compare_ZP.eps");
2708    Strip->Print("StripNumOfTECWheel2Compare_ZP.gif");
2709    }
2710 
2711 //TEC 3rd Wheel in ZPlus  Side
2712    if (1) {
2713    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2714    Strip->Divide(2,4);
2715    TH1* meAdcTEC_[7];
2716    TH1* newmeAdcTEC_[7];
2717 
2718    for (Int_t i=0; i<7; i++){
2719       sprintf(histo,"adc_tec_wheel3_ring%d_zp;1",i+1);
2720       rdir->GetObject(histo ,meAdcTEC_[i]);
2721       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2722       meAdcTEC_[i];
2723       newmeAdcTEC_[i];
2724       Strip->cd(i+1);
2725       gPad->SetLogy();
2726       meAdcTEC_[i]->SetLineColor(2);
2727       newmeAdcTEC_[i]->SetLineColor(4);
2728       newmeAdcTEC_[i]->SetLineStyle(2);
2729       meAdcTEC_[i]->Draw();
2730       newmeAdcTEC_[i]->Draw("sames");
2731       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2732       leg.Clear();
2733       leg.AddEntry(meAdcTEC_[i],rver , "l");
2734       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2735       leg.Draw();
2736 
2737    }
2738 
2739    Strip->Print("AdcOfTECWheel3Compare_ZP.eps");
2740    Strip->Print("AdcOfTECWheel3Compare_ZP.gif");
2741    } 
2742    if (1) {
2743    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2744    Strip->Divide(2,4);
2745    TH1* meStripTEC_[7];
2746    TH1* newmeStripTEC_[7];
2747  
2748    for (Int_t i=0; i<7; i++){
2749       sprintf(histo,"strip_tec_wheel3_ring%d_zp;1",i+1);
2750       rdir->GetObject(histo ,meStripTEC_[i]);
2751       sdir->GetObject(histo ,newmeStripTEC_[i]);
2752       meStripTEC_[i];
2753       newmeStripTEC_[i];
2754       Strip->cd(i+1); 
2755       gPad->SetLogy();
2756       meStripTEC_[i]->SetLineColor(2);
2757       newmeStripTEC_[i]->SetLineColor(4);
2758       newmeStripTEC_[i]->SetLineStyle(2);
2759       meStripTEC_[i]->Draw();
2760       newmeStripTEC_[i]->Draw("sames");
2761       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2762       leg.Clear();
2763       leg.AddEntry(meStripTEC_[i],rver , "l");
2764       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2765       leg.Draw();
2766 
2767    }
2768 
2769    Strip->Print("StripNumOfTECWheel3Compare_ZP.eps");
2770    Strip->Print("StripNumOfTECWheel3Compare_ZP.gif");
2771    }
2772 
2773 //TEC 4th Wheel in ZPlus  Side
2774    if (1) {
2775    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2776    Strip->Divide(2,3);
2777    TH1* meAdcTEC_[6];
2778    TH1* newmeAdcTEC_[6];
2779 
2780    for (Int_t i=0; i<6; i++){
2781       sprintf(histo,"adc_tec_wheel4_ring%d_zp;1",i+1);
2782       rdir->GetObject(histo ,meAdcTEC_[i]);
2783       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2784       meAdcTEC_[i];
2785       newmeAdcTEC_[i];
2786       Strip->cd(i+1);
2787       gPad->SetLogy();
2788       meAdcTEC_[i]->SetLineColor(2);
2789       newmeAdcTEC_[i]->SetLineColor(4);
2790       newmeAdcTEC_[i]->SetLineStyle(2);
2791       meAdcTEC_[i]->Draw();
2792       newmeAdcTEC_[i]->Draw("sames");
2793       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2794       leg.Clear();
2795       leg.AddEntry(meAdcTEC_[i],rver , "l");
2796       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2797       leg.Draw();
2798 
2799    }
2800 
2801    Strip->Print("AdcOfTECWheel4Compare_ZP.eps");
2802    Strip->Print("AdcOfTECWheel4Compare_ZP.gif");
2803    } 
2804    if (1) {
2805    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2806    Strip->Divide(2,3);
2807    TH1* meStripTEC_[6];
2808    TH1* newmeStripTEC_[6];
2809  
2810    for (Int_t i=0; i<6; i++){
2811       sprintf(histo,"strip_tec_wheel4_ring%d_zp;1",i+1);
2812       rdir->GetObject(histo ,meStripTEC_[i]);
2813       sdir->GetObject(histo ,newmeStripTEC_[i]);
2814       meStripTEC_[i];
2815       newmeStripTEC_[i];
2816       Strip->cd(i+1); 
2817       gPad->SetLogy();
2818       meStripTEC_[i]->SetLineColor(2);
2819       newmeStripTEC_[i]->SetLineColor(4);
2820       newmeStripTEC_[i]->SetLineStyle(2);
2821       meStripTEC_[i]->Draw();
2822       newmeStripTEC_[i]->Draw("sames");
2823       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2824       leg.Clear();
2825       leg.AddEntry(meStripTEC_[i],rver , "l");
2826       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2827       leg.Draw();
2828 
2829    }
2830 
2831    Strip->Print("StripNumOfTECWheel4Compare_ZP.eps");
2832    Strip->Print("StripNumOfTECWheel4Compare_ZP.gif");
2833    }
2834 
2835 //TEC 5th Wheel in ZPlus  Side
2836    if (1) {
2837    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2838    Strip->Divide(2,3);
2839    TH1* meAdcTEC_[6];
2840    TH1* newmeAdcTEC_[6];
2841 
2842    for (Int_t i=0; i<6; i++){
2843       sprintf(histo,"adc_tec_wheel5_ring%d_zp;1",i+1);
2844       rdir->GetObject(histo ,meAdcTEC_[i]);
2845       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2846       meAdcTEC_[i];
2847       newmeAdcTEC_[i];
2848       Strip->cd(i+1);
2849       gPad->SetLogy();
2850       meAdcTEC_[i]->SetLineColor(2);
2851       newmeAdcTEC_[i]->SetLineColor(4);
2852       newmeAdcTEC_[i]->SetLineStyle(2);
2853       meAdcTEC_[i]->Draw();
2854       newmeAdcTEC_[i]->Draw("sames");
2855       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2856       leg.Clear();
2857       leg.AddEntry(meAdcTEC_[i],rver , "l");
2858       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2859       leg.Draw();
2860 
2861    }
2862 
2863    Strip->Print("AdcOfTECWheel5Compare_ZP.eps");
2864    Strip->Print("AdcOfTECWheel5Compare_ZP.gif");
2865    } 
2866    if (1) {
2867    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2868    Strip->Divide(2,3);
2869    TH1* meStripTEC_[6];
2870    TH1* newmeStripTEC_[6];
2871  
2872    for (Int_t i=0; i<6; i++){
2873       sprintf(histo,"strip_tec_wheel5_ring%d_zp;1",i+1);
2874       rdir->GetObject(histo ,meStripTEC_[i]);
2875       sdir->GetObject(histo ,newmeStripTEC_[i]);
2876       meStripTEC_[i];
2877       newmeStripTEC_[i];
2878       Strip->cd(i+1); 
2879       gPad->SetLogy();
2880       meStripTEC_[i]->SetLineColor(2);
2881       newmeStripTEC_[i]->SetLineColor(4);
2882       newmeStripTEC_[i]->SetLineStyle(2);
2883       meStripTEC_[i]->Draw();
2884       newmeStripTEC_[i]->Draw("sames");
2885       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2886       leg.Clear();
2887       leg.AddEntry(meStripTEC_[i],rver , "l");
2888       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2889       leg.Draw();
2890 
2891    }
2892 
2893    Strip->Print("StripNumOfTECWheel5Compare_ZP.eps");
2894    Strip->Print("StripNumOfTECWheel5Compare_ZP.gif");
2895    }
2896 
2897 //TEC 6th WPlus in ZMinus Side
2898    if (1) {
2899    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2900    Strip->Divide(2,3);
2901    TH1* meAdcTEC_[6];
2902    TH1* newmeAdcTEC_[6];
2903 
2904    for (Int_t i=0; i<6; i++){
2905       sprintf(histo,"adc_tec_wheel6_ring%d_zp;1",i+1);
2906       rdir->GetObject(histo ,meAdcTEC_[i]);
2907       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2908       meAdcTEC_[i];
2909       newmeAdcTEC_[i];
2910       Strip->cd(i+1);
2911       gPad->SetLogy();
2912       meAdcTEC_[i]->SetLineColor(2);
2913       newmeAdcTEC_[i]->SetLineColor(4);
2914       newmeAdcTEC_[i]->SetLineStyle(2);
2915       meAdcTEC_[i]->Draw();
2916       newmeAdcTEC_[i]->Draw("sames");
2917       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2918       leg.Clear();
2919       leg.AddEntry(meAdcTEC_[i],rver , "l");
2920       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2921       leg.Draw();
2922 
2923    }
2924 
2925    Strip->Print("AdcOfTECWheel6Compare_ZP.eps");
2926    Strip->Print("AdcOfTECWheel6Compare_ZP.gif");
2927    } 
2928    if (1) {
2929    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2930    Strip->Divide(2,3);
2931    TH1* meStripTEC_[6];
2932    TH1* newmeStripTEC_[6];
2933  
2934    for (Int_t i=0; i<6; i++){
2935       sprintf(histo,"strip_tec_wheel6_ring%d_zp;1",i+1);
2936       rdir->GetObject(histo ,meStripTEC_[i]);
2937       sdir->GetObject(histo ,newmeStripTEC_[i]);
2938       meStripTEC_[i];
2939       newmeStripTEC_[i];
2940       Strip->cd(i+1); 
2941       gPad->SetLogy();
2942       meStripTEC_[i]->SetLineColor(2);
2943       newmeStripTEC_[i]->SetLineColor(4);
2944       newmeStripTEC_[i]->SetLineStyle(2);
2945       meStripTEC_[i]->Draw();
2946       newmeStripTEC_[i]->Draw("sames");
2947       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
2948       leg.Clear();
2949       leg.AddEntry(meStripTEC_[i],rver , "l");
2950       leg.AddEntry(newmeStripTEC_[i],cver , "l");
2951       leg.Draw();
2952 
2953    }
2954 
2955    Strip->Print("StripNumOfTECWheel6Compare_ZP.eps");
2956    Strip->Print("StripNumOfTECWheel6Compare_ZP.gif");
2957    }
2958 
2959 //TEC 7th Wheel in ZPlus  Side
2960    if (1) {
2961    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2962    Strip->Divide(2,3);
2963    TH1* meAdcTEC_[5];
2964    TH1* newmeAdcTEC_[5];
2965 
2966    for (Int_t i=0; i<5; i++){
2967       sprintf(histo,"adc_tec_wheel7_ring%d_zp;1",i+1);
2968       rdir->GetObject(histo ,meAdcTEC_[i]);
2969       sdir->GetObject(histo ,newmeAdcTEC_[i]);
2970       meAdcTEC_[i];
2971       newmeAdcTEC_[i];
2972       Strip->cd(i+1);
2973       gPad->SetLogy();
2974       meAdcTEC_[i]->SetLineColor(2);
2975       newmeAdcTEC_[i]->SetLineColor(4);
2976       newmeAdcTEC_[i]->SetLineStyle(2);
2977       meAdcTEC_[i]->Draw();
2978       newmeAdcTEC_[i]->Draw("sames");
2979       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
2980       leg.Clear();
2981       leg.AddEntry(meAdcTEC_[i],rver , "l");
2982       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
2983       leg.Draw();
2984 
2985    }
2986 
2987    Strip->Print("AdcOfTECWheel7Compare_ZP.eps");
2988    Strip->Print("AdcOfTECWheel7Compare_ZP.gif");
2989    } 
2990    if (1) {
2991    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
2992    Strip->Divide(2,3);
2993    TH1* meStripTEC_[5];
2994    TH1* newmeStripTEC_[5];
2995  
2996    for (Int_t i=0; i<5; i++){
2997       sprintf(histo,"strip_tec_wheel7_ring%d_zp;1",i+1);
2998       rdir->GetObject(histo ,meStripTEC_[i]);
2999       sdir->GetObject(histo ,newmeStripTEC_[i]);
3000       meStripTEC_[i];
3001       newmeStripTEC_[i];
3002       Strip->cd(i+1); 
3003       meStripTEC_[i]->SetLineColor(2);
3004       newmeStripTEC_[i]->SetLineColor(4);
3005       newmeStripTEC_[i]->SetLineStyle(2);
3006       meStripTEC_[i]->Draw();
3007       newmeStripTEC_[i]->Draw("sames");
3008       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
3009       leg.Clear();
3010       leg.AddEntry(meStripTEC_[i],rver , "l");
3011       leg.AddEntry(newmeStripTEC_[i],cver , "l");
3012       leg.Draw();
3013 
3014    }
3015 
3016    Strip->Print("StripNumOfTECWheel7Compare_ZP.eps");
3017    Strip->Print("StripNumOfTECWheel7Compare_ZP.gif");
3018    }
3019 
3020 //TEC 8th Wheel in ZPlus  Side
3021    if (1) {
3022    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
3023    Strip->Divide(2,3);
3024    TH1* meAdcTEC_[5];
3025    TH1* newmeAdcTEC_[5];
3026 
3027    for (Int_t i=0; i<5; i++){
3028       sprintf(histo,"adc_tec_wheel8_ring%d_zp;1",i+1);
3029       rdir->GetObject(histo ,meAdcTEC_[i]);
3030       sdir->GetObject(histo ,newmeAdcTEC_[i]);
3031       meAdcTEC_[i];
3032       newmeAdcTEC_[i];
3033       Strip->cd(i+1);
3034       gPad->SetLogy();
3035       meAdcTEC_[i]->SetLineColor(2);
3036       newmeAdcTEC_[i]->SetLineColor(4);
3037       newmeAdcTEC_[i]->SetLineStyle(2);
3038       meAdcTEC_[i]->Draw();
3039       newmeAdcTEC_[i]->Draw("sames");
3040       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
3041       leg.Clear();
3042       leg.AddEntry(meAdcTEC_[i],rver , "l");
3043       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
3044       leg.Draw();
3045 
3046    }
3047 
3048    Strip->Print("AdcOfTECWheel8Compare_ZP.eps");
3049    Strip->Print("AdcOfTECWheel8Compare_ZP.gif");
3050    } 
3051    if (1) {
3052    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
3053    Strip->Divide(2,3);
3054    TH1* meStripTEC_[5];
3055    TH1* newmeStripTEC_[5];
3056  
3057    for (Int_t i=0; i<5; i++){
3058       sprintf(histo,"strip_tec_wheel8_ring%d_zp;1",i+1);
3059       rdir->GetObject(histo ,meStripTEC_[i]);
3060       sdir->GetObject(histo ,newmeStripTEC_[i]);
3061       meStripTEC_[i];
3062       newmeStripTEC_[i];
3063       Strip->cd(i+1); 
3064       gPad->SetLogy();
3065       meStripTEC_[i]->SetLineColor(2);
3066       newmeStripTEC_[i]->SetLineColor(4);
3067       newmeStripTEC_[i]->SetLineStyle(2);
3068       meStripTEC_[i]->Draw();
3069       newmeStripTEC_[i]->Draw("sames");
3070       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
3071       leg.Clear();
3072       leg.AddEntry(meStripTEC_[i],rver , "l");
3073       leg.AddEntry(newmeStripTEC_[i],cver , "l");
3074       leg.Draw();
3075 
3076    }
3077 
3078    Strip->Print("StripNumOfTECWheel8Compare_ZP.eps");
3079    Strip->Print("StripNumOfTECWheel8Compare_ZP.gif");
3080    }
3081 
3082 //TEC 9th Wheel in ZPLUS  Side
3083    if (1) {
3084    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
3085    Strip->Divide(2,2);
3086    TH1* meAdcTEC_[4];
3087    TH1* newmeAdcTEC_[4];
3088 
3089    for (Int_t i=0; i<4; i++){
3090       sprintf(histo,"adc_tec_wheel9_ring%d_zp;1",i+1);
3091       rdir->GetObject(histo ,meAdcTEC_[i]);
3092       sdir->GetObject(histo ,newmeAdcTEC_[i]);
3093       meAdcTEC_[i];
3094       newmeAdcTEC_[i];
3095       Strip->cd(i+1);
3096       gPad->SetLogy();
3097       meAdcTEC_[i]->SetLineColor(2);
3098       newmeAdcTEC_[i]->SetLineColor(4);
3099       newmeAdcTEC_[i]->SetLineStyle(2);
3100       meAdcTEC_[i]->Draw();
3101       newmeAdcTEC_[i]->Draw("sames");
3102       myPV->PVCompute(meAdcTEC_[i],newmeAdcTEC_[i],te);
3103       leg.Clear();
3104       leg.AddEntry(meAdcTEC_[i],rver , "l");
3105       leg.AddEntry(newmeAdcTEC_[i],cver , "l");
3106       leg.Draw();
3107 
3108    }
3109 
3110    Strip->Print("AdcOfTECWheel9Compare_ZP.eps");
3111    Strip->Print("AdcOfTECWheel9Compare_ZP.gif");
3112    } 
3113  if (1) {
3114    TCanvas * Strip = new TCanvas("Strip","Strip",800,1000);
3115    Strip->Divide(2,2);
3116    TH1* meStripTEC_[4];
3117    TH1* newmeStripTEC_[4];
3118  
3119    for (Int_t i=0; i<4; i++){
3120       sprintf(histo,"strip_tec_wheel9_ring%d_zp;1",i+1);
3121       rdir->GetObject(histo ,meStripTEC_[i]);
3122       sdir->GetObject(histo ,newmeStripTEC_[i]);
3123       meStripTEC_[i];
3124       newmeStripTEC_[i];
3125       Strip->cd(i+1); 
3126       gPad->SetLogy();
3127       meStripTEC_[i]->SetLineColor(2);
3128       newmeStripTEC_[i]->SetLineColor(4);
3129       newmeStripTEC_[i]->SetLineStyle(2);
3130       meStripTEC_[i]->Draw();
3131       newmeStripTEC_[i]->Draw("sames");
3132       myPV->PVCompute(meStripTEC_[i],newmeStripTEC_[i],te);
3133       leg.Clear();
3134       leg.AddEntry(meStripTEC_[i],rver , "l");
3135       leg.AddEntry(newmeStripTEC_[i],cver , "l");
3136       leg.Draw();
3137 
3138    }
3139 
3140    Strip->Print("StripNumOfTECWheel9Compare_ZP.eps");
3141    Strip->Print("StripNumOfTECWheel9Compare_ZP.gif");
3142  }
3143 }
3144