forked from marcelkunze/trackml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrainer.h
executable file
·27 lines (20 loc) · 919 Bytes
/
Trainer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _TRAINER_H_
#define _TRAINER_H_
// Neural Network based training
// M.Kunze, Heidelberg University, 2018
#include "Tracker.h"
class Trainer : public Tracker {
public:
Trainer(int n=21001,const char *datapath=DATAPATH,const char *workpath=WORKPATH) : Tracker(n,datapath,workpath) {};
~Trainer() {};
void generateTrainingData(const char *base_path,int filenum);
void transform(Particle &particle, std::vector<point> &points);
std::vector<triple> makeTrainPairs(int ir, Graph<long long> &g,TNtuple &nt);
void makeTrainPairsGraph(int ir,Graph<long long> &g,TNtuple &nt);
void makeTrain3(int ir,std::vector<triple> triples,TNtuple &nt);
void makeTrainTriples(Graph<long long> &g,TNtuple &nt);
void makeTrainTriplesGraph(Graph<long long> &g,TNtuple &nt);
long addHits(int ir,std::vector<triple> &triples,int ai,int bi,Graph<long long> &g);
private:
};
#endif