ant
A2 ant: class-based analysis framework
ant::analysis::utils::ProtonPhotonCombs Struct Reference

The ProtonPhotonCombs struct provides convenient management of the proton/photons fitter loop. More...

#include <ProtonPhotonCombs.h>

Classes

struct  comb_t
 The comb_t struct holds the information of one particular proton/photons selection. More...
 
struct  Combinations_t
 The Combinations_t struct manages the available proton/photon combinations as a whole. More...
 

Public Types

using Observer_t = std::function< void(const std::string &)>
 
using combfilter_t = std::function< void(comb_t &)>
 ProtonPhotonCombs pre-builds the particle combinations from given candidates. More...
 

Public Member Functions

Combinations_t operator() () const noexcept
 operator() call this to get copy of combinations for filtering (see above) More...
 
 ProtonPhotonCombs (const TCandidateList &cands, const combfilter_t &filter=[](comb_t &) {})
 

Detailed Description

The ProtonPhotonCombs struct provides convenient management of the proton/photons fitter loop.

Member Typedef Documentation

◆ combfilter_t

ProtonPhotonCombs pre-builds the particle combinations from given candidates.

Parameters
candstypically pass event.Reconstructed().Candidates
Note
call only once per ProcessEvent to stay performant

◆ Observer_t

using ant::analysis::utils::ProtonPhotonCombs::Observer_t = std::function<void(const std::string&)>

Constructor & Destructor Documentation

◆ ProtonPhotonCombs()

ant::analysis::utils::ProtonPhotonCombs::ProtonPhotonCombs ( const TCandidateList cands,
const combfilter_t filter = [] (comb_t&) {} 
)
inline

Member Function Documentation

◆ operator()()

Combinations_t ant::analysis::utils::ProtonPhotonCombs::operator() ( ) const
inlinenoexcept

operator() call this to get copy of combinations for filtering (see above)

Returns
copy of pre-build combinations

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