CbmRoot
Loading...
Searching...
No Matches
CbmAnaJpsiSuperEvent Class Reference

#include <CbmAnaJpsiSuperEvent.h>

Inheritance diagram for CbmAnaJpsiSuperEvent:
[legend]
Collaboration diagram for CbmAnaJpsiSuperEvent:
[legend]

Public Member Functions

 CbmAnaJpsiSuperEvent ()
 
virtual ~CbmAnaJpsiSuperEvent ()
 
void AddFile (const std::string &fileName)
 
void SetOutputFile (const std::string &fileName)
 
void SetRunAfterPtCut (Bool_t b)
 
void SetRunAfterIdCut (Bool_t b)
 
void Run ()
 

Private Member Functions

void InitHist ()
 
void ReadCandidates ()
 
void DoSuperEvent ()
 
void Draw (Option_t *="")
 
 CbmAnaJpsiSuperEvent (const CbmAnaJpsiSuperEvent &)
 
CbmAnaJpsiSuperEvent operator= (const CbmAnaJpsiSuperEvent &)
 
 ClassDef (CbmAnaJpsiSuperEvent, 1)
 

Private Attributes

std::vector< std::string > fFileNames
 
std::vector< CbmAnaJpsiCandidatefMinusCandidates
 
std::vector< CbmAnaJpsiCandidatefPlusCandidates
 
std::string fOutputFile
 
CbmHistManagerfHM
 
CbmAnaJpsiCuts fCuts
 
Bool_t fRunAfterPtCut
 
Bool_t fRunAfterIdCut
 

Detailed Description

Definition at line 29 of file CbmAnaJpsiSuperEvent.h.

Constructor & Destructor Documentation

◆ CbmAnaJpsiSuperEvent() [1/2]

CbmAnaJpsiSuperEvent::CbmAnaJpsiSuperEvent ( )

Definition at line 45 of file CbmAnaJpsiSuperEvent.cxx.

◆ ~CbmAnaJpsiSuperEvent()

CbmAnaJpsiSuperEvent::~CbmAnaJpsiSuperEvent ( )
virtual

Definition at line 58 of file CbmAnaJpsiSuperEvent.cxx.

◆ CbmAnaJpsiSuperEvent() [2/2]

CbmAnaJpsiSuperEvent::CbmAnaJpsiSuperEvent ( const CbmAnaJpsiSuperEvent & )
private

Member Function Documentation

◆ AddFile()

void CbmAnaJpsiSuperEvent::AddFile ( const std::string & fileName)
inline

Definition at line 39 of file CbmAnaJpsiSuperEvent.h.

References fFileNames.

◆ ClassDef()

CbmAnaJpsiSuperEvent::ClassDef ( CbmAnaJpsiSuperEvent ,
1  )
private

◆ DoSuperEvent()

◆ Draw()

void CbmAnaJpsiSuperEvent::Draw ( Option_t * = "")
private

◆ InitHist()

void CbmAnaJpsiSuperEvent::InitHist ( )
private

Definition at line 88 of file CbmAnaJpsiSuperEvent.cxx.

References CbmHistManager::Create1(), and fHM.

Referenced by Run().

◆ operator=()

CbmAnaJpsiSuperEvent CbmAnaJpsiSuperEvent::operator= ( const CbmAnaJpsiSuperEvent & )
private

◆ ReadCandidates()

void CbmAnaJpsiSuperEvent::ReadCandidates ( )
private

Save old global file and folder pointer to avoid messing with FairRoot

Restore old global file and folder pointer to avoid messing with FairRoot

Definition at line 149 of file CbmAnaJpsiSuperEvent.cxx.

References CbmAnaJpsiCandidate::fCharge, CbmAnaJpsiCandidate::fChi2Prim, CbmAnaJpsiCuts::fChiPrimCut, fCuts, fFileNames, fHM, CbmAnaJpsiCandidate::fIsElectron, CbmAnaJpsiCandidate::fIsMcSignalElectron, fMinusCandidates, CbmAnaJpsiCandidate::fMomentum, fPlusCandidates, CbmAnaJpsiCuts::fPtCut, fRunAfterIdCut, fRunAfterPtCut, and CbmHistManager::H1().

Referenced by Run().

◆ Run()

void CbmAnaJpsiSuperEvent::Run ( )

Save old global file and folder pointer to avoid messing with FairRoot

Restore old global file and folder pointer to avoid messing with FairRoot

Definition at line 60 of file CbmAnaJpsiSuperEvent.cxx.

References DoSuperEvent(), Draw(), fHM, fOutputFile, InitHist(), ReadCandidates(), and CbmHistManager::WriteToFile().

◆ SetOutputFile()

void CbmAnaJpsiSuperEvent::SetOutputFile ( const std::string & fileName)
inline

Definition at line 44 of file CbmAnaJpsiSuperEvent.h.

References fOutputFile.

◆ SetRunAfterIdCut()

void CbmAnaJpsiSuperEvent::SetRunAfterIdCut ( Bool_t b)
inline

Definition at line 52 of file CbmAnaJpsiSuperEvent.h.

References fRunAfterIdCut.

◆ SetRunAfterPtCut()

void CbmAnaJpsiSuperEvent::SetRunAfterPtCut ( Bool_t b)
inline

Definition at line 50 of file CbmAnaJpsiSuperEvent.h.

References fRunAfterPtCut.

Member Data Documentation

◆ fCuts

CbmAnaJpsiCuts CbmAnaJpsiSuperEvent::fCuts
private

Definition at line 65 of file CbmAnaJpsiSuperEvent.h.

Referenced by DoSuperEvent(), and ReadCandidates().

◆ fFileNames

std::vector<std::string> CbmAnaJpsiSuperEvent::fFileNames
private

Definition at line 57 of file CbmAnaJpsiSuperEvent.h.

Referenced by AddFile(), and ReadCandidates().

◆ fHM

CbmHistManager* CbmAnaJpsiSuperEvent::fHM
private

Definition at line 63 of file CbmAnaJpsiSuperEvent.h.

Referenced by DoSuperEvent(), Draw(), InitHist(), ReadCandidates(), and Run().

◆ fMinusCandidates

std::vector<CbmAnaJpsiCandidate> CbmAnaJpsiSuperEvent::fMinusCandidates
private

Definition at line 58 of file CbmAnaJpsiSuperEvent.h.

Referenced by DoSuperEvent(), and ReadCandidates().

◆ fOutputFile

std::string CbmAnaJpsiSuperEvent::fOutputFile
private

Definition at line 61 of file CbmAnaJpsiSuperEvent.h.

Referenced by Run(), and SetOutputFile().

◆ fPlusCandidates

std::vector<CbmAnaJpsiCandidate> CbmAnaJpsiSuperEvent::fPlusCandidates
private

Definition at line 59 of file CbmAnaJpsiSuperEvent.h.

Referenced by DoSuperEvent(), and ReadCandidates().

◆ fRunAfterIdCut

Bool_t CbmAnaJpsiSuperEvent::fRunAfterIdCut
private

Definition at line 68 of file CbmAnaJpsiSuperEvent.h.

Referenced by ReadCandidates(), and SetRunAfterIdCut().

◆ fRunAfterPtCut

Bool_t CbmAnaJpsiSuperEvent::fRunAfterPtCut
private

Definition at line 67 of file CbmAnaJpsiSuperEvent.h.

Referenced by ReadCandidates(), and SetRunAfterPtCut().


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