/[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.2.1 - (show annotations) (download)
Thu May 6 17:09:57 2010 UTC (14 years, 7 months ago) by pam-fi
Branch: V8
CVS Tags: MergedToHEAD_1, nuclei_reproc
Changes since 1.1: +1 -1 lines
Template argument changed to Float_t (from Int_t).

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<Float_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