Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
7a17a2e6
Commit
7a17a2e6
authored
4 years ago
by
Sergey Gorbunov
Browse files
Options
Downloads
Patches
Plain Diff
segfault fix in CbmSTSDigitizeQA
parent
b86aa5d9
No related branches found
No related tags found
1 merge request
!106
fix of segmentation fault in CbmStsDigitizeQA.cxx
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sim/detectors/sts/CbmStsDigitizeQa.cxx
+15
-8
15 additions, 8 deletions
sim/detectors/sts/CbmStsDigitizeQa.cxx
with
15 additions
and
8 deletions
sim/detectors/sts/CbmStsDigitizeQa.cxx
+
15
−
8
View file @
7a17a2e6
...
...
@@ -99,13 +99,14 @@ InitStatus CbmStsDigitizeQa::Init() {
}
}
ReadDataBranches
();
CreateHistograms
();
// Get parameters of the first ASIC in the first module. This, of course,
// assumes that all ASIC parameters in the setup are the same.
UInt_t
address
=
fSetup
->
GetModule
(
0
)
->
GetAddress
();
fAsicPar
=
&
(
fModuleParSet
->
GetParModule
(
address
).
GetParAsic
(
0
));
ReadDataBranches
();
CreateHistograms
();
return
kSUCCESS
;
}
...
...
@@ -327,10 +328,10 @@ void CbmStsDigitizeQa::ProcessDigisAndPoints(const TClonesArray* points) {
const
CbmMatch
*
digiMatch
=
fDigiManager
->
GetMatch
(
ECbmModuleId
::
kSts
,
index
);
Int_t
stationId
=
fSetup
->
GetStationNumber
(
stsDigi
->
GetAddress
());
Int_t
iLad
=
CbmStsAddress
::
GetElementId
(
stsDigi
->
GetAddress
(),
kStsLadder
);
Int_t
iHla
=
CbmStsAddress
::
GetElementId
(
stsDigi
->
GetAddress
(),
kStsHalfLadder
);
Int_t
iMod
=
CbmStsAddress
::
GetElementId
(
stsDigi
->
GetAddress
(),
kStsModule
);
//
Int_t iLad = CbmStsAddress::GetElementId(stsDigi->GetAddress(), kStsLadder);
//
Int_t iHla =
//
CbmStsAddress::GetElementId(stsDigi->GetAddress(), kStsHalfLadder);
//
Int_t iMod = CbmStsAddress::GetElementId(stsDigi->GetAddress(), kStsModule);
CbmStsModule
*
modu
=
static_cast
<
CbmStsModule
*>
(
fSetup
->
GetElement
(
stsDigi
->
GetAddress
(),
kStsModule
));
Int_t
nOfChannelsM
=
modu
->
GetParameters
()
->
GetNofChannels
();
...
...
@@ -343,7 +344,13 @@ void CbmStsDigitizeQa::ProcessDigisAndPoints(const TClonesArray* points) {
Int_t
iChan
=
stsDigi
->
GetChannel
();
Int_t
iChip
=
iChan
/
128
;
fnOfDigisChip
[
stationId
][
iLad
][
iHla
][
iMod
][
iChip
]
++
;
// TODO
// Sergey Gorbunov: the code crashes at this line,
// because iLad is sometimes out of the range,
// it needs to be fixed
//fnOfDigisChip[stationId][iLad][iHla][iMod][iChip]++;
fHM
->
H2
(
Form
(
"h_DigisPerChip_Station%i"
,
stationId
))
->
Fill
(
global
[
0
]
+
50.
/
400.
*
((
iChip
-
8.
)
*
2.
-
1.
),
global
[
1
]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment