Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
4a2a903
djl -- refactor to better take in new algorithms
Jul 9, 2026
e44a6fc
vertex algo matches offline
Jul 9, 2026
7359dbf
djl -- make it EXACTLY like offline
Jul 10, 2026
0224b19
djl -- instructions
Jul 10, 2026
bebb6c1
djl -- clang
Jul 10, 2026
bcfc962
Merge branch 'sPHENIX-Collaboration:master' into calozvertex
danjlis Jul 10, 2026
a1b46f6
djl -- clang tidy
Jul 10, 2026
a5e9c0c
Add CNN calo vertex implementation
nk7252 Jul 11, 2026
9911048
Merge pull request #1 from nk7252/calozvertex-cnn
danjlis Jul 12, 2026
fd711ef
Add CaloVtxAlgoVit method
Jul 13, 2026
9b1f479
Merge pull request #3 from Hanpu-Jiang/vit-algo
danjlis Jul 13, 2026
693f9de
CaloVtxAlgoCNN: define constructor out-of-line for the pImpl member
nk7252 Jul 14, 2026
d333b5c
fix clang-tidy
pinkenburg Jul 14, 2026
7e8b61f
Update CaloVtxAlgoMLP.cc
nk7252 Jul 17, 2026
bf6f30c
Merge pull request #5 from nk7252/calozvertex-cnn
danjlis Aug 13, 2026
18b0172
Merge branch 'sPHENIX-Collaboration:master' into calozvertex
danjlis Aug 13, 2026
08edc80
djl cppcheck
Aug 13, 2026
a65f671
Merge branch 'sPHENIX-Collaboration:master' into calozvertex
danjlis Aug 13, 2026
5b1b0e8
djl - fix uninitiated pointer
Aug 18, 2026
84b0c74
Merge branch 'sPHENIX-Collaboration:master' into calozvertex
danjlis Aug 18, 2026
74484b9
Merge branch 'calozvertex' of github.com:danjlis/coresoftware into ca…
Aug 18, 2026
ee99243
djl -- fix warning
Aug 24, 2026
c99c4d4
Merge branch 'sPHENIX-Collaboration:master' into calozvertex
danjlis Aug 24, 2026
2095188
Update CaloVtxAlgoCNN.cc
nk7252 Aug 25, 2026
c7f0e96
Merge pull request #6 from nk7252/calovtxeval-pr
danjlis Aug 25, 2026
043c7c3
Merge branch 'sPHENIX-Collaboration:master' into calozvertex
danjlis Aug 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions offline/packages/calovtxreco/CaloVtxAlgo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#ifndef CALOVTXALGO_H
#define CALOVTXALGO_H

#include <string>
#include <globalvertex/VertexDefs.h>

class PHCompositeNode;

class CaloVtxAlgo
{
public:
virtual ~CaloVtxAlgo() = default;

// Where set-up occurs:
// Calibrations/ML weights etc
// Basic information from geometry

virtual int Init(PHCompositeNode * /*topNode*/) { return 0; }

// Called once per event. Read whatever input this algorithm needs from
// topNode and fill vtxz [cm]. Return nonzero (e.g.
// Fun4AllReturnCodes::ABORTEVENT) if no vertex could be found.

virtual int CalculateVertex(PHCompositeNode *topNode, float &zvtx) = 0;

// Short identifier used to name this algorithm's output node
// (e.g. "CALOVTXOUT_MLP") and in log/eval output so results from
// different algorithms don't collide and can be compared directly.
virtual std::string Name() const = 0;

virtual VertexDefs::CALOALGO Algo() const = 0;
};

#endif
Loading