Belle II Software  release-05-01-25
ECLShowerCalibratorModule.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * This module performs the calibration for EM shower. This calibration *
6  * corrects for differences between data and MC: corr = data / MC *
7  * *
8  * Author: The Belle II Collaboration *
9  * Contributors: Torben Ferber (ferber@physics.ubc.ca) *
10  * *
11  * This software is provided "as is" without any warranty. *
12  **************************************************************************/
13 
14 // THIS MODULE
15 #include <ecl/modules/eclShowerCalibration/ECLShowerCalibratorModule.h>
16 
17 // ECL
18 #include <ecl/dataobjects/ECLConnectedRegion.h>
19 #include <ecl/dataobjects/ECLShower.h>
20 
21 using namespace Belle2;
22 
23 //-----------------------------------------------------------------
24 // Register the Module
25 //-----------------------------------------------------------------
26 REG_MODULE(ECLShowerCalibrator)
27 REG_MODULE(ECLShowerCalibratorPureCsI)
28 
29 //-----------------------------------------------------------------
30 // Implementation
31 //-----------------------------------------------------------------
32 
34 {
35  // Set description
36  setDescription("ECLShowerCalibratorModule: Corrects for data to MC differences");
37  setPropertyFlags(c_ParallelProcessingCertified);
38 
39 }
40 
42 {
43 }
44 
45 
47 {
48  // Register in datastore
49  m_eclShowers.registerInDataStore(eclShowerArrayName());
50  m_eclCRs.registerInDataStore(eclConnectedRegionArrayName());
51 }
52 
54 {
55  // Do not use this for Database updates
56  ;
57 }
58 
60 {
61 
62  // loop over all ECLShowers
63 // for (const auto& eclShower : eclShowers) {
64  // check hypothesis, do other things...
65 
66 // }
67 
68 }
69 
71 {
72  ;
73 }
74 
76 {
77  ;
78 }
Belle2::ECLShowerCalibratorModule::initialize
virtual void initialize() override
Initialize.
Definition: ECLShowerCalibratorModule.cc:46
REG_MODULE
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition: Module.h:652
Belle2::ECLShowerCalibratorModule::endRun
virtual void endRun() override
End run.
Definition: ECLShowerCalibratorModule.cc:70
Belle2::ECLShowerCalibratorModule::eclShowerArrayName
virtual const char * eclShowerArrayName() const
We need names for the data objects to differentiate between PureCsI and default.
Definition: ECLShowerCalibratorModule.h:78
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::ECLShowerCalibratorModule::m_eclCRs
StoreArray< ECLConnectedRegion > m_eclCRs
StoreArray ECLConnectedRegion.
Definition: ECLShowerCalibratorModule.h:72
Belle2::ECLShowerCalibratorModule::beginRun
virtual void beginRun() override
Begin run.
Definition: ECLShowerCalibratorModule.cc:53
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ECLShowerCalibratorModule::m_eclShowers
StoreArray< ECLShower > m_eclShowers
StoreArray ECLShower.
Definition: ECLShowerCalibratorModule.h:70
Belle2::ECLShowerCalibratorModule::eclConnectedRegionArrayName
virtual const char * eclConnectedRegionArrayName() const
Default name ECLConnectedRegion.
Definition: ECLShowerCalibratorModule.h:82
Belle2::ECLShowerCalibratorModule::event
virtual void event() override
Event.
Definition: ECLShowerCalibratorModule.cc:59
Belle2::ECLShowerCalibratorModule::terminate
virtual void terminate() override
Terminate.
Definition: ECLShowerCalibratorModule.cc:75
Belle2::ECLShowerCalibratorModule
Class to perform the shower correction.
Definition: ECLShowerCalibratorModule.h:44
Belle2::ECLShowerCalibratorModule::~ECLShowerCalibratorModule
~ECLShowerCalibratorModule()
Destructor.
Definition: ECLShowerCalibratorModule.cc:41