| 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 |  |  | 
| 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 |