/[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.3 by pam-fi, Thu Aug 12 15:14:31 2010 UTC
# Line 14  TofDedxVsBetaHistoAction::TofDedxVsBetaH Line 14  TofDedxVsBetaHistoAction::TofDedxVsBetaH
14    Histo2DAction<Int_t> (actionName, title, outFileBase, mode, outRoot, outText), _layers(layers), _nLayers(0),    Histo2DAction<Int_t> (actionName, title, outFileBase, mode, outRoot, outText), _layers(layers), _nLayers(0),
15        _badEvents(0), _standAlone(standAlone) {        _badEvents(0), _standAlone(standAlone) {
16    
17      bool buildTitle = false;
18    if (title == "") {    if (title == "") {
19        buildTitle = true;
20      title = "TOF dE/dx (";      title = "TOF dE/dx (";
21      if ((_layers & S11) == S11) {    }
22      if ((_layers & S11) == S11) {
23        if (buildTitle)
24        title += "S11";        title += "S11";
25        _nLayers++;      _nLayers++;
26      }    }
27      if ((_layers & S12) == S12) {    if ((_layers & S12) == S12) {
28        if (buildTitle) {
29        if (_nLayers > 0)        if (_nLayers > 0)
30          title += ",";          title += ",";
31        title += "S12";        title += "S12";
       _nLayers++;  
32      }      }
33      if ((_layers & S21) == S21) {      _nLayers++;
34      }
35      if ((_layers & S21) == S21) {
36        if (buildTitle) {
37        if (_nLayers > 0)        if (_nLayers > 0)
38          title += ",";          title += ",";
39        title += "S21";        title += "S21";
       _nLayers++;  
40      }      }
41      if ((_layers & S22) == S22) {      _nLayers++;
42      }
43      if ((_layers & S22) == S22) {
44        if (buildTitle) {
45        if (_nLayers > 0)        if (_nLayers > 0)
46          title += ",";          title += ",";
47        title += "S22";        title += "S22";
       _nLayers++;  
48      }      }
49      if ((_layers & S31) == S31) {      _nLayers++;
50      }
51      if ((_layers & S31) == S31) {
52        if (buildTitle) {
53        if (_nLayers > 0)        if (_nLayers > 0)
54          title += ",";          title += ",";
55        title += "S31";        title += "S31";
       _nLayers++;  
56      }      }
57      if ((_layers & S32) == S32) {      _nLayers++;
58      }
59      if ((_layers & S32) == S32) {
60        if (buildTitle) {
61        if (_nLayers > 0)        if (_nLayers > 0)
62          title += ",";          title += ",";
63        title += "S32";        title += "S32";
       _nLayers++;  
64      }      }
65        _nLayers++;
66      }
67      if (buildTitle)
68      title += ") Vs Beta";      title += ") Vs Beta";
69    
70      SetTitle(title);    SetTitle(title);
   }  
71    
72  }  }
73    
# Line 117  void TofDedxVsBetaHistoAction::OnGood(Pa Line 131  void TofDedxVsBetaHistoAction::OnGood(Pa
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

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

  ViewVC Help
Powered by ViewVC 1.1.23