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
0e623d16
Commit
0e623d16
authored
12 years ago
by
Stephen A. Wood
Browse files
Options
Downloads
Patches
Plain Diff
Start writing a THcDetectorMap class to fill a THaDetMap from
the Hall C style detector map.
parent
48fcb3a8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/THcDetectorMap.cxx
+6
-0
6 additions, 0 deletions
src/THcDetectorMap.cxx
src/THcDetectorMap.h
+9
-0
9 additions, 0 deletions
src/THcDetectorMap.h
src/THcHodoscope.cxx
+5
-0
5 additions, 0 deletions
src/THcHodoscope.cxx
with
20 additions
and
0 deletions
src/THcDetectorMap.cxx
+
6
−
0
View file @
0e623d16
...
...
@@ -32,6 +32,12 @@ inline static bool IsComment( const string& s, string::size_type pos )
(
s
[
pos
]
==
'!'
)
);
}
virtual
Int_t
THcDetectorMap
::
FillMap
(
THaDetMap
*
detmap
,
string
*
detectorname
)
{
Int_t
detectorid
=
3
;
// Get this from detectorname
// Loop through the list looking for all hardware channels that
// are detectorid. Sort and try to minimize AddModule calls
}
void
THcDetectorMap
::
Load
(
const
char
*
fname
)
{
...
...
This diff is collapsed.
Click to expand it.
src/THcDetectorMap.h
+
9
−
0
View file @
0e623d16
...
...
@@ -17,6 +17,15 @@ class THcDetectorMap : public TObject {
virtual
void
Load
(
const
char
*
fname
);
// Member variables needed
// List of detector IDs.
// Hardware to logical detector mapping for each detector
// Mapping between detector names and numbers
// Hardwire, but later configure
struct
Detector
{
UInt_t
did
;
// Numberical Detector ID
TList
*
protected:
ClassDef
(
THcDetectorMap
,
0
);
...
...
This diff is collapsed.
Click to expand it.
src/THcHodoscope.cxx
+
5
−
0
View file @
0e623d16
...
...
@@ -68,6 +68,11 @@ THaAnalysisObject::EStatus THcHodoscope::Init( const TDatime& date )
// maximum number of hits after setting up the detector map
THcHitList
::
InitHitList
(
fDetMap
,
"THcHodoscopeHit"
,
100
);
if
(
gHcDetectorMap
->
FillMap
(
"detectorname"
,
fDetMap
)
<
0
)
{
Error
(
Here
(
here
),
"Error filling detectormap for %s."
,
"detectorname"
);
return
kInitError
;
}
return
fStatus
=
kOK
;
}
...
...
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