Belle II Software  release-05-02-19
SVDMissingAPVsClusterCreatorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Giulia Casarosa *
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/StoreArray.h>
15 
16 #include <svd/dataobjects/SVDCluster.h>
17 
18 #include <svd/online/SVDOnlineToOfflineMap.h>
19 #include <framework/database/PayloadFile.h>
20 
21 namespace Belle2 {
27  namespace SVD {
28 
36  class SVDMissingAPVsClusterCreatorModule : public Module {
37 
38  public:
39 
42 
44  virtual void initialize() override;
45 
47  virtual void beginRun() override;
48 
50  virtual void event() override;
51 
52  protected:
53 
54 
55  // Data members
56  //1. Collections and relations Names
57  std::string m_storeClustersName = "";
58  float m_time = 0;
59  float m_timeError = 10;
60  float m_seedCharge = 10000;
61  float m_charge = 20000;
62  float m_SNR = 15;
63  int m_size = 128;
64  int m_firstFrame = 0;
65  int m_nFakeClusters = 4;
69 
70  //channel mapping stuff
71  static std::string m_xmlFileName ;
73  std::unique_ptr<SVDOnlineToOfflineMap> m_map;
76  };//end class declaration
77 
78 
79  } //end SVD namespace;
81 } // end namespace Belle2
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::m_xmlFileName
static std::string m_xmlFileName
< channel mapping xml filename
Definition: SVDMissingAPVsClusterCreatorModule.h:79
Belle2::DBObjPtr< PayloadFile >
Specialization of DBObjPtr in case of PayloadFiles.
Definition: PayloadFile.h:64
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::m_size
int m_size
size of the cluster
Definition: SVDMissingAPVsClusterCreatorModule.h:71
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::m_timeError
float m_timeError
time error of the cluster, in ns
Definition: SVDMissingAPVsClusterCreatorModule.h:67
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::m_storeClustersName
std::string m_storeClustersName
name of the collection to use for the SVDClusters
Definition: SVDMissingAPVsClusterCreatorModule.h:65
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::m_SNR
float m_SNR
SNR of the cluster.
Definition: SVDMissingAPVsClusterCreatorModule.h:70
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::m_mapping
DBObjPtr< PayloadFile > m_mapping
channel mapping payload
Definition: SVDMissingAPVsClusterCreatorModule.h:80
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::SVDMissingAPVsClusterCreatorModule
SVDMissingAPVsClusterCreatorModule()
Constructor defining the parameters.
Definition: SVDMissingAPVsClusterCreatorModule.cc:35
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::m_seedCharge
float m_seedCharge
seed charge of the cluster, in e-
Definition: SVDMissingAPVsClusterCreatorModule.h:68
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::m_map
std::unique_ptr< SVDOnlineToOfflineMap > m_map
channel mapping map
Definition: SVDMissingAPVsClusterCreatorModule.h:81
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::m_firstFrame
int m_firstFrame
first frame
Definition: SVDMissingAPVsClusterCreatorModule.h:72
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::event
virtual void event() override
do the clustering
Definition: SVDMissingAPVsClusterCreatorModule.cc:85
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::m_charge
float m_charge
total charge of the cluster, in e-
Definition: SVDMissingAPVsClusterCreatorModule.h:69
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::m_time
float m_time
time of the cluster, in ns
Definition: SVDMissingAPVsClusterCreatorModule.h:66
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::m_storeClusters
StoreArray< SVDCluster > m_storeClusters
Collection of SVDClusters.
Definition: SVDMissingAPVsClusterCreatorModule.h:76
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::initialize
virtual void initialize() override
Initialize the module.
Definition: SVDMissingAPVsClusterCreatorModule.cc:66
Belle2::StoreArray< SVDCluster >
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::beginRun
virtual void beginRun() override
check if channel mapping is changed
Definition: SVDMissingAPVsClusterCreatorModule.cc:56
Belle2::SVD::SVDMissingAPVsClusterCreatorModule::m_nFakeClusters
int m_nFakeClusters
number of fake clusters
Definition: SVDMissingAPVsClusterCreatorModule.h:73