test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
h2DSegm Class Reference

#include <vDriftHistos.h>

Public Member Functions

void Fill (float pos, float localAngle)
 
 h2DSegm (std::string name_)
 
 h2DSegm (const TString &name_, TFile *file)
 
void Write ()
 
 ~h2DSegm ()
 

Public Attributes

TH1F * h2DSegmAngleInCham
 
TH1F * h2DSegmCosAngleInCham
 
TH1F * h2DSegmPosInCham
 
TString name
 

Detailed Description

Definition at line 73 of file vDriftHistos.h.

Constructor & Destructor Documentation

h2DSegm::h2DSegm ( std::string  name_)
inline

Definition at line 75 of file vDriftHistos.h.

References h2DSegmAngleInCham, h2DSegmCosAngleInCham, h2DSegmPosInCham, N, and name.

75  {
76  TString N = name_.c_str();
77  name=name_.c_str();
78  h2DSegmPosInCham = new TH1F(N+"_h2DSegmPosInCham",
79  "2D Segment position (cm) in Chamber RF", 200, -200, 200);
80  h2DSegmAngleInCham = new TH1F(N+"_h2DSegmAngleInCham",
81  "2D Segment angle (rad) in Chamber RF", 200, -2, 2);
82  h2DSegmCosAngleInCham = new TH1F(N+"_h2DSegmCosAngleInCham",
83  "2D Segment cos(angle) in Chamber RF", 200, -2, 2);
84  }
TH1F * h2DSegmPosInCham
Definition: vDriftHistos.h:110
TString name
Definition: vDriftHistos.h:114
TH1F * h2DSegmAngleInCham
Definition: vDriftHistos.h:111
#define N
Definition: blowfish.cc:9
TH1F * h2DSegmCosAngleInCham
Definition: vDriftHistos.h:112
h2DSegm::h2DSegm ( const TString &  name_,
TFile *  file 
)
inline

Definition at line 85 of file vDriftHistos.h.

References h2DSegmAngleInCham, h2DSegmCosAngleInCham, h2DSegmPosInCham, and name.

85  {
86  name=name_;
87 
88  h2DSegmPosInCham = (TH1F *) file->Get(name+"_h2DSegmPosInCham");
89  h2DSegmAngleInCham = (TH1F *) file->Get(name+"_h2DSegmAngleInCham");
90  h2DSegmCosAngleInCham = (TH1F *) file->Get(name+"_h2DSegmCosAngleInCham");
91  }
TH1F * h2DSegmPosInCham
Definition: vDriftHistos.h:110
TString name
Definition: vDriftHistos.h:114
TH1F * h2DSegmAngleInCham
Definition: vDriftHistos.h:111
TH1F * h2DSegmCosAngleInCham
Definition: vDriftHistos.h:112
h2DSegm::~h2DSegm ( )
inline

Definition at line 92 of file vDriftHistos.h.

References h2DSegmAngleInCham, h2DSegmCosAngleInCham, and h2DSegmPosInCham.

92  {
93  delete h2DSegmPosInCham;
94  delete h2DSegmAngleInCham;
95  delete h2DSegmCosAngleInCham;
96  }
TH1F * h2DSegmPosInCham
Definition: vDriftHistos.h:110
TH1F * h2DSegmAngleInCham
Definition: vDriftHistos.h:111
TH1F * h2DSegmCosAngleInCham
Definition: vDriftHistos.h:112

Member Function Documentation

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().

97  {
98 
99  h2DSegmPosInCham->Fill(pos);
100  h2DSegmAngleInCham->Fill(atan(localAngle));
101  h2DSegmCosAngleInCham->Fill(cos(atan(localAngle)));
102  }
TH1F * h2DSegmPosInCham
Definition: vDriftHistos.h:110
TH1F * h2DSegmAngleInCham
Definition: vDriftHistos.h:111
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
TH1F * h2DSegmCosAngleInCham
Definition: vDriftHistos.h:112
void h2DSegm::Write ( )
inline

Definition at line 103 of file vDriftHistos.h.

References h2DSegmAngleInCham, h2DSegmCosAngleInCham, and h2DSegmPosInCham.

Referenced by DTVDriftCalibration::endJob().

103  {
104  h2DSegmPosInCham->Write();
105  h2DSegmAngleInCham->Write();
106  h2DSegmCosAngleInCham->Write();
107  }
TH1F * h2DSegmPosInCham
Definition: vDriftHistos.h:110
TH1F * h2DSegmAngleInCham
Definition: vDriftHistos.h:111
TH1F * h2DSegmCosAngleInCham
Definition: vDriftHistos.h:112

Member Data Documentation

TH1F* h2DSegm::h2DSegmAngleInCham

Definition at line 111 of file vDriftHistos.h.

Referenced by Fill(), h2DSegm(), Write(), and ~h2DSegm().

TH1F* h2DSegm::h2DSegmCosAngleInCham

Definition at line 112 of file vDriftHistos.h.

Referenced by Fill(), h2DSegm(), Write(), and ~h2DSegm().

TH1F* h2DSegm::h2DSegmPosInCham

Definition at line 110 of file vDriftHistos.h.

Referenced by Fill(), h2DSegm(), Write(), and ~h2DSegm().

TString h2DSegm::name