forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_clus_emcal.C
More file actions
24 lines (19 loc) · 839 Bytes
/
Copy pathrun_clus_emcal.C
File metadata and controls
24 lines (19 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <fairlogger/Logger.h>
#include "TStopwatch.h"
#include "EMCALReconstruction/ClusterizerParameters.h"
#include "EMCALReconstruction/ClusterizerTask.h"
void run_clus_emcal(std::string outputfile = "EMCALClusters.root", std::string inputfile = "Data.root")
{
// Initialize logger
FairLogger* logger = FairLogger::GetLogger();
logger->SetLogVerbosityLevel("LOW");
logger->SetLogScreenLevel("INFO");
TStopwatch timer;
//o2::base::GeometryManager::loadGeometry(); // needed provisionary, only to write full clusters
// Setup clusterizer
o2::emcal::ClusterizerParameters parameters(10000, 0, 10000, true, 0.03, 0.1, 0.05);
o2::emcal::ClusterizerTask<o2::emcal::Digit>* clus = new o2::emcal::ClusterizerTask<o2::emcal::Digit>(¶meters);
clus->process(inputfile, outputfile);
timer.Stop();
timer.Print();
}