1 /////////////////////////////////////////////////////////////////////////////
3 // AliFemtoShareQualityPairCut - a pair cut which checks for some pair //
4 // qualities that attempt to identify slit/doubly reconstructed tracks //
6 /////////////////////////////////////////////////////////////////////////////
7 /***************************************************************************
9 * $Id: AliFemtoShareQualityPairCut.cxx 50722 2011-07-21 15:18:38Z akisiel $
11 * Author: Adam Kisiel, Ohio State, kisiel@mps.ohio-state.edu
12 ***************************************************************************
14 * Description: part of STAR HBT Framework: AliFemtoMaker package
15 * a cut to remove "shared" and "split" pairs
17 ***************************************************************************
20 **************************************************************************/
22 #include "AliFemtoV0PairCut.h"
27 ClassImp(AliFemtoV0PairCut)
31 AliFemtoV0PairCut::AliFemtoV0PairCut():
35 fShareFractionMax(1.0),
38 // Default constructor
42 AliFemtoV0PairCut::~AliFemtoV0PairCut(){
46 bool AliFemtoV0PairCut::Pass(const AliFemtoPair* pair){
47 // Check for pairs that are possibly shared/double reconstruction
51 /*cout<<"pair->Track1(): "<<pair->Track1()<<endl;
52 cout<<"pair->Track2(): "<<pair->Track2()<<endl;
53 cout<<"pair->Track1()->V0(): "<<pair->Track1()->V0()<<endl;
54 cout<<"pair->Track2()->V0(): "<<pair->Track2()->V0()<<endl;
55 cout<<"pair->Track1()->V0()->IdNeg(): "<<pair->Track1()->V0()->IdNeg()<<endl;
56 cout<<"pair->Track2()->V0()->IdNeg(): "<<pair->Track2()->V0()->IdNeg()<<endl;
57 cout<<"pair->Track1()->V0()->IdPos(): "<<pair->Track1()->V0()->IdPos()<<endl;
58 cout<<"pair->Track2()->V0()->IdPos(): "<<pair->Track2()->V0()->IdPos()<<endl;*/
60 if(!(pair->Track1()->V0() && pair->Track2()->V0()))
64 if(pair->Track1()->V0()->IdNeg()==pair->Track2()->V0()->IdNeg() || pair->Track1()->V0()->IdPos()==pair->Track2()->V0()->IdPos())
74 AliFemtoString AliFemtoV0PairCut::Report(){
75 // Prepare the report from the execution
76 string stemp = "AliFemtoV0 Pair Cut - remove shared and split pairs\n"; char ctemp[100];
77 snprintf(ctemp , 100, "Number of pairs which passed:\t%ld Number which failed:\t%ld\n",fNPairsPassed,fNPairsFailed);
79 AliFemtoString returnThis = stemp;
83 void AliFemtoV0PairCut::SetV0Max(Double_t aV0Max) {
87 Double_t AliFemtoV0PairCut::GetAliFemtoV0Max() const {
92 TList *AliFemtoV0PairCut::ListSettings()
94 // return a list of settings in a writable form
95 TList *tListSetttings = new TList();
97 snprintf(buf, 200, "AliFemtoV0PairCut.sharequalitymax=%f", fV0Max);
98 snprintf(buf, 200, "AliFemtoV0PairCut.sharefractionmax=%f", fShareFractionMax);
99 tListSetttings->AddLast(new TObjString(buf));
101 return tListSetttings;
104 void AliFemtoV0PairCut::SetRemoveSameLabel(Bool_t aRemove)
106 fRemoveSameLabel = aRemove;