Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
detector_benchmarks
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
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
EIC
benchmarks
detector_benchmarks
Commits
38a9a5e6
Commit
38a9a5e6
authored
4 years ago
by
Jihee Kim
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://eicweb.phy.anl.gov/EIC/benchmarks
parents
1efa1a32
3a8d460e
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
.gitlab-ci.yml
+3
-2
3 additions, 2 deletions
.gitlab-ci.yml
calorimeters/simple_checking.cxx
+8
-8
8 additions, 8 deletions
calorimeters/simple_checking.cxx
with
11 additions
and
10 deletions
.gitlab-ci.yml
+
3
−
2
View file @
38a9a5e6
...
...
@@ -63,8 +63,8 @@ zdc_simulation:
tags
:
-
sodium
script
:
-
cp NPDet/src/GenericDetectors/calorimeters/compact/elements.xml ./
-
cp NPDet/src/GenericDetectors/calorimeters/compact/materials.xml ./
-
cp NPDet/src/GenericDetectors/calorimeters/compact/elements.xml ./
.
-
cp NPDet/src/GenericDetectors/calorimeters/compact/materials.xml ./
.
-
bash calorimeters/run_simulation_zdc.sh
cal_test_1_dummy_test2
:
...
...
@@ -120,6 +120,7 @@ zdc_benchmark:
tags
:
-
sodium
script
:
-
ls -lrth sim_output
-
root -b -q calorimeters/simple_checking.cxx+
allow_failure
:
true
...
...
This diff is collapsed.
Click to expand it.
calorimeters/simple_checking.cxx
+
8
−
8
View file @
38a9a5e6
...
...
@@ -29,8 +29,8 @@ R__LOAD_LIBRARY(libDDG4IO.so)
//#include "lcio2/TrackerRawDataData.h"
//#include "lcio2/TrackerRawData.h"
void
simple_checking
(
const
char
*
fname
=
"
./
sim_output/output_zdc_photons.root"
){
void
simple_checking
(
const
char
*
fname
=
"sim_output/output_zdc_photons.root"
){
std
::
cout
<<
"testing 1
\n
"
;
ROOT
::
EnableImplicitMT
();
// Tell ROOT you want to go parallel
//using namespace lcio2;
double
degree
=
TMath
::
Pi
()
/
180.0
;
...
...
@@ -39,7 +39,7 @@ void simple_checking(const char* fname = "./sim_output/output_zdc_photons.root")
t
->
Add
(
fname
);
ROOT
::
RDataFrame
d0
(
*
t
);
//, {"GEMTrackerHintits","MCParticles"});
std
::
cout
<<
"testing 2
\n
"
;
//std::cout << t->GetBranch("GEMTrackerHits")->GetClassName() << std::endl;
//std::vector<dd4hep::sim::Geant4Tracker::Hit*>
...
...
@@ -57,7 +57,7 @@ void simple_checking(const char* fname = "./sim_output/output_zdc_photons.root")
//auto surfMap = surfMan.map( "world" ) ;
auto
nhits
=
[]
(
std
::
vector
<
dd4hep
::
sim
::
Geant4Calorimeter
::
Hit
*>&
hits
){
return
(
int
)
hits
.
size
();
};
//auto hit_position = [&](const std::vector<dd4hep::sim::Geant4Tracker::Hit*>& hits){
std
::
cout
<<
"testing 3
\n
"
;
//for(const auto& h: hits){
// //std::cout << (h->position/10.0) << std::endl;
// //std::cout << cellid_converter.position(h->cellID) << std::endl;
...
...
@@ -105,17 +105,17 @@ void simple_checking(const char* fname = "./sim_output/output_zdc_photons.root")
//.Define("delta",hit_position, {"GEMTrackerHits"})
//.Define("RawTrackerHits", digitize_gem_hits, {"GEMTrackerHits"})
;
std
::
cout
<<
"testing 4
\n
"
;
auto
h0
=
d1
.
Histo1D
(
TH1D
(
"h0"
,
"nhits; "
,
20
,
0
,
20
),
"nhits"
);
auto
n0
=
d1
.
Filter
([](
int
n
){
return
(
n
>
0
);
},{
"nhits"
}).
Count
();
auto
n0
=
d1
.
Filter
([](
int
n
){
return
(
n
>
=
0
);
},{
"nhits"
}).
Count
();
TCanvas
*
c
=
new
TCanvas
();
//d1.Snapshot("digitized_EVENT","test_gem_tracker_digi.root");
h0
->
DrawClone
()
;
std
::
cout
<<
"testing 5
\n
"
;
std
::
cout
<<
*
n0
<<
" events with nonzero hits
\n
"
;
std
::
cout
<<
"testing 6
\n
"
;
if
(
*
n0
<
5
)
{
std
::
quick_exit
(
1
);
}
...
...
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