AliPhysics  2b88e80 (2b88e80)
AliFlowEventSimpleCuts.cxx
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  * *
4  * Author: The ALICE Off-line Project. *
5  * Contributors are mentioned in the code where appropriate. *
6  * *
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  **************************************************************************/
15 
16 /* $Id$ */
17 
18 // AliFlowEventSimpleCuts:
19 // An event cut class for the flow framework
20 //
21 // origin: Mikolaj Krzewicki (mikolaj.krzewicki@cern.ch)
22 
23 #include "AliFlowEventSimpleCuts.h"
24 #include "AliFlowEventSimple.h"
25 
26 ClassImp(AliFlowEventSimpleCuts)
27 
28 //-----------------------------------------------------------------------
30  TNamed(),
31  fCutCentralityPercentile(kFALSE),
32  fUseNewCentralityFramework(kFALSE),
33  fCentralityPercentileMax(100.),
34  fCentralityPercentileMin(0.)
35 {
36  //constructor
37 }
38 
39 //-----------------------------------------------------------------------
41  TNamed(name, title),
42  fCutCentralityPercentile(kFALSE),
43  fUseNewCentralityFramework(kFALSE),
44  fCentralityPercentileMax(100.),
45  fCentralityPercentileMin(0.)
46 {
47  //constructor
48 }
49 
52  TNamed(that),
57 {
58  //copy ctor
59 }
60 
63 {
64  //dtor
65 }
66 
69 {
70  //assignment
71  if (this==&that) return *this;
72 
77  return *this;
78 }
79 
80 //-----------------------------------------------------------------------
82 {
83  //check cuts
84  AliFlowEventSimple* event = dynamic_cast<AliFlowEventSimple*>(obj);
85  if (!event) return kFALSE; //when passed wrong type of object
87  if (centrality>=fCentralityPercentileMin && centrality<fCentralityPercentileMax)
88  return kTRUE;
89  return kFALSE;
90 }
double Double_t
Definition: External.C:58
const char * title
Definition: MakeQAPdf.C:27
centrality
Double_t GetCentrality() const
AliFlowEventSimpleCuts & operator=(const AliFlowEventSimpleCuts &someCuts)
bool Bool_t
Definition: External.C:53
virtual Bool_t IsSelected(TObject *obj, TObject *mcobj)