BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
SplitDcmsmm.C File Reference

Go to the source code of this file.

Functions

void ReadHeader (ifstream &fin, vector< TString > &header)
Int_t ReadEvent (ifstream &fin, vector< TString > &evBuff;)
void WriteEvent (ofstream &fout, vector< TString > &evBuff;)
TString GetRatioString (Int_t nevent, Int_t divider)
 Get a string representation of the ratio: nevent/divider If divider is zero, the result is "inf" The ratio is formatted as string with integer (e.g.
void SplitDcmsmm (TString inFile="./DCMSMM_XeCsI_3.8_AGeV_mb_50k_2.r12", Int_t nbefore=10000, Int_t nafter=2500)

Variables

const Int_t nHead = 20
const Int_t ntokh [nHead] = {7, 10, 6, 6, 8, 10, 16, 16, 16, 13, 13, 13, 13, 16, 2, 8}

Function Documentation

◆ GetRatioString()

TString GetRatioString ( Int_t nevent,
Int_t divider )

"21") or float (e.g. "2.5", without trailing zeros)

Parameters
neventThe numerator of the ratio
dividerThe denominator of the ratio
Returns
A string representation of the ratio

Definition at line 250 of file SplitDcmsmm.C.

References TString::kTrailing.

Referenced by SplitDcmsmm().

Here is the caller graph for this function:

◆ ReadEvent()

Int_t ReadEvent ( ifstream & fin,
vector< TString > &evBuff;  )

Definition at line 163 of file SplitDcmsmm.C.

References TString::Atof(), TString::Data(), TObjArray::Delete(), TObjArray::GetEntriesFast(), TObjString::GetString(), TString::ReadLine(), TString::Tokenize(), and TObjArray::UncheckedAt().

Referenced by SplitDcmsmm().

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

◆ ReadHeader()

void ReadHeader ( ifstream & fin,
vector< TString > & header )

Definition at line 152 of file SplitDcmsmm.C.

References nHead, and TString::ReadLine().

Referenced by SplitDcmsmm().

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

◆ SplitDcmsmm()

void SplitDcmsmm ( TString inFile = "./DCMSMM_XeCsI_3.8_AGeV_mb_50k_2.r12",
Int_t nbefore = 10000,
Int_t nafter = 2500 )

Definition at line 16 of file SplitDcmsmm.C.

References TString::Data(), TString::EndsWith(), FileStat_t::fMode, TString::Form(), TString::Format(), GetRatioString(), TString::Index(), TString::Itoa(), TString::kIgnoreCase, TString::Last(), TString::Length(), nHead, ReadEvent(), ReadHeader(), TString::Replace(), and WriteEvent().

Here is the call graph for this function:

◆ WriteEvent()

void WriteEvent ( ofstream & fout,
vector< TString > &evBuff;  )

Definition at line 235 of file SplitDcmsmm.C.

Referenced by SplitDcmsmm().

Here is the caller graph for this function:

Variable Documentation

◆ nHead

const Int_t nHead = 20

Definition at line 2 of file SplitDcmsmm.C.

Referenced by ReadHeader(), and SplitDcmsmm().

◆ ntokh

const Int_t ntokh[nHead] = {7, 10, 6, 6, 8, 10, 16, 16, 16, 13, 13, 13, 13, 16, 2, 8}

Definition at line 3 of file SplitDcmsmm.C.