ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/DTDPGAnalysis/src/DTDPGCreateAnalyzerSummary.cc
(Generate patch)

Comparing UserCode/DTDPGAnalysis/src/DTDPGCreateAnalyzerSummary.cc (file contents):
Revision 1.6 by cerminar, Fri Dec 19 16:36:40 2008 UTC vs.
Revision 1.7 by pellicci, Mon May 3 14:38:28 2010 UTC

# Line 454 | Line 454 | void DTDPGCreateAnalyzerSummary::createS
454    //===================================================================================
455    
456    TH1F *heffTrgSecMB[5][14][4];
457 <  char * labTriggerMatrix[]={"no trig"," ","MB1","MB2","MB3","MB4"," ","1 & 2","1 & 3","1 & 4","2 & 3","2 & 4",
457 >  string labTriggerMatrix[]={"no trig"," ","MB1","MB2","MB3","MB4"," ","1 & 2","1 & 3","1 & 4","2 & 3","2 & 4",
458                               "3 & 4"," ","1 & 2 & 3","1 & 2 & 4","1 & 3 & 4","2 & 3 & 4"," ","1 & 2 & 3 & 4"};
459  
460    whIt  = mySectors.begin();
# Line 535 | Line 535 | void DTDPGCreateAnalyzerSummary::createS
535          edm::LogVerbatim ("DTDPGSummary") << "[DTDPGCreateAnalyzerSummary]: Drawing TriggerMatrix wh "
536                                            << (iw-2) << " sec " << isec << endl;
537  
538 <        for (int ibin=1; ibin<21; ibin++) TriggerMatrix[iw][isec-1]->GetXaxis()->SetBinLabel(ibin,labTriggerMatrix[ibin-1]);
538 >        for (int ibin=1; ibin<21; ibin++) TriggerMatrix[iw][isec-1]->GetXaxis()->SetBinLabel(ibin,(labTriggerMatrix[ibin-1]).c_str());
539          nbin = TriggerMatrix[iw][isec-1]->GetXaxis()->GetNbins();
540          max = 0;
541          TCanvas *Trigmatri = new TCanvas("TriggerMatrix", "",201,81,999,699);
# Line 693 | Line 693 | void DTDPGCreateAnalyzerSummary::createS
693  
694    TH1F * first_to_paint;
695  
696 <  float BXSummary_mean=0.;
697 <  float NBXSummary_mean=0.;
696 >  //float BXSummary_mean=0.;
697 >  //float NBXSummary_mean=0.;
698    TH1F *BXSummary[5][4];
699    for(int iw=0;iw<5;iw++){ // Loop in wheels
700      for(int ic=1;ic<5;ic++){
# Line 732 | Line 732 | void DTDPGCreateAnalyzerSummary::createS
732    
733      float Max=2000;
734      float Max0[12];
735 <    float MaxMean=0;
735 >    //float MaxMean=0;
736      float MaxMean0=0;
737      float MaxRMS0=0;
738 <    float MaxRMS=0;
738 >    //float MaxRMS=0;
739      int Ns=0;
740      for(int is=0;is<12; is++){
741        Max0[is]=0;
# Line 771 | Line 771 | void DTDPGCreateAnalyzerSummary::createS
771  
772      //    Ocupancies per SL    
773      // Get histos to be plotted
774 <    int nbin;
775 <    float max, max1;
776 <    TPaveText *sid;
777 <    char sid1[50]; char answ;
778 <    TPaveText *labcont[50]; TText *cont[50];
774 >    //int nbin;
775 >    //float max, max1;
776 >    //TPaveText *sid;
777 >    //char sid1[50]; char answ;
778 >    //TPaveText *labcont[50]; TText *cont[50];
779      
780       // Occupancies
781      TH2F *DigiXYS[5][14];
# Line 804 | Line 804 | void DTDPGCreateAnalyzerSummary::createS
804      
805      for(int isec=1;isec<15;isec++){
806        int nbx= DigiXYS[iw][isec-1]->GetNbinsX() ;
807 <      int nby= DigiXYS[iw][isec-1]->GetNbinsY() ;
807 >      //int nby= DigiXYS[iw][isec-1]->GetNbinsY() ;
808      
809        for(int ich=1;ich<5;ich++){
810          for(int isl=1;isl<4;isl++){
# Line 902 | Line 902 | void DTDPGCreateAnalyzerSummary::createS
902        first_to_paint->GetXaxis()->SetTitleSize(0.09);
903        first_to_paint->GetXaxis()->SetTitleOffset(0.5);
904        first_to_paint->GetXaxis()->SetNdivisions(308);
905 <      char htit[240];
905 >      //char htit[240];
906        stringstream htitle; htitle << "TimeBox W" << iw-2 << " S" << ins;
907        first_to_paint->SetTitle(htitle.str().c_str());
908        first_to_paint->Draw();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines