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