Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
V0CandBasicCut.cxx
1/*
2 * V0BasicCut.cxx
3 *
4 * Created on: 26 mar 2020
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "V0CandBasicCut.h"
10#include "DataFormatManager.h"
11#include "Event.h"
12#include "ExpEvent.h"
13#include "McEvent.h"
14#include "V0Candidate.h"
15
16namespace Hal {
17 V0CandBasicCut::V0CandBasicCut() : TwoTrackCut(6) {
18 SetUnitName("DCA1to2 [cm[", DCA1to2());
19 SetUnitName("DCAtoPV [cm]", DCAToPV());
20 SetUnitName("DecLenght [cm]", DecLength());
21 SetUnitName("#alpha [AU]", AlphaArm());
22 SetUnitName("p_{T} [AU]", PtArm());
23 SetUnitName("CosAngle [U]", CosAngle());
24 }
25
26 Bool_t V0CandBasicCut::Pass(TwoTrack* pair) {
27 V0Candidate* cand = static_cast<V0Candidate*>(pair);
28 const V0Track v0 = cand->GetV0Track();
29 SetValue(v0.GetDauDist(), DCA1to2());
30 SetValue(cand->GetDCA().Mag(), DCAToPV());
31 SetValue(v0.GetDecLength(), DecLength());
32 SetValue(v0.GetAlphaArm(), AlphaArm());
33 SetValue(v0.GetPtArm(), PtArm());
34 SetValue(v0.GetCosAngle(), CosAngle());
35 return Validate();
36 }
37
38 V0CandBasicCut::~V0CandBasicCut() {}
39} // namespace Hal
const V0Track & GetV0Track()
Definition V0Candidate.h:37
const TVector3 & GetDCA() const
Definition V0Candidate.h:42
Double_t GetDecLength() const
Definition V0Track.h:103
Double_t GetPtArm() const
Definition V0Track.h:93
Double_t GetAlphaArm() const
Definition V0Track.h:88
Double_t GetDauDist() const
Definition V0Track.h:98
Double_t GetCosAngle() const
Definition V0Track.h:108