/[PAMELA software]/PamCut/TrkCuts/TrkDedxNucleiCut/TrkDedxNucleiCut.cpp
ViewVC logotype

Annotation of /PamCut/TrkCuts/TrkDedxNucleiCut/TrkDedxNucleiCut.cpp

Parent Directory Parent Directory | Revision Log Revision Log


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

1 pam-fi 1.2 /*
2     * TrkDedxNucleiCut.cpp
3     *
4     * Created on: 8/jul/2010
5     * Author: Nicola Mori
6     */
7    
8     /*! @file TrkDedxNucleiCut.cpp The TrkDedxNucleiCut class implementation file. */
9    
10     #include "TrkDedxNucleiCut.h"
11    
12     int TrkDedxNucleiCut::Check(PamLevel2 *event) {
13    
14     TrkTrack *track = event->GetTrack(0)->GetTrkTrack();
15     float R = track->GetRigidity();
16     float dEdx = track->GetDEDX();
17    
18     if (dEdx < 3.7 + 4.8 / (R * R))
19     return 0;
20    
21     return CUTOK;
22     }

  ViewVC Help
Powered by ViewVC 1.1.23