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
a69bb4df
Commit
a69bb4df
authored
8 years ago
by
Mark K Jones
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #182 from biswas1/dc
Modified THcDriftChamberPlane.cxx and THcDriftChamberPlane.h
parents
b3547745
a4186aeb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/THcDriftChamberPlane.cxx
+24
-2
24 additions, 2 deletions
src/THcDriftChamberPlane.cxx
src/THcDriftChamberPlane.h
+3
-0
3 additions, 0 deletions
src/THcDriftChamberPlane.h
with
27 additions
and
2 deletions
src/THcDriftChamberPlane.cxx
+
24
−
2
View file @
a69bb4df
...
...
@@ -92,13 +92,14 @@ Int_t THcDriftChamberPlane::ReadDatabase( const TDatime& date )
UInt_t
NumDriftMapBins
;
Double_t
DriftMapFirstBin
;
Double_t
DriftMapBinSize
;
fUsingTzeroPerWire
=
0
;
prefix
[
0
]
=
tolower
(
GetParent
()
->
GetPrefix
()[
0
]);
prefix
[
1
]
=
'\0'
;
DBRequest
list
[]
=
{
{
"driftbins"
,
&
NumDriftMapBins
,
kInt
},
{
"drift1stbin"
,
&
DriftMapFirstBin
,
kDouble
},
{
"driftbinsz"
,
&
DriftMapBinSize
,
kDouble
},
{
"_using_tzero_per_wire"
,
&
fUsingTzeroPerWire
,
kInt
,
0
,
1
},
{
0
}
};
gHcParms
->
LoadParmValues
((
DBRequest
*
)
&
list
,
prefix
);
...
...
@@ -110,6 +111,7 @@ Int_t THcDriftChamberPlane::ReadDatabase( const TDatime& date )
};
gHcParms
->
LoadParmValues
((
DBRequest
*
)
&
list2
,
prefix
);
// Retrieve parameters we need from parent class
THcDC
*
fParent
;
...
...
@@ -130,6 +132,25 @@ Int_t THcDriftChamberPlane::ReadDatabase( const TDatime& date )
fNSperChan
=
fParent
->
GetNSperChan
();
if
(
fUsingTzeroPerWire
==
1
)
{
fTzeroWire
=
new
Double_t
[
fNWires
];
DBRequest
list3
[]
=
{
{
Form
(
"tzero%s"
,
GetName
()),
fTzeroWire
,
kDouble
,
fNWires
},
{
0
}
};
gHcParms
->
LoadParmValues
((
DBRequest
*
)
&
list3
,
prefix
);
printf
(
" using tzero per wire plane = %s nwires = %d
\n
"
,
GetName
(),
fNWires
);
for
(
Int_t
iw
=
0
;
iw
<
fNWires
;
iw
++
)
{
printf
(
"%d %f "
,
iw
+
1
,
fTzeroWire
[
iw
])
;
if
(
iw
!=
0
&&
iw
%
8
==
0
)
printf
(
"
\n
"
)
;
}
}
else
{
fTzeroWire
=
new
Double_t
[
fNWires
];
for
(
Int_t
iw
=
0
;
iw
<
fNWires
;
iw
++
)
{
fTzeroWire
[
iw
]
=
0.0
;
}
}
// Calculate Geometry Constants
// Do we want to move all this to the Chamber of DC Package leve
// as that is where these things will be needed?
...
...
@@ -322,7 +343,8 @@ Int_t THcDriftChamberPlane::ProcessHits(TClonesArray* rawhits, Int_t nexthit)
// Increment late count
}
else
{
Double_t
time
=
-
StartTime
// (comes from h_trans_scin
-
rawtdc
*
fNSperChan
+
fPlaneTimeZero
;
// fNSperChan > 0 for 1877
-
rawtdc
*
fNSperChan
+
fPlaneTimeZero
-
fTzeroWire
[
wireNum
-
1
];
// fNSperChan > 0 for 1877
// (cout << " Plane = " << GetName() << " wire = " << wireNum << " " << fPlaneTimeZero << " " << fTzeroWire[wireNum-1] << endl;
// < 0 for Caen1190.
// - (rawtdc-reftime)*fNSperChan + fPlaneTimeZero;
// How do we get this start time from the hodoscope to here
...
...
This diff is collapsed.
Click to expand it.
src/THcDriftChamberPlane.h
+
3
−
0
View file @
a69bb4df
...
...
@@ -79,6 +79,7 @@ protected:
Int_t
fPlaneNum
;
Int_t
fPlaneIndex
;
/* Index of this plane within it's chamber */
Int_t
fChamberNum
;
Int_t
fUsingTzeroPerWire
;
Int_t
fNRawhits
;
Int_t
fNWires
;
Int_t
fWireOrder
;
...
...
@@ -104,6 +105,8 @@ protected:
Double_t
fNSperChan
;
/* TDC bin size */
Double_t
*
fTzeroWire
;
virtual
Int_t
ReadDatabase
(
const
TDatime
&
date
);
virtual
Int_t
DefineVariables
(
EMode
mode
=
kDefine
);
...
...
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