BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnMassSpectrumAnal Class Reference

#include <BmnMassSpectrumAnal.h>

Inheritance diagram for BmnMassSpectrumAnal:
Collaboration diagram for BmnMassSpectrumAnal:

Public Member Functions

 BmnMassSpectrumAnal ()
 BmnMassSpectrumAnal (TString)
vector< TString > createFilelist ()
void SetTarget (TString t)
void SetSpectrumRange (Double_t min, Double_t max)
void SetSignalCut (Double_t s)
void SetBackgroungCut (Double_t b)
void SetCuts (vector< Double_t > DCA0, vector< Double_t > DCA1, vector< Double_t > DCA2, vector< Double_t > DCA12, vector< Double_t > PATH, vector< Int_t > nHitsPos, vector< Int_t > nHitsNeg)
void SetNFiles (Int_t n)
virtual ~BmnMassSpectrumAnal ()
void SetStartRun (Int_t start)
void SetFinishRun (Int_t finish)
vector< TString > GetFileList ()
Public Member Functions inherited from TNamed
 TNamed ()
 TNamed (const char *name, const char *title)
 TNamed (const TNamed &named)
 TNamed (const TString &name, const TString &title)
virtual ~TNamed ()
void Clear (Option_t *option="") override
TObject * Clone (const char *newname="") const override
Int_t Compare (const TObject *obj) const override
void Copy (TObject &named) const override
virtual void FillBuffer (char *&buffer)
const char * GetName () const override
const char * GetTitle () const override
ULong_t Hash () const override
TClass * IsA () const override
Bool_t IsSortable () const override
void ls (Option_t *option="") const override
TNamed & operator= (const TNamed &rhs)
void Print (Option_t *option="") const override
virtual void SetName (const char *name)
virtual void SetNameTitle (const char *name, const char *title)
virtual void SetTitle (const char *title="")
virtual Int_t Sizeof () const
void Streamer (TBuffer &) override
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
Public Member Functions inherited from TObject
 TObject ()
 TObject (const TObject &object)
virtual ~TObject ()
void AbstractMethod (const char *method) const
virtual void AppendPad (Option_t *option="")
virtual void Browse (TBrowser *b)
ULong_t CheckedHash ()
virtual const char * ClassName () const
virtual void Delete (Option_t *option="")
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
virtual void DrawClass () const
virtual TObject * DrawClone (Option_t *option="") const
virtual void Dump () const
virtual void Error (const char *method, const char *msgfmt,...) const
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void Fatal (const char *method, const char *msgfmt,...) const
virtual TObject * FindObject (const char *name) const
virtual TObject * FindObject (const TObject *obj) const
virtual Option_t * GetDrawOption () const
virtual const char * GetIconName () const
virtual char * GetObjectInfo (Int_t px, Int_t py) const
virtual Option_t * GetOption () const
virtual UInt_t GetUniqueID () const
virtual Bool_t HandleTimer (TTimer *timer)
Bool_t HasInconsistentHash () const
virtual void Info (const char *method, const char *msgfmt,...) const
virtual Bool_t InheritsFrom (const char *classname) const
virtual Bool_t InheritsFrom (const TClass *cl) const
virtual void Inspect () const
void InvertBit (UInt_t f)
Bool_t IsDestructed () const
virtual Bool_t IsEqual (const TObject *obj) const
virtual Bool_t IsFolder () const
R__ALWAYS_INLINE Bool_t IsOnHeap () const
R__ALWAYS_INLINE Bool_t IsZombie () const
void MayNotUse (const char *method) const
virtual Bool_t Notify ()
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
void operator delete (void *ptr)
void operator delete (void *ptr, void *vp)
void operator delete[] (void *ptr)
void operator delete[] (void *ptr, void *vp)
void * operator new (size_t sz)
void * operator new (size_t sz, void *vp)
void * operator new[] (size_t sz)
void * operator new[] (size_t sz, void *vp)
TObject & operator= (const TObject &rhs)
virtual void Paint (Option_t *option="")
virtual void Pop ()
virtual Int_t Read (const char *name)
virtual void RecursiveRemove (TObject *obj)
void ResetBit (UInt_t f)
virtual void SaveAs (const char *filename="", Option_t *option="") const
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
void SetBit (UInt_t f)
void SetBit (UInt_t f, Bool_t set)
virtual void SetDrawOption (Option_t *option="")
virtual void SetUniqueID (UInt_t uid)
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
virtual void SysError (const char *method, const char *msgfmt,...) const
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
virtual void UseCurrentStyle ()
virtual void Warning (const char *method, const char *msgfmt,...) const
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const

Protected Member Functions

void ReadFile (TString, BmnParticlePairCut *cut0=nullptr, TClonesArray *triggEffInfo=nullptr, Double_t pathMin=0., Double_t pathMax=0.)
TFitResultPtr fitSpectrum (TH1F *)
void fitSpectrum (TH1F *, Double_t &, Double_t &, pair< Double_t, Double_t > &, pair< Double_t, Double_t > &)
Bool_t checkFit (BmnParticlePairCut *)
void GetPtY (vector< Double_t >, vector< Double_t >, Double_t &, Double_t &)
Double_t deltaB (TF1 *f, TFitResultPtr fitRes)
Protected Member Functions inherited from TNamed
void SavePrimitiveNameTitle (std::ostream &out, const char *variable_name)
Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
void MakeZombie ()

Static Protected Member Functions

static Double_t background (Double_t *, Double_t *)
static Double_t signal (Double_t *, Double_t *)
static Double_t fitFunction (Double_t *, Double_t *)
Static Protected Member Functions inherited from TObject
static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Bool_t empty_line=kFALSE)

Protected Attributes

Int_t fPeriod
Int_t fStartRun
Int_t fFinishRun
vector< TString > fInFiles
TString fBeam
Double_t xLow
Double_t xUp
Int_t fSignalBinMin
Int_t fSignalBinMax
vector< TString > fTarget
Int_t fNFiles
TH1F * hSpectrumImproved
Bool_t isPtY
TH1F ** hSpectraPt
TH1F ** hSpectraY
Int_t nPtBins
map< Int_t, pair< Double_t, Double_t > > fPtBinMap
Int_t nYBins
map< Int_t, pair< Double_t, Double_t > > fYBinMap
Int_t nPathBins
map< Int_t, pair< Double_t, Double_t > > fPathBins
Bool_t isMc
Protected Attributes inherited from TNamed
TString fName
TString fTitle
Protected Attributes inherited from TObject
 kOnlyPrepStep

Private Member Functions

void DoOptimization ()
Double_t ImproveCutValue (vector< TString >, BmnParticlePairCut *, TString)
Int_t FinBin (map< Int_t, pair< Double_t, Double_t > > binMap, Double_t value)
Bool_t isVectorOk (vector< Double_t > vector)

Private Attributes

TClonesArray * fParticlePairCuts
TH1F ** hSpectra
Double_t fSignal
Double_t fBackground

Additional Inherited Members

Public Types inherited from TObject
enum  EDeprecatedStatusBits
enum  EStatusBits
Static Public Member Functions inherited from TNamed
static TClass * Class ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
Static Public Member Functions inherited from TObject
static TClass * Class ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
static Longptr_t GetDtorOnly ()
static Bool_t GetObjectStat ()
static void SetDtorOnly (void *obj)
static void SetObjectStat (Bool_t stat)
Public Attributes inherited from TObject
 kIsOnHeap
 kNotDeleted
 kZombie
 kInconsistent
 kBitMask
 kSingleKey
 kOverwrite
 kWriteDelete
 kObjInCanvas
 kCanDelete
 kMustCleanup
 kIsReferenced
 kHasUUID
 kCannotPick
 kNoContextMenu
 kInvalidObject

Detailed Description

Definition at line 26 of file BmnMassSpectrumAnal.h.

Constructor & Destructor Documentation

◆ BmnMassSpectrumAnal() [1/2]

BmnMassSpectrumAnal::BmnMassSpectrumAnal ( )

Definition at line 7 of file BmnMassSpectrumAnal.cxx.

References fBackground, fBeam, fFinishRun, fNFiles, fPeriod, fSignal, fSignalBinMax, fSignalBinMin, fStartRun, xLow, and xUp.

Referenced by BmnLambdaAnalRun7::BmnLambdaAnalRun7(), BmnLambdaAnalRun7::BmnLambdaAnalRun7(), background(), fitSpectrum(), and fitSpectrum().

Here is the caller graph for this function:

◆ BmnMassSpectrumAnal() [2/2]

BmnMassSpectrumAnal::BmnMassSpectrumAnal ( TString dir)

Definition at line 21 of file BmnMassSpectrumAnal.cxx.

References TString::Data(), TString::EndsWith(), fBackground, fBeam, fFinishRun, fInFiles, fNFiles, fParticlePairCuts, fPeriod, fSignal, fSignalBinMax, fSignalBinMin, fStartRun, fTarget, TSystemDirectory::GetListOfFiles(), TNamed::GetName(), hSpectra, hSpectraPt, hSpectraY, hSpectrumImproved, TSystemFile::IsDirectory(), isPtY, nPtBins, nYBins, TObject::TClonesArray, xLow, and xUp.

Here is the call graph for this function:

◆ ~BmnMassSpectrumAnal()

virtual BmnMassSpectrumAnal::~BmnMassSpectrumAnal ( )
inlinevirtual

Definition at line 84 of file BmnMassSpectrumAnal.h.

Member Function Documentation

◆ background()

Double_t BmnMassSpectrumAnal::background ( Double_t * xx,
Double_t * p )
staticprotected

Definition at line 764 of file BmnMassSpectrumAnal.cxx.

References BmnMassSpectrumAnal(), i, order, x, xLow, and xUp.

Referenced by fitFunction(), fitSpectrum(), and fitSpectrum().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkFit()

Bool_t BmnMassSpectrumAnal::checkFit ( BmnParticlePairCut * cut)
protected

Definition at line 62 of file BmnMassSpectrumAnal.cxx.

References TMath::Abs(), BmnParticlePairCut::B(), fSignal, BmnParticlePairCut::mass(), BmnParticlePairCut::S(), and BmnParticlePairCut::width().

Referenced by DoOptimization(), and ImproveCutValue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createFilelist()

vector< TString > BmnMassSpectrumAnal::createFilelist ( )

Definition at line 84 of file BmnMassSpectrumAnal.cxx.

References fBeam, fFinishRun, fInFiles, fPeriod, fStartRun, fTarget, UniRun::GetBeamParticle(), UniRun::GetRun(), and UniRun::GetTargetParticle().

Referenced by BmnLambdaAnalRun7::BmnLambdaAnalRun7(), BmnLambdaAnalRun7::doAllTargetsAnal(), DoOptimization(), BmnLambdaAnalRun7::doTargetAnal(), and BmnTriggerEfficiencyRun7::triggerEfficiency().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deltaB()

Double_t BmnMassSpectrumAnal::deltaB ( TF1 * f,
TFitResultPtr fitRes )
inlineprotected

Definition at line 136 of file BmnMassSpectrumAnal.h.

References f, fSignalBinMax, fSignalBinMin, TFitResultPtr::Get(), TH1::GetBinCenter(), TH1::GetBinWidth(), TFitResult::GetCovarianceMatrix(), TMatrixTSym< class Element >::GetMatrixArray(), ROOT::Fit::FitResult::GetParams(), max(), min(), xLow, and xUp.

Referenced by BmnLambdaAnalRun7::doTargetAnal(), BmnLambdaAnalRun7::doTargetAnalPath(), and BmnTriggerEfficiencyRun7::triggerEfficiency().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DoOptimization()

◆ FinBin()

Int_t BmnMassSpectrumAnal::FinBin ( map< Int_t, pair< Double_t, Double_t > > binMap,
Double_t value )
inlineprivate

Definition at line 96 of file BmnMassSpectrumAnal.h.

References max(), and min().

Referenced by ReadFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fitFunction()

Double_t BmnMassSpectrumAnal::fitFunction ( Double_t * x,
Double_t * par )
staticprotected

Definition at line 804 of file BmnMassSpectrumAnal.cxx.

References background(), signal(), and x.

Referenced by fitSpectrum().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fitSpectrum() [1/2]

TFitResultPtr BmnMassSpectrumAnal::fitSpectrum ( TH1F * h)
protected

Definition at line 629 of file BmnMassSpectrumAnal.cxx.

References BmnMassSpectrumAnal(), background(), TH1::Fit(), fSignalBinMax, fSignalBinMin, TFitResultPtr::Get(), TH1::GetBinError(), TH1::GetNbinsX(), n, TH1::SetBinError(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), xLow, and xUp.

Referenced by BmnLambdaAnalRun7::doAllTargetsAnal(), DoOptimization(), BmnLambdaAnalRun7::doTargetAnal(), BmnLambdaAnalRun7::doTargetAnalPath(), ImproveCutValue(), and BmnTriggerEfficiencyRun7::triggerEfficiency().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fitSpectrum() [2/2]

void BmnMassSpectrumAnal::fitSpectrum ( TH1F * h,
Double_t & mean,
Double_t & sigma,
pair< Double_t, Double_t > & T,
pair< Double_t, Double_t > & B )
protected

◆ GetFileList()

vector< TString > BmnMassSpectrumAnal::GetFileList ( )
inline

Definition at line 90 of file BmnMassSpectrumAnal.h.

References fInFiles.

Referenced by BmnLambdaAnalRun7::BmnLambdaAnalRun7(), and BmnDataAnalRun7::doResidAnal().

Here is the caller graph for this function:

◆ GetPtY()

void BmnMassSpectrumAnal::GetPtY ( vector< Double_t > vec1,
vector< Double_t > vec2,
Double_t & pt,
Double_t & Y )
protected

Definition at line 809 of file BmnMassSpectrumAnal.cxx.

References TMath::E(), TMath::Log(), m, and TMath::Sqrt().

Referenced by ReadFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImproveCutValue()

◆ isVectorOk()

Bool_t BmnMassSpectrumAnal::isVectorOk ( vector< Double_t > vector)
inlineprivate

Definition at line 110 of file BmnMassSpectrumAnal.h.

References TMath::Abs(), and TMath::IsNaN().

Referenced by ReadFile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadFile()

void BmnMassSpectrumAnal::ReadFile ( TString f,
BmnParticlePairCut * cut0 = nullptr,
TClonesArray * triggEffInfo = nullptr,
Double_t pathMin = 0.,
Double_t pathMax = 0. )
protected

Definition at line 450 of file BmnMassSpectrumAnal.cxx.

References TMath::Abs(), TChain::Add(), BmnParticlePairCut::dca0(), BmnParticlePairCut::dca1(), BmnParticlePairCut::dca12(), BmnParticlePairCut::dca2(), TriggerEfficiency::efficiency(), f, FinBin(), fParticlePairCuts, fPathBins, fPtBinMap, fYBinMap, BmnParticlePair::GetDCA0(), BmnParticlePair::GetDCA1(), BmnParticlePair::GetDCA12(), BmnParticlePair::GetDCA2(), TChain::GetEntries(), TObjArray::GetEntriesFast(), TChain::GetEntry(), TChain::GetFile(), BmnParticlePair::GetInvMass(), BmnParticlePair::GetMomPart1(), BmnParticlePair::GetMomPart2(), BmnParticlePair::GetNHitsPart1(), BmnParticlePair::GetNHitsPart2(), BmnParticlePair::GetPath(), GetPtY(), BmnDataTriggerInfo::GetTrigger(), BmnParticlePair::GetTxPart1(), BmnParticlePair::GetTxPart2(), BmnParticlePair::GetTyPart1(), BmnParticlePair::GetTyPart2(), BmnParticlePair::GetV0Z(), hSpectra, hSpectraPt, hSpectraY, hSpectrumImproved, isPtY, isVectorOk(), TriggerEfficiency::multilplicity(), BmnParticlePairCut::nHitsGemNeg(), BmnParticlePairCut::nHitsGemPos(), DstEventHeaderExtended::nTracks(), BmnParticlePairCut::path(), pathMax, pathMin, TChain::SetBranchAddress(), TObject::TClonesArray, TriggerEfficiency::trigger(), TObjArray::UncheckedAt(), DstEventHeaderExtended::Vp(), y, and TVector3::Z().

Referenced by BmnLambdaAnalRun7::doAllTargetsAnal(), DoOptimization(), BmnLambdaAnalRun7::doTargetAnal(), BmnLambdaAnalRun7::doTargetAnalPath(), and ImproveCutValue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetBackgroungCut()

void BmnMassSpectrumAnal::SetBackgroungCut ( Double_t b)
inline

Definition at line 45 of file BmnMassSpectrumAnal.h.

References fBackground.

◆ SetCuts()

void BmnMassSpectrumAnal::SetCuts ( vector< Double_t > DCA0,
vector< Double_t > DCA1,
vector< Double_t > DCA2,
vector< Double_t > DCA12,
vector< Double_t > PATH,
vector< Int_t > nHitsPos,
vector< Int_t > nHitsNeg )
inline

Definition at line 49 of file BmnMassSpectrumAnal.h.

References DoOptimization(), fParticlePairCuts, BmnParticlePairCut::SetDca0(), BmnParticlePairCut::SetDca1(), BmnParticlePairCut::SetDca12(), BmnParticlePairCut::SetDca2(), BmnParticlePairCut::SetNHitsGemNeg(), BmnParticlePairCut::SetNHitsGemPos(), and BmnParticlePairCut::SetPath().

Here is the call graph for this function:

◆ SetFinishRun()

void BmnMassSpectrumAnal::SetFinishRun ( Int_t finish)
inline

Definition at line 88 of file BmnMassSpectrumAnal.h.

References fFinishRun.

◆ SetNFiles()

void BmnMassSpectrumAnal::SetNFiles ( Int_t n)
inline

Definition at line 82 of file BmnMassSpectrumAnal.h.

References fNFiles, and n.

Referenced by lambdaAnalRun7().

Here is the caller graph for this function:

◆ SetSignalCut()

void BmnMassSpectrumAnal::SetSignalCut ( Double_t s)
inline

Definition at line 43 of file BmnMassSpectrumAnal.h.

References fSignal.

◆ SetSpectrumRange()

void BmnMassSpectrumAnal::SetSpectrumRange ( Double_t min,
Double_t max )
inline

Definition at line 37 of file BmnMassSpectrumAnal.h.

References max(), min(), xLow, and xUp.

Here is the call graph for this function:

◆ SetStartRun()

void BmnMassSpectrumAnal::SetStartRun ( Int_t start)
inline

Definition at line 86 of file BmnMassSpectrumAnal.h.

References fStartRun.

◆ SetTarget()

void BmnMassSpectrumAnal::SetTarget ( TString t)
inline

Definition at line 35 of file BmnMassSpectrumAnal.h.

References fTarget.

Referenced by BmnLambdaAnalRun7::BmnLambdaAnalRun7(), trigEffRun7(), and trigEffRun7().

Here is the caller graph for this function:

◆ signal()

Double_t BmnMassSpectrumAnal::signal ( Double_t * xx,
Double_t * p )
staticprotected

Definition at line 795 of file BmnMassSpectrumAnal.cxx.

References TMath::Exp().

Referenced by fitFunction(), and fitSpectrum().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ fBackground

Double_t BmnMassSpectrumAnal::fBackground
private

◆ fBeam

TString BmnMassSpectrumAnal::fBeam
protected

◆ fFinishRun

◆ fInFiles

vector<TString> BmnMassSpectrumAnal::fInFiles
protected

◆ fNFiles

◆ fParticlePairCuts

TClonesArray* BmnMassSpectrumAnal::fParticlePairCuts
private

Definition at line 167 of file BmnMassSpectrumAnal.h.

Referenced by BmnMassSpectrumAnal(), DoOptimization(), ReadFile(), and SetCuts().

◆ fPathBins

map<Int_t, pair<Double_t, Double_t> > BmnMassSpectrumAnal::fPathBins
protected

◆ fPeriod

Int_t BmnMassSpectrumAnal::fPeriod
protected

◆ fPtBinMap

◆ fSignal

Double_t BmnMassSpectrumAnal::fSignal
private

◆ fSignalBinMax

Int_t BmnMassSpectrumAnal::fSignalBinMax
protected

◆ fSignalBinMin

Int_t BmnMassSpectrumAnal::fSignalBinMin
protected

◆ fStartRun

◆ fTarget

◆ fYBinMap

◆ hSpectra

TH1F** BmnMassSpectrumAnal::hSpectra
private

Definition at line 170 of file BmnMassSpectrumAnal.h.

Referenced by BmnMassSpectrumAnal(), DoOptimization(), and ReadFile().

◆ hSpectraPt

TH1F** BmnMassSpectrumAnal::hSpectraPt
protected

◆ hSpectraY

TH1F** BmnMassSpectrumAnal::hSpectraY
protected

◆ hSpectrumImproved

TH1F* BmnMassSpectrumAnal::hSpectrumImproved
protected

◆ isMc

◆ isPtY

Bool_t BmnMassSpectrumAnal::isPtY
protected

◆ nPathBins

Int_t BmnMassSpectrumAnal::nPathBins
protected

Definition at line 200 of file BmnMassSpectrumAnal.h.

Referenced by BmnLambdaAnalRun7::SetPathBins().

◆ nPtBins

◆ nYBins

◆ xLow

◆ xUp


The documentation for this class was generated from the following files: