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
be11aa7d
Commit
be11aa7d
authored
13 years ago
by
Stephen A. Wood
Browse files
Options
Downloads
Patches
Plain Diff
No RawHitList class, moving functionality into THcDetectorBase
parent
4eb399dc
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/THcRawHitList.cxx
+0
-37
0 additions, 37 deletions
src/THcRawHitList.cxx
src/THcRawHitList.h
+0
-50
0 additions, 50 deletions
src/THcRawHitList.h
with
0 additions
and
87 deletions
src/THcRawHitList.cxx
deleted
100644 → 0
+
0
−
37
View file @
4eb399dc
//*-- Author : Stephen Wood
//////////////////////////////////////////////////////////////////////////
//
// THcRawHitList
//
// Class to build raw hit lists from data
//
//////////////////////////////////////////////////////////////////////////
#include
"THcRawHitList.h"
using
namespace
std
;
THcRawHitList
::
THcRawHitList
(
const
char
*
classname
,
Int_t
detectorid
,
Int_t
size
=
1000
)
{
fHits
=
new
TClonesArray
(
classname
,
size
);
fDetectorid
=
detectorid
;
}
THcRawHitList
::~
THcRawHitList
()
{
delete
fHits
;
}
Int_t
THcRawHitList
::
Fill
(
const
THaEvData
&
evdata
,
const
THcDetectorMap
&
dmap
)
{
// Zero out hit list
// Interate over list of channels belonging to detector, retrieving
// data that belongs to the detector
}
void
THcRawHitList
::
Clear
(
Option_t
*
)
{
fHits
->
Clear
();
}
//////////////////////////////////////////////////////////////////////////
ClassImp
(
THcRawHitList
)
This diff is collapsed.
Click to expand it.
src/THcRawHitList.h
deleted
100644 → 0
+
0
−
50
View file @
4eb399dc
#ifndef ROOT_THcRawHitList
#define ROOT_THcRawHitList
//////////////////////////////////////////////////////////////////////////
//
// THcRawHistList.h
//
//////////////////////////////////////////////////////////////////////////
#include
"TClonesArray.h"
#include
"THcRawHit.h"
#include
"THcDetectorMap.h"
#include
"THaEvData.h"
#include
<cassert>
class
THcRawHitList
{
public:
THcRawHitList
(
const
char
*
classname
,
Int_t
detectorid
,
Int_t
size
);
virtual
~
THcRawHitList
();
Int_t
Fill
(
const
THaEvData
&
evdata
,
const
THcDetectorMap
&
dmap
);
// Should detector map be a member variable too?
TClonesArray
*
fHits
;
Int_t
fMaxhit
;
Int_t
GetNHits
()
const
{
return
fHits
->
GetLast
()
+
1
;
}
TClonesArray
*
GetHits
()
const
{
return
fHits
;
}
// Should have a raw hit object so that certain methods are
// garuanteed to exist. (Like plane and counter) Because we may have
// methods to look up a certain plane or plane/counter, or sort etc.
THcRawHit
*
GetHit
(
Int_t
i
)
const
{
assert
(
i
>=
0
&&
i
<
GetNHits
()
);
return
(
THcRawHit
*
)
fHits
->
UncheckedAt
(
i
);}
void
Clear
(
Option_t
*
);
protected
:
Int_t
fDetectorid
;
private
:
ClassDef
(
THcRawHitList
,
0
);
// Raw hit class
};
#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