StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFractionalChargeTracks.cxx
1 #include "StFractionalChargeTracks.h"
2 #include "StRareTrack.h"
3 #include "StEventTypes.h"
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;
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 }