/[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.3 - (hide annotations) (download)
Wed Mar 25 17:38:09 2015 UTC (9 years, 8 months ago) by pam-fi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -1 lines
Port to 10th reduction.

Some cuts have been modified to use the extended track objects introduced with 10th reduction software. Some others have still to be ported.
Git ref: 4bd0c70baf73c56bddc08dca365cbff243ad8bc8
(Nicola)

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 pam-fi 1.3 // TrkTrack *track = event->GetTrack(0)->GetTrkTrack();
15     if(event->GetNTracks(_trkAlg)==0)return 0;
16     ExtTrack *track = event->GetTrack(0,_trkAlg)->GetExtTrack();
17 pam-fi 1.2 float R = track->GetRigidity();
18     float dEdx = track->GetDEDX();
19    
20     if (dEdx < 3.7 + 4.8 / (R * R))
21     return 0;
22    
23     return CUTOK;
24     }

  ViewVC Help
Powered by ViewVC 1.1.23