Belle II Software  release-05-01-25
RestOfEvent Class Reference

This is a general purpose class for collecting reconstructed MDST data objects that are not used in reconstruction of given Particle – referred also as Rest Of the Event. More...

#include <RestOfEvent.h>

Inheritance diagram for RestOfEvent:
Collaboration diagram for RestOfEvent:

Classes

struct  Mask
 Structure of Rest of Event mask. More...
 

Public Member Functions

 RestOfEvent (int pdgCode=0, bool isNested=false, bool isFromMC=false)
 Default constructor. More...
 
void addParticles (const std::vector< const Particle * > &particle)
 Add StoreArray indices of given Particles to the list of unused particles in the event. More...
 
void setPDGCode (int pdgCode)
 Sets the PDG code of the rest of event.
 
ParticleconvertToParticle (const std::string &maskName="", int pdgCode=0, bool isSelfConjugated=true)
 Converts ROE to Particle and adds it to StoreArray. More...
 
int getPDGCode () const
 Gets the PDG code of the rest of event.
 
bool hasParticle (const Particle *particle, const std::string &maskName="") const
 Check if ROE has StoreArray index of given to the list of unused tracks in the event. More...
 
void initializeMask (const std::string &name, const std::string &origin="unknown")
 Initialize new mask. More...
 
void updateMaskWithCuts (const std::string &name, const std::shared_ptr< Variable::Cut > &trackCut=nullptr, const std::shared_ptr< Variable::Cut > &eclCut=nullptr, const std::shared_ptr< Variable::Cut > &klmCut=nullptr, bool updateExisting=false)
 Update mask with cuts. More...
 
void excludeParticlesFromMask (const std::string &maskName, const std::vector< const Particle * > &particles, Particle::EParticleSourceObject listType, bool discard)
 Update mask by keeping or excluding particles. More...
 
bool hasMask (const std::string &name) const
 True if this ROE object has mask. More...
 
void updateMaskWithV0 (const std::string &name, const Particle *particleV0)
 Update mask with composite particle. More...
 
bool checkCompatibilityOfMaskAndV0 (const std::string &name, const Particle *particleV0)
 Check if V0 can be added, maybe should be moved to private.
 
bool getIsNested () const
 Returns true if the ROE is nested.
 
std::vector< const Particle * > getParticles (const std::string &maskName="", bool unpackComposite=true) const
 Get all Particles from ROE mask. More...
 
std::vector< const Particle * > getPhotons (const std::string &maskName="", bool unpackComposite=true) const
 Get photons from ROE mask. More...
 
std::vector< const Particle * > getHadrons (const std::string &maskName="", bool unpackComposite=true) const
 Get hadrons from ROE mask. More...
 
std::vector< const Particle * > getChargedParticles (const std::string &maskName="", unsigned int pdg=0, bool unpackComposite=true) const
 Get charged particles from ROE mask. More...
 
std::vector< const Track * > getTracks (const std::string &maskName="") const
 Get vector of all (no mask) or a subset (use mask) of all Tracks in ROE. More...
 
std::vector< const ECLCluster * > getECLClusters (const std::string &maskName="") const
 Get vector of all (no mask) or a subset (use mask) of all ECLClusters in ROE. More...
 
std::vector< const KLMCluster * > getKLMClusters (const std::string &maskName="") const
 Get vector of all unused KLMClusters. More...
 
TLorentzVector get4Vector (const std::string &maskName="") const
 Get 4-momentum vector all (no mask) or a subset (use mask) of all Tracks and ECLClusters in ROE. More...
 
TLorentzVector get4VectorTracks (const std::string &maskName="") const
 OBSOLETE: Get 4-momentum vector all (no mask) or a subset (use mask) of all Tracks in ROE. More...
 
TLorentzVector get4VectorNeutralECLClusters (const std::string &maskName="") const
 Get 4-momentum vector all (no mask) or a subset (use mask) of all ECLClusters in ROE. More...
 
int getNTracks (const std::string &maskName="") const
 Get number of all (no mask) or a subset (use mask) of all Tracks in ROE. More...
 
int getNECLClusters (const std::string &maskName="") const
 Get number of all (no mask) or a subset (use mask) of all ECLclusters in ROE. More...
 
int getNKLMClusters (const std::string &maskName="") const
 Get number of all remaining KLM clusters. More...
 
std::vector< std::string > getMaskNames () const
 Get vector of all mask names of the ROE object. More...
 
double atcPIDBelleKpiFromPID (const PIDLikelihood *pid) const
 OBSOLETE: Added helper function so creation of temporary particles and setting pid relations is not needed.
 
void print () const
 Prints the contents of a RestOfEvent object to screen.
 
void addRelationTo (const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const
 Add a relation from this object to another object (with caching). More...
 
void addRelationTo (const TObject *object, float weight=1.0, const std::string &namedRelation="") const
 Add a relation from this object to another object (no caching, can be quite slow). More...
 
void copyRelations (const RelationsInterface< BASE > *sourceObj)
 Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights). More...
 
template<class TO >
RelationVector< TO > getRelationsTo (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from this object to another store array. More...
 
template<class FROM >
RelationVector< FROM > getRelationsFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from another store array to this object. More...
 
template<class T >
RelationVector< T > getRelationsWith (const std::string &name="", const std::string &namedRelation="") const
 Get the relations between this object and another store array. More...
 
template<class TO >
TO * getRelatedTo (const std::string &name="", const std::string &namedRelation="") const
 Get the object to which this object has a relation. More...
 
template<class FROM >
FROM * getRelatedFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the object from which this object has a relation. More...
 
template<class T >
T * getRelated (const std::string &name="", const std::string &namedRelation="") const
 Get the object to or from which this object has a relation. More...
 
template<class TO >
std::pair< TO *, float > getRelatedToWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing to an array. More...
 
template<class FROM >
std::pair< FROM *, float > getRelatedFromWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing from an array. More...
 
template<class T >
std::pair< T *, float > getRelatedWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing from/to an array. More...
 
virtual std::string getName () const
 Return a short name that describes this object, e.g. More...
 
virtual std::string getInfoHTML () const
 Return a short summary of this object's contents in HTML format. More...
 
std::string getInfo () const
 Return a short summary of this object's contents in raw text format. More...
 
std::string getArrayName () const
 Get name of array this object is stored in, or "" if not found.
 
int getArrayIndex () const
 Returns this object's array index (in StoreArray), or -1 if not found.
 

Protected Member Functions

TClonesArray * getArrayPointer () const
 Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse).
 

Private Member Functions

bool isInParticleList (const Particle *roeParticle, const std::vector< const Particle * > &particlesToUpdate) const
 Checks if a particle has its copy in the provided list.
 
MaskfindMask (const std::string &name)
 Helper method to find ROE mask.
 
void printIndices (const std::set< int > &indices) const
 Prints indices in the given set in a single line.
 
 ClassDef (RelationsInterface, 0)
 defines interface for accessing relations of objects in StoreArray.
 

Private Attributes

std::set< int > m_particleIndices
 StoreArray indices to unused particles.
 
std::vector< Maskm_masks
 List of the ROE masks.
 
int m_pdgCode
 PDG code of the 'ROE particle' if we are going to create one.
 
bool m_isNested
 Nested ROE indicator.
 
bool m_isFromMC
 MC ROE indicator.
 
DataStore::StoreEntrym_cacheDataStoreEntry
 Cache of the data store entry to which this object belongs.
 
int m_cacheArrayIndex
 Cache of the index in the TClonesArray to which this object belongs.
 

Detailed Description

This is a general purpose class for collecting reconstructed MDST data objects that are not used in reconstruction of given Particle – referred also as Rest Of the Event.

From remaining photons, K_L0 and charged particles, etc., we infer for example the decay vertex and flavor of the tagging B meson, which are needed in measurements of t-dependent CP violation, or we determine whether or not the rest of the event is consistent with some B decay that involves neutrinos after we have reconstructed Btag hadronically or semileptonically. Remaining charged tracks and unused energy deposits are for example also needed in calculation of continuum suppression variables, like Kakuno-Super-Fox-Wolfram moments. The RestOfEvent class should be used as an input in all these cases.

The RestOfEvent object is created for given existing Particle object by the RestOfEventBuilder module and are related between each other with the BASF2 relation.

Internally, the RestOfEvent class holds only StoreArray indices of all unused MDST particles. Indices are stored in std::set and not std::vector, since the former ensures uniqueness of all its elements.

Definition at line 59 of file RestOfEvent.h.

Constructor & Destructor Documentation

◆ RestOfEvent()

RestOfEvent ( int  pdgCode = 0,
bool  isNested = false,
bool  isFromMC = false 
)
inlineexplicit

Default constructor.

All private members are set to 0 (all vectors are empty).

Definition at line 180 of file RestOfEvent.h.

180  :
181  m_pdgCode(pdgCode), m_isNested(isNested), m_isFromMC(isFromMC) { };

Member Function Documentation

◆ addParticles()

void addParticles ( const std::vector< const Particle * > &  particle)

Add StoreArray indices of given Particles to the list of unused particles in the event.

Parameters
particleReference to a vector of unused Particles

Definition at line 27 of file RestOfEvent.cc.

28 {
29  StoreArray<Particle> allParticles;
30  for (auto* particleToAdd : particlesToAdd) {
31  std::vector<const Particle*> daughters = particleToAdd->getFinalStateDaughters();
32  for (auto* daughter : daughters) {
33  bool toAdd = true;
34  for (auto& myIndex : m_particleIndices) {
35  if (allParticles[myIndex]->isCopyOf(daughter, true)) {
36  toAdd = false;
37  break;
38  }
39  }
40  if (toAdd) {
41  B2DEBUG(10, "\t\tAdding particle with PDG " << daughter->getPDGCode());
42  m_particleIndices.insert(daughter->getArrayIndex());
43  }
44  }
45  }
46 }

◆ addRelationTo() [1/2]

void addRelationTo ( const RelationsInterface< BASE > *  object,
float  weight = 1.0,
const std::string &  namedRelation = "" 
) const
inlineinherited

Add a relation from this object to another object (with caching).

Parameters
objectThe object to which the relation should point.
weightThe weight of the relation.
namedRelationAdditional name for the relation, or "" for the default naming

Definition at line 144 of file RelationsObject.h.

◆ addRelationTo() [2/2]

void addRelationTo ( const TObject *  object,
float  weight = 1.0,
const std::string &  namedRelation = "" 
) const
inlineinherited

Add a relation from this object to another object (no caching, can be quite slow).

Parameters
objectThe object to which the relation should point.
weightThe weight of the relation.
namedRelationAdditional name for the relation, or "" for the default naming

Definition at line 157 of file RelationsObject.h.

◆ convertToParticle()

Particle * convertToParticle ( const std::string &  maskName = "",
int  pdgCode = 0,
bool  isSelfConjugated = true 
)

Converts ROE to Particle and adds it to StoreArray.

Parameters
maskNameName of the ROE mask to use for 4-vector and daughters
pdgCodePDG code
isSelfConjugatedis the particle self-conjugated

Definition at line 516 of file RestOfEvent.cc.

◆ copyRelations()

void copyRelations ( const RelationsInterface< BASE > *  sourceObj)
inlineinherited

Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights).

Useful if you want to make a complete copy of a StoreArray object to make modifications to it, but retain all information on linked objects.

Note: this only works if sourceObj inherits from the same base (e.g. RelationsObject), and only for related objects that also inherit from the same base.

Definition at line 172 of file RelationsObject.h.

◆ excludeParticlesFromMask()

void excludeParticlesFromMask ( const std::string &  maskName,
const std::vector< const Particle * > &  particles,
Particle::EParticleSourceObject  listType,
bool  discard 
)

Update mask by keeping or excluding particles.

Parameters
Nameof the mask to work with
Referenceto particle collection
ParticleSourceObjectof the collection
Updatethe ROE mask by passing or discarding particles in the provided particle list

Definition at line 147 of file RestOfEvent.cc.

◆ get4Vector()

TLorentzVector get4Vector ( const std::string &  maskName = "") const

Get 4-momentum vector all (no mask) or a subset (use mask) of all Tracks and ECLClusters in ROE.

Parameters
maskNameName of mask
Returns
4-momentum of unused Tracks and ECLClusters in ROE

Definition at line 283 of file RestOfEvent.cc.

◆ get4VectorNeutralECLClusters()

TLorentzVector get4VectorNeutralECLClusters ( const std::string &  maskName = "") const

Get 4-momentum vector all (no mask) or a subset (use mask) of all ECLClusters in ROE.

Parameters
maskNameName of mask
Returns
4-momentum of unused Tracks and ECLClusters in ROE

Definition at line 455 of file RestOfEvent.cc.

◆ get4VectorTracks()

TLorentzVector get4VectorTracks ( const std::string &  maskName = "") const

OBSOLETE: Get 4-momentum vector all (no mask) or a subset (use mask) of all Tracks in ROE.

Parameters
maskNameName of mask
Returns
4-momentum of unused Tracks and ECLClusters in ROE

Definition at line 361 of file RestOfEvent.cc.

◆ getChargedParticles()

std::vector< const Particle * > getChargedParticles ( const std::string &  maskName = "",
unsigned int  pdg = 0,
bool  unpackComposite = true 
) const

Get charged particles from ROE mask.

Parameters
maskNameName of mask
pdgabsolute value of PDG code of charged particle
unpackCompositereturn daughters of composite particles
Returns
vector of pointers to ROE Particles

Definition at line 109 of file RestOfEvent.cc.

◆ getECLClusters()

std::vector< const ECLCluster * > getECLClusters ( const std::string &  maskName = "") const

Get vector of all (no mask) or a subset (use mask) of all ECLClusters in ROE.

Parameters
maskNameName of mask
Returns
vector of pointers to unused ECLClusters

Definition at line 319 of file RestOfEvent.cc.

◆ getHadrons()

std::vector< const Particle * > getHadrons ( const std::string &  maskName = "",
bool  unpackComposite = true 
) const

Get hadrons from ROE mask.

Parameters
maskNameName of mask
unpackCompositereturn daughters of composite particles
Returns
vector of pointers to ROE Particles

Definition at line 97 of file RestOfEvent.cc.

◆ getInfo()

std::string getInfo ( ) const
inlineinherited

Return a short summary of this object's contents in raw text format.

Returns the contents of getInfoHTML() while translating line-breaks etc.

Note
: You don't need to implement this function (it's not virtual), getInfoHTML() is enough.

Definition at line 372 of file RelationsObject.h.

◆ getInfoHTML()

virtual std::string getInfoHTML ( ) const
inlinevirtualinherited

Return a short summary of this object's contents in HTML format.

Reimplement this in your own class to provide useful output for display or debugging purposes. For example, you might do something like:

std::stringstream out;
out << "<b>PDG</b>: " << m_pdg << "<br>";
out << "<b>Covariance Matrix</b>: " << HTML::getString(getCovariance5()) << "<br>";
return out.str();
See also
Particle::getInfoHTML() for a more complex example.
HTML for some utility functions.
Use getInfo() to get a raw text version of this output.

Reimplemented in TrackFitResult, TRGSummary, Track, SoftwareTriggerResult, Particle, RecoTrack, MCParticle, Cluster, and PIDLikelihood.

Definition at line 364 of file RelationsObject.h.

◆ getKLMClusters()

std::vector< const KLMCluster * > getKLMClusters ( const std::string &  maskName = "") const

Get vector of all unused KLMClusters.

Parameters
maskNameName of mask
Returns
vector of pointers to unused KLMClusters

Definition at line 332 of file RestOfEvent.cc.

◆ getMaskNames()

std::vector< std::string > getMaskNames ( ) const

Get vector of all mask names of the ROE object.

Returns
list of all mask names

Definition at line 481 of file RestOfEvent.cc.

◆ getName()

virtual std::string getName ( ) const
inlinevirtualinherited

Return a short name that describes this object, e.g.

pi+ for an MCParticle.

Reimplemented in SpacePoint, Particle, and MCParticle.

Definition at line 346 of file RelationsObject.h.

◆ getNECLClusters()

int getNECLClusters ( const std::string &  maskName = "") const

Get number of all (no mask) or a subset (use mask) of all ECLclusters in ROE.

Parameters
maskNameName of mask
Returns
number of all remaining ECL clusters

Definition at line 348 of file RestOfEvent.cc.

◆ getNKLMClusters()

int getNKLMClusters ( const std::string &  maskName = "") const

Get number of all remaining KLM clusters.

Parameters
maskNameName of mask
Returns
number of all remaining KLM clusters

Definition at line 353 of file RestOfEvent.cc.

◆ getNTracks()

int getNTracks ( const std::string &  maskName = "") const

Get number of all (no mask) or a subset (use mask) of all Tracks in ROE.

Parameters
maskNameName of mask
Returns
number of all remaining tracks

Definition at line 343 of file RestOfEvent.cc.

◆ getParticles()

std::vector< const Particle * > getParticles ( const std::string &  maskName = "",
bool  unpackComposite = true 
) const

Get all Particles from ROE mask.

Parameters
maskNameName of mask
unpackCompositereturn daughters of composite particles
Returns
vector of pointers to ROE Particles

Definition at line 48 of file RestOfEvent.cc.

◆ getPhotons()

std::vector< const Particle * > getPhotons ( const std::string &  maskName = "",
bool  unpackComposite = true 
) const

Get photons from ROE mask.

Parameters
maskNameName of mask
unpackCompositereturn daughters of composite particles
Returns
vector of pointers to unused Particles

Definition at line 86 of file RestOfEvent.cc.

◆ getRelated()

T* getRelated ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the object to or from which this object has a relation.

Template Parameters
TThe class of objects to or from which the relation points.
Parameters
nameThe name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 280 of file RelationsObject.h.

◆ getRelatedFrom()

FROM* getRelatedFrom ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the object from which this object has a relation.

Template Parameters
FROMThe class of objects from which the relation points.
Parameters
nameThe name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 265 of file RelationsObject.h.

◆ getRelatedFromWithWeight()

std::pair<FROM*, float> getRelatedFromWithWeight ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get first related object & weight of relation pointing from an array.

Template Parameters
FROMThe class of objects from which the relation points.
Parameters
nameThe name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 316 of file RelationsObject.h.

◆ getRelatedTo()

TO* getRelatedTo ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the object to which this object has a relation.

Template Parameters
TOThe class of objects to which the relation points.
Parameters
nameThe name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 250 of file RelationsObject.h.

◆ getRelatedToWithWeight()

std::pair<TO*, float> getRelatedToWithWeight ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get first related object & weight of relation pointing to an array.

Template Parameters
TOThe class of objects to which the relation points.
Parameters
nameThe name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 299 of file RelationsObject.h.

◆ getRelatedWithWeight()

std::pair<T*, float> getRelatedWithWeight ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get first related object & weight of relation pointing from/to an array.

Template Parameters
TThe class of objects to or from which the relation points.
Parameters
nameThe name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 333 of file RelationsObject.h.

◆ getRelationsFrom()

RelationVector<FROM> getRelationsFrom ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the relations that point from another store array to this object.

Template Parameters
FROMThe class of objects from which the relations point.
Parameters
nameThe name of the store array from which the relations point. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 214 of file RelationsObject.h.

◆ getRelationsTo()

RelationVector<TO> getRelationsTo ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the relations that point from this object to another store array.

Template Parameters
TOThe class of objects to which the relations point.
Parameters
nameThe name of the store array to which the relations point. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 199 of file RelationsObject.h.

◆ getRelationsWith()

RelationVector<T> getRelationsWith ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the relations between this object and another store array.

Relations in both directions are returned.

Template Parameters
TThe class of objects to or from which the relations point.
Parameters
nameThe name of the store array to or from which the relations point. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 232 of file RelationsObject.h.

◆ getTracks()

std::vector< const Track * > getTracks ( const std::string &  maskName = "") const

Get vector of all (no mask) or a subset (use mask) of all Tracks in ROE.

Parameters
maskNameName of mask
Returns
vector of pointers to unused Tracks

Definition at line 308 of file RestOfEvent.cc.

◆ hasMask()

bool hasMask ( const std::string &  name) const

True if this ROE object has mask.

Parameters
nameName of the mask to work with

Definition at line 274 of file RestOfEvent.cc.

◆ hasParticle()

bool hasParticle ( const Particle particle,
const std::string &  maskName = "" 
) const

Check if ROE has StoreArray index of given to the list of unused tracks in the event.

Parameters
particlePointer to the Particle
maskNameName of the mask to work with

Definition at line 125 of file RestOfEvent.cc.

◆ initializeMask()

void initializeMask ( const std::string &  name,
const std::string &  origin = "unknown" 
)

Initialize new mask.

Parameters
nameName of the mask to work with
originorigin of the creator module

Definition at line 135 of file RestOfEvent.cc.

◆ updateMaskWithCuts()

void updateMaskWithCuts ( const std::string &  name,
const std::shared_ptr< Variable::Cut > &  trackCut = nullptr,
const std::shared_ptr< Variable::Cut > &  eclCut = nullptr,
const std::shared_ptr< Variable::Cut > &  klmCut = nullptr,
bool  updateExisting = false 
)

Update mask with cuts.

Parameters
nameName of the mask to work with
trackCutCut on Track particles
eclCutCut on ECL particles
klmCutCut on KLM particles
updateExistingUpdate existing mask if true or not if false

Definition at line 180 of file RestOfEvent.cc.

◆ updateMaskWithV0()

void updateMaskWithV0 ( const std::string &  name,
const Particle particleV0 
)

Update mask with composite particle.

Parameters
nameName of the mask to work with
particleV0Pointer to composite particle

Definition at line 216 of file RestOfEvent.cc.


The documentation for this class was generated from the following files:
Belle2::RestOfEvent::m_isNested
bool m_isNested
Nested ROE indicator.
Definition: RestOfEvent.h:395
Belle2::HTML::getString
std::string getString(const TMatrixFBase &matrix, int precision=2, bool color=true)
get HTML table representing a matrix.
Definition: HTML.cc:18
Belle2::RestOfEvent::m_pdgCode
int m_pdgCode
PDG code of the 'ROE particle' if we are going to create one.
Definition: RestOfEvent.h:394
Belle2::RestOfEvent::m_isFromMC
bool m_isFromMC
MC ROE indicator.
Definition: RestOfEvent.h:396
Belle2::RestOfEvent::m_particleIndices
std::set< int > m_particleIndices
StoreArray indices to unused particles.
Definition: RestOfEvent.h:392
Belle2::StoreArray< Particle >