10#include "EventImpactParameterCut.h"
13#include "DataFormatManager.h"
17 EventImpactParameterCut::EventImpactParameterCut() : EventMcCut(1) { SetUnitName(
"Impact Parameter [fm]"); }
19 Bool_t EventImpactParameterCut::Pass(
Event* event) {
20 SetValue(((
McEvent*) event)->GetImpactParameter());
24 EventImpactParameterCut::~EventImpactParameterCut() {}
26 EventImpactCentralityCut::EventImpactCentralityCut() : EventMcCut(1), fBMax(-1), fAlpha(0) {
SetUnitName(
"Centrality [%]"); }
35 Double_t EventImpactCentralityCut::ImpactToCentrality(
const Double_t impact) {
return impact * impact * fAlpha; }
40 if (!ev->InheritsFrom(
"Hal::McEvent")) {
return kFALSE; }
48 fAlpha = 100.0 / (fBMax * fBMax);
53 EventImpactCentralityCut::~EventImpactCentralityCut() {}
static void PrintInfo(TString text, Hal::EInfo status)
virtual Bool_t Init(Int_t=0)
void SetValue(Double_t val, Int_t i=0)
void SetUnitName(TString name, Int_t i=0)
void SetBMax(Double_t bmax)
Bool_t Init(Int_t task_id)
virtual Bool_t Pass(Event *event)