musrfit  1.9.2
PRawRunDataVector Class Reference

#include <PMusr.h>

Public Member Functions

 PRawRunDataVector ()
 
virtual ~PRawRunDataVector ()
 
virtual UInt_t Size ()
 
virtual Bool_t IsPresent (UInt_t histoNo)
 
virtual PRawRunDataSetGetSet (UInt_t idx)
 
virtual PRawRunDataSetGet (UInt_t histoNo)
 
virtual PRawRunDataSetoperator[] (UInt_t histoNo)
 
virtual PDoubleVectorGetData (UInt_t histoNo)
 
virtual Double_t GetT0Bin (UInt_t histoNo)
 
virtual Double_t GetT0BinEstimated (UInt_t histoNo)
 
virtual PIntPair GetBkgBin (UInt_t histoNo)
 
virtual PIntPair GetGoodDataBin (UInt_t histoNo)
 
virtual void Set (PRawRunDataSet dataSet, Int_t idx=-1)
 

Private Attributes

std::vector< PRawRunDataSetfDataVec
 

Detailed Description

Handles a vector of PRawRunDataSet's. Addressing of the data set can be done via a map mechanism, since e.g. for MusrRoot, the data sets are not continuously numbered due to Red/Green options.

Definition at line 362 of file PMusr.h.

Constructor & Destructor Documentation

◆ PRawRunDataVector()

PRawRunDataVector::PRawRunDataVector ( )
inline

Definition at line 364 of file PMusr.h.

◆ ~PRawRunDataVector()

virtual PRawRunDataVector::~PRawRunDataVector ( )
inlinevirtual

Definition at line 365 of file PMusr.h.

References fDataVec.

Member Function Documentation

◆ Get()

PRawRunDataSet * PRawRunDataVector::Get ( UInt_t  histoNo)
virtual

Get the raw data set with histogram number histoNo.

return:

  • pointer to the raw data set if found
  • 0 otherwise
Parameters
histoNohistogram number requested

Definition at line 340 of file PMusr.cpp.

◆ GetBkgBin()

PIntPair PRawRunDataVector::GetBkgBin ( UInt_t  histoNo)
virtual

Get the background bins (start, end).

return:

  • background bins if found
  • (-1, -1) otherwise
Parameters
histoNohistogram number requested

Definition at line 461 of file PMusr.cpp.

Referenced by PRawRunData::GetBkgBin().

◆ GetData()

PDoubleVector * PRawRunDataVector::GetData ( UInt_t  histoNo)
virtual

Get the raw data set data with histogram number histoNo.

return:

  • pointer to the raw data set if found
  • 0 otherwise
Parameters
histoNohistogram number requested

Definition at line 383 of file PMusr.cpp.

Referenced by PRawRunData::GetDataBin().

◆ GetGoodDataBin()

PIntPair PRawRunDataVector::GetGoodDataBin ( UInt_t  histoNo)
virtual

Get the first/last good data bin (fgb, lgb).

return:

  • good data bins if found
  • (-1, -1) otherwise
Parameters
histoNohistogram number requested

Definition at line 488 of file PMusr.cpp.

Referenced by PRawRunData::GetGoodDataBin().

◆ GetSet()

PRawRunDataSet * PRawRunDataVector::GetSet ( UInt_t  idx)
virtual

Get the raw data set with the index idx. This routine is different to PRawRunDataVector::Get(UInt_t histoNo) where the internal saved histogram number is used.

return:

  • pointer to the raw data set if found
  • 0 otherwise
Parameters
idxdata set index

Definition at line 318 of file PMusr.cpp.

◆ GetT0Bin()

Double_t PRawRunDataVector::GetT0Bin ( UInt_t  histoNo)
virtual

Get the T0 bin of raw run data with histogram number histoNo.

return:

  • T0 bin if found
  • PMUSR_UNDEFINED otherwise
Parameters
histoNohistogram number requested

Definition at line 409 of file PMusr.cpp.

Referenced by PRawRunData::GetT0Bin().

◆ GetT0BinEstimated()

Double_t PRawRunDataVector::GetT0BinEstimated ( UInt_t  histoNo)
virtual

Get the estimated T0 bin of raw run data with histogram number histoNo.

return:

  • estimated T0 bin if found
  • PMUSR_UNDEFINED otherwise
Parameters
histoNohistogram number requested

Definition at line 435 of file PMusr.cpp.

References PMUSR_UNDEFINED.

Referenced by PRawRunData::GetT0BinEstimated().

◆ IsPresent()

Bool_t PRawRunDataVector::IsPresent ( UInt_t  histoNo)
virtual

Checks if the histogram set with histgram number histoNo is present.

return:

  • true if found
  • false otherwise
Parameters
histoNohistogram number requested

Definition at line 290 of file PMusr.cpp.

Referenced by PRawRunData::IsPresent().

◆ operator[]()

PRawRunDataSet * PRawRunDataVector::operator[] ( UInt_t  histoNo)
virtual

Get the raw data set with histogram number histoNo.

return:

  • pointer to the raw data set if found
  • 0 otherwise
Parameters
histoNohistogram number requested

Definition at line 366 of file PMusr.cpp.

◆ Set()

void PRawRunDataVector::Set ( PRawRunDataSet  dataSet,
Int_t  idx = -1 
)
virtual

Set a data set at idx. If idx == -1 append it at the end (default), otherwise check if idx is within bounds and if yes, place it there, otherwise resize the data vector and place it where requested.

Parameters
dataSetdata set to be set
idxindex at which to place the data set.

Definition at line 514 of file PMusr.cpp.

Referenced by PRawRunData::SetDataSet().

◆ Size()

virtual UInt_t PRawRunDataVector::Size ( )
inlinevirtual

Definition at line 367 of file PMusr.h.

References fDataVec.

Referenced by PRawRunData::GetNoOfHistos().

Member Data Documentation

◆ fDataVec

std::vector<PRawRunDataSet> PRawRunDataVector::fDataVec
private

Definition at line 381 of file PMusr.h.

Referenced by Size(), and ~PRawRunDataVector().


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