NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
NcStokes.h
Go to the documentation of this file.
1#ifndef NcStokes_h
2#define NcStokes_h
3
4// Copyright(c) 2021 NCFS/IIHE, All Rights Reserved.
5// See cxx source for full Copyright notice.
6
7#include "TString.h"
8#include "TMath.h"
9
11
13{
14 public:
15 NcStokes(); // Default constructor
16 virtual ~NcStokes(); // Default destructor
17 NcStokes(const NcStokes& q); // Copy constructor
18 void SetStokesParameters(Double_t I,Double_t Q,Double_t U,Double_t V); // Set the values of the Stokes parameters
19 void SetEllipseParameters(Double_t a,Double_t b,Double_t theta,TString u,Int_t h,Double_t p=1); // Set the parameters of the polarisation ellipse
20 void SetJonesVector(Double_t A1,Double_t A2,Double_t phi,TString u,Double_t p=1); // Set the Jones vector (E1,E2) with phase difference phi
21 Double_t GetParameter(TString name,TString u="rad"); // Provide the value of the parameter with the specified name
22 void Data(TString u="rad"); // Provide all polarisation related information
23
24 protected:
25 Double_t fI; // Stokes parameter I (also called S0)
26 Double_t fQ; // Stokes parameter Q (also called S1)
27 Double_t fU; // Stokes parameter U (also called S2)
28 Double_t fV; // Stokes parameter V (also called S3)
29
30 ClassDef(NcStokes,1) // Treatment of Stokes parameters for EM polarisation studies
31};
32#endif
void SetStokesParameters(Double_t I, Double_t Q, Double_t U, Double_t V)
Definition NcStokes.cxx:193
Double_t GetParameter(TString name, TString u="rad")
Definition NcStokes.cxx:298
void SetEllipseParameters(Double_t a, Double_t b, Double_t theta, TString u, Int_t h, Double_t p=1)
Definition NcStokes.cxx:215
Double_t fV
Definition NcStokes.h:28
Double_t fI
Definition NcStokes.h:25
Double_t fU
Definition NcStokes.h:27
void Data(TString u="rad")
Definition NcStokes.cxx:387
virtual ~NcStokes()
Definition NcStokes.cxx:170
void SetJonesVector(Double_t A1, Double_t A2, Double_t phi, TString u, Double_t p=1)
Definition NcStokes.cxx:261
Double_t fQ
Definition NcStokes.h:26