Belle II Software  release-05-01-25
EventT0Combiner.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2018 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Thomas Hauth
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/core/Module.h>
14 #include <framework/datastore/StoreObjPtr.h>
15 #include <framework/dataobjects/EventT0.h>
16 
17 
18 namespace Belle2 {
26  class EventT0CombinerModule final : public Module {
27 
28  public:
29 
32 
34  virtual ~EventT0CombinerModule() = default;
35 
38  void event() override;
39 
40  private:
41 
43  EventT0::EventT0Component computeCombination(std::vector<EventT0::EventT0Component> measurements) const;
44 
47 
50  const std::string m_combinationModePreferCDC = "prefer_cdc";
51 
54  const std::string m_combinationModeCombineCDCandECL = "combine_cdc_and_ecl";
55 
58 
59  };
61 } // Belle2 namespace
Belle2::EventT0CombinerModule::m_eventT0
StoreObjPtr< EventT0 > m_eventT0
Access to global EventT0 which will be read and updated.
Definition: EventT0Combiner.h:54
Belle2::EventT0::EventT0Component
Structure for storing the extracted event t0s together with its detector and its uncertainty.
Definition: EventT0.h:44
Belle2::EventT0CombinerModule::m_paramCombinationMode
std::string m_paramCombinationMode
Mode to combine the t0 values of the sub-detectors.
Definition: EventT0Combiner.h:65
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::EventT0CombinerModule::m_combinationModeCombineCDCandECL
const std::string m_combinationModeCombineCDCandECL
In this mode, the CDC t0 value (if available) will be used to select the ECL t0 information which is ...
Definition: EventT0Combiner.h:62
Belle2::EventT0CombinerModule::computeCombination
EventT0::EventT0Component computeCombination(std::vector< EventT0::EventT0Component > measurements) const
computes the new average between multiple, un-correlated sub-detector measurements
Definition: EventT0Combiner.cc:106
Belle2::EventT0CombinerModule::event
void event() override
This method is called for each event.
Definition: EventT0Combiner.cc:36
Belle2::EventT0CombinerModule::m_combinationModePreferCDC
const std::string m_combinationModePreferCDC
In this mode, the CDC t0 value (if available) will be set as the final T0 value.
Definition: EventT0Combiner.h:58
Belle2::EventT0CombinerModule::EventT0CombinerModule
EventT0CombinerModule()
Default constructor.
Definition: EventT0Combiner.cc:19
Belle2::EventT0CombinerModule::~EventT0CombinerModule
virtual ~EventT0CombinerModule()=default
Destructor.