PandaRoot
PndDrcRecoLookupMap Class Reference

#include <PndDrcRecoLookupMap.h>

Inheritance diagram for PndDrcRecoLookupMap:

Public Member Functions

 PndDrcRecoLookupMap ()
 
 PndDrcRecoLookupMap (Int_t verbose)
 
virtual ~PndDrcRecoLookupMap ()
 
virtual InitStatus Init ()
 
virtual void Exec (Option_t *option)
 
virtual void Finish ()
 
void SetHistoWidth (double wid=0.01)
 
void SetNSigma (double nsig=3.)
 
void SetMagneticField (double mag=0.)
 
void SetOutputFile (TString outName="PndDrcRecoLookupMap_output.root")
 
void SetPlotStyle ()
 
void DrawDetectorLayout ()
 

Detailed Description

PndDrcRecoLookupMap.h

Class for Analysising DRC Cherenkov Photons with lookup tables for CHerenkov photons directions

Definition at line 49 of file PndDrcRecoLookupMap.h.

Constructor & Destructor Documentation

◆ PndDrcRecoLookupMap() [1/2]

PndDrcRecoLookupMap::PndDrcRecoLookupMap ( )

Default constructor

◆ PndDrcRecoLookupMap() [2/2]

PndDrcRecoLookupMap::PndDrcRecoLookupMap ( Int_t  verbose)

Constructor with verbosity

◆ ~PndDrcRecoLookupMap()

virtual PndDrcRecoLookupMap::~PndDrcRecoLookupMap ( )
virtual

Destructor

Member Function Documentation

◆ DrawDetectorLayout()

void PndDrcRecoLookupMap::DrawDetectorLayout ( )
inline

Definition at line 87 of file PndDrcRecoLookupMap.h.

References PndGeoDrc::BBoxNum(), cos(), i, PndGeoDrc::PipehAngle(), and sin().

88  {
89  // drawing of detector layout
90  Double_t theta = (180. - 2 * fGeo->PipehAngle()) / fGeo->BBoxNum() / 180. * 3.1415; //[rad]
91  // std::cout<<"-I- DrawLayout: theta = "<<theta<<std::endl;
92  Double_t rad_out = 102.6; // 104.0; // PD outer radius
93  Double_t rad_in = 49.15; // 50.53; // PD inner radius
94  Double_t rp_out = rad_out / cos(theta);
95  Double_t rp_in = rad_in / cos(theta);
96  Double_t xout[4], yout[4], xin[4], yin[4];
97  for (Int_t i = 0; i < 4; i++) {
98  xout[i] = rp_out * cos(2.0 * (i - 1) * theta);
99  yout[i] = rp_out * sin(2.0 * (i - 1) * theta);
100  xin[i] = rp_in * cos(2.0 * (i - 1) * theta);
101  yin[i] = rp_in * sin(2.0 * (i - 1) * theta);
102  TLine *l1 = new TLine(xout[i], yout[i], xin[i], yin[i]);
103  l1->Draw("same");
104  }
105  TPolyLine *p1 = new TPolyLine(4, xout, yout);
106  p1->SetFillColor(kYellow);
107  p1->Draw("same");
108  TPolyLine *p2 = new TPolyLine(4, xin, yin);
109  p2->SetFillColor(0);
110  p2->Draw("same");
111  //--------------------------
112  }
friend F32vec4 cos(const F32vec4 &a)
Definition: P4_F32vec4.h:119
Double_t BBoxNum()
Definition: PndGeoDrc.h:136
friend F32vec4 sin(const F32vec4 &a)
Definition: P4_F32vec4.h:118
unsigned int i
Definition: P4_F32vec4.h:21
Double_t PipehAngle()
Definition: PndGeoDrc.h:139

◆ Exec()

virtual void PndDrcRecoLookupMap::Exec ( Option_t *  option)
virtual

Executed task

◆ Finish()

virtual void PndDrcRecoLookupMap::Finish ( )
virtual

Finish task

◆ Init()

virtual InitStatus PndDrcRecoLookupMap::Init ( )
virtual

◆ SetHistoWidth()

void PndDrcRecoLookupMap::SetHistoWidth ( double  wid = 0.01)
inline

Definition at line 69 of file PndDrcRecoLookupMap.h.

69 { fWidth = wid; } // 0.01

◆ SetMagneticField()

void PndDrcRecoLookupMap::SetMagneticField ( double  mag = 0.)
inline

Definition at line 71 of file PndDrcRecoLookupMap.h.

71 { fB = mag; } // [Tesla]

◆ SetNSigma()

void PndDrcRecoLookupMap::SetNSigma ( double  nsig = 3.)
inline

Definition at line 70 of file PndDrcRecoLookupMap.h.

70 { fNSigma = nsig; }

◆ SetOutputFile()

void PndDrcRecoLookupMap::SetOutputFile ( TString  outName = "PndDrcRecoLookupMap_output.root")
inline

Definition at line 72 of file PndDrcRecoLookupMap.h.

72 { fOutputName = outName; }

◆ SetPlotStyle()

void PndDrcRecoLookupMap::SetPlotStyle ( )
inline

Definition at line 74 of file PndDrcRecoLookupMap.h.

75  {
76  const Int_t NRGBs = 5;
77  const Int_t NCont = 255;
78 
79  Double_t stops[NRGBs] = {0.00, 0.34, 0.61, 0.84, 1.00};
80  Double_t red[NRGBs] = {0.00, 0.00, 0.87, 1.00, 0.51};
81  Double_t green[NRGBs] = {0.00, 0.81, 1.00, 0.20, 0.00};
82  Double_t blue[NRGBs] = {0.51, 1.00, 0.12, 0.00, 0.00};
83  TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont);
84  gStyle->SetNumberContours(NCont);
85  }

The documentation for this class was generated from the following file: