StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mikesPairCut.cxx
1 /***************************************************************************
2  *
3  * $Id: mikesPairCut.cxx,v 1.3 2000/01/25 17:35:02 laue Exp $
4  *
5  * Author: Mike Lisa, Ohio State, lisa@mps.ohio-state.edu
6  ***************************************************************************
7  *
8  * Description: part of STAR HBT Framework: StHbtMaker package
9  * a do-nothing pair cut that simply says "true" to every pair
10  *
11  ***************************************************************************
12  *
13  * $Log: mikesPairCut.cxx,v $
14  * Revision 1.3 2000/01/25 17:35:02 laue
15  * I. In order to run the stand alone version of the StHbtMaker the following
16  * changes have been done:
17  * a) all ClassDefs and ClassImps have been put into #ifdef __ROOT__ statements
18  * b) unnecessary includes of StMaker.h have been removed
19  * c) the subdirectory StHbtMaker/doc/Make has been created including everything
20  * needed for the stand alone version
21  *
22  * II. To reduce the amount of compiler warning
23  * a) some variables have been type casted
24  * b) some destructors have been declared as virtual
25  *
26  * Revision 1.2 1999/07/06 22:33:21 lisa
27  * Adjusted all to work in pro and new - dev itself is broken
28  *
29  * Revision 1.1.1.1 1999/06/29 16:02:56 lisa
30  * Installation of StHbtMaker
31  *
32  **************************************************************************/
33 
34 #include "StHbtMaker/Cut/mikesPairCut.h"
35 #include <string>
36 #include <cstdio>
37 
38 #ifdef __ROOT__
39 ClassImp(mikesPairCut)
40 #endif
41 
42 //__________________
43 mikesPairCut::mikesPairCut(){
44  mNPairsPassed = mNPairsFailed = 0;
45 }
46 //__________________
47 //mikesPairCut::~mikesPairCut(){
48 // /* no-op */
49 //}
50 //__________________
51 bool mikesPairCut::Pass(const StHbtPair* pair){
52  bool temp = true;
53  temp ? mNPairsPassed++ : mNPairsFailed++;
54  return true;
55 }
56 //__________________
57 StHbtString mikesPairCut::Report(){
58  string Stemp = "Mikes Pair Cut - total dummy-- always returns true\n";
59  char Ctemp[100];
60  sprintf(Ctemp,"Number of pairs which passed:\t%ld Number which failed:\t%ld\n",mNPairsPassed,mNPairsFailed);
61  Stemp += Ctemp;
62  StHbtString returnThis = Stemp;
63  return returnThis;
64 }
65 //__________________