Skip to content

Commit eccfe97

Browse files
Belle II SoftwareGiacomoXT
authored andcommitted
Merge branch 'feature/move-cdc-dedx-code-to-cdc-package' into 'main'
Move CDC dEdx code from reconstruction to cdc package + Some cleanup See merge request belle2/software/basf2!3876
1 parent 13c1041 commit eccfe97

File tree

127 files changed

+527
-819
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+527
-819
lines changed

cdc/SConscript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Import('env')
22

3-
env['LIBS'] = ['framework', 'geometry', 'simulation', 'calibration',
4-
'$ROOT_LIBS', 'Geom', 'EG', 'cdc_dataobjects',
3+
env['LIBS'] = ['framework', 'geometry', 'simulation', 'calibration', 'analysis',
4+
'$ROOT_LIBS', 'Geom', 'EG', 'cdc_dataobjects', 'cdc_dbobjects',
55
'$GEANT4_LIBS', 'CLHEP', 'mdst_dataobjects', 'simulation_dataobjects', "boost_iostreams"]
66

77
#env.Append(CPPDEFINES = {'CDC_DEBUG':None})

reconstruction/calibration/CDCdEdx/include/CDCDedx1DCellAlgorithm.h renamed to cdc/calibration/CDCdEdx/include/CDCDedx1DCellAlgorithm.h

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <TRandom.h>
2323

2424

25-
#include <reconstruction/dbobjects/CDCDedx1DCell.h>
25+
#include <cdc/dbobjects/CDCDedx1DCell.h>
2626
#include <calibration/CalibrationAlgorithm.h>
2727
#include <framework/database/DBObjPtr.h>
2828

@@ -57,12 +57,12 @@ namespace Belle2 {
5757
void setVariableBins(bool value) {isVarBins = value;}
5858

5959
/**
60-
* funtion to set truncation method (local vs global)
60+
* function to set truncation method (local vs global)
6161
*/
6262
void setLayerTrunc(bool value = false) {isFixTrunc = value;}
6363

6464
/**
65-
* set false if generating absoulte (not relative)
65+
* set false if generating absolute (not relative)
6666
* payload
6767
*/
6868
void setMergePayload(bool value) { isMerge = value;}
@@ -78,7 +78,7 @@ namespace Belle2 {
7878
void setRotSymmetry(bool value) {isRotSymm = value;}
7979

8080
/**
81-
* function to set bins of trunction from histogram
81+
* function to set bins of truncation from histogram
8282
*/
8383
void setTrucationBins(double lowedge, double upedge)
8484
{
@@ -91,12 +91,12 @@ namespace Belle2 {
9191
void enableExtraPlots(bool value = false) {isMakePlots = value;}
9292

9393
/**
94-
* funtion to set pt limit
94+
* function to set pt limit
9595
*/
9696
void setPtLimit(double value) {m_ptMax = value;}
9797

9898
/**
99-
* funtion to set cos #theta limit
99+
* function to set cos \f$\theta\f$ limit
100100
*/
101101
void setCosLimit(double value) {m_cosMax = value;}
102102

@@ -116,7 +116,7 @@ namespace Belle2 {
116116
}
117117

118118
/**
119-
* class funtion to set rotation symmetry
119+
* class function to set rotation symmetry
120120
*/
121121
int rotationalBin(int nbin, int ibin)
122122
{
@@ -133,7 +133,7 @@ namespace Belle2 {
133133
void getExpRunInfo();
134134

135135
/**
136-
* class function to create vectors for bin mappping (Var->symm)
136+
* class function to create vectors for bin mapping (Var->symm)
137137
*/
138138
void CreateBinMapping();
139139

@@ -143,7 +143,7 @@ namespace Belle2 {
143143
void defineHisto(std::vector<TH1D*> hdedxhit[2], TH1D* hdedxlay[2], TH1D* hentalay[2]);
144144

145145
/**
146-
* function to get bins of trunction from histogram
146+
* function to get bins of truncation from histogram
147147
*/
148148
void getTruncatedBins(TH1D* hist, int& binlow, int& binhigh);
149149

@@ -153,28 +153,28 @@ namespace Belle2 {
153153
double getTruncationMean(TH1D* hist, int binlow, int binhigh);
154154

155155
/**
156-
* funtion to generate final constants
156+
* function to generate final constants
157157
*/
158158
void createPayload();
159159

160160
/**
161-
* funtion to plot merging factor
161+
* function to plot merging factor
162162
*/
163163
void plotMergeFactor(std::map<int, std::vector<double>> bounds, const std::array<int, 2> nDev,
164164
std::map<int, std::vector<int>> steps);
165165

166166
/**
167-
* function to draw the dE/dx histrogram in enta bins
167+
* function to draw the dE/dx histogram in enta bins
168168
*/
169169
void plotdedxHist(std::vector<TH1D*> hdedxhit[2]);
170170

171171
/**
172-
* funtion to draw dedx dist. for Inner/outer layer
172+
* function to draw dedx dist. for Inner/outer layer
173173
*/
174174
void plotLayerDist(TH1D* hdedxL[2]);
175175

176176
/**
177-
* funtion to draw pt vs costh and entrance angle distribution for Inner/Outer layer
177+
* function to draw pt vs costh and entrance angle distribution for Inner/Outer layer
178178
*/
179179
void plotQaPars(TH1D* hentalay[2], TH2D* hptcosth);
180180

@@ -205,7 +205,7 @@ namespace Belle2 {
205205
double m_eaMin; /**< lower edge of enta angle */
206206
double m_eaMax; /**< upper edge of enta angle */
207207
double m_eaBW; /**< binwdith of enta angle bin */
208-
int m_eaBin; /**< # of bins for etna angle */
208+
int m_eaBin; /**< # of bins for enta angle */
209209

210210
double m_dedxMin; /**< lower edge of dedxhit */
211211
double m_dedxMax; /**< upper edge of dedxhit */
@@ -214,18 +214,17 @@ namespace Belle2 {
214214
double m_ptMax; /**< a limit on transverse momentum */
215215
double m_cosMax; /**< a limit on cos theta */
216216

217-
double m_truncMin; /**< lower thershold on truncation*/
218-
double m_truncMax; /**< uppr thershold on truncation */
217+
double m_truncMin; /**< lower threshold on truncation*/
218+
double m_truncMax; /**< upper threshold on truncation */
219219

220220
int m_binSplit;/**< multiply nbins by this factor in full range */
221-
int m_binMerge;/**< merge bins by this factor in (-pi/2 <-> -pi/4) and (pi/4 <-> pi/2) region*/
222221

223222
double m_chargeType; /**< charge type for baseline adj */
224-
double m_adjustFac;/**< faactor with that one what to adjust baseline */
223+
double m_adjustFac;/**< factor with that one what to adjust baseline */
225224

226225
bool isFixTrunc; /**< true = fix window for all out/inner layers */
227226
bool isVarBins; /**< true: if variable bin size is requested */
228-
bool isRotSymm; /**< if rotation symmtery requested */
227+
bool isRotSymm; /**< if rotation symmetry requested */
229228
bool isMakePlots; /**< produce plots for status */
230229
bool isPrintLog; /**< print more debug information */
231230
bool isMerge; /**< print more debug information */
@@ -234,9 +233,9 @@ namespace Belle2 {
234233
std::string m_runExp; /**< add suffix to all plot name */
235234
std::string m_label[2] = {"IL", "OL"}; /**< add inner/outer layer label */
236235

237-
std::vector<int> m_eaBinLocal; /**< # of var bins for etna angle */
238-
std::array<std::vector<int>, 2> m_binIndex; /**< symm/Var bin numebrs */
239-
std::array<std::vector<double>, 2>m_binValue; /**< etna Var bin values */
236+
std::vector<int> m_eaBinLocal; /**< # of var bins for enta angle */
237+
std::array<std::vector<int>, 2> m_binIndex; /**< symm/Var bin numbers */
238+
std::array<std::vector<double>, 2>m_binValue; /**< enta Var bin values */
240239

241240
std::vector<std::vector<double>> m_onedcors; /**< final vectors of calibration */
242241

reconstruction/calibration/CDCdEdx/include/CDCDedxBadWireAlgorithm.h renamed to cdc/calibration/CDCdEdx/include/CDCDedxBadWireAlgorithm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
#include <framework/database/DBObjPtr.h>
2727
#include <framework/database/IntervalOfValidity.h>
2828

29-
#include <reconstruction/dbobjects/CDCDedxBadWires.h>
30-
#include <reconstruction/dbobjects/CDCDedxWireGain.h>
29+
#include <cdc/dbobjects/CDCDedxBadWires.h>
30+
#include <cdc/dbobjects/CDCDedxWireGain.h>
3131

3232
#include <calibration/CalibrationAlgorithm.h>
3333

reconstruction/calibration/CDCdEdx/include/CDCDedxCosEdgeAlgorithm.h renamed to cdc/calibration/CDCdEdx/include/CDCDedxCosEdgeAlgorithm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include<map>
1515
#include<vector>
1616

17-
#include <reconstruction/dbobjects/CDCDedxCosineEdge.h>
17+
#include <cdc/dbobjects/CDCDedxCosineEdge.h>
1818
#include <calibration/CalibrationAlgorithm.h>
1919
#include <framework/database/DBObjPtr.h>
2020

reconstruction/calibration/CDCdEdx/include/CDCDedxCosineAlgorithm.h renamed to cdc/calibration/CDCdEdx/include/CDCDedxCosineAlgorithm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include <reconstruction/dbobjects/CDCDedxCosineCor.h>
11+
#include <cdc/dbobjects/CDCDedxCosineCor.h>
1212
#include <calibration/CalibrationAlgorithm.h>
1313
#include <framework/database/DBObjPtr.h>
1414
#include <TH1D.h>

reconstruction/calibration/CDCdEdx/include/CDCDedxInjectTimeAlgorithm.h renamed to cdc/calibration/CDCdEdx/include/CDCDedxInjectTimeAlgorithm.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222

2323
#include <calibration/CalibrationAlgorithm.h>
2424
#include <framework/database/DBObjPtr.h>
25-
#include <reconstruction/dbobjects/CDCDedxInjectionTime.h>
26-
#include <reconstruction/utility/CDCDedxMeanPred.h>
27-
#include <reconstruction/utility/CDCDedxSigmaPred.h>
25+
#include <cdc/dbobjects/CDCDedxInjectionTime.h>
26+
#include <cdc/utilities/CDCDedxMeanPred.h>
27+
#include <cdc/utilities/CDCDedxSigmaPred.h>
2828
#include <framework/gearbox/Const.h>
2929

3030
// namespace constants

reconstruction/calibration/CDCdEdx/include/CDCDedxRunGainAlgorithm.h renamed to cdc/calibration/CDCdEdx/include/CDCDedxRunGainAlgorithm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include <reconstruction/dbobjects/CDCDedxRunGain.h>
11+
#include <cdc/dbobjects/CDCDedxRunGain.h>
1212
#include <calibration/CalibrationAlgorithm.h>
1313
#include <framework/database/DBObjPtr.h>
1414
#include <TH1D.h>

reconstruction/calibration/CDCdEdx/include/CDCDedxWireGainAlgorithm.h renamed to cdc/calibration/CDCdEdx/include/CDCDedxWireGainAlgorithm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
#include <TStyle.h>
2222
#include <TH1I.h>
2323

24-
#include <reconstruction/dbobjects/CDCDedxWireGain.h>
25-
#include <reconstruction/dbobjects/CDCDedxBadWires.h>
24+
#include <cdc/dbobjects/CDCDedxWireGain.h>
25+
#include <cdc/dbobjects/CDCDedxBadWires.h>
2626
#include <cdc/dbobjects/CDCGeometry.h>
2727
#include <calibration/CalibrationAlgorithm.h>
2828
#include <framework/database/DBObjPtr.h>

0 commit comments

Comments
 (0)