1 |
pam-fi |
1.1 |
/* |
2 |
|
|
* TrkYVsXHistoAction.cpp |
3 |
|
|
* |
4 |
|
|
* Created on: 02/dec/2009 |
5 |
|
|
* Author: Sergio Ricciarini |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
/*! @file TrkYVsXHistoAction.cpp The TrkYVsXHistoAction class implementation file. */ |
9 |
|
|
|
10 |
|
|
#include "TrkYVsXHistoAction.h" |
11 |
|
|
|
12 |
|
|
TrkYVsXHistoAction::TrkYVsXHistoAction(const char *actionName, TString outFileBase, TString mode, |
13 |
|
|
bool outRoot, bool outText, TString title, UInt_t igf) : |
14 |
|
|
Histo2DAction<Int_t> (actionName, title, outFileBase, mode, outRoot, outText), _igf(igf) { |
15 |
|
|
|
16 |
|
|
SetXAxis("X (cm)",100,TrkParams::xGF_min[_igf],TrkParams::xGF_max[_igf]); // Default X axis |
17 |
|
|
SetYAxis("Y (cm)",100,TrkParams::yGF_min[_igf],TrkParams::yGF_max[_igf]); // Default Y axis |
18 |
|
|
|
19 |
|
|
} |
20 |
|
|
|
21 |
|
|
void TrkYVsXHistoAction::OnGood(PamLevel2 *event) { |
22 |
|
|
|
23 |
|
|
Fill(event->GetTrack(0)->GetTrkTrack()->xGF[_igf], |
24 |
|
|
event->GetTrack(0)->GetTrkTrack()->yGF[_igf]); |
25 |
|
|
|
26 |
|
|
} |