/[PAMELA software]/PamCut/CollectionActions/Histo2DActions/TofBetaVsTrkBetaHistoAction/TofBetaVsTrkBetaHistoAction.cpp
ViewVC logotype

Contents of /PamCut/CollectionActions/Histo2DActions/TofBetaVsTrkBetaHistoAction/TofBetaVsTrkBetaHistoAction.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Sep 25 15:36:32 2009 UTC (15 years, 3 months ago) by pam-fi
Branch: MAIN
CVS Tags: Root_V8, MergedToHEAD_1, nuclei_reproc, MergedFromV8_1, BeforeMergingFromV8_1, V9, HEAD
Branch point for: V8
Added to repository.

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 }

  ViewVC Help
Powered by ViewVC 1.1.23