]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/FEMTOSCOPY/AliFemto/AliFemtoDummyPairCut.cxx
updates in macros for Femto QA in train
[u/mrichter/AliRoot.git] / PWGCF / FEMTOSCOPY / AliFemto / AliFemtoDummyPairCut.cxx
1 ///////////////////////////////////////////////////////////////////////////
2 //                                                                       //
3 // AliFemtoDummyPairCut: a summy pair cut. Accepts all pairs             //
4 //                                                                       //
5 ///////////////////////////////////////////////////////////////////////////
6 /***************************************************************************
7  *
8  * $Id$
9  *
10  * Author: Mike Lisa, Ohio State, lisa@mps.ohio-state.edu
11  ***************************************************************************
12  *
13  * Description: part of STAR HBT Framework: AliFemtoMaker package
14  *   a do-nothing pair cut that simply says "true" to every pair           
15  *
16  ***************************************************************************
17  *
18  * $Log$
19  * Revision 1.2.2.1  2007/10/12 14:28:37  akisiel
20  * New wave of cleanup and rule conformance
21  *
22  * Revision 1.2  2007/05/22 09:01:42  akisiel
23  * Add the possibiloity to save cut settings in the ROOT file
24  *
25  * Revision 1.1  2007/05/16 10:22:11  akisiel
26  * Making the directory structure of AliFemto flat. All files go into one common directory
27  *
28  * Revision 1.2  2007/05/03 09:41:06  akisiel
29  * Fixing Effective C++ warnings
30  *
31  * Revision 1.1.1.1  2007/04/25 15:38:41  panos
32  * Importing the HBT code dir
33  *
34  * Revision 1.1.1.1  2007-03-07 10:14:49  mchojnacki
35  * First version on CVS
36  *
37  * Revision 1.3  2000/01/25 17:35:02  laue
38  * I. In order to run the stand alone version of the AliFemtoMaker the following
39  * changes have been done:
40  * a) all ClassDefs and ClassImps have been put into #ifdef __ROOT__ statements
41  * b) unnecessary includes of StMaker.h have been removed
42  * c) the subdirectory AliFemtoMaker/doc/Make has been created including everything
43  * needed for the stand alone version
44  *
45  * II. To reduce the amount of compiler warning
46  * a) some variables have been type casted
47  * b) some destructors have been declared as virtual
48  *
49  * Revision 1.2  1999/07/06 22:33:21  lisa
50  * Adjusted all to work in pro and new - dev itself is broken
51  *
52  * Revision 1.1.1.1  1999/06/29 16:02:56  lisa
53  * Installation of AliFemtoMaker
54  *
55  **************************************************************************/
56
57 #include "AliFemtoDummyPairCut.h"
58 #include <string>
59 #include <cstdio>
60
61 #ifdef __ROOT__
62 ClassImp(AliFemtoDummyPairCut)
63 #endif
64
65 //__________________
66 AliFemtoDummyPairCut::AliFemtoDummyPairCut() :
67   fNPairsPassed(0),
68   fNPairsFailed(0)
69 {
70   /* no-op */
71 }
72 //__________________
73 AliFemtoDummyPairCut::~AliFemtoDummyPairCut(){
74   /* no-op */
75 }
76 //__________________
77 bool AliFemtoDummyPairCut::Pass(const AliFemtoPair* /* pair */){
78   // Pass all pairs
79   bool temp = true;
80   temp ? fNPairsPassed++ : fNPairsFailed++;
81   return true;
82 }
83 //__________________
84 AliFemtoString AliFemtoDummyPairCut::Report(){
85   // prepare a report from the execution
86   string stemp = "AliFemtoDummy Pair Cut - total dummy-- always returns true\n";
87   char ctemp[100];
88   snprintf(ctemp , 100, "Number of pairs which passed:\t%ld  Number which failed:\t%ld\n",fNPairsPassed,fNPairsFailed);
89   stemp += ctemp;
90   AliFemtoString returnThis = stemp;
91   return returnThis;
92 }
93 //__________________
94 TList *AliFemtoDummyPairCut::ListSettings()
95 {
96   // return a list of settings in a writable form
97   TList *tListSetttings = new TList();
98
99   return tListSetttings;
100 }