10#include <framework/core/Module.h>
11#include <framework/datastore/StoreArray.h>
12#include <mdst/dataobjects/ECLCluster.h>
13#include <mdst/dataobjects/Track.h>
14#include <top/dataobjects/TOPBackSplashFitResult.h>
15#include <top/dataobjects/TOPDigit.h>
18#include <RooRealVar.h>
19#include <RooDataSet.h>
20#include <RooFitResult.h>
21#include <RooWorkspace.h>
53 void event()
override;
90 void makePlot(
double,
double,
int, RooAbsPdf*, RooRealVar*, RooDataSet, RooFitResult*,
int);
Accessor to arrays stored in the data store.
Class to store the quantities determined in the TOPBackSplashTiming module and relate to correspondin...
TOPBackSplashTimingModule()
Constructor.
void makePlot(double, double, int, RooAbsPdf *, RooRealVar *, RooDataSet, RooFitResult *, int)
Creates RooPlots of fitted TOPtiming and save as png.
void initialize() override
Initialize the Module.
bool m_saveMoreFitParams
saves additional fit parameters (e.g.
void event() override
Event processor.
std::array< std::array< double, 11 >, 15 > m_fitparams
container of 11 TOP timing fit params per cosTheta
int m_minNphotons
minimum no.
bool m_saveFits
plot and save fits of TOP timing
bool m_includeSlotsWithTracks
whether to fit neutral cluster TOP signal in slots with bkg tracks
void prepareFitModels()
Constructs RooFit objects for fitting.
std::vector< RooWorkspace > m_wss
container of RooWorkSpaces, containing fit funcs per cosTheta
int getModuleFromPhi(double)
Maps azimuthal angle to corresponding TOP slot no.
StoreArray< Track > m_tracks
Store Array of Track.
TOPBackSplashFitResult * fitTimingDigits(int, std::vector< const TOPDigit * > &, double, double, int)
Perform fitting of TOP timing in nearby slot.
StoreArray< TOPBackSplashFitResult > m_fitresult
StoreArray of TOPBackSplashFitResult.
StoreArray< ECLCluster > m_eclClusters
StoreArray of ECLCluster.
double m_minClusterNHits
minimum no.
StoreArray< TOPDigit > m_digits
StoreArray of TOPDigit.
double m_minClusterE
minimum energy of ECL clusters to consider [GeV]
Abstract base class for different kinds of events.