00001 /*************************************************************************** 00002 * 00003 * $Id: GenericTripletCut.cxx,v 1.6 2001/06/03 21:05:07 willson Exp $ 00004 * 00005 * Author: Robert Willson, Ohio State, willson@bnl.gov 00006 *************************************************************************** 00007 * 00008 * Description: part of STAR HBT Framework: StHbtMaker package. 00009 * A do-nothing triplet cut that simply says "true" to every triplet. 00010 * 00011 *************************************************************************** 00012 * 00013 * $Log: GenericTripletCut.cxx,v $ 00014 * Revision 1.6 2001/06/03 21:05:07 willson 00015 * Cuts on entrance separation 00016 * 00017 * Revision 1.5 2000/08/15 23:24:24 lisa 00018 * Fixed small typo in preprocessor directive ifdef 00019 * 00020 * Revision 1.4 2000/08/08 23:39:31 laue 00021 * Updated for standalone version 00022 * 00023 * Revision 1.3 2000/04/12 01:53:35 willson 00024 * Initial Installation - Comments Added 00025 * 00026 * 00027 ***************************************************************************/ 00028 00029 #include "StHbtMaker/Cut/GenericTripletCut.h" 00030 //#include <cstdio> 00031 00032 #ifdef __ROOT__ 00033 ClassImp(GenericTripletCut) 00034 #endif 00035 00036 //__________________ 00037 GenericTripletCut::GenericTripletCut(float EntSepCut){ 00038 mEntSepCut = EntSepCut; 00039 mNTripletsPassed = mNTripletsFailed = 0; 00040 } 00041 //__________________ 00042 //GenericTripletCut::~GenericTripletCut(){ 00043 // /* no-op */ 00044 //} 00045 //__________________ 00046 bool GenericTripletCut::Pass(const StHbtTriplet* Triplet){ 00047 bool temp = true; 00048 if (mEntSepCut) temp = (Triplet->NominalTpcEntranceSeparation()>mEntSepCut); 00049 temp ? mNTripletsPassed++ : mNTripletsFailed++; 00050 return temp; 00051 } 00052 //__________________ 00053 StHbtString GenericTripletCut::Report(){ 00054 StHbtString Stemp = "Generic Triplet Cut - total dummy-- always returns true\n"; 00055 char Ctemp[100]; 00056 sprintf(Ctemp,"Number of Triplets which passed:\t%ld Number which failed:\t%ld\n",mNTripletsPassed,mNTripletsFailed); 00057 Stemp += Ctemp; 00058 StHbtString returnThis = Stemp; 00059 return returnThis; 00060 } 00061 //__________________
1.5.9