StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StSpectraPool
StRareMaker
StFractionalChargeTracks.cxx
1
#include "StFractionalChargeTracks.h"
2
#include "StRareTrack.h"
3
#include "StEventTypes.h"
4
ClassImp(
StFractionalChargeTracks
)
5
6
StFractionalChargeTracks
::
StFractionalChargeTracks
(
float
dedxin,
float
pin){
7
dedxcut = dedxin;
8
pcut = pin;
9
}
10
11
int
StFractionalChargeTracks::Accept(
StPrimaryTrack
* trk){
12
int
iret = 0;
13
StRareTrack
track
=
StRareTrack
(trk);
14
if
(track.p()>pcut&&track.dedx()<dedxcut*track.dedxPi()
15
&&track.npntfit()>=20&&track.iflag()>=0) iret = 1;
16
return
iret;
17
}
18
void
StFractionalChargeTracks::Report(){
19
cout <<
"StFractionalChargeTracks: dE/dx < "
<< dedxcut
20
<<
" * dE/dx(pi) "
<< endl;
21
cout <<
"StFractionalChargeTracks: momentum > "
<< pcut << endl;
22
}
StRareTrack
Definition:
StRareTrack.h:8
track
Definition:
MapTableTest.C:38
StPrimaryTrack
Definition:
StPrimaryTrack.h:60
StFractionalChargeTracks
Definition:
StFractionalChargeTracks.h:6
Generated by
1.8.5