11#ifndef CENTRALITY_CLUSTERIZER_H
12#define CENTRALITY_CLUSTERIZER_H
14#include "FairLogger.h"
15#include "FairRootManager.h"
28#include <TDirectory.h>
29#include <TStopwatch.h>
30#include <TClonesArray.h>
38 virtual void Exec(Option_t* opt);
40 virtual void OnlineWrite(
const std::unique_ptr<TTree>& resultTree);
43 FairRootManager* fpFairRootMgr =
nullptr;
44 TFile* fPdfFile =
nullptr;
45 std::string fRootFilePath;
48 std::map<int, TH2F*> fPDF;
49 static inline const std::regex fPattern{ R
"(cluster_(\d+))" };
52 void LoadHistograms();
Class for event centrality determination through clusterization.
CentralityClusterizer(const std::string &rootFilePath)
virtual void OnlineWrite(const std::unique_ptr< TTree > &resultTree)
Write task resul to tree.
virtual void Exec(Option_t *opt)
virtual ~CentralityClusterizer()
virtual InitStatus Init()