NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
NcInvmass.h
Go to the documentation of this file.
1#ifndef NcInvmass_h
2#define NcInvmass_h
3// Copyright(c) 1999 NCFS/IIHE, All Rights Reserved.
4// See cxx source for full Copyright notice.
5
6#include <math.h>
7
8#include "TObject.h"
9#include "TObjArray.h"
10
11#include "NcRandom.h"
12#include "NcTrack.h"
13
15
16class NcInvmass : public TObject
17{
18 public:
19 NcInvmass(); // Default constructor
20 ~NcInvmass(); // Destructor
21 void SetStorageMode(Int_t m); // Set storage mode (1=single, 2=multiple)
22 void SetThetaSwitch(Int_t i=1); // Enable (1/0) new theta for comb. bkg. reco.
23 void SetPhiSwitch(Int_t i=1); // Enable (1/0) new phi for comb. bkg. reco.
24 Int_t GetStorageMode() const; // Provide storage mode
25 Int_t GetThetaSwitch() const; // Provide theta switch flag
26 Int_t GetPhiSwitch() const; // Provide phi switch flag
27 TObjArray* Invmass(TObjArray* a1,TObjArray* a2); // Two-particle inv. mass reco.
28 TObjArray* CombBkg(TObjArray* a1,TObjArray* a2); // Two-particle comb. background reco.
29
30 protected:
31 Double_t fPi; // Value of pi
32 Int_t fMode; // Storage mode for signal and bkg. results (2=separate arrays)
33 Int_t fBkg; // Flag to denote comb. background processing
34 NcRandom fRndm; // The random number generator for the comb. bkg. reconstruction
35 Int_t fNewtheta; // Flag to denote enabling of switching theta for comb. bkg. reco.
36 Int_t fNewphi; // Flag to denote enabling of switching phi for comb. bkg. reco.
37 TObjArray* fMinv; // Array with reconstructed invariant mass 'tracks'
38 TObjArray* fMbkg; // Array with reconstructed comb. background 'tracks'
39
40 private:
41 void Combine(TObjArray* a1,TObjArray* a2); // Make two-particle combinations
42
43 ClassDef(NcInvmass,1) // Construction of invariant mass and combinatorial background.
44};
45#endif
TObjArray * CombBkg(TObjArray *a1, TObjArray *a2)
Int_t GetPhiSwitch() const
NcRandom fRndm
Definition NcInvmass.h:34
Int_t fMode
Definition NcInvmass.h:32
Int_t GetStorageMode() const
Int_t fNewtheta
Definition NcInvmass.h:35
Int_t fBkg
Definition NcInvmass.h:33
void SetThetaSwitch(Int_t i=1)
Int_t fNewphi
Definition NcInvmass.h:36
void SetPhiSwitch(Int_t i=1)
TObjArray * Invmass(TObjArray *a1, TObjArray *a2)
TObjArray * fMbkg
Definition NcInvmass.h:38
Double_t fPi
Definition NcInvmass.h:31
TObjArray * fMinv
Definition NcInvmass.h:37
Int_t GetThetaSwitch() const
void Combine(TObjArray *a1, TObjArray *a2)
void SetStorageMode(Int_t m)
Generate universal random numbers and sequences on all common machines.
Definition NcRandom.h:16