/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ // // Debug tree to look at the distribution of the variable we are cutting on // // #ifndef ALIHFEREDUCEDEVENTCREATORAOD_H #define ALIHFEREDUCEDEVENTCREATORAOD_H #include "AliAnalysisTaskSE.h" class TClonesArray; class TString; class TTree; class AliAODMCHeader; class AliAnalysisUtils; class AliPIDResponse; class AliHFEcuts; class AliHFEextraCuts; class AliHFEpidTPC; class AliHFEsignalCuts; class AliHFEreducedEvent; class AliHFEV0taginfo; class AliHFEreducedEventCreatorAOD : public AliAnalysisTaskSE{ public: AliHFEreducedEventCreatorAOD(); AliHFEreducedEventCreatorAOD(const char *name); virtual ~AliHFEreducedEventCreatorAOD(); virtual void UserCreateOutputObjects(); virtual void UserExec(Option_t *); virtual void Terminate(Option_t *); // Setters for cuts void SetMinNclustersTPC(Int_t mincl) { fNclustersTPC = mincl; }; void SetMinNclustersTPCPID(Int_t mincl) { fNclustersTPCPID = mincl; }; void SetMinNclustersITS(Int_t mincl) { fNclustersITS = mincl; }; void SetNbOfTOFSigma(Float_t nbOfTOFSigma) { fNbOfTOFSigma = nbOfTOFSigma; }; void SetFlagPileupEvents() { fFlagPileupEvents = kTRUE; } void SetSelectSignalOnly(Bool_t select = kTRUE) { fSelectSignalOnly = select; } AliHFEpidTPC *GetTPCResponse() { return fTPCpid; } Bool_t IsTOFmismatch(const AliVTrack *const track, const AliPIDResponse *const pid) const; private: AliHFEreducedEventCreatorAOD(const AliHFEreducedEventCreatorAOD &); AliHFEreducedEventCreatorAOD &operator=(const AliHFEreducedEventCreatorAOD &); AliAODMCHeader *fAODMCHeader; // ! MC info AOD TClonesArray *fAODArrayMCInfo; // ! MC info particle AOD TTree *fHFEtree; // HFE tree AliAnalysisUtils *fAnalysisUtils; // Analysis Utils AliHFEreducedEvent *fHFEevent; // hfe event AliHFEcuts *fTrackCuts; // Track AliHFEextraCuts *fExtraCuts; // HFE IP info AliHFEsignalCuts *fSignalCuts; // Signal Cuts AliHFEpidTPC *fTPCpid; // TPC PID AliHFEV0taginfo *fV0Tagger; // Tags v0 tracks per Event Int_t fEventNumber; // Event Number Int_t fNclustersTPC; // Min Number of clusters in TPC Int_t fNclustersTPCPID; // Min Number of clusters for TPC PID Int_t fNclustersITS; // Min Number of clusters in ITS Float_t fNbOfTOFSigma; // Nb of TOF Sigma Bool_t fRemoveFirstEvent; // Remove first event from chunk Bool_t fFlagPileupEvents; // Flag pileup events Bool_t fSelectSignalOnly; // Select signal-only tracks ClassDef(AliHFEreducedEventCreatorAOD, 2) }; #endif