The Gaudi Framework  master (b9786168)
Loading...
Searching...
No Matches
Gaudi::Decays::CC Namespace Reference

Classes

struct  CmpCC
 a bit specific comparison of strings, useful for ordering according to the length as the primary parameter More...
 

Typedefs

typedef std::map< std::string, std::string, CmpCCMapCC
 the actual type of CC-map
 
typedef std::set< std::string, CmpCCSetCC
 the actual type of CC-set
 

Functions

std::string cc (const std::string &decay, const MapCC &map_)
 simple function to make charge conjugated inside the original string.
 
std::string cc (const std::string &decay, const std::map< std::string, std::string > &map_)
 simple function to make charge conjugated inside the original string.
 

Typedef Documentation

◆ MapCC

typedef std::map<std::string, std::string, CmpCC> Gaudi::Decays::CC::MapCC

the actual type of CC-map

Definition at line 36 of file CC.h.

◆ SetCC

typedef std::set<std::string, CmpCC> Gaudi::Decays::CC::SetCC

the actual type of CC-set

Definition at line 38 of file CC.h.

Function Documentation

◆ cc() [1/2]

std::string Gaudi::Decays::CC::cc ( const std::string & decay,
const MapCC & map_ )

simple function to make charge conjugated inside the original string.

All substrings are subsutututed by their charge conjugates

Parameters
origthe original sring
map_the full map of substitutions
posthe starting position
Returns
charge-conjugated string

Definition at line 67 of file CC.cpp.

67{ return cc_( decay, map_ ); }

◆ cc() [2/2]

std::string Gaudi::Decays::CC::cc ( const std::string & decay,
const std::map< std::string, std::string > & map_ )

simple function to make charge conjugated inside the original string.

All substrings are subsutututed by their charge conjugates

Parameters
origthe original sring
map_the full map of substitutions
posthe starting position
Returns
charge-conjugated string

Definition at line 69 of file CC.cpp.

69 {
70 return cc_( decay, { map_.begin(), map_.end() } );
71}