#ifndef ALINEUTRALMESONSELECTION_H #define ALINEUTRALMESONSELECTION_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ //_________________________________________________________________________ // Class that contains methods to select candidate pairs to neutral meson // 2 main selections, invariant mass around pi0 (also any other mass), // apperture angle to distinguish from combinatorial. // There is a 3rd cut based on the gamma correlation on phi or pt. //-- Author: Gustavo Conesa (INFN-LNF) // --- ROOT system --- #include #include #include class TLorentzVector ; class TList ; class TH2F ; class AliNeutralMesonSelection : public TObject { public: AliNeutralMesonSelection() ; // default ctor virtual ~AliNeutralMesonSelection() { ; } //virtual dtor // General TList * GetCreateOutputObjects(); void InitParameters(); void Print(const Option_t * opt) const; Bool_t AreNeutralMesonSelectionHistosKept() const { return fKeepNeutralMesonHistos ; } void KeepNeutralMesonSelectionHistos(Bool_t keep) { fKeepNeutralMesonHistos = keep ; } Bool_t SelectPair(TLorentzVector particlei, TLorentzVector particlej, Int_t calo) ; void SetParticle(TString particleName) ; // Do some default settings for "Pi0" or "Eta" TString GetParticle() const { return fParticle ; } // Asymmetry selection Float_t GetAsymmetryCut() const { return fAsymmetryCut ; } void SetAsymmetryCut(Float_t asy) { fAsymmetryCut = asy ; } void SwitchOnAsymmetryCut() { fUseAsymmetryCut = kTRUE ; } void SwitchOffAsymmetryCut() { fUseAsymmetryCut = kFALSE ; } //Opening angle selection Double_t GetAngleMaxParam(Int_t i) const { return fAngleMaxParam.At(i) ; } void SetAngleMaxParam(Int_t i, Double_t par) { fAngleMaxParam.AddAt(par,i) ; } void SetShiftMinAngleCut(Float_t a, Float_t b) { fShiftMinAngle[0] = a ; fShiftMinAngle[1] = b ; } void SwitchOnAngleSelection() { fUseAngleCut = kTRUE ; } void SwitchOffAngleSelection() { fUseAngleCut = kFALSE ; } Bool_t IsAngleInWindow(Float_t angle, Float_t e) const ; //Invariant mass selection Double_t GetInvMassMaxCut() const { return fInvMassMaxCut ; } Double_t GetInvMassMinCut() const { return fInvMassMinCut ; } void SetInvMassCutRange(Double_t invmassmin, Double_t invmassmax) { fInvMassMaxCut =invmassmax; fInvMassMinCut =invmassmin ; } void SetSideBandCutRanges( Double_t lmin, Double_t lmax, Double_t rmin, Double_t rmax ) { fLeftBandMinCut = lmin ; fLeftBandMaxCut = lmax ; fRightBandMinCut = rmin ; fRightBandMaxCut = rmax ; } void SetInvMassCutMaxParameters(Float_t a, Float_t b, Float_t c) { fInvMassMaxCutParam[0] = a ; fInvMassMaxCutParam[1] = b ; fInvMassMaxCutParam[2] = c ; } Double_t GetMass() const { return fM ; } void SetMass(Double_t m) { fM = m ; } // Decay photon bit setting enum decayTypes { kPi0, kEta, kPi0Side, kEtaSide} ; UInt_t GetDecayBit() const { return fDecayBit ; } void SetDecayBit(Int_t &tag, UInt_t set) const { // Set bit of type set (decayTypes) in tag tag |= (1<