#include <vDriftHistos.h>
Public Member Functions | |
void | Fill (float pos, float localAngle) |
h2DSegm (std::string name_) | |
h2DSegm (TString name_, TFile *file) | |
void | Write () |
~h2DSegm () | |
Public Attributes | |
TH1F * | h2DSegmAngleInCham |
TH1F * | h2DSegmCosAngleInCham |
TH1F * | h2DSegmPosInCham |
TString | name |
Definition at line 73 of file vDriftHistos.h.
h2DSegm::h2DSegm | ( | std::string | name_ | ) | [inline] |
Definition at line 75 of file vDriftHistos.h.
References h2DSegmAngleInCham, h2DSegmCosAngleInCham, h2DSegmPosInCham, and name.
{ TString N = name_.c_str(); name=name_.c_str(); h2DSegmPosInCham = new TH1F(N+"_h2DSegmPosInCham", "2D Segment position (cm) in Chamber RF", 200, -200, 200); h2DSegmAngleInCham = new TH1F(N+"_h2DSegmAngleInCham", "2D Segment angle (rad) in Chamber RF", 200, -2, 2); h2DSegmCosAngleInCham = new TH1F(N+"_h2DSegmCosAngleInCham", "2D Segment cos(angle) in Chamber RF", 200, -2, 2); }
h2DSegm::h2DSegm | ( | TString | name_, |
TFile * | file | ||
) | [inline] |
Definition at line 85 of file vDriftHistos.h.
References h2DSegmAngleInCham, h2DSegmCosAngleInCham, h2DSegmPosInCham, and name.
{ name=name_; h2DSegmPosInCham = (TH1F *) file->Get(name+"_h2DSegmPosInCham"); h2DSegmAngleInCham = (TH1F *) file->Get(name+"_h2DSegmAngleInCham"); h2DSegmCosAngleInCham = (TH1F *) file->Get(name+"_h2DSegmCosAngleInCham"); }
h2DSegm::~h2DSegm | ( | ) | [inline] |
Definition at line 92 of file vDriftHistos.h.
References h2DSegmAngleInCham, h2DSegmCosAngleInCham, and h2DSegmPosInCham.
{ delete h2DSegmPosInCham; delete h2DSegmAngleInCham; delete h2DSegmCosAngleInCham; }
void h2DSegm::Fill | ( | float | pos, |
float | localAngle | ||
) | [inline] |
Definition at line 97 of file vDriftHistos.h.
References funct::cos(), h2DSegmAngleInCham, h2DSegmCosAngleInCham, and h2DSegmPosInCham.
Referenced by DTVDriftCalibration::analyze().
{ h2DSegmPosInCham->Fill(pos); h2DSegmAngleInCham->Fill(atan(localAngle)); h2DSegmCosAngleInCham->Fill(cos(atan(localAngle))); }
void h2DSegm::Write | ( | ) | [inline] |
Definition at line 103 of file vDriftHistos.h.
References h2DSegmAngleInCham, h2DSegmCosAngleInCham, and h2DSegmPosInCham.
Referenced by DTVDriftCalibration::endJob().
{ h2DSegmPosInCham->Write(); h2DSegmAngleInCham->Write(); h2DSegmCosAngleInCham->Write(); }
Definition at line 111 of file vDriftHistos.h.
Referenced by Fill(), h2DSegm(), Write(), and ~h2DSegm().
Definition at line 112 of file vDriftHistos.h.
Referenced by Fill(), h2DSegm(), Write(), and ~h2DSegm().
Definition at line 110 of file vDriftHistos.h.
Referenced by Fill(), h2DSegm(), Write(), and ~h2DSegm().
TString h2DSegm::name |
Definition at line 114 of file vDriftHistos.h.
Referenced by h2DSegm().