/[PAMELA software]/PamCut/CollectionActions/Histo2DActions/TofDedxVsBetaHistoAction/TofDedxVsBetaHistoAction.cpp
ViewVC logotype

Diff of /PamCut/CollectionActions/Histo2DActions/TofDedxVsBetaHistoAction/TofDedxVsBetaHistoAction.cpp

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

revision 1.1 by pam-fi, Fri Sep 25 15:36:35 2009 UTC revision 1.2 by pam-fi, Thu Aug 12 15:11:33 2010 UTC
# Line 16  TofDedxVsBetaHistoAction::TofDedxVsBetaH Line 16  TofDedxVsBetaHistoAction::TofDedxVsBetaH
16    
17    if (title == "") {    if (title == "") {
18      title = "TOF dE/dx (";      title = "TOF dE/dx (";
     if ((_layers & S11) == S11) {  
       title += "S11";  
       _nLayers++;  
     }  
     if ((_layers & S12) == S12) {  
       if (_nLayers > 0)  
         title += ",";  
       title += "S12";  
       _nLayers++;  
     }  
     if ((_layers & S21) == S21) {  
       if (_nLayers > 0)  
         title += ",";  
       title += "S21";  
       _nLayers++;  
     }  
     if ((_layers & S22) == S22) {  
       if (_nLayers > 0)  
         title += ",";  
       title += "S22";  
       _nLayers++;  
     }  
     if ((_layers & S31) == S31) {  
       if (_nLayers > 0)  
         title += ",";  
       title += "S31";  
       _nLayers++;  
     }  
     if ((_layers & S32) == S32) {  
       if (_nLayers > 0)  
         title += ",";  
       title += "S32";  
       _nLayers++;  
     }  
     title += ") Vs Beta";  
   
     SetTitle(title);  
19    }    }
20      if ((_layers & S11) == S11) {
21        title += "S11";
22        _nLayers++;
23      }
24      if ((_layers & S12) == S12) {
25        if (_nLayers > 0)
26          title += ",";
27        title += "S12";
28        _nLayers++;
29      }
30      if ((_layers & S21) == S21) {
31        if (_nLayers > 0)
32          title += ",";
33        title += "S21";
34        _nLayers++;
35      }
36      if ((_layers & S22) == S22) {
37        if (_nLayers > 0)
38          title += ",";
39        title += "S22";
40        _nLayers++;
41      }
42      if ((_layers & S31) == S31) {
43        if (_nLayers > 0)
44          title += ",";
45        title += "S31";
46        _nLayers++;
47      }
48      if ((_layers & S32) == S32) {
49        if (_nLayers > 0)
50          title += ",";
51        title += "S32";
52        _nLayers++;
53      }
54      title += ") Vs Beta";
55    
56      cout << _layers << "  " << _nLayers << endl;
57      SetTitle(title);
58    
59  }  }
60    
# Line 117  void TofDedxVsBetaHistoAction::OnGood(Pa Line 118  void TofDedxVsBetaHistoAction::OnGood(Pa
118        badLayers++;        badLayers++;
119    }    }
120    if (badLayers == 0) {    if (badLayers == 0) {
121      dEdx /= _nLayers - badLayers;      dEdx /= _nLayers;
122        cout << _nLayers << "  " << dEdx << endl;
123      Fill(event->GetToFLevel2()->GetToFTrkVar(trkSeqNo)->beta[12], dEdx);      Fill(event->GetToFLevel2()->GetToFTrkVar(trkSeqNo)->beta[12], dEdx);
124    }    }
125    else    else

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

  ViewVC Help
Powered by ViewVC 1.1.23