Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TwoTrackSailorCowboyCut.h
1/*
2 * TwoTrackSailorCowboyCut.h
3 *
4 * Created on: 04-05-2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HALTWOTRACKSAILORCOWBOYCUT_H_
10#define HALTWOTRACKSAILORCOWBOYCUT_H_
11
12#include "Helix.h"
13#include "TwoTrackCut.h"
14
15namespace Hal {
17 Double_t fThreshold;
18 HelixZ fHz1, fHz2;
19
20 protected:
21 Int_t Sailor() const { return 1; };
22 Int_t Cowboy() const { return -1; };
23 Double_t NormalizeAngle(const TVector3 pos, Double_t x, Double_t y) const;
24 Bool_t AreBetween(Double_t phi, Double_t sign) const;
25 Bool_t Check();
26
27 public:
30 TwoTrackSailorCowboyCut& operator=(const TwoTrackSailorCowboyCut& other);
31 virtual Bool_t Pass(TwoTrack* pair);
36 void SetThreshold(Double_t r_min) { fThreshold = r_min; };
37 void Cowboys() { SetMinAndMax(-1); };
38 void Sailors() { SetMinAndMax(1); }
39 Bool_t Init(Int_t formatId);
40 virtual ~TwoTrackSailorCowboyCut();
41 virtual Package* Report() const;
42 ClassDef(TwoTrackSailorCowboyCut, 1)
43 };
44} // namespace Hal
45#endif /* HALTWOTRACKSAILORCOWBOYCUT_H_ */
void SetMinAndMax(Double_t val, Int_t i=0)
Definition Cut.cxx:91
virtual Bool_t Pass(TwoTrack *pair)