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
fa37a2dd
Commit
fa37a2dd
authored
13 years ago
by
Stephen A. Wood
Browse files
Options
Downloads
Patches
Plain Diff
Start of Hall C crate map class
parent
e746cd4c
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/HallC_LinkDef.h
+1
-0
1 addition, 0 deletions
src/HallC_LinkDef.h
src/THcCrateMap.cxx
+46
-0
46 additions, 0 deletions
src/THcCrateMap.cxx
src/THcCrateMap.h
+41
-0
41 additions, 0 deletions
src/THcCrateMap.h
with
88 additions
and
0 deletions
src/HallC_LinkDef.h
+
1
−
0
View file @
fa37a2dd
...
...
@@ -8,5 +8,6 @@
#pragma link C++ class THcInterface+;
#pragma link C++ class THcParmList+;
#pragma link C++ class THcCrateMap+;
#endif
This diff is collapsed.
Click to expand it.
src/THcCrateMap.cxx
0 → 100644
+
46
−
0
View file @
fa37a2dd
/////////////////////////////////////////////////////////////////////
//
// THcCrateMap
// Layout, or "map", of DAQ Crates.
//
// THaCrateMap contains info on how the DAQ crates
// are arranged in Hall A, i.e whether slots are
// fastbus or vme, what the module types are, and
// what header info to expect. Probably nobody needs
// to know about this except the author, and at present
// an object of this class is a private member of the decoder.
//
// author Robert Michaels (rom@jlab.org)
// author Stephen Wood (saw@jlab.org)
//
/////////////////////////////////////////////////////////////////////
#include
"THcCrateMap.h"
#include
"TError.h"
using
namespace
std
;
THcCrateMap
::
THcCrateMap
(
const
char
*
db_filename
)
{
// Need to do something different since we are going to read
// a Hall C style map file.
// Construct uninitialized crate map. The argument is the name of
// the database file to use for initialization
if
(
!
db_filename
||
!*
db_filename
)
{
::
Warning
(
"THcCrateMap"
,
"Undefined database file name, "
"using default
\"
db_cratemap.dat
\"
"
);
db_filename
=
"cratemap"
;
}
// Why does this give an error? Can't I use a private
// member of the class I inherit from?
fMapfileName
=
db_filename
;
}
ClassImp
(
THcCrateMap
)
This diff is collapsed.
Click to expand it.
src/THcCrateMap.h
0 → 100644
+
41
−
0
View file @
fa37a2dd
#ifndef THcCrateMap_
#define THcCrateMap_
/////////////////////////////////////////////////////////////////////
//
// THcCrateMap
// Layout, or "map", of DAQ Crates.
//
// Inheriting from THaCrateMap
//
// THcCrateMap contains info on how the DAQ crates
// are arranged in Hall A, i.e whether slots are
// fastbus or vme, what the module types are, and
// what header info to expect. Probably nobody needs
// to know about this except the author, and at present
// an object of this class is a private member of the decoder.
//
// author Robert Michaels (rom@jlab.org)
// author Stephen Wood (saw@jlab.org)
//
/////////////////////////////////////////////////////////////////////
#include
"THaCrateMap.h"
class
THcCrateMap
:
public
THaCrateMap
{
public:
THcCrateMap
(
const
char
*
db
=
"cratemap"
);
// Construct uninitialized
private:
TString
fMapfileName
;
protected:
ClassDef
(
THcCrateMap
,
0
)
// Crate map
};
#endif
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