21 #include "StHbtMaker/Cut/mikesKinkCut.h"
28 mikesKinkCut::mikesKinkCut(){
29 mNKinksPassed = mNKinksFailed = 0;
36 bool mikesKinkCut::Pass(
const StHbtKink* k){
38 ((k->DcaParentDaughter() > mDcaParentDaughter[0]) &&
39 (k->DcaParentDaughter() < mDcaParentDaughter[1]) &&
40 (k->DcaDaughterPrimaryVertex() > mDcaDaughterPrimaryVertex[0]) &&
41 (k->DcaDaughterPrimaryVertex() < mDcaDaughterPrimaryVertex[1]) &&
42 (k->DcaParentPrimaryVertex() > mDcaParentPrimaryVertex[0]) &&
43 (k->DcaParentPrimaryVertex() < mDcaParentPrimaryVertex[1]) &&
44 (k->HitDistanceParentDaughter() > mHitDistanceParentDaughter[0]) &&
45 (k->HitDistanceParentDaughter() < mHitDistanceParentDaughter[1]) &&
46 (k->HitDistanceParentVertex() > mHitDistanceParentVertex[0]) &&
47 (k->HitDistanceParentVertex() < mHitDistanceParentVertex[1]) &&
48 (k->DecayAngle() > mDecayAngle[0]) &&
49 (k->DecayAngle() < mDecayAngle[1]) &&
50 (k->DecayAngleCM() > mDecayAngleCM[0]) &&
51 (k->DecayAngleCM() < mDecayAngleCM[1]));
53 goodKink ? mNKinksPassed++ : mNKinksFailed++ ;
57 StHbtString mikesKinkCut::Report(){
60 sprintf(Ctemp,
"\nThis is mikesKinkCut");
62 sprintf(Ctemp,
"\nDcaParentDaughter:\t %E-%E",mDcaParentDaughter[0],mDcaParentDaughter[1]);
65 sprintf(Ctemp,
"\nDcaDaughterPrimaryVertex:\t %E-%E",mDcaDaughterPrimaryVertex[0],mDcaDaughterPrimaryVertex[1]);
67 sprintf(Ctemp,
"\nDcaParentPrimaryVertex:\t %E-%E",mDcaParentPrimaryVertex[0],mDcaParentPrimaryVertex[1]);
69 sprintf(Ctemp,
"\nHitDistanceParentDaughter:\t %E-%E",mHitDistanceParentDaughter[0],mHitDistanceParentDaughter[1]);
71 sprintf(Ctemp,
"\nHitDistanceParentVertex:\t %E-%E",mHitDistanceParentVertex[0],mHitDistanceParentVertex[1]);
73 sprintf(Ctemp,
"\nDecayAngle:\t %E-%E",mDecayAngle[0],mDecayAngle[1]);
75 sprintf(Ctemp,
"\nDecayAngleCM:\t %E-%E",mDecayAngleCM[0],mDecayAngleCM[1]);
77 sprintf(Ctemp,
"\nNumber of kinks which passed:\t%ld Number which failed:\t%ld",mNKinksPassed,mNKinksFailed);
79 StHbtString returnThis = Stemp;