Commit bf9e01e6 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

v12r2

parent 6004488c
......@@ -3,7 +3,7 @@
#ifndef LOKI_APARTICLECUTS_H
#define LOKI_APARTICLECUTS_H 1
// ============================================================================
// $URL: http://svn.cern.ch/guest/lhcb/Phys/tags/Phys/LoKiArrayFunctors/v9r3/LoKi/AParticleCuts.h $
// $URL: http://svn.cern.ch/guest/lhcb/Phys/tags/Phys/LoKiArrayFunctors/v10r0/LoKi/AParticleCuts.h $
// ============================================================================
// Include files
// ============================================================================
......
// $Id: HybridEngine.h 53303 2010-08-05 16:22:37Z ibelyaev $
// $Id: HybridEngine.h 120058 2011-03-10 18:29:02Z ibelyaev $
// ===========================================================================
#ifndef LOKI_HYBRID_ENGINE_H
#define LOKI_HYBRID_ENGINE_H 1
......@@ -29,6 +29,10 @@ namespace LoKi
* contributions and advices from G.Raven, J.van Tilburg,
* A.Golutvin, P.Koppenburg have been used in the design.
*
* By usage of this code one clearly states the disagreement
* with the campain of Dr.O.Callot et al.:
* ``No Vanya's lines are allowed in LHCb/Gaudi software.''
*
* @author Vanya BELYAEV ibelyaev@physics.syr.edu
* @date 2004-06-30
*/
......@@ -142,21 +146,6 @@ namespace LoKi
( const std::string& name ,
const LoKi::Types::PPCutVals& cut ) const ;
// ======================================================================
// elements
// ======================================================================
/// add the "element"
StatusCode process
( const std::string& name ,
const LoKi::Types::Elements& cut ) const ;
/// add the "fun-val"
StatusCode process
( const std::string& name ,
const LoKi::Types::VElements& cut ) const ;
/// add the "fun-val"
StatusCode process
( const std::string& name ,
const LoKi::Types::PPElements& cut ) const ;
// ======================================================================
// sources
// ======================================================================
/// add the "source"
......@@ -178,7 +167,7 @@ namespace LoKi
// ==========================================================================
} // end of namespace LoKi
// ============================================================================
// The END
// The END
// ============================================================================
#endif // LOKI_CUTSHOLDERHELPER_H
// ============================================================================
// $Id: HybridEngineActor.h 53303 2010-08-05 16:22:37Z ibelyaev $
// $Id: HybridEngineActor.h 120058 2011-03-10 18:29:02Z ibelyaev $
// ============================================================================
#ifndef LOKI_HYBRID_ENGINE_ACTOR_H
#define LOKI_HYBRID_ENGINE_ACTOR_H 1
......@@ -26,6 +26,10 @@ namespace LoKi
* contributions and advices from G.Raven, J.van Tilburg,
* A.Golutvin, P.Koppenburg have been used in the design.
*
* By usage of this code one clearly states the disagreement
* with the campain of Dr.O.Callot et al.:
* ``No Vanya's lines are allowed in LHCb/Gaudi software.''
*
* @author Vanya BELYAEV ibelyaev@physics.syr.edu
* @date 2004-06-29
*/
......@@ -141,21 +145,6 @@ namespace LoKi
( const std::string& name ,
const LoKi::Types::PPCutVals& cut ) const ;
// ======================================================================
// elements:
// ======================================================================
/// propagate the element to the tool
StatusCode process
( const std::string& name ,
const LoKi::Types::Elements& cut ) const ;
/// propagate the element to the tool
StatusCode process
( const std::string& name ,
const LoKi::Types::VElements& cut ) const ;
/// propagate the element to the tool
StatusCode process
( const std::string& name ,
const LoKi::Types::PPElements& cut ) const ;
// ======================================================================
// sources
// ======================================================================
/// propagate the source to the tool
......
// $Id: IHybridFactory.h 53303 2010-08-05 16:22:37Z ibelyaev $
// $Id: IHybridFactory.h 120058 2011-03-10 18:29:02Z ibelyaev $
// ============================================================================
#ifndef LOKI_IHYBRIDFACTORY_H
#define LOKI_IHYBRIDFACTORY_H 1
......@@ -20,6 +20,21 @@
#include "LoKi/ATypes.h"
#include "LoKi/PPTypes.h"
// ============================================================================
/** @file
* This file is a part of LoKi project -
* "C++ ToolKit for Smart and Friendly Physics Analysis"
*
* The package has been designed with the kind help from
* Galina PAKHLOVA and Sergey BARSUK. Many bright ideas,
* contributions and advices from G.Raven, J.van Tilburg,
* A.Golutvin, P.Koppenburg have been used in the design.
*
* By usage of this code one clearly states the disagreement
* with the campain of Dr.O.Callot et al.:
* ``No Vanya's lines are allowed in LHCb/Gaudi software.''
*
*/
// ============================================================================
namespace LoKi
{
// ==========================================================================
......@@ -33,7 +48,7 @@ namespace LoKi
public:
// ========================================================================
/// interface machinery
DeclareInterfaceID(LoKi::IHybridFactory, 4, 0);
DeclareInterfaceID(LoKi::IHybridFactory, 5, 0);
// ========================================================================
public:
// ========================================================================
......@@ -269,41 +284,6 @@ namespace LoKi
LoKi::Types::PPCutVal& func ,
const std::string& context = "" ) = 0 ;
// ========================================================================
// "elements"
// ========================================================================
/** "Factory": get the the object form python code
* @param pycode the python pseudo-code of the function
* @param func the placeholder for the result
* @param context the context lines to be executed
* @return StatusCode
*/
virtual StatusCode get
( const std::string& pycode ,
LoKi::Types::Element& func ,
const std::string& context = "" ) = 0 ;
// ========================================================================
/** "Factory": get the the object form python code
* @param pycode the python pseudo-code of the function
* @param func the placeholder for the result
* @param context the context lines to be executed
* @return StatusCode
*/
virtual StatusCode get
( const std::string& pycode ,
LoKi::Types::VElement& func ,
const std::string& context = "" ) = 0 ;
// ========================================================================
/** "Factory": get the the object form python code
* @param pycode the python pseudo-code of the function
* @param func the placeholder for the result
* @param context the context lines to be executed
* @return StatusCode
*/
virtual StatusCode get
( const std::string& pycode ,
LoKi::Types::PPElement& func ,
const std::string& context = "" ) = 0 ;
// ========================================================================
// "sources"
// ========================================================================
/** "Factory": get the the object form python code
......
// $Id: IHybridTool.h 53303 2010-08-05 16:22:37Z ibelyaev $
// $Id: IHybridTool.h 120058 2011-03-10 18:29:02Z ibelyaev $
// ============================================================================
#ifndef LOKI_IHYBRIDTOOL_H
#define LOKI_IHYBRIDTOOL_H 1
......@@ -35,6 +35,11 @@ namespace LoKi
* contributions and advices from G.Raven, J.van Tilburg,
* A.Golutvin, P.Koppenburg have been used in the design.
*
* By usage of this code one clearly states the disagreement
* with the campain of Dr.O.Callot et al.:
* ``No Vanya's lines are allowed in LHCb/Gaudi software.''
*
*
* @author Vanya BELYAEV ibelyaev@physics.syr.edu
* @date 2004-06-29
*/
......@@ -43,7 +48,7 @@ namespace LoKi
public:
// ========================================================================
/// interface machinery
DeclareInterfaceID(LoKi::IHybridTool, 4, 0);
DeclareInterfaceID(LoKi::IHybridTool, 5, 0);
// ========================================================================
public:
// ========================================================================
......@@ -105,15 +110,6 @@ namespace LoKi
/// set the C++ "cut-val" for LHCb::ProtoParticles
virtual void set ( const LoKi::Types::PPCutVals& cut ) = 0 ;
// ========================================================================
// elements:
// ========================================================================
/// set the C++ "element" for LHCb::Particle
virtual void set ( const LoKi::Types::Elements& cut ) = 0 ;
/// set the C++ "element" for LHCb::Vertex
virtual void set ( const LoKi::Types::VElements& cut ) = 0 ;
/// set the C++ "element" for LHCb::ProtoParticles
virtual void set ( const LoKi::Types::PPElements& cut ) = 0 ;
// ========================================================================
// sources:
// ========================================================================
/// set the C++ "source" for LHCb::Particle
......@@ -134,7 +130,7 @@ namespace LoKi
// ==========================================================================
} // end of namespace LoKi
// ============================================================================
// The END
// The END
// ============================================================================
#endif // LOKI_IHYBRIDTOOL_H
// ============================================================================
# $Id: requirements 53303 2010-08-05 16:22:37Z ibelyaev $
# =============================================================================
# $URL: http://svn.cern.ch/guest/lhcb/Phys/tags/Phys/LoKiArrayFunctors/v9r3/cmt/requirements $
# $Id: requirements 120058 2011-03-10 18:29:02Z ibelyaev $
# =============================================================================
# Created : 2007-06-08
# Maintainer : Vanya BELYAEV
#
# $Revision: 53303 $
# Last Modification $Date: 2010-08-05 18:22:37 +0200 (Thu, 05 Aug 2010) $
# $Revision: 120058 $
# Last Modification $Date: 2011-03-10 19:29:02 +0100 (Thu, 10 Mar 2011) $
# by $Author: ibelyaev $
#
# =============================================================================
package LoKiArrayFunctors
version v9r3
version v10r0
# =============================================================================
branches cmt doc src dict python LoKi
......
$Id: release.notes 53627 2010-08-19 06:52:48Z jpalac $
$Id: release.notes 121367 2011-04-04 12:46:55Z jpalac $
! -----------------------------------------------------------------------------
! Package : Phys/LoKiArrayFunctors
! Responsible : Vanya BELYAEV
! Purpose : Some special "vector-like" functors to Exclusive "HLT"
! -----------------------------------------------------------------------------
!========================== LoKiArrayFunctors v10r0 2010-04-04 ================
! 2011-03-18 - Vanya Belyaev
- add protection against double lock
! 2011-03-10 - Vanya Belyaev
- kill the bad concept of 'Element'-functor
- cmt/requirements
version increment to v10r0
!========================== LoKiArrayFunctors v9r3 2010-08-19 =================
! 2010-08-05 - Vanya Belyaev
......
#!/usr/bin/env python
# =============================================================================
# $Id: decorators.py 53303 2010-08-05 16:22:37Z ibelyaev $
# $Id: decorators.py 120058 2011-03-10 18:29:02Z ibelyaev $
# =============================================================================
## @file LoKiArrayFunctors/decorators.py
# The set of basic decorator for objects from LoKiHlt library
......@@ -14,11 +14,14 @@
# contributions and advices from G.Raven, J.van Tilburg,
# A.Golutvin, P.Koppenburg have been used in the design.
#
# By usage of this code one clearly states the disagreement
# with the campain of Dr.O.Callot et al.:
# ``No Vanya's lines are allowed in LHCb/Gaudi software.''
#
# @author Vanya BELYAEV ibelyaev@physics.syr.edu
# @daet 2007-06-09
# =============================================================================
"""
The set of basic decorators for objects from LoKiHlt library
This file is a part of LoKi project -
'C++ ToolKit for Smart and Friendly Physics Analysis'
......@@ -27,6 +30,11 @@ The package has been designed with the kind help from
Galina PAKHLOVA and Sergey BARSUK. Many bright ideas,
contributions and advices from G.Raven, J.van Tilburg,
A.Golutvin, P.Koppenburg have been used in the design.
By usage of this code one clearly states the disagreement
with the campain of Dr.O.Callot et al.:
``No Vanya's lines are allowed in LHCb/Gaudi software.''
"""
# =============================================================================
__author__ = "Vanya BELYAEV ibelyaev@physics.syr.edu"
......
#!/usr/bin/env python
# =============================================================================
# $Id: functions.py 53303 2010-08-05 16:22:37Z ibelyaev $
# $Id: functions.py 120058 2011-03-10 18:29:02Z ibelyaev $
# =============================================================================
# $URL: http://svn.cern.ch/guest/lhcb/Phys/tags/Phys/LoKiArrayFunctors/v9r3/python/LoKiArrayFunctors/functions.py $
# $URL: http://svn.cern.ch/guest/lhcb/Phys/tags/Phys/LoKiArrayFunctors/v10r0/python/LoKiArrayFunctors/functions.py $
# =============================================================================
## @file
# The set of basic objects from LoKiHlt library
......@@ -23,8 +23,8 @@
# @author Vanya BELYAEV ibelyaev@physics.syr.edu
# @date 2007-06-09
#
# $Revision: 53303 $
# Last modification $Date: 2010-08-05 18:22:37 +0200 (Thu, 05 Aug 2010) $
# $Revision: 120058 $
# Last modification $Date: 2011-03-10 19:29:02 +0100 (Thu, 10 Mar 2011) $
# by $Author: ibelyaev $
# =============================================================================
"""
......@@ -42,13 +42,13 @@ By usage of this code one clearly states the disagreement
with the campain of Dr.O.Callot et al.:
``No Vanya's lines are allowed in LHCb/Gaudi software.''
$Revision: 53303 $
Last modification $Date: 2010-08-05 18:22:37 +0200 (Thu, 05 Aug 2010) $
$Revision: 120058 $
Last modification $Date: 2011-03-10 19:29:02 +0100 (Thu, 10 Mar 2011) $
by $Author: ibelyaev $
"""
# =============================================================================
__author__ = "Vanya BELYAEV ibelyaev@physics.syr.edu"
__version__ = " $Revision: 53303 $ "
__version__ = " $Revision: 120058 $ "
__date__ = " 2007-06-09 "
# =============================================================================
......@@ -257,8 +257,6 @@ AVAL_MAX = LoKi.AParticles.MaxVal
##AFunVal = LoKi.FunctorFromFunctor ( _va , 'double' )
##ACutVals = LoKi.Functor ( _va , bool )
##ACutVal = LoKi.FunctorFromFunctor ( _va , bool )
##AElements = LoKi.Functor ( _va , _T )
##AElement = LoKi.FunctorFromFunctor ( _va , _T )
#
# ==============================================================================
......
// $Id: AParticles.cpp 53303 2010-08-05 16:22:37Z ibelyaev $
// ============================================================================
// $URL: http://svn.cern.ch/guest/lhcb/Phys/tags/Phys/LoKiArrayFunctors/v9r3/src/AParticles.cpp $
// $URL: http://svn.cern.ch/guest/lhcb/Phys/tags/Phys/LoKiArrayFunctors/v10r0/src/AParticles.cpp $
// ============================================================================
// Include files
// ===========================================================================
......
// $Id: HybridTool.cpp 53303 2010-08-05 16:22:37Z ibelyaev $
// $Id: HybridTool.cpp 120058 2011-03-10 18:29:02Z ibelyaev $
// ============================================================================
// Include files
// ============================================================================
......@@ -25,6 +25,10 @@
* contributions and advices from G.Raven, J.van Tilburg,
* A.Golutvin, P.Koppenburg have been used in the design.
*
* By usage of this code one clearly states the disagreement
* with the campain of Dr.O.Callot et al.:
* ``No Vanya's lines are allowed in LHCb/Gaudi software.''
*
* @author Vanya BELYAEV ibelyaev@physics.syr.edu
* @date 2004-06-29
*/
......@@ -45,6 +49,10 @@ namespace LoKi
* contributions and advices from G.Raven, J.van Tilburg,
* A.Golutvin, P.Koppenburg have been used in the design.
*
* By usage of this code one clearly states the disagreement
* with the campain of Dr.O.Callot et al.:
* ``No Vanya's lines are allowed in LHCb/Gaudi software.''
*
* @author Vanya BELYAEV ibelyaev@physics.syr.edu
* @date 2004-06-29
*/
......@@ -337,46 +345,6 @@ namespace LoKi
const std::string& context )
{ return _get ( pycode , m_ppcutvals , func , context ) ; }
// ======================================================================
public:
// ======================================================================
// "elements"
// ======================================================================
/** "Factory": get the the object from python code
* @param pycode the python pseudo-code of the function
* @param func the placeholder for the result
* @param context the context lines to be executed
* @return StatusCode
*/
virtual StatusCode get
( const std::string& pycode ,
LoKi::Types::Element& func ,
const std::string& context )
{ return _get ( pycode , m_elements , func , context ) ; }
// ======================================================================
/** "Factory": get the the object form python code
* @param pycode the python pseudo-code of the function
* @param func the placeholder for the result
* @param context the context lines to be executed
* @return StatusCode
*/
virtual StatusCode get
( const std::string& pycode ,
LoKi::Types::VElement& func ,
const std::string& context )
{ return _get ( pycode , m_velements , func , context ) ; }
// ======================================================================
/** "Factory": get the the object form python code
* @param pycode the python pseudo-code of the function
* @param func the placeholder for the result
* @param context the context lines to be executed
* @return StatusCode
*/
virtual StatusCode get
( const std::string& pycode ,
LoKi::Types::PPElement& func ,
const std::string& context )
{ return _get ( pycode , m_ppelements , func , context ) ; }
// ======================================================================
public:
// ======================================================================
// "sources"
......@@ -507,20 +475,6 @@ namespace LoKi
virtual void set ( const LoKi::Types::PPCutVals& cut )
{ LoKi::Hybrid::Base::_set ( m_ppcutvals , cut ) ; }
// ======================================================================
public:
// ======================================================================
// elements
// ======================================================================
/// set the C++ "element" for LHCb::Particle
virtual void set ( const LoKi::Types::Elements& cut )
{ LoKi::Hybrid::Base::_set ( m_elements , cut ) ; }
/// set the C++ "element" for LHCb::Vertex
virtual void set ( const LoKi::Types::VElements& cut )
{ LoKi::Hybrid::Base::_set ( m_velements , cut ) ; }
/// set the C++ "element" for LHCb::ProtoParticle
virtual void set ( const LoKi::Types::PPElements& cut )
{ LoKi::Hybrid::Base::_set ( m_ppelements , cut ) ; }
// ======================================================================
public:
// ======================================================================
// sources
......@@ -593,10 +547,6 @@ namespace LoKi
LoKi::Types::CutVals* m_cutvals ;
LoKi::Types::VCutVals* m_vcutvals ;
LoKi::Types::PPCutVals* m_ppcutvals ;
// elements:
LoKi::Types::Elements* m_elements ;
LoKi::Types::VElements* m_velements ;
LoKi::Types::PPElements* m_ppelements ;
// sources:
LoKi::Types::Sources* m_sources ;
LoKi::Types::VSources* m_vsources ;
......@@ -677,10 +627,6 @@ LoKi::Hybrid::Tool::Tool
, m_cutvals ( 0 )
, m_vcutvals ( 0 )
, m_ppcutvals ( 0 )
// "elements":
, m_elements ( 0 )
, m_velements ( 0 )
, m_ppelements ( 0 )
// "sources":
, m_sources ( 0 )
, m_vsources ( 0 )
......@@ -764,10 +710,6 @@ StatusCode LoKi::Hybrid::Tool::finalize ()
if ( 0 != m_cutvals ) { delete m_cutvals ; m_cutvals = 0 ; }
if ( 0 != m_vcutvals ) { delete m_vcutvals ; m_vcutvals = 0 ; }
if ( 0 != m_ppcutvals ) { delete m_ppcutvals ; m_ppcutvals = 0 ; }
// elements:
if ( 0 != m_elements ) { delete m_elements ; m_elements = 0 ; }
if ( 0 != m_velements ) { delete m_velements ; m_velements = 0 ; }
if ( 0 != m_ppelements ) { delete m_ppelements ; m_ppelements = 0 ; }
// sources:
if ( 0 != m_sources ) { delete m_sources ; m_sources = 0 ; }
if ( 0 != m_vsources ) { delete m_vsources ; m_vsources = 0 ; }
......
// $Id: HybridEngine.cpp 53303 2010-08-05 16:22:37Z ibelyaev $
// $Id: HybridEngine.cpp 120058 2011-03-10 18:29:02Z ibelyaev $
// ============================================================================
// Include files
// ============================================================================
......@@ -18,6 +18,10 @@
* contributions and advices from G.Raven, J.van Tilburg,
* A.Golutvin, P.Koppenburg have been used in the design.
*
* By usage of this code one clearly states the disagreement
* with the campain of Dr.O.Callot et al.:
* ``No Vanya's lines are allowed in LHCb/Gaudi software.''
*
* @author Vanya BELYAEV ibelyaev@physics.syr.edu
* @date 2004-06-30
*/
......@@ -175,26 +179,6 @@ StatusCode LoKi::Hybrid::Engine::process
( const std::string& name ,
const LoKi::Types::PPCutVals& cut ) const { return _process ( name , cut ) ; }
// ============================================================================
// Elements
// ============================================================================
// add the element
// ============================================================================
StatusCode LoKi::Hybrid::Engine::process
( const std::string& name ,
const LoKi::Types::Elements& cut ) const { return _process ( name , cut ) ; }
// ============================================================================
// add the element
// ============================================================================
StatusCode LoKi::Hybrid::Engine::process
( const std::string& name ,
const LoKi::Types::VElements& cut ) const { return _process ( name , cut ) ; }
// ============================================================================
// add the element
// ============================================================================
StatusCode LoKi::Hybrid::Engine::process
( const std::string& name ,
const LoKi::Types::PPElements& cut ) const { return _process ( name , cut ) ; }
// ============================================================================
// Sources
// ============================================================================
// add the source
......
// $Id: HybridEngineActor.cpp 53303 2010-08-05 16:22:37Z ibelyaev $
// $Id: HybridEngineActor.cpp 120453 2011-03-18 12:14:38Z ibelyaev $
// ============================================================================
// Include files
// ============================================================================
......@@ -91,6 +91,10 @@ StatusCode LoKi::Hybrid::EngineActor::releaseTool
StatusCode LoKi::Hybrid::EngineActor::connectTool
( LoKi::IHybridTool* tool )
{
//
LoKi::Report::Assert
( !m_tool.validPointer() , "LoKi:Hybrid::EngineActor:: double lock?" ) ;
//
// substitute the tool
m_tool = tool ;
//
......@@ -235,26 +239,6 @@ StatusCode LoKi::Hybrid::EngineActor::process
( const std::string& name ,
const LoKi::Types::PPCutVals& cut ) const { return _add ( name , cut ) ; }
// ============================================================================
// elements
// ============================================================================
// propagate the element to the tool
// ============================================================================
StatusCode LoKi::Hybrid::EngineActor::process
( const std::string& name ,
const LoKi::Types::Elements& cut ) const { return _add ( name , cut ) ; }
// ============================================================================
// propagate the element to the tool
// ============================================================================
StatusCode LoKi::Hybrid::EngineActor::process
( const std::string& name ,
const LoKi::Types::VElements& cut ) const { return _add ( name , cut ) ; }
// ============================================================================
// propagate the element to the tool
// ============================================================================
StatusCode LoKi::Hybrid::EngineActor::process
( const std::string& name ,
const LoKi::Types::PPElements& cut ) const { return _add ( name , cut ) ; }
// ============================================================================
// sources
// ============================================================================
// propagate the source to the tool
......
// $Id: LoKiPhys.h 86202 2010-09-14 13:01:14Z ibelyaev $
// $Id: LoKiPhys.h 120391 2011-03-17 19:32:07Z raaij $
// ============================================================================
#ifndef LOKI_LOKIPHYS_H
#define LOKI_LOKIPHYS_H 1
......@@ -44,6 +44,7 @@
//
#include "LoKi/PrintDecay.h"
#include "LoKi/PhysSources.h"
#include "LoKi/PhysSinks.h"
// ============================================================================
// ============================================================================
......
// $Id: PhysSinks.h 95190 2010-10-25 15:48:47Z ibelyaev $
// ============================================================================
#ifndef LOKI_PHYSSINKS_H
#define LOKI_PHYSSINKS_H 1
// ============================================================================
// Include files
// ============================================================================
// GaudiKernel
// ============================================================================