1 |
/* |
2 |
* TrkRigVsGPMomHistoAction.cpp |
3 |
* |
4 |
* Created on: 24/jun/2010 |
5 |
* Author: S. Ricciarini |
6 |
*/ |
7 |
|
8 |
#include "TrkRigVsGPMomHistoAction.h" |
9 |
|
10 |
TrkRigVsGPMomHistoAction::TrkRigVsGPMomHistoAction(const char *actionName, TString outFileBase, |
11 |
TString mode, bool outRoot, bool outText, TString title) : |
12 |
Histo2DAction<Int_t> (actionName, title, outFileBase, mode, outRoot, outText){ |
13 |
} |
14 |
|
15 |
void TrkRigVsGPMomHistoAction::OnGood(PamLevel2 *event) { |
16 |
|
17 |
Fill(event->GetGPamela()->P0, 1./event->GetTrack(0)->GetTrkTrack()->GetDeflection()); |
18 |
} |