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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Jul 8 14:00:18 2010 UTC (14 years, 5 months ago) by pam-fi
Branch: MAIN
CVS Tags: MergedFromV8_1, V9, HEAD
Changes since 1.1: +1 -1 lines
Merged from branch V8 (tag MergedToHEAD_1). Tag before the merge: BeforeMergingFromV8_1.

1 pam-fi 1.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 pam-fi 1.2 Histo1DAction<Float_t> (actionName, title, outFileBase, mode, outRoot, outText) {
16 pam-fi 1.1 }
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