1 |
/* |
2 |
* TofBetaVsTrkRigHistoAction.cpp |
3 |
* |
4 |
* Created on: 15/set/2009 |
5 |
* Author: Nicola Mori |
6 |
*/ |
7 |
|
8 |
#include "TofBetaVsTrkBetaHistoAction.h" |
9 |
|
10 |
TofBetaVsTrkBetaHistoAction::TofBetaVsTrkBetaHistoAction(const char *actionName, float mass, unsigned int charge, |
11 |
TString outFileBase, TString mode, bool outRoot, bool outText, TString title) : |
12 |
Histo2DAction<Int_t> (actionName, title, outFileBase, mode, outRoot, outText), _Z2(charge * charge), _m2(mass * mass) { |
13 |
} |
14 |
|
15 |
void TofBetaVsTrkBetaHistoAction::OnGood(PamLevel2 *event) { |
16 |
|
17 |
float ZR2 = pow(event->GetTrack(0)->GetTrkTrack()->GetRigidity(), 2) * _Z2; |
18 |
Fill(sqrt(ZR2 / (ZR2 + _m2)), event->GetTrack(0)->GetToFTrack()->beta[12]); |
19 |
//cout << sqrt(_m2) << " " << sqrt(_Z2) << " " << event->GetTrack(0)->GetTrkTrack()->GetRigidity() << " " << ZR2 << " "<< sqrt(ZR2 / ZR2 + _m2) << " " << event->GetTrack(0)->GetToFTrack()->beta[12] << endl; |
20 |
} |