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
1ee8677d
Commit
1ee8677d
authored
11 years ago
by
Vardan Tadevosyan
Browse files
Options
Downloads
Patches
Plain Diff
Implemented the clustering debug flag (Mark).
parent
e647e89b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/hodtest_mkj.C
+2
-1
2 additions, 1 deletion
examples/hodtest_mkj.C
src/THcShower.cxx
+33
-34
33 additions, 34 deletions
src/THcShower.cxx
src/THcShower.h
+2
-0
2 additions, 0 deletions
src/THcShower.h
with
37 additions
and
35 deletions
examples/hodtest_mkj.C
+
2
−
1
View file @
1ee8677d
...
@@ -7,7 +7,8 @@ void hodtest_mkj(Int_t RunNumber=50017, Int_t MaxEventToReplay=5000) {
...
@@ -7,7 +7,8 @@ void hodtest_mkj(Int_t RunNumber=50017, Int_t MaxEventToReplay=5000) {
if
(
RunNumber
==
50017
)
{
if
(
RunNumber
==
50017
)
{
char
*
RunFileNamePattern
=
"daq04_%d.log.0"
;
char
*
RunFileNamePattern
=
"daq04_%d.log.0"
;
}
else
{
}
else
{
char
*
RunFileNamePattern
=
"/cache/mss/hallc/daq04/raw/daq04_%d.log.0"
;
// char* RunFileNamePattern="/cache/mss/hallc/daq04/raw/daq04_%d.log.0";
char
*
RunFileNamePattern
=
"/scratch/tadevosn/daq04_%d.log.0"
;
}
}
gHcParms
->
Define
(
"gen_run_number"
,
"Run Number"
,
RunNumber
);
gHcParms
->
Define
(
"gen_run_number"
,
"Run Number"
,
RunNumber
);
gHcParms
->
AddString
(
"g_ctp_database_filename"
,
"DBASE/test.database"
);
gHcParms
->
AddString
(
"g_ctp_database_filename"
,
"DBASE/test.database"
);
...
...
This diff is collapsed.
Click to expand it.
src/THcShower.cxx
+
33
−
34
View file @
1ee8677d
...
@@ -161,6 +161,7 @@ Int_t THcShower::ReadDatabase( const TDatime& date )
...
@@ -161,6 +161,7 @@ Int_t THcShower::ReadDatabase( const TDatime& date )
{
"cal_num_neg_columns"
,
&
fNegCols
,
kInt
},
{
"cal_num_neg_columns"
,
&
fNegCols
,
kInt
},
{
"cal_slop"
,
&
fSlop
,
kDouble
},
{
"cal_slop"
,
&
fSlop
,
kDouble
},
{
"cal_fv_test"
,
&
fvTest
,
kDouble
},
{
"cal_fv_test"
,
&
fvTest
,
kDouble
},
{
"dbg_clusters_cal"
,
&
fdbg_clusters_cal
,
kInt
},
{
0
}
{
0
}
};
};
gHcParms
->
LoadParmValues
((
DBRequest
*
)
&
list
,
prefix
);
gHcParms
->
LoadParmValues
((
DBRequest
*
)
&
list
,
prefix
);
...
@@ -169,6 +170,7 @@ Int_t THcShower::ReadDatabase( const TDatime& date )
...
@@ -169,6 +170,7 @@ Int_t THcShower::ReadDatabase( const TDatime& date )
cout
<<
"Number of neg. columns = "
<<
fNegCols
<<
endl
;
cout
<<
"Number of neg. columns = "
<<
fNegCols
<<
endl
;
cout
<<
"Slop parameter = "
<<
fSlop
<<
endl
;
cout
<<
"Slop parameter = "
<<
fSlop
<<
endl
;
cout
<<
"Fiducial volum test flag = "
<<
fvTest
<<
endl
;
cout
<<
"Fiducial volum test flag = "
<<
fvTest
<<
endl
;
cout
<<
"Cluster debug flag = "
<<
fdbg_clusters_cal
<<
endl
;
BlockThick
=
new
Double_t
[
fNLayers
];
BlockThick
=
new
Double_t
[
fNLayers
];
fNBlocks
=
new
Int_t
[
fNLayers
];
fNBlocks
=
new
Int_t
[
fNLayers
];
...
@@ -524,6 +526,7 @@ Int_t THcShower::CoarseProcess( TClonesArray& ) //tracks
...
@@ -524,6 +526,7 @@ Int_t THcShower::CoarseProcess( TClonesArray& ) //tracks
//
//
// static const Double_t sqrt2 = TMath::Sqrt(2.);
// static const Double_t sqrt2 = TMath::Sqrt(2.);
if
(
fdbg_clusters_cal
)
cout
<<
"THcShower::CoarseProcess called ---------------------------"
<<
endl
;
cout
<<
"THcShower::CoarseProcess called ---------------------------"
<<
endl
;
// ApplyCorrections();
// ApplyCorrections();
...
@@ -573,37 +576,43 @@ Int_t THcShower::CoarseProcess( TClonesArray& ) //tracks
...
@@ -573,37 +576,43 @@ Int_t THcShower::CoarseProcess( TClonesArray& ) //tracks
//Print out hits before clustering.
//Print out hits before clustering.
//
//
fNhits
=
HitList
.
size
();
fNhits
=
HitList
.
size
();
cout
<<
"Total hits: "
<<
fNhits
<<
endl
;
for
(
UInt_t
i
=
0
;
i
!=
fNhits
;
i
++
)
{
if
(
fdbg_clusters_cal
)
{
cout
<<
"unclustered hit "
<<
i
<<
": "
;
cout
<<
"Total hits: "
<<
fNhits
<<
endl
;
(
*
(
HitList
.
begin
()
+
i
))
->
show
();
for
(
UInt_t
i
=
0
;
i
!=
fNhits
;
i
++
)
{
cout
<<
"unclustered hit "
<<
i
<<
": "
;
(
*
(
HitList
.
begin
()
+
i
))
->
show
();
}
}
}
THcShowerClusterList
*
ClusterList
=
new
THcShowerClusterList
;
THcShowerClusterList
*
ClusterList
=
new
THcShowerClusterList
;
ClusterList
->
ClusterHits
(
HitList
);
ClusterList
->
ClusterHits
(
HitList
);
fNclust
=
(
*
ClusterList
).
NbClusters
();
//Print out the cluster list.
//Print out the cluster list.
//
//
fNclust
=
(
*
ClusterList
).
NbClusters
();
if
(
fdbg_clusters_cal
)
{
cout
<<
"Cluster_list size: "
<<
fNclust
<<
endl
;
cout
<<
"Cluster_list size: "
<<
fNclust
<<
endl
;
for
(
UInt_t
i
=
0
;
i
!=
fNclust
;
i
++
)
{
for
(
UInt_t
i
=
0
;
i
!=
fNclust
;
i
++
)
{
THcShowerCluster
*
cluster
=
(
*
ClusterList
).
ListedCluster
(
i
);
THcShowerCluster
*
cluster
=
(
*
ClusterList
).
ListedCluster
(
i
);
cout
<<
"Cluster #"
<<
i
cout
<<
"Cluster #"
<<
i
<<
": E="
<<
(
*
cluster
).
clE
()
<<
": E="
<<
(
*
cluster
).
clE
()
<<
" Epr="
<<
(
*
cluster
).
clEpr
()
<<
" Epr="
<<
(
*
cluster
).
clEpr
()
<<
" X="
<<
(
*
cluster
).
clX
()
<<
" X="
<<
(
*
cluster
).
clX
()
<<
" Z="
<<
(
*
cluster
).
clZ
()
<<
" Z="
<<
(
*
cluster
).
clZ
()
<<
" size="
<<
(
*
cluster
).
clSize
()
<<
" size="
<<
(
*
cluster
).
clSize
()
<<
endl
;
<<
endl
;
for
(
UInt_t
j
=
0
;
j
!=
(
*
cluster
).
clSize
();
j
++
)
{
THcShowerHit
*
hit
=
(
*
cluster
).
ClusteredHit
(
j
);
cout
<<
" hit #"
<<
j
<<
": "
;
(
*
hit
).
show
();
}
for
(
UInt_t
j
=
0
;
j
!=
(
*
cluster
).
clSize
();
j
++
)
{
THcShowerHit
*
hit
=
(
*
cluster
).
ClusteredHit
(
j
);
cout
<<
" hit #"
<<
j
<<
": "
;
(
*
hit
).
show
();
}
}
}
}
...
@@ -612,9 +621,6 @@ Int_t THcShower::CoarseProcess( TClonesArray& ) //tracks
...
@@ -612,9 +621,6 @@ Int_t THcShower::CoarseProcess( TClonesArray& ) //tracks
if
(
fNclust
!=
0
)
{
if
(
fNclust
!=
0
)
{
// THcShowerCluster* MaxCluster;
// for (UInt_t i=0; i!=fNclust; i++) {
THcShowerCluster
*
MaxCluster
=
(
*
ClusterList
).
ListedCluster
(
0
);
THcShowerCluster
*
MaxCluster
=
(
*
ClusterList
).
ListedCluster
(
0
);
fE
=
(
*
MaxCluster
).
clE
();
fE
=
(
*
MaxCluster
).
clE
();
...
@@ -636,19 +642,12 @@ Int_t THcShower::CoarseProcess( TClonesArray& ) //tracks
...
@@ -636,19 +642,12 @@ Int_t THcShower::CoarseProcess( TClonesArray& ) //tracks
fX
=
(
*
MaxCluster
).
clX
();
fX
=
(
*
MaxCluster
).
clX
();
}
}
cout
<<
fEpr
<<
" "
<<
fE
<<
" "
<<
fX
<<
" PrSh"
<<
endl
;
if
(
fdbg_clusters_cal
)
cout
<<
fEpr
<<
" "
<<
fE
<<
" "
<<
fX
<<
" PrSh"
<<
endl
;
/*
cout << "Cluster #" << i
if
(
fdbg_clusters_cal
)
<<": E=" << (*cluster).clE()
<< " Epr=" << (*cluster).clEpr()
<< " X=" << (*cluster).clX()
<< " Z=" << (*cluster).clZ()
<< " size=" << (*cluster).clSize()
<< endl;
*/
cout
<<
"THcShower::CoarseProcess return ---------------------------"
<<
endl
;
cout
<<
"THcShower::CoarseProcess return ---------------------------"
<<
endl
;
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/THcShower.h
+
2
−
0
View file @
1ee8677d
...
@@ -110,6 +110,8 @@ public:
...
@@ -110,6 +110,8 @@ public:
Double_t
fSlop
;
// Track to cluster vertical slop distance.
Double_t
fSlop
;
// Track to cluster vertical slop distance.
Int_t
fvTest
;
// fiducial volume test flag for tracking
Int_t
fvTest
;
// fiducial volume test flag for tracking
Int_t
fdbg_clusters_cal
;
// Shower debug flag
THcShowerPlane
**
fPlanes
;
// [fNLayers] Shower Plane objects
THcShowerPlane
**
fPlanes
;
// [fNLayers] Shower Plane objects
TClonesArray
*
fTrackProj
;
// projection of track onto plane
TClonesArray
*
fTrackProj
;
// projection of track onto plane
...
...
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