NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
IceChi2.h
Go to the documentation of this file.
1#ifndef IceChi2_h
2#define IceChi2_h
3
4// Copyright(c) 2003, IceCube Experiment at the South Pole, All rights reserved.
5// See cxx source for full Copyright notice.
6
7#include "TROOT.h"
8#include "TTask.h"
9#include "TString.h"
10#include "TObjString.h"
11#include "TFitter.h"
12#include "TMath.h"
13#include "Math/SpecFunc.h"
14
15#include "NcJob.h"
16#include "NcSample.h"
17#include "IceEvent.h"
18#include "IceGOM.h"
19
21
22class IceChi2 : public TTask
23{
24 public :
25 IceChi2(const char* name="",const char* title=""); // Constructor
26 virtual ~IceChi2(); // Destructor
27 virtual void Exec(Option_t* opt); // Perform the fitting procedure
28 void SetPrintLevel(Int_t level); // Set the fitter (Minuit) printlevel
29 void UseTracks(TString classname,Int_t n=-1); // Specify first guess tracks to be used
30 void SelectHits(Int_t mode=1); // Specify which hits to be used
31 void SetVgroupUsage(Int_t flag); // (De)activate usage of distinct phase and group velocities
32 void SetTrackName(TString s); // Set (alternative) name for the produced tracks
33 void SetCharge(Float_t charge);// Set user defined charge for the produced tracks
34 void SetPenalty(Float_t val); // Set psi penalty value (dB) for extreme distance and/or time values
35 Double_t GetPsi(NcTrack* t); // Provide Bayesian psi value for a track w.r.t. CPandel PDF
36 void FitFCN(Int_t&,Double_t*,Double_t&,Double_t*,Int_t); // The minimisation FCN
37
38 protected :
39 Int_t fFirst; // Flag to denote first invokation of the processor
40 Int_t fPrint; // Flag to denote the fitter (Minuit) printlevel
41 Int_t fSelhits; // Flag to denote which hits to be used
42 Int_t fVgroup; // Flag to indicate usage of distinct phase and group velocities
43 IceEvent* fEvt; // Pointer to the current event structure
44 TObjArray* fUseNames; // The first guess classnames to be used
45 TArrayI* fUseNtk; // The max. numbers of the various first guess tracks to be used
46 TObjArray* fHits; // The various hits to be used in the fitting process
47 TFitter* fFitter; // Pointer to the minimisation processor
48 TString fTrackname; // The name identifier for the produced tracks
49 Float_t fCharge; // User defined charge of the produced tracks
50 Float_t fPenalty; // User defined psi penalty value (dB) for extreme distance and/or time values
51 NcTrack* fTkfit; // Pointer to the produced fitted track
52 NcSignal* fFitstats; // The fit details of the produced fitted track
53 NcSample fPsistats; // Statistics of the Bayesian psi value for the best fitted track
54
55 ClassDef(IceChi2,4) // TTask derived class to perform Chi-squared track fitting
56};
57#endif
TObjArray * fHits
Definition IceChi2.h:46
Double_t GetPsi(NcTrack *t)
Definition IceChi2.cxx:765
Int_t fSelhits
Definition IceChi2.h:41
Float_t fPenalty
Definition IceChi2.h:50
void SetVgroupUsage(Int_t flag)
Definition IceChi2.cxx:634
void FitFCN(Int_t &, Double_t *, Double_t &, Double_t *, Int_t)
Definition IceChi2.cxx:695
TString fTrackname
Definition IceChi2.h:48
TFitter * fFitter
Definition IceChi2.h:47
IceChi2(const char *name="", const char *title="")
Definition IceChi2.cxx:168
Int_t fVgroup
Definition IceChi2.h:42
NcSignal * fFitstats
Definition IceChi2.h:52
NcSample fPsistats
Definition IceChi2.h:53
void SetTrackName(TString s)
Definition IceChi2.cxx:651
Int_t fPrint
Definition IceChi2.h:40
void SetPenalty(Float_t val)
Definition IceChi2.cxx:680
virtual ~IceChi2()
Definition IceChi2.cxx:195
void UseTracks(TString classname, Int_t n=-1)
Definition IceChi2.cxx:560
void SetCharge(Float_t charge)
Definition IceChi2.cxx:666
virtual void Exec(Option_t *opt)
Definition IceChi2.cxx:235
void SetPrintLevel(Int_t level)
Definition IceChi2.cxx:544
IceEvent * fEvt
Definition IceChi2.h:43
Int_t fFirst
Definition IceChi2.h:39
NcTrack * fTkfit
Definition IceChi2.h:51
void SelectHits(Int_t mode=1)
Definition IceChi2.cxx:616
Float_t fCharge
Definition IceChi2.h:49
TArrayI * fUseNtk
Definition IceChi2.h:45
TObjArray * fUseNames
Definition IceChi2.h:44
Handling of IceCube event data.
Definition IceEvent.h:20
Sampling and statistics tools for various multi-dimensional data samples.
Definition NcSample.h:28
Generic handling of (extrapolated) detector signals.
Definition NcSignal.h:23
Handling of the attributes of a reconstructed particle track.
Definition NcTrack.h:19