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
cd8e806b
Commit
cd8e806b
authored
11 years ago
by
Buddhini Waidyawansa
Committed by
Stephen A. Wood
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit of the THcRaster class for decoding the raster signal.
parent
30ccc1ce
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/THcRaster.cxx
+47
-0
47 additions, 0 deletions
src/THcRaster.cxx
src/THcRaster.h
+36
-0
36 additions, 0 deletions
src/THcRaster.h
with
83 additions
and
0 deletions
src/THcRaster.cxx
0 → 100644
+
47
−
0
View file @
cd8e806b
// Author : Buddhini Waidyawansa
// Date : 12-09-2013
///////////////////////////////////////////////////////////////////////////////
// //
// THcRaster //
// //
// A class to decode the fast raster signals. //
// //
///////////////////////////////////////////////////////////////////////////////
#include
<cstring>
#include
<cstdio>
#include
<cstdlib>
#include
<iostream>
#include
"THcRaster.h"
using
namespace
std
;
//_____________________________________________________________________________
THcRaster
::
THcRaster
(
const
char
*
name
,
const
char
*
description
,
THaApparatus
*
apparatus
)
:
THaNonTrackingDetector
(
name
,
description
,
apparatus
)
{
// Initializing channels
fRasterXRaw
=
new
TClonesArray
(
"THcSignalHit"
,
16
);
fRasterYRaw
=
new
TClonesArray
(
"THcSignalHit"
,
16
);
}
//_____________________________________________________________________________
THcRaster
::
THcRaster
(
)
:
THaNonTrackingDetector
()
{
// Default constructor
}
//_____________________________________________________________________________
THcRaster
::~
THRaster
()
{
// Distructor
}
ClassImp
(
THcRaster
)
////////////////////////////////////////////////////////////////////////////////
This diff is collapsed.
Click to expand it.
src/THcRaster.h
0 → 100644
+
36
−
0
View file @
cd8e806b
#ifndef ROOT_THcRaster
#define ROOT_THcRaster
#include
"THcRawHit.h"
class
THcRaster
:
public
THcRawHit
{
public:
THcHodoscopeHit
(
Int_t
plane
=
0
,
Int_t
counter
=
0
)
:
THcRawHit
(
plane
,
counter
),
fADC_pos
(
-
1
),
fADC_neg
(
-
1
),
fTDC_pos
(
-
1
),
fTDC_neg
(
-
1
)
{
}
THcHodoscopeHit
&
operator
=
(
const
THcHodoscopeHit
&
);
virtual
~
THcHodoscopeHit
()
{}
virtual
void
Clear
(
Option_t
*
opt
=
""
)
{
fADC_pos
=
-
1
;
fADC_neg
=
-
1
;
fTDC_pos
=
-
1
;
fTDC_neg
=
-
1
;
}
void
SetData
(
Int_t
signal
,
Int_t
data
);
Int_t
GetData
(
Int_t
signal
);
// virtual Bool_t IsSortable () const {return kTRUE; }
// virtual Int_t Compare(const TObject* obj) const;
Int_t
fADC_pos
;
Int_t
fADC_neg
;
protected
:
private
:
ClassDef
(
THcRaster
,
0
);
// add THcRaster to ROOT library
};
#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