laura is hosted by Hepforge, IPPP Durham
Laura++  3.6.0
A maximum likelihood fitting package for performing Dalitz-plot analysis.

Class to store the data for embedding in toy experiments. More...

#include <LauEmbeddedData.hh>

Public Member Functions

 LauEmbeddedData (const TString &fileName, const TString &treeName, Bool_t allowReuseOfEvents)
 Constructor. More...
 
virtual ~LauEmbeddedData ()
 Destructor.
 
Bool_t findBranches ()
 Find and read the branches in data tree. More...
 
UInt_t nBranches () const
 Retrieve the number of branches. More...
 
UInt_t nEvents () const
 Retrieve the number of events. More...
 
UInt_t nUsedEvents () const
 Retrieve the number of events that have already been sampled. More...
 
Bool_t haveBranch (const TString &name) const
 Boolean to determine whether branch exists. More...
 
void getEmbeddedEvent (LauKinematics *kinematics)
 Retrieve an event from the data sample. More...
 
Bool_t getReweightedEvent (LauIsobarDynamics *dynamics)
 Retrieve an event from the data sample, applying an accept/reject based on the given DP model. More...
 
Double_t getValue (const TString &name) const
 Get the value of a specified branch. More...
 
LauFitData getValues (const std::vector< TString > &names) const
 Get values of specified branches. More...
 
void clearUsedList ()
 Clear the list of used events.
 

Protected Member Functions

Bool_t reuseEvents () const
 Boolean determining whether events should be reused. More...
 

Private Member Functions

 LauEmbeddedData (const LauEmbeddedData &rhs)
 Copy constructor (not implemented)
 
LauEmbeddedDataoperator= (const LauEmbeddedData &rhs)
 Copy assignment operator (not implemented)
 

Private Attributes

LauFitDataTreetheDataTree_
 The structure containing the data.
 
LauFitData theData_
 The data for the currently retrieved event.
 
Bool_t reuseEvents_
 Flag whether events can be reused.
 
std::set< UInt_t > usedEvents_
 Used events.
 

Detailed Description

Class to store the data for embedding in toy experiments.

Class to store the data from external data sources, such as full simulation, for embedding in toy experiments

Definition at line 46 of file LauEmbeddedData.hh.

Constructor & Destructor Documentation

◆ LauEmbeddedData()

LauEmbeddedData::LauEmbeddedData ( const TString &  fileName,
const TString &  treeName,
Bool_t  allowReuseOfEvents 
)

Constructor.

Parameters
[in]fileNamethe ntuple file name
[in]treeNamethe tree name
[in]allowReuseOfEventsflag to indicated whether events are allowed to be sampled more than once

Definition at line 41 of file LauEmbeddedData.cc.

Member Function Documentation

◆ findBranches()

Bool_t LauEmbeddedData::findBranches ( )

Find and read the branches in data tree.

Returns
success/failure flag

Definition at line 54 of file LauEmbeddedData.cc.

◆ getEmbeddedEvent()

void LauEmbeddedData::getEmbeddedEvent ( LauKinematics kinematics)

Retrieve an event from the data sample.

Parameters
[in]kinematicsobject in which to store the kinematics of the Dalitz plot

Definition at line 155 of file LauEmbeddedData.cc.

◆ getReweightedEvent()

Bool_t LauEmbeddedData::getReweightedEvent ( LauIsobarDynamics dynamics)

Retrieve an event from the data sample, applying an accept/reject based on the given DP model.

Parameters
[in]dynamicsthe amplitude model

Definition at line 73 of file LauEmbeddedData.cc.

◆ getValue()

Double_t LauEmbeddedData::getValue ( const TString &  name) const

Get the value of a specified branch.

Parameters
[in]namethe branch name
Returns
the branch value

Definition at line 193 of file LauEmbeddedData.cc.

◆ getValues()

LauFitData LauEmbeddedData::getValues ( const std::vector< TString > &  names) const

Get values of specified branches.

Parameters
[in]namesthe branch names
Returns
the branch values

Definition at line 205 of file LauEmbeddedData.cc.

◆ haveBranch()

Bool_t LauEmbeddedData::haveBranch ( const TString &  name) const
inline

Boolean to determine whether branch exists.

Parameters
[in]namethe branch name

Definition at line 88 of file LauEmbeddedData.hh.

◆ nBranches()

UInt_t LauEmbeddedData::nBranches ( ) const
inline

Retrieve the number of branches.

Returns
the number of branches

Definition at line 70 of file LauEmbeddedData.hh.

◆ nEvents()

UInt_t LauEmbeddedData::nEvents ( ) const
inline

Retrieve the number of events.

Returns
the number of events

Definition at line 76 of file LauEmbeddedData.hh.

◆ nUsedEvents()

UInt_t LauEmbeddedData::nUsedEvents ( ) const
inline

Retrieve the number of events that have already been sampled.

Returns
the number of used events

Definition at line 82 of file LauEmbeddedData.hh.

◆ reuseEvents()

Bool_t LauEmbeddedData::reuseEvents ( ) const
inlineprotected

Boolean determining whether events should be reused.

Returns
flag determining whether events should be reused

Definition at line 127 of file LauEmbeddedData.hh.


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