Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Monitor
Incidents
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
jlab
hallc
analyzer_software
hcana
Commits
4286abcc
Commit
4286abcc
authored
12 years ago
by
Stephen A. Wood
Browse files
Options
Downloads
Patches
Plain Diff
Adjust names given to scintillator plane sub detector.
parent
12bad784
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/THcHodoscope.cxx
+3
-7
3 additions, 7 deletions
src/THcHodoscope.cxx
src/THcScintillatorPlane.cxx
+0
-1
0 additions, 1 deletion
src/THcScintillatorPlane.cxx
with
3 additions
and
8 deletions
src/THcHodoscope.cxx
+
3
−
7
View file @
4286abcc
...
@@ -81,16 +81,12 @@ void THcHodoscope::Setup(const char* name, const char* description)
...
@@ -81,16 +81,12 @@ void THcHodoscope::Setup(const char* name, const char* description)
char
*
subname
=
new
char
[
len
+
1
];
char
*
subname
=
new
char
[
len
+
1
];
fPlanes
=
new
THcScintillatorPlane
*
[
fNPlanes
];
fPlanes
=
new
THcScintillatorPlane
*
[
fNPlanes
];
for
(
Int_t
i
=
0
;
i
<
fNPlanes
;
i
++
)
{
for
(
Int_t
i
=
0
;
i
<
fNPlanes
;
i
++
)
{
strcpy
(
subname
,
name
);
strcat
(
subname
,
"."
);
strcat
(
subname
,
fPlaneNames
[
i
]);
strcpy
(
desc
,
description
);
strcpy
(
desc
,
description
);
strcat
(
desc
,
"
Hodoscope
Plane "
);
strcat
(
desc
,
" Plane "
);
strcat
(
desc
,
fPlaneNames
[
i
]);
strcat
(
desc
,
fPlaneNames
[
i
]);
fPlanes
[
i
]
=
new
THcScintillatorPlane
(
subname
,
desc
,
this
);
fPlanes
[
i
]
=
new
THcScintillatorPlane
(
fPlaneNames
[
i
]
,
desc
,
this
);
cout
<<
"Created Scintillator Plane "
<<
subname
<<
", "
<<
desc
<<
endl
;
cout
<<
"Created Scintillator Plane "
<<
fPlaneNames
[
i
]
<<
", "
<<
desc
<<
endl
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/THcScintillatorPlane.cxx
+
0
−
1
View file @
4286abcc
...
@@ -65,7 +65,6 @@ Int_t THcScintillatorPlane::ReadDatabase( const TDatime& date )
...
@@ -65,7 +65,6 @@ Int_t THcScintillatorPlane::ReadDatabase( const TDatime& date )
{
{
// See what file it looks for
// See what file it looks for
FILE
*
file
=
OpenFile
(
date
);
static
const
char
*
const
here
=
"ReadDatabase()"
;
static
const
char
*
const
here
=
"ReadDatabase()"
;
const
int
LEN
=
200
;
const
int
LEN
=
200
;
...
...
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