00001 /*************************************************************************** 00002 * 00003 * $Id: mikesPairCut.cxx,v 1.3 2000/01/25 17:35:02 laue Exp $ 00004 * 00005 * Author: Mike Lisa, Ohio State, lisa@mps.ohio-state.edu 00006 *************************************************************************** 00007 * 00008 * Description: part of STAR HBT Framework: StHbtMaker package 00009 * a do-nothing pair cut that simply says "true" to every pair 00010 * 00011 *************************************************************************** 00012 * 00013 * $Log: mikesPairCut.cxx,v $ 00014 * Revision 1.3 2000/01/25 17:35:02 laue 00015 * I. In order to run the stand alone version of the StHbtMaker the following 00016 * changes have been done: 00017 * a) all ClassDefs and ClassImps have been put into #ifdef __ROOT__ statements 00018 * b) unnecessary includes of StMaker.h have been removed 00019 * c) the subdirectory StHbtMaker/doc/Make has been created including everything 00020 * needed for the stand alone version 00021 * 00022 * II. To reduce the amount of compiler warning 00023 * a) some variables have been type casted 00024 * b) some destructors have been declared as virtual 00025 * 00026 * Revision 1.2 1999/07/06 22:33:21 lisa 00027 * Adjusted all to work in pro and new - dev itself is broken 00028 * 00029 * Revision 1.1.1.1 1999/06/29 16:02:56 lisa 00030 * Installation of StHbtMaker 00031 * 00032 **************************************************************************/ 00033 00034 #include "StHbtMaker/Cut/mikesPairCut.h" 00035 #include <string> 00036 #include <cstdio> 00037 00038 #ifdef __ROOT__ 00039 ClassImp(mikesPairCut) 00040 #endif 00041 00042 //__________________ 00043 mikesPairCut::mikesPairCut(){ 00044 mNPairsPassed = mNPairsFailed = 0; 00045 } 00046 //__________________ 00047 //mikesPairCut::~mikesPairCut(){ 00048 // /* no-op */ 00049 //} 00050 //__________________ 00051 bool mikesPairCut::Pass(const StHbtPair* pair){ 00052 bool temp = true; 00053 temp ? mNPairsPassed++ : mNPairsFailed++; 00054 return true; 00055 } 00056 //__________________ 00057 StHbtString mikesPairCut::Report(){ 00058 string Stemp = "Mikes Pair Cut - total dummy-- always returns true\n"; 00059 char Ctemp[100]; 00060 sprintf(Ctemp,"Number of pairs which passed:\t%ld Number which failed:\t%ld\n",mNPairsPassed,mNPairsFailed); 00061 Stemp += Ctemp; 00062 StHbtString returnThis = Stemp; 00063 return returnThis; 00064 } 00065 //__________________
1.5.9