This repository has been archived by the owner on May 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added event header data structure and MC.jaon
- Loading branch information
1 parent
785b6b3
commit c8607c6
Showing
2 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
common-tools/clas-reco/src/main/java/org/jlab/clas/detector/DetectorHeader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package org.jlab.clas.detector; | ||
|
||
/** | ||
* | ||
* @author devita | ||
*/ | ||
public class DetectorHeader { | ||
|
||
private int run = 0; | ||
private int event = 0; | ||
private int trigger = 0; | ||
private double rfTime = 0.0; | ||
private double startTime = 0.0; | ||
|
||
public DetectorHeader() { | ||
} | ||
|
||
public int getEvent() { | ||
return event; | ||
} | ||
|
||
public double getRfTime(){ | ||
return rfTime; | ||
} | ||
|
||
public int getRun() { | ||
return run; | ||
} | ||
|
||
public double getStartTime(){ | ||
return this.startTime; | ||
} | ||
|
||
public int getTrigger() { | ||
return trigger; | ||
} | ||
|
||
public void setEvent(int event) { | ||
this.event = event; | ||
} | ||
|
||
public void setRfTime(double rf){ | ||
this.rfTime = rf; | ||
} | ||
|
||
public void setRun(int run) { | ||
this.run = run; | ||
} | ||
|
||
public void setStartTime(double starttime){ | ||
this.startTime = starttime; | ||
} | ||
|
||
public void setTrigger(int trigger) { | ||
this.trigger = trigger; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[ | ||
{ | ||
"bank": "MC::Event", | ||
"group": 41, | ||
"info": "Head bank for the generated event", | ||
"items": [ | ||
{"name":"npart", "id":1, "type":"int16", "info":"number of particles in eth event"}, | ||
{"name":"btype", "id":2, "type":"int16", "info":"Beam type"}, | ||
{"name":"ebeam", "id":3, "type":"float", "info":"Beam energy"}, | ||
{"name":"pbeam", "id":4, "type":"float", "info":"Beam polarization"}, | ||
{"name":"atarget", "id":5, "type":"int16", "info":"Mass number of the target"}, | ||
{"name":"ztarget", "id":6, "type":"int16", "info":"Atomic number oif the target"}, | ||
{"name":"ptargetm", "id":7, "type":"float", "info":"Target polarization"}, | ||
{"name":"te", "id":8, "type":"float", "info":"Transferred energy"}, | ||
{"name":"tm", "id":9, "type":"float", "info":"Transferred momentum squared"}, | ||
{"name":"weight", "id":10, "type":"float", "info":"Event weight"} | ||
] | ||
}, | ||
{ | ||
"bank": "MC::Particle", | ||
"group": 42, | ||
"info": "Generated Particle information", | ||
"items": [ | ||
{"name":"status", "id":1, "type":"int8", "info":"particle status"}, | ||
{"name":"pid", "id":2, "type":"int32", "info":"particle id in LUND conventions"}, | ||
{"name":"parent", "id":3, "type":"int8", "info":"index of the parent"}, | ||
{"name":"daughts", "id":4, "type":"int8", "info":"index of the first daughter"}, | ||
{"name":"daughtl", "id":5, "type":"int8", "info":"index of the last daughter"}, | ||
{"name":"px", "id":6, "type":"float", "info":"x component of the momentum"}, | ||
{"name":"py", "id":7, "type":"float", "info":"y component of the momentum"}, | ||
{"name":"pz", "id":8, "type":"float", "info":"z component of the momentum"}, | ||
{"name":"vx", "id":9, "type":"float", "info":"x component of the vertex"}, | ||
{"name":"vy", "id":10, "type":"float", "info":"y component of the vertex"}, | ||
{"name":"vz", "id":11, "type":"float", "info":"z component of the vertex"}, | ||
{"name":"mass", "id":12, "type":"float", "info":"mass of the particle"}, | ||
{"name":"ltime", "id":13, "type":"float", "info":"particle lifetime"} | ||
] | ||
} | ||
] |