1 /*************************************************************************
2 * Copyright(c) 1998-2008, 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 **************************************************************************/
16 ////////////////////////////////////////////////////
17 // AliAnalysisTaskFilterFE:
19 // (re)tag RFP and POI in flowEvent in order to
21 ////////////////////////////////////////////////////
23 #include "AliAnalysisManager.h"
24 #include "AliAnalysisTaskSE.h"
25 #include "AliFlowEventSimple.h"
26 #include "AliFlowTrackSimpleCuts.h"
27 #include "AliAnalysisTaskFilterFE.h"
30 ClassImp(AliAnalysisTaskFilterFE)
32 //________________________________________________________________________
33 AliAnalysisTaskFilterFE::AliAnalysisTaskFilterFE() :
44 AliDebug(2,"AliAnalysisTaskFilterFE::AliAnalysisTaskFilterFE()");
47 //________________________________________________________________________
48 AliAnalysisTaskFilterFE::AliAnalysisTaskFilterFE(const char *name, AliFlowTrackSimpleCuts *cutsRFP, AliFlowTrackSimpleCuts *cutsPOI) :
49 AliAnalysisTaskSE(name),
59 AliDebug(2,"AliAnalysisTaskFilterFE::AliAnalysisTaskFilterFE(const char *name, ...)");
60 DefineInput( 0, AliFlowEventSimple::Class());
61 DefineOutput(1, AliFlowEventSimple::Class());
64 //________________________________________________________________________
65 AliAnalysisTaskFilterFE::~AliAnalysisTaskFilterFE()
71 //________________________________________________________________________
72 void AliAnalysisTaskFilterFE::UserCreateOutputObjects()
74 // Called at every worker node to initialize
75 AliDebug(2,"AliAnalysisTaskFilterFE::CreateOutputObjects()");
76 PostData(1,fFlowEvent);
79 //________________________________________________________________________
80 void AliAnalysisTaskFilterFE::UserExec(Option_t *)
83 fFlowEvent = dynamic_cast<AliFlowEventSimple*>(GetInputData(0)); // from TaskSE
84 if (!fFlowEvent) return;
85 if(fCutsRFP) fFlowEvent->TagRP(fCutsRFP);
86 if(fCutsPOI) fFlowEvent->TagPOI(fCutsPOI);
87 fFlowEvent->TagSubeventsInEta(fMinA,fMaxA,fMinB,fMaxB);
88 PostData(1,fFlowEvent);