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 **************************************************************************/
16 // Debug tree to look at the distribution of the variable we are cutting on
19 #ifndef ALIHFEREDUCEDEVENTCREATORESD_H
20 #define ALIHFEREDUCEDEVENTCREATORESD_H
22 #include "AliAnalysisTaskSE.h"
26 class AliAnalysisUtils;
29 class AliHFEextraCuts;
31 class AliHFEsignalCuts;
32 class AliHFEreducedEvent;
34 class AliHFEreducedEventCreatorESD : public AliAnalysisTaskSE{
36 AliHFEreducedEventCreatorESD();
37 AliHFEreducedEventCreatorESD(const char *name);
38 virtual ~AliHFEreducedEventCreatorESD();
40 virtual void UserCreateOutputObjects();
41 virtual void UserExec(Option_t *);
42 virtual void Terminate(Option_t *);
45 void SetMinNclustersTPC(Int_t mincl) { fNclustersTPC = mincl; };
46 void SetMinNclustersTPCPID(Int_t mincl) { fNclustersTPCPID = mincl; };
47 void SetMinNclustersITS(Int_t mincl) { fNclustersITS = mincl; };
48 void SetRemoveFirstEventFromChunk() { fRemoveFirstEvent = kTRUE; }
49 AliHFEpidTPC *GetTPCResponse() { return fTPCpid; }
51 Bool_t IsTOFmismatch(const AliVTrack *const track, const AliPIDResponse *const pid) const;
54 AliHFEreducedEventCreatorESD(const AliHFEreducedEventCreatorESD &);
55 AliHFEreducedEventCreatorESD &operator=(const AliHFEreducedEventCreatorESD &);
57 TTree *fHFEtree; // HFE tree
58 AliAnalysisUtils *fAnalysisUtils; // Analysis Utils
59 AliHFEreducedEvent *fHFEevent; // hfe event
60 AliHFEcuts *fTrackCuts; // Track
61 AliHFEextraCuts *fExtraCuts; // HFE IP info
62 AliHFEsignalCuts *fSignalCuts; // Signal Cuts
63 AliHFEpidTPC *fTPCpid; // TPC PID
64 Int_t fEventNumber; // Event Number
65 Int_t fNclustersTPC; // Min Number of clusters in TPC
66 Int_t fNclustersTPCPID; // Min Number of clusters for TPC PID
67 Int_t fNclustersITS; // Min Number of clusters in ITS
68 Bool_t fRemoveFirstEvent; // Remove first event from chunk
70 ClassDef(AliHFEreducedEventCreatorESD, 1)