Belle II Software  release-06-02-00
ECLShowerCalibratorModule.cc
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 // THIS MODULE
10 #include <ecl/modules/eclShowerCalibration/ECLShowerCalibratorModule.h>
11 
12 // ECL
13 #include <ecl/dataobjects/ECLConnectedRegion.h>
14 #include <ecl/dataobjects/ECLShower.h>
15 
16 using namespace Belle2;
17 
18 //-----------------------------------------------------------------
19 // Register the Module
20 //-----------------------------------------------------------------
21 REG_MODULE(ECLShowerCalibrator)
22 REG_MODULE(ECLShowerCalibratorPureCsI)
23 
24 //-----------------------------------------------------------------
25 // Implementation
26 //-----------------------------------------------------------------
27 
29 {
30  // Set description
31  setDescription("ECLShowerCalibratorModule: Corrects for data to MC differences");
32  setPropertyFlags(c_ParallelProcessingCertified);
33 
34 }
35 
37 {
38 }
39 
40 
42 {
43  // Register in datastore
44  m_eclShowers.registerInDataStore(eclShowerArrayName());
45  m_eclCRs.registerInDataStore(eclConnectedRegionArrayName());
46 }
47 
49 {
50  // Do not use this for Database updates
51  ;
52 }
53 
55 {
56 
57  // loop over all ECLShowers
58 // for (const auto& eclShower : eclShowers) {
59  // check hypothesis, do other things...
60 
61 // }
62 
63 }
64 
66 {
67  ;
68 }
69 
71 {
72  ;
73 }
Class to perform the shower correction.
StoreArray< ECLShower > m_eclShowers
StoreArray ECLShower.
virtual void initialize() override
Initialize.
virtual const char * eclShowerArrayName() const
We need names for the data objects to differentiate between PureCsI and default.
virtual void endRun() override
End run.
virtual void terminate() override
Terminate.
virtual void beginRun() override
Begin run.
StoreArray< ECLConnectedRegion > m_eclCRs
StoreArray ECLConnectedRegion.
virtual const char * eclConnectedRegionArrayName() const
Default name ECLConnectedRegion.
Base class for Modules.
Definition: Module.h:72
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition: Module.h:650
Abstract base class for different kinds of events.