Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Whitney Armstrong
hcana
Commits
6246cbfb
Commit
6246cbfb
authored
5 years ago
by
Chao Peng
Browse files
Options
Downloads
Patches
Plain Diff
fix a typo in HallC_Data and get rid of some warnings
parent
c74364ae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/THcDC.h
+1
-1
1 addition, 1 deletion
src/THcDC.h
src/THcRawHit.h
+11
-11
11 additions, 11 deletions
src/THcRawHit.h
src/THcSpacePoint.h
+1
-1
1 addition, 1 deletion
src/THcSpacePoint.h
src/include/hcana/HallC_Data.h
+1
-1
1 addition, 1 deletion
src/include/hcana/HallC_Data.h
with
14 additions
and
14 deletions
src/THcDC.h
+
1
−
1
View file @
6246cbfb
...
...
@@ -227,7 +227,7 @@ protected:
public
:
THcDriftChamberPlane
*
GetPlane
(
unsigned
int
i_plane
)
{
if
(
i_plane
<
fNPlanes
)
{
if
(
static_cast
<
int
>
(
i_plane
)
<
fNPlanes
)
{
return
fPlanes
[
i_plane
];
}
return
nullptr
;
...
...
This diff is collapsed.
Click to expand it.
src/THcRawHit.h
+
11
−
11
View file @
6246cbfb
...
...
@@ -29,20 +29,20 @@ public:
// virtual Bool_t operator==( const THcRawHit& ) = 0;
// virtual Bool_t operator!=( const THcRawHit& ) = 0;
virtual
void
SetData
(
Int_t
signal
,
Int_t
data
)
{};
virtual
void
SetSample
(
Int_t
signal
,
Int_t
data
)
{};
virtual
void
SetDataTimePedestalPeak
(
Int_t
signal
,
Int_t
data
,
Int_t
time
,
Int_t
pedestal
,
Int_t
peak
)
{};
virtual
Int_t
GetData
(
Int_t
signal
)
{
return
0
;};
/* Ref time subtracted */
virtual
Int_t
GetRawData
(
Int_t
signal
)
{
return
0
;}
/* Ref time not subtracted */
virtual
ESignalType
GetSignalType
(
Int_t
signal
)
{
return
kUndefined
;}
virtual
void
SetData
(
Int_t
/*
signal
*/
,
Int_t
/*
data
*/
)
{};
virtual
void
SetSample
(
Int_t
/*
signal
*/
,
Int_t
/*
data
*/
)
{};
virtual
void
SetDataTimePedestalPeak
(
Int_t
/*
signal
*/
,
Int_t
/*
data
*/
,
Int_t
/*
time
*/
,
Int_t
/*
pedestal
*/
,
Int_t
/*
peak
*/
)
{};
virtual
Int_t
GetData
(
Int_t
/*
signal
*/
)
{
return
0
;};
/* Ref time subtracted */
virtual
Int_t
GetRawData
(
Int_t
/*
signal
*/
)
{
return
0
;}
/* Ref time not subtracted */
virtual
ESignalType
GetSignalType
(
Int_t
/*
signal
*/
)
{
return
kUndefined
;}
virtual
Int_t
GetNSignals
()
{
return
1
;}
virtual
void
SetReference
(
Int_t
signal
,
Int_t
reference
)
{};
virtual
Bool_t
HasReference
(
Int_t
signal
)
{
return
kFALSE
;};
virtual
Int_t
GetReference
(
Int_t
signal
)
{
return
0
;};
virtual
void
SetReference
(
Int_t
/*
signal
*/
,
Int_t
/*
reference
*/
)
{};
virtual
Bool_t
HasReference
(
Int_t
/*
signal
*/
)
{
return
kFALSE
;};
virtual
Int_t
GetReference
(
Int_t
/*
signal
*/
)
{
return
0
;};
virtual
void
SetF250Params
(
Int_t
NSA
,
Int_t
NSB
,
Int_t
NPED
)
{};
virtual
void
SetF250Params
(
Int_t
/* NSA */
,
Int_t
/*
NSB
*/
,
Int_t
/*
NPED
*/
)
{};
// Derived objects must be sortable and supply Compare method
// virtual Bool_t IsSortable () const {return kFALSE; }
...
...
This diff is collapsed.
Click to expand it.
src/THcSpacePoint.h
+
1
−
1
View file @
6246cbfb
...
...
@@ -29,7 +29,7 @@ public:
};
void
SetXY
(
Double_t
x
,
Double_t
y
)
{
fX
=
x
;
fY
=
y
;};
void
Clear
(
Option_t
*
opt
=
""
)
{
fNHits
=
0
;
fNCombos
=
0
;
fHits
.
clear
();};
void
Clear
(
Option_t
*
/* opt */
=
""
)
{
fNHits
=
0
;
fNCombos
=
0
;
fHits
.
clear
();};
void
AddHit
(
THcDCHit
*
hit
)
{
Hit
newhit
;
newhit
.
dchit
=
hit
;
...
...
This diff is collapsed.
Click to expand it.
src/include/hcana/HallC_Data.h
+
1
−
1
View file @
6246cbfb
...
...
@@ -15,7 +15,7 @@ namespace hallc {
static
const
UInt_t
MaxNSamples
=
511
;
// From THcRawAdcHit.h
PulseWaveForm
()
{}
PulseWaveForm
(
Int_t
*
buf
,
Int_t
size
=
MaxNSamples
)
{
std
::
copy_n
(
buf
,
MaxNSamples
,
std
::
begin
(
_buffer
));
}
PulseWaveForm
(
Int_t
*
buf
,
Int_t
size
=
MaxNSamples
)
{
std
::
copy_n
(
buf
,
size
,
std
::
begin
(
_buffer
));
}
virtual
~
PulseWaveForm
()
{}
void
ZeroBuffer
()
{
std
::
fill
(
std
::
begin
(
_buffer
),
std
::
end
(
_buffer
),
0
);
}
...
...
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