1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
17 // Manager class for filter decisions based on cuts
18 // The filter contains a list of sets of cuts.
19 // A bit field is filled in order to store the decision of each cut-set.
20 // Author: Andreas Morsch
21 // andreas.morsch@cern.ch
25 #include "AliAnalysisFilter.h"
26 #include "AliAnalysisCuts.h"
29 ClassImp(AliAnalysisFilter)
32 ////////////////////////////////////////////////////////////////////////
34 AliAnalysisFilter::AliAnalysisFilter():
38 // Default constructor
41 AliAnalysisFilter::AliAnalysisFilter(const char* name, const char* title):
48 AliAnalysisFilter::AliAnalysisFilter(const AliAnalysisFilter& obj):
55 UInt_t AliAnalysisFilter::IsSelected(TObject* obj)
58 // Loop over all set of cuts
59 // and store the decision
62 AliAnalysisCuts *cuts;
65 while((cuts = (AliAnalysisCuts*)next())) {
66 Bool_t acc = cuts->IsSelected(obj);
67 if (acc) {result |= iCutB & 0x00ffffff;}
74 void AliAnalysisFilter::AddCuts(AliAnalysisCuts* cuts)