11 |
|
|
12 |
TofDedxVsBetaHistoAction::TofDedxVsBetaHistoAction(const char *actionName, unsigned int layers, bool standAlone, |
TofDedxVsBetaHistoAction::TofDedxVsBetaHistoAction(const char *actionName, unsigned int layers, bool standAlone, |
13 |
TString outFileBase, TString mode, bool outRoot, bool outText, TString title) : |
TString outFileBase, TString mode, bool outRoot, bool outText, TString title) : |
14 |
Histo2DAction<Int_t>(actionName, title, outFileBase, mode, outRoot, outText), _layers(layers), _nLayers(0), _badEvents( |
Histo2DAction<Int_t> (actionName, title, outFileBase, mode, outRoot, outText), _layers(layers), _nLayers(0), |
15 |
0), _standAlone(standAlone) { |
_badEvents(0), _standAlone(standAlone) { |
16 |
|
|
17 |
bool buildTitle = false; |
bool buildTitle = false; |
18 |
if (title == "") { |
if (title == "") { |
131 |
badLayers++; |
badLayers++; |
132 |
} |
} |
133 |
if (badLayers == 0) { |
if (badLayers == 0) { |
134 |
dEdx /= _nLayers - badLayers; |
dEdx /= _nLayers; |
135 |
Fill(event->GetToFLevel2()->GetToFTrkVar(trkSeqNo)->beta[12], dEdx); |
Fill(event->GetToFLevel2()->GetToFTrkVar(trkSeqNo)->beta[12], dEdx); |
136 |
} |
} |
137 |
else |
else |