/[PAMELA software]/PamCut/CollectionActions/Histo1DActions/TrkRigHistoAction/TrkRigHistoAction.cpp
ViewVC logotype

Contents of /PamCut/CollectionActions/Histo1DActions/TrkRigHistoAction/TrkRigHistoAction.cpp

Parent Directory Parent Directory | Revision Log Revision Log


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

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 }

  ViewVC Help
Powered by ViewVC 1.1.23