1 |
/* |
2 |
* TrkRigHistoAction.cpp |
3 |
* |
4 |
* Created on: 2009-06-05 |
5 |
* Author: S. Ricciarini |
6 |
* (Re-edited: 2009-08-25 N. Mori) |
7 |
*/ |
8 |
|
9 |
/*! @file TrkRigHistoAction.cpp The TrkRigHistoAction class implementation file. */ |
10 |
|
11 |
#include "TrkRigHistoAction.h" |
12 |
|
13 |
TrkRigHistoAction::TrkRigHistoAction(const char *actionName, TString outFileBase, |
14 |
TString mode, bool outRoot, bool outText, TString title) : |
15 |
Histo1DAction<Int_t> (actionName, title, outFileBase, mode, outRoot, outText) { |
16 |
} |
17 |
|
18 |
void TrkRigHistoAction::OnGood(PamLevel2 *event) { |
19 |
|
20 |
double rig = 1. / event->GetTrack(0)->GetTrkTrack()->GetDeflection(); // rigidity with sign |
21 |
Fill(rig); |
22 |
|
23 |
} |