]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGHF/hfe/AliHFEreducedEventCreatorESD.h
Update of the hfe package from gsi svn
[u/mrichter/AliRoot.git] / PWGHF / hfe / AliHFEreducedEventCreatorESD.h
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 // Debug tree to look at the distribution of the variable we are cutting on
17 //
18 //
19 #ifndef ALIHFEREDUCEDEVENTCREATORESD_H
20 #define ALIHFEREDUCEDEVENTCREATORESD_H
21
22 #include "AliAnalysisTaskSE.h"
23
24 class TString;
25 class TTree;
26 class AliAnalysisUtils;
27 class AliPIDResponse;
28 class AliHFEcuts;
29 class AliHFEextraCuts;
30 class AliHFEpidTPC;
31 class AliTRDTriggerAnalysis;
32 class AliHFEsignalCuts;
33 class AliHFEreducedEvent;
34 class AliHFEV0taginfo;
35
36 class AliHFEreducedEventCreatorESD : public AliAnalysisTaskSE{
37   public:
38     AliHFEreducedEventCreatorESD();
39     AliHFEreducedEventCreatorESD(const char *name);
40     virtual ~AliHFEreducedEventCreatorESD();
41
42     virtual void UserCreateOutputObjects();
43     virtual void UserExec(Option_t *);
44     virtual void Terminate(Option_t *);
45
46     // Setters for cuts
47     void SetMinNclustersTPC(Int_t mincl) { fNclustersTPC = mincl; };
48     void SetMinNclustersTPCPID(Int_t mincl) { fNclustersTPCPID = mincl; };
49     void SetMinNclustersITS(Int_t mincl) { fNclustersITS = mincl; };
50     void SetRemoveFirstEventFromChunk() { fRemoveFirstEvent = kTRUE; }
51     void SetFlagPileupEvents() { fFlagPileupEvents = kTRUE; }
52     void SetSelectSignalOnly(Bool_t select = kTRUE) { fSelectSignalOnly = select; } 
53     AliHFEpidTPC *GetTPCResponse() { return fTPCpid; }
54
55     Bool_t IsTOFmismatch(const AliVTrack *const track, const AliPIDResponse *const pid) const;
56     
57   private:
58     AliHFEreducedEventCreatorESD(const AliHFEreducedEventCreatorESD &);
59     AliHFEreducedEventCreatorESD &operator=(const AliHFEreducedEventCreatorESD &);
60     
61     TTree *fHFEtree;                  // HFE tree 
62     AliAnalysisUtils *fAnalysisUtils; // Analysis Utils
63     AliHFEreducedEvent *fHFEevent;    // hfe event
64     AliHFEcuts *fTrackCuts;           // Track
65     AliHFEextraCuts *fExtraCuts;      // HFE IP info
66     AliHFEsignalCuts *fSignalCuts;    // Signal Cuts
67     AliHFEpidTPC *fTPCpid;            // TPC PID
68     AliHFEV0taginfo *fV0Tagger;       // Tags v0 tracks per Event
69     AliTRDTriggerAnalysis *fTRDTriggerAnalysis; //! TRD Trigger Analysis
70     Int_t fEventNumber;               // Event Number
71     Int_t fNclustersTPC;              // Min Number of clusters in TPC
72     Int_t fNclustersTPCPID;           // Min Number of clusters for TPC PID
73     Int_t fNclustersITS;              // Min Number of clusters in ITS
74     Bool_t fRemoveFirstEvent;         // Remove first event from chunk
75     Bool_t fFlagPileupEvents;         // Flag pileup events
76     Bool_t fSelectSignalOnly;         // Select signal-only tracks
77     
78     ClassDef(AliHFEreducedEventCreatorESD, 1)
79 };
80 #endif
81
82