Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
EventMultiplicityZVertexCut.cxx
1/*
2 * EventMultiplicityVertexCut.cxx
3 *
4 * Created on: 29 paź 2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "EventMultiplicityZVertexCut.h"
10
11#include "Event.h"
12
13namespace Hal {
14
15 EventMultiplicityZVertexCut::EventMultiplicityZVertexCut() : EventCut(2) {
16 SetUnitName("Multiplicity [N]", 0);
17 SetUnitName("V_{z} [cm]", 1);
18 }
19
20 Bool_t EventMultiplicityZVertexCut::Pass(Event* event) {
21 SetValue(event->GetMutliplicity(), 0);
22 SetValue(event->GetVertex()->Z(), 1);
23 return Validate();
24 }
25
26 EventMultiplicityZVertexCut::~EventMultiplicityZVertexCut() {}
27
28} /* namespace Hal */
Int_t GetMutliplicity() const
Definition Event.h:246
TLorentzVector * GetVertex() const
Definition Event.h:261