Skip to content

Commit

Permalink
Add weights vector to EventHeader and constant for storing them
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jan 22, 2024
1 parent 562d0a0 commit 940cc66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edm4hep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ datatypes:
- int32_t runNumber //run number
- uint64_t timeStamp //time stamp
- float weight // event weight
VectorMembers:
- double weights // event weights in case there are multiple. **NOTE that weights[0] might not be the same as weight!** Event weight names should be stored using the edm4hep::EventWeights name in the file level metadata.


edm4hep::MCParticle:
Expand Down
1 change: 1 addition & 0 deletions include/edm4hep/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
namespace edm4hep {
static constexpr const char* CellIDEncoding = "CellIDEncoding";
static constexpr const char* EventHeaderName = "EventHeader";
static constexpr const char* EventWeights = "EventWeightNames";
} // namespace edm4hep

#endif // EDM4HEP_CONSTANTS_H

0 comments on commit 940cc66

Please sign in to comment.