LoKi's Generator (HepMC) Particle Functions



GABSID, the instance of LoKi::GenParticles::AbsIdentifier()

The simple function which returns the absolute value of PDG-identifier of the particle:
 1000const HepMC::GenParticle* p = ... ;
 1010const double absid = GABSID( p ) ;
The special equality/non-equality operators against std::string and LHCb::ParticleID objects are defined:
 1000GRange kaons = gselect ( "kaons" , "K+" == GABSID ) ; 
 1010GRange nonmuons = gselect ( "!mu" , LHCb::ParticleID( 13 ) != GABSID ) ;
See also GID.

GALL, the instance of LoKi::BooleanConstant<const HepMC::GenParticle*>(true)

The most trivial "select-all" predicate which always returns true

GFALSE

It is an alias for GNONE, see GNONE

GID, the instance of LoKi::GenParticles::Identifier()

The simple function which returns the value of PDG-identifier of the particle:
 1000const HepMC::GenParticle* p = ... ;
 1010const double absid = GID( p ) ;
The special equality/non-equality operators against std::string and LHCb::ParticleID objects are defined:
 1000GRange kaons = gselect ( "kaons" , "K+" == GID ) ; 
 1010GRange nonmuons = gselect ( "!mu" , LHCb::ParticleID( 13 ) != GID ) ;
See also GABSID.

GMAX, C++ type LoKi::Max<const HepMC::GenParticle*>

The function which evaluated the maximum from the several other functions:
 1000GRange inCaloAcc = gselect ( "inCaloAcc" , GMAX( abs(PX/PZ) , abs(PY,PZ) ) < 300 * mrad ) ;
 1010/// the same:
 1020GRange inCaloAcc = gselect ( "inCaloAcc" , max( abs(PX/PZ) , abs(PY,PZ) ) < 300 * mrad ) ; 

GMIN, C++ type LoKi::Min<const HepMC::GenParticle*>

The function which evaluated the minimum from the several other functions:
 1000GRange inCaloAcc = gselect ( "inCaloAcc" , GMIN( abs(PX/PZ) , abs(PY,PZ) ) > 30 * mrad ) ;
 1010/// the same: 
 1020GRange inCaloAcc = gselect ( "inCaloAcc" , min( abs(PX/PZ) , abs(PY,PZ) ) > 30 * mrad ) ; 

GNONE, the instance of LoKi::BooleanConstant<const HepMC::GenParticle*>(false)

The most trivial "select-nothing" predicate which always returns false

GONE, the instance of LoKi::Constant<const HepMC::GenParticle*>(1)

The most trivial "select-nothing" predicate which always returns 1

GTRUE

It is an alias for GALL, see GALL

GZERO, the instance of LoKi::Constant<const HepMC::GenParticle*>(0)

The most trivial "select-nothing" predicate which always returns 0

-- Vanya Belyaev - 20 Jul 2007

Edit | Attach | Watch | Print version | History: r5 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2007-07-20 - VanyaBelyaev
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback