Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FastReco
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
dune
FastReco
Commits
a4dd0069
Commit
a4dd0069
authored
2 years ago
by
Gianfranco Ingratta
Browse files
Options
Downloads
Patches
Plain Diff
creating a tEvent tree beside the anaevt tree (restored since last commit)
parent
55a7a62b
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
#1 harmonize output format with agreed one
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+0
-1
0 additions, 1 deletion
CMakeLists.txt
README.md
+4
-2
4 additions, 2 deletions
README.md
smearSAND.C
+3
-2
3 additions, 2 deletions
smearSAND.C
with
7 additions
and
5 deletions
CMakeLists.txt
+
0
−
1
View file @
a4dd0069
...
...
@@ -12,7 +12,6 @@ find_package(ROOT REQUIRED COMPONENTS Geom EG)
#find_package(SandReco)
include_directories
(
/data/thesis/sand-reco/include
)
ROOT_GENERATE_DICTIONARY
(
G__Struct struct.h LINKDEF Linkdef.h
)
add_library
(
Struct SHARED G__Struct.cxx
)
...
...
This diff is collapsed.
Click to expand it.
README.md
+
4
−
2
View file @
a4dd0069
# how to compile
source compile.sh
# how to build
mkdir build
/cmake -S . -B build
cd build; make; cd ..
# how run
./build/sandSmearGo cc 0 ${EDEPSIM_INPUT} ${FILE_OUTPUT}
...
...
This diff is collapsed.
Click to expand it.
smearSAND.C
+
3
−
2
View file @
a4dd0069
...
...
@@ -293,6 +293,7 @@ void fill1Par(double recoPx, double recoPy, double recoPz, int trackid, double l
fast_reco
::
particle
par
;
int
pdg
=
Event
->
Trajectories
[
trackid
].
PDGCode
;
double
m
=
dbpdg
->
GetParticle
(
pdg
)
->
Mass
()
*
1000
;
// MeV
double
q
=
dbpdg
->
GetParticle
(
pdg
)
->
Charge
()
/
3
;
par
.
pdg
=
pdg
;
par
.
recoP4
[
0
]
=
recoPx
;
par
.
recoP4
[
1
]
=
recoPy
;
...
...
@@ -313,9 +314,9 @@ void fill1Par(double recoPx, double recoPy, double recoPz, int trackid, double l
particle
p
;
//p.primary =
p
.
pdg
=
pdg
;
//
p.tid = trackid;
p
.
tid
=
trackid
;
p
.
parent_tid
=
findTopParent
(
trackid
);
//
p.charge =
p
.
charge
=
q
;
p
.
mass
=
m
;
p
.
pxtrue
=
Event
->
Trajectories
[
trackid
].
InitialMomentum
.
X
();
p
.
pytrue
=
Event
->
Trajectories
[
trackid
].
InitialMomentum
.
Y
();
...
...
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