FunTuple.functions
Functions
|
|
|
Wrapper function for FunTupleBase_Particles |
|
Wrapper function for FunTupleBase_MCParticles |
|
Wrapper function for FunTupleBase_Composites |
|
Wrapper function for FunTupleBase_Composites |
|
Wrapper function for FunTupleEventBase. |
Module Contents
- _FunTuple_Base(funtuple_func, name, tuple_name, fields, variables, inputs, event_variables=None, loki_preamble=None, store_run_event_numbers=True, run_full_counter_mode=True, **kwargs)[source]
- FunTuple_Particles(*args, **kwargs)[source]
- Wrapper function for FunTupleBase_Particles
- Parameters:
name (string): Name of Algorithm tuple_name (string): Name of the TTree. fields (dict): Dictionary of {field (branch) name : decay descriptor}. The field name is used in naming the variable in the ntuple and decay descriptor in finding the candidates. variables (dict): Dictionary of {variable name: Functor code}. The variable name is used in naming the variable in nTuple (for a given field) and functor code used to retrieve LoKi or ThOr functors. event_variables (FunctorCollection): FunctorCollection of {variable name: Functor code} for event quantities to be added to every candidate. inputs (PyConf DataHandle): Input location of LHCb::Particles to run over. loki_preamble (string): A LoKi preamble that renames a complex functor built out of base functors that could be used as Functor code in “variables” dictionary above. run_full_counter_mode (bool): A boolean to set counters and monitor each of the fields. use_loki_decay_finder (bool): A boolean to use the LoKi DecayFinder to find the candidates instead of the new run-3 DecayFinder. store_run_event_numbers (bool): A boolean to store the runnumber and evtnumber in the ntuple. Default is True. **kwargs: extra arguments like OutputLevel (inherited from Gaudi Algorithms) or thor_preamble (which is list of extra header files to be included when instantiating ThOr functors, usage need to be known)
- Returns:
FunTuple PyConf algorithm corresponding to LHCb::Particles as input
- FunTuple_MCParticles(*args, **kwargs)[source]
- Wrapper function for FunTupleBase_MCParticles
- Parameters:
name (string): Name of Algorithm tuple_name (string): Name of the TTree. fields (dict): Dictionary of {field (branch) name : decay descriptor}. The field name is used in naming the variable in the ntuple and decay descriptor in finding the candidates. variables (dict): Dictionary of {variable name: Functor code}. The variable name is used in naming the variable in nTuple (for a given field) and functor code used to retrieve LoKi or ThOr functors. event_variables (FunctorCollection): FunctorCollection of {variable name: Functor code} for event quantities to be added to every candidate. inputs (PyConf DataHandle): Input location of LHCb::MCParticles to run over. loki_preamble (string): A LoKi preamble that renames a complex functor built out of base functors that could be used as Functor code in “variables” dictionary above. run_full_counter_mode (bool): A boolean to set counters and monitor each of the fields. use_loki_decay_finder (bool): A boolean to use the LoKi DecayFinder to find the candidates instead of the new run-3 DecayFinder. **kwargs: extra arguments like OutputLevel (inherited from Gaudi Algorithms) or thor_preamble (which is list of extra header files to be included when instantiating ThOr functors, usage need to be known)
- Returns:
FunTuple PyConf algorithm corresponding to LHCb::MCParticles as input
- FunTuple_Composites(*args, **kwargs)[source]
- Wrapper function for FunTupleBase_Composites
- Parameters:
name (string): Name of Algorithm tuple_name (string): Name of the TTree. fields (dict): Dictionary of {field (branch) name : decay descriptor}. The field name is used in naming the variable in the ntuple and decay descriptor in finding the candidates. variables (dict): Dictionary of {variable name: Functor code}. The variable name is used in naming the variable in nTuple (for a given field) and functor code used to retrieve ThOr functors. event_variables (FunctorCollection): FunctorCollection of {variable name: Functor code} for event quantities to be added to every candidate. inputs (PyConf DataHandle): Input location of LHCb::Event::Composites to run over. run_full_counter_mode (bool): A boolean to set counters and monitor each of the fields. store_run_event_numbers (bool): A boolean to store the runnumber and evtnumber in the ntuple. Default is True. **kwargs: extra arguments like OutputLevel (inherited from Gaudi Algorithms) or thor_preamble (which is list of extra header files to be included when instantiating ThOr functors, usage need to be known)
- Returns:
FunTuple PyConf algorithm corresponding to LHCb::Event::Composites as input
- FunTuple_ChargedBasics(*args, **kwargs)[source]
- Wrapper function for FunTupleBase_Composites
- Parameters:
tuple_name (string): Name of the TTree. fields (dict): Dictionary of {field (branch) name : decay descriptor}. The field name is used in naming the variable in the ntuple and decay descriptor in finding the candidates. variables (dict): Dictionary of {variable name: Functor code}. The variable name is used in naming the variable in nTuple (for a given field) and functor code used to retrieve ThOr functors. event_variables (FunctorCollection): FunctorCollection of {variable name: Functor code} for event quantities to be added to every candidate. inputs (PyConf DataHandle): Input location of LHCb::Event::Composites to run over. run_full_counter_mode (bool): A boolean to set counters and monitor each of the fields. store_run_event_numbers (bool): A boolean to store the runnumber and evtnumber in the ntuple. Default is True. **kwargs: extra arguments like OutputLevel (inherited from Gaudi Algorithms) or thor_preamble (which is list of extra header files to be included when instantiating ThOr functors, usage need to be known)
- Returns:
FunTuple PyConf algorithm corresponding to LHCb::Event::Composites as input
- FunTuple_Event(name, tuple_name, variables=None, store_run_event_numbers=True, **kwargs)[source]
- Wrapper function for FunTupleEventBase.
- Parameters:
name (string): Name of Algorithm tuple_name (string): Name of the TTree. variables (dict, optional): Dictionary of {variable name: Event-level functor code}.
The variable name is used in naming the variable in the nTuple and event-level functor code used to retrieve ThOr functors. Defaults to None.
- store_run_event_numbers (bool, optional): A boolean to store the run and event numbers in the ntuple.
Defaults to True.
**kwargs: extra arguments like OutputLevel (inherited from Gaudi Algorithms).
- Returns:
FunTupleEvent PyConf algorithm.