Modifications needed for the compilation of the femtoscopy code (Adam-Mike)
[u/mrichter/AliRoot.git] / PWG2 / FEMTOSCOPY / AliFemto / Cut / 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$
14 * Revision 1.1.1.1 2007-03-07 10:14:49 mchojnacki
15 * First version on CVS
16 *
17 * Revision 1.3 2000/01/25 17:35:02 laue
18 * I. In order to run the stand alone version of the AliFemtoMaker the following
19 * changes have been done:
20 * a) all ClassDefs and ClassImps have been put into #ifdef __ROOT__ statements
21 * b) unnecessary includes of StMaker.h have been removed
22 * c) the subdirectory AliFemtoMaker/doc/Make has been created including everything
23 * needed for the stand alone version
24 *
25 * II. To reduce the amount of compiler warning
26 * a) some variables have been type casted
27 * b) some destructors have been declared as virtual
28 *
29 * Revision 1.2 1999/07/06 22:33:21 lisa
30 * Adjusted all to work in pro and new - dev itself is broken
31 *
32 * Revision 1.1.1.1 1999/06/29 16:02:56 lisa
33 * Installation of AliFemtoMaker
34 *
35 **************************************************************************/
36
37#include "Cut/AliFemtoDummyPairCut.h"
38#include <string>
39#include <cstdio>
40
41#ifdef __ROOT__
42ClassImp(AliFemtoDummyPairCut)
43#endif
44
45//__________________
46AliFemtoDummyPairCut::AliFemtoDummyPairCut(){
47 fNPairsPassed = fNPairsFailed = 0;
48}
49//__________________
50//AliFemtoDummyPairCut::~AliFemtoDummyPairCut(){
51// /* no-op */
52//}
53//__________________
54bool AliFemtoDummyPairCut::Pass(const AliFemtoPair* pair){
55 bool temp = true;
56 temp ? fNPairsPassed++ : fNPairsFailed++;
57 return true;
58}
59//__________________
60AliFemtoString AliFemtoDummyPairCut::Report(){
61 string Stemp = "AliFemtoDummy Pair Cut - total dummy-- always returns true\n";
62 char Ctemp[100];
63 sprintf(Ctemp,"Number of pairs which passed:\t%ld Number which failed:\t%ld\n",fNPairsPassed,fNPairsFailed);
64 Stemp += Ctemp;
65 AliFemtoString returnThis = Stemp;
66 return returnThis;
67}
68//__________________