laura is hosted by Hepforge, IPPP Durham
Laura++  v2r2p1
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. More...
 
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 (LauAbsDPDynamics *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. More...
 

Protected Member Functions

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

Private Attributes

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

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 33 of file LauEmbeddedData.hh.

Constructor & Destructor Documentation

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 30 of file LauEmbeddedData.cc.

LauEmbeddedData::~LauEmbeddedData ( )
virtual

Destructor.

Definition at line 36 of file LauEmbeddedData.cc.

Member Function Documentation

void LauEmbeddedData::clearUsedList ( )
inline

Clear the list of used events.

Definition at line 104 of file LauEmbeddedData.hh.

Bool_t LauEmbeddedData::findBranches ( )

Find and read the branches in data tree.

Returns
success/failure flag

Definition at line 41 of file LauEmbeddedData.cc.

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 140 of file LauEmbeddedData.cc.

Bool_t LauEmbeddedData::getReweightedEvent ( LauAbsDPDynamics 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 59 of file LauEmbeddedData.cc.

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 175 of file LauEmbeddedData.cc.

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 186 of file LauEmbeddedData.cc.

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

Boolean to determine whether branch exists.

Parameters
[in]namethe branch name

Definition at line 75 of file LauEmbeddedData.hh.

UInt_t LauEmbeddedData::nBranches ( ) const
inline

Retrieve the number of branches.

Returns
the number of branches

Definition at line 57 of file LauEmbeddedData.hh.

UInt_t LauEmbeddedData::nEvents ( ) const
inline

Retrieve the number of events.

Returns
the number of events

Definition at line 63 of file LauEmbeddedData.hh.

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 69 of file LauEmbeddedData.hh.

Bool_t LauEmbeddedData::reuseEvents ( ) const
inlineprotected

Boolean determining whether events should be reused.

Returns
flag determining whether events should be reused

Definition at line 111 of file LauEmbeddedData.hh.

Member Data Documentation

Bool_t LauEmbeddedData::reuseEvents_
private

Flag whether events can be reused.

Definition at line 119 of file LauEmbeddedData.hh.

LauFitData LauEmbeddedData::theData_
private

The data for the currently retrieved event.

Definition at line 117 of file LauEmbeddedData.hh.

LauFitDataTree* LauEmbeddedData::theDataTree_
private

The structure containing the data.

Definition at line 115 of file LauEmbeddedData.hh.

std::set<UInt_t> LauEmbeddedData::usedEvents_
private

Used events.

Definition at line 121 of file LauEmbeddedData.hh.


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