Skip to content

Commit 9eb4ee3

Browse files
committed
Revert "unify histo binning"
This reverts commit fa59b90.
1 parent 9368d65 commit 9eb4ee3

6 files changed

Lines changed: 3 additions & 113 deletions

File tree

Modules/MFT/include/MFT/QcMFTClusterTask.h

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
/// \author Katarina Krizkova Gajdosova
1717
/// \author Diana Maria Krupova
1818
/// \author David Grund
19-
/// \author Jakub Juracka
2019
///
2120

2221
#ifndef QC_MFT_CLUSTER_TASK_H
@@ -28,7 +27,6 @@
2827
#include "ReconstructionDataFormats/BaseCluster.h"
2928
#include "MFTBase/GeometryTGeo.h"
3029
#include <CommonConstants/LHCConstants.h>
31-
#include <vector>
3230

3331
// Quality Control
3432
#include "QualityControl/TaskInterface.h"
@@ -106,39 +104,6 @@ class QcMFTClusterTask /*final*/ : public TaskInterface // todo add back the "fi
106104
// cluster size in pixels
107105
int mClusterSize = { 0 };
108106

109-
std::vector<float> mROFBins = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
110-
11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
111-
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
112-
31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
113-
41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
114-
51, 52, 53, 54, 55, 56, 57, 58, 59, 60,
115-
61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
116-
71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
117-
81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
118-
91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
119-
110, 120, 130, 140, 150, 160, 170, 180, 190, 200,
120-
210, 220, 230, 240, 250, 260, 270, 280, 290, 300,
121-
310, 320, 330, 340, 350, 360, 370, 380, 390, 400,
122-
410, 420, 430, 440, 450, 460, 470, 480, 490, 500,
123-
510, 520, 530, 540, 550, 560, 570, 580, 590, 600,
124-
610, 620, 630, 640, 650, 660, 670, 680, 690, 700,
125-
710, 720, 730, 740, 750, 760, 770, 780, 790, 800,
126-
810, 820, 830, 840, 850, 860, 870, 880, 890, 900,
127-
910, 920, 930, 940, 950, 960, 970, 980, 990, 1000,
128-
1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800, 1900, 2000,
129-
2100, 2200, 2300, 2400, 2500, 2600, 2700, 2800, 2900, 3000,
130-
3100, 3200, 3300, 3400, 3500, 3600, 3700, 3800, 3900, 4000,
131-
4100, 4200, 4300, 4400, 4500, 4600, 4700, 4800, 4900, 5000,
132-
5100, 5200, 5300, 5400, 5500, 5600, 5700, 5800, 5900, 6000,
133-
6100, 6200, 6300, 6400, 6500, 6600, 6700, 6800, 6900, 7000,
134-
7100, 7200, 7300, 7400, 7500, 7600, 7700, 7800, 7900, 8000,
135-
8100, 8200, 8300, 8400, 8500, 8600, 8700, 8800, 8900, 9000,
136-
9100, 9200, 9300, 9400, 9500, 9600, 9700, 9800, 9900, 10000,
137-
11000, 12000, 13000, 14000, 15000, 16000, 17000, 18000, 19000, 20000,
138-
21000, 22000, 23000, 24000, 25000, 26000, 27000, 28000, 29000, 30000,
139-
31000, 32000, 33000, 34000, 35000, 36000, 37000, 38000, 39000, 40000,
140-
41000, 42000, 43000, 44000, 45000, 46000, 47000, 48000, 49000, 50000 };
141-
142107
// dictionary
143108
const o2::itsmft::TopologyDictionary* mDict = nullptr;
144109

Modules/MFT/include/MFT/QcMFTDigitTask.h

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
/// \author Katarina Krizkova Gajdosova
1717
/// \author Diana Maria Krupova
1818
/// \author David Grund
19-
/// \author Jakub Juracka
2019
///
2120

2221
#ifndef QC_MFT_DIGIT_TASK_H
@@ -26,8 +25,6 @@
2625
#include <TCanvas.h>
2726
#include <TH1.h>
2827
#include <TH2.h>
29-
// C++
30-
#include <vector>
3128
// O2
3229
#include <ITSMFTReconstruction/ChipMappingMFT.h>
3330
#include <CommonConstants/LHCConstants.h>
@@ -96,39 +93,6 @@ class QcMFTDigitTask final : public TaskInterface
9693
float mX[936] = { 0 };
9794
float mY[936] = { 0 };
9895

99-
std::vector<float> mROFBins = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
100-
11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
101-
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
102-
31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
103-
41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
104-
51, 52, 53, 54, 55, 56, 57, 58, 59, 60,
105-
61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
106-
71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
107-
81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
108-
91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
109-
110, 120, 130, 140, 150, 160, 170, 180, 190, 200,
110-
210, 220, 230, 240, 250, 260, 270, 280, 290, 300,
111-
310, 320, 330, 340, 350, 360, 370, 380, 390, 400,
112-
410, 420, 430, 440, 450, 460, 470, 480, 490, 500,
113-
510, 520, 530, 540, 550, 560, 570, 580, 590, 600,
114-
610, 620, 630, 640, 650, 660, 670, 680, 690, 700,
115-
710, 720, 730, 740, 750, 760, 770, 780, 790, 800,
116-
810, 820, 830, 840, 850, 860, 870, 880, 890, 900,
117-
910, 920, 930, 940, 950, 960, 970, 980, 990, 1000,
118-
1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800, 1900, 2000,
119-
2100, 2200, 2300, 2400, 2500, 2600, 2700, 2800, 2900, 3000,
120-
3100, 3200, 3300, 3400, 3500, 3600, 3700, 3800, 3900, 4000,
121-
4100, 4200, 4300, 4400, 4500, 4600, 4700, 4800, 4900, 5000,
122-
5100, 5200, 5300, 5400, 5500, 5600, 5700, 5800, 5900, 6000,
123-
6100, 6200, 6300, 6400, 6500, 6600, 6700, 6800, 6900, 7000,
124-
7100, 7200, 7300, 7400, 7500, 7600, 7700, 7800, 7900, 8000,
125-
8100, 8200, 8300, 8400, 8500, 8600, 8700, 8800, 8900, 9000,
126-
9100, 9200, 9300, 9400, 9500, 9600, 9700, 9800, 9900, 10000,
127-
11000, 12000, 13000, 14000, 15000, 16000, 17000, 18000, 19000, 20000,
128-
21000, 22000, 23000, 24000, 25000, 26000, 27000, 28000, 29000, 30000,
129-
31000, 32000, 33000, 34000, 35000, 36000, 37000, 38000, 39000, 40000,
130-
41000, 42000, 43000, 44000, 45000, 46000, 47000, 48000, 49000, 50000 };
131-
13296
std::unique_ptr<TH1F> mMergerTest = nullptr;
13397
std::unique_ptr<TH1FRatio> mDigitChipOccupancy = nullptr;
13498
std::unique_ptr<TH1F> mDigitChipStdDev = nullptr;

Modules/MFT/include/MFT/QcMFTTrackTask.h

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
/// \author Diana Maria Krupova
1717
/// \author Katarina Krizkova Gajdosova
1818
/// \author David Grund
19-
/// \author Jakub Juracka
2019
///
2120

2221
#ifndef QC_MFT_TRACK_TASK_H
@@ -25,8 +24,6 @@
2524
// ROOT
2625
#include <TH1.h>
2726
#include <TH2.h>
28-
// C++
29-
#include <vector>
3027
// Quality Control
3128
#include "QualityControl/TaskInterface.h"
3229
#include "Common/TH1Ratio.h"
@@ -64,39 +61,6 @@ class QcMFTTrackTask /*final*/ : public TaskInterface // todo add back the "fina
6461
private:
6562
o2::mft::GeometryTGeo* mGeom = nullptr;
6663

67-
std::vector<float> mROFBins = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
68-
11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
69-
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
70-
31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
71-
41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
72-
51, 52, 53, 54, 55, 56, 57, 58, 59, 60,
73-
61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
74-
71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
75-
81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
76-
91, 92, 93, 94, 95, 96, 97, 98, 99, 100,
77-
110, 120, 130, 140, 150, 160, 170, 180, 190, 200,
78-
210, 220, 230, 240, 250, 260, 270, 280, 290, 300,
79-
310, 320, 330, 340, 350, 360, 370, 380, 390, 400,
80-
410, 420, 430, 440, 450, 460, 470, 480, 490, 500,
81-
510, 520, 530, 540, 550, 560, 570, 580, 590, 600,
82-
610, 620, 630, 640, 650, 660, 670, 680, 690, 700,
83-
710, 720, 730, 740, 750, 760, 770, 780, 790, 800,
84-
810, 820, 830, 840, 850, 860, 870, 880, 890, 900,
85-
910, 920, 930, 940, 950, 960, 970, 980, 990, 1000,
86-
1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800, 1900, 2000,
87-
2100, 2200, 2300, 2400, 2500, 2600, 2700, 2800, 2900, 3000,
88-
3100, 3200, 3300, 3400, 3500, 3600, 3700, 3800, 3900, 4000,
89-
4100, 4200, 4300, 4400, 4500, 4600, 4700, 4800, 4900, 5000,
90-
5100, 5200, 5300, 5400, 5500, 5600, 5700, 5800, 5900, 6000,
91-
6100, 6200, 6300, 6400, 6500, 6600, 6700, 6800, 6900, 7000,
92-
7100, 7200, 7300, 7400, 7500, 7600, 7700, 7800, 7900, 8000,
93-
8100, 8200, 8300, 8400, 8500, 8600, 8700, 8800, 8900, 9000,
94-
9100, 9200, 9300, 9400, 9500, 9600, 9700, 9800, 9900, 10000,
95-
11000, 12000, 13000, 14000, 15000, 16000, 17000, 18000, 19000, 20000,
96-
21000, 22000, 23000, 24000, 25000, 26000, 27000, 28000, 29000, 30000,
97-
31000, 32000, 33000, 34000, 35000, 36000, 37000, 38000, 39000, 40000,
98-
41000, 42000, 43000, 44000, 45000, 46000, 47000, 48000, 49000, 50000 };
99-
10064
std::unique_ptr<TH1FRatio> mNumberOfTracksPerTF = nullptr;
10165
std::unique_ptr<TH1FRatio> mTrackNumberOfClusters = nullptr;
10266
std::unique_ptr<TH1FRatio> mCATrackNumberOfClusters = nullptr;

Modules/MFT/src/QcMFTClusterTask.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
/// \author Katarina Krizkova Gajdosova
1717
/// \author Diana Maria Krupova
1818
/// \author David Grund
19-
/// \author Jakub Juracka
2019
///
2120

2221
// C++
@@ -195,7 +194,7 @@ void QcMFTClusterTask::initialize(o2::framework::InitContext& /*ctx*/)
195194
getObjectsManager()->setDisplayHint(mClusterZ.get(), "hist");
196195

197196
mClustersROFSize = std::make_unique<TH1FRatio>(
198-
"mClustersROFSize", "Distribution of the #clusters per ROF; # clusters per ROF; # entries per orbit", static_cast<int>(mROFBins.size() - 1), mROFBins.data(), true);
197+
"mClustersROFSize", "Distribution of the #clusters per ROF; # clusters per ROF; # entries per orbit", maxClusterROFSize, 0, maxClusterROFSize, true);
199198
mClustersROFSize->SetStats(0);
200199
getObjectsManager()->startPublishing(mClustersROFSize.get());
201200
getObjectsManager()->setDisplayHint(mClustersROFSize.get(), "hist logx logy");

Modules/MFT/src/QcMFTDigitTask.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
/// \author Katarina Krizkova Gajdosova
1717
/// \author Diana Maria Krupova
1818
/// \author David Grund
19-
/// \author Jakub Juracka
2019
///
2120

2221
// C++
@@ -161,7 +160,7 @@ void QcMFTDigitTask::initialize(o2::framework::InitContext& /*ctx*/)
161160

162161
mDigitsROFSize = std::make_unique<TH1FRatio>("mDigitsROFSize",
163162
"Distribution of the #digits per ROF; # digits per ROF; # entries per orbit",
164-
static_cast<int>(mROFBins.size() - 1), mROFBins.data(), true);
163+
maxDigitROFSize, 0, maxDigitROFSize, true);
165164
mDigitsROFSize->SetStats(0);
166165
getObjectsManager()->startPublishing(mDigitsROFSize.get());
167166
getObjectsManager()->setDisplayHint(mDigitsROFSize.get(), "hist logx logy");

Modules/MFT/src/QcMFTTrackTask.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
/// \author Diana Maria Krupova
1717
/// \author Katarina Krizkova Gajdosova
1818
/// \author David Grund
19-
/// \author Jakub Juracka
2019
///
2120

2221
// C++
@@ -177,7 +176,7 @@ void QcMFTTrackTask::initialize(o2::framework::InitContext& /*ctx*/)
177176
getObjectsManager()->startPublishing(mTrackTanl.get());
178177
getObjectsManager()->setDisplayHint(mTrackTanl.get(), "hist");
179178

180-
mTrackROFNEntries = std::make_unique<TH1FRatio>("mMFTTrackROFSize", "Distribution of the #tracks per ROF; # tracks per ROF; # entries per orbit", static_cast<int>(mROFBins.size() - 1), mROFBins.data(), true);
179+
mTrackROFNEntries = std::make_unique<TH1FRatio>("mMFTTrackROFSize", "Distribution of the #tracks per ROF; # tracks per ROF; # entries per orbit", MaxTrackROFSize, 0, MaxTrackROFSize, true);
181180
getObjectsManager()->startPublishing(mTrackROFNEntries.get());
182181
getObjectsManager()->setDisplayHint(mTrackROFNEntries.get(), "hist logx logy");
183182

0 commit comments

Comments
 (0)