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
h4DSegm Class Reference

#include <vDriftHistos.h>

Public Member Functions

void Fill (float x, float y, float phi, float theta, float impact)
 
void Fill (float x, float phi)
 
 h4DSegm (std::string name_)
 
 h4DSegm (TString name_, TFile *file)
 
void Write ()
 
 ~h4DSegm ()
 

Public Attributes

TH1F * h4DSegmImpactAngleInCham
 
TH1F * h4DSegmPhiAngleInCham
 
TH1F * h4DSegmThetaAngleInCham
 
TH1F * h4DSegmXPosInCham
 
TH1F * h4DSegmYPosInCham
 
TString name
 

Detailed Description

Definition at line 11 of file vDriftHistos.h.

Constructor & Destructor Documentation

h4DSegm::h4DSegm ( std::string  name_)
inline

Definition at line 13 of file vDriftHistos.h.

References h4DSegmImpactAngleInCham, h4DSegmPhiAngleInCham, h4DSegmThetaAngleInCham, h4DSegmXPosInCham, h4DSegmYPosInCham, N, and name.

13  {
14  TString N = name_.c_str();
15  name=name_.c_str();
16  h4DSegmXPosInCham = new TH1F(N+"_h4DSegmXPosInCham",
17  "4D Segment x position (cm) in Chamber RF", 200, -200, 200);
18  h4DSegmYPosInCham = new TH1F(N+"_h4DSegmYPosInCham",
19  "4D Segment y position (cm) in Chamber RF", 200, -200, 200);
20  h4DSegmPhiAngleInCham = new TH1F(N+"_h4DSegmPhiAngleInCham",
21  "4D Segment phi angle (rad) in Chamber RF", 180, -180, 180);
22  h4DSegmThetaAngleInCham = new TH1F(N+"_h4DSegmThetaAngleInCham",
23  "4D Segment theta angle (rad) in Chamber RF", 180, -180, 180);
24  h4DSegmImpactAngleInCham = new TH1F(N+"_h4DSegmImpactAngleInCham",
25  "4D Segment impact angle (rad) in Chamber RF", 180, -180, 180);
26  }
TH1F * h4DSegmThetaAngleInCham
Definition: vDriftHistos.h:65
TH1F * h4DSegmImpactAngleInCham
Definition: vDriftHistos.h:66
TH1F * h4DSegmYPosInCham
Definition: vDriftHistos.h:63
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:62
#define N
Definition: blowfish.cc:9
TString name
Definition: vDriftHistos.h:68
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:64
h4DSegm::h4DSegm ( TString  name_,
TFile *  file 
)
inline

Definition at line 27 of file vDriftHistos.h.

References h4DSegmImpactAngleInCham, h4DSegmPhiAngleInCham, h4DSegmThetaAngleInCham, h4DSegmXPosInCham, h4DSegmYPosInCham, and name.

27  {
28  name=name_;
29  h4DSegmXPosInCham = (TH1F *) file->Get(name+"_h4DSegmXPosInCham");
30  h4DSegmYPosInCham = (TH1F *) file->Get(name+"_h4DSegmYPosInCham");
31  h4DSegmPhiAngleInCham = (TH1F *) file->Get(name+"_h4DSegmPhiAngleInCham");
32  h4DSegmThetaAngleInCham = (TH1F *) file->Get(name+"_h4DSegmThetaAngleInCham");
33  h4DSegmImpactAngleInCham = (TH1F *) file->Get(name+"_h4DSegmImpactAngleInCham");
34  }
TH1F * h4DSegmThetaAngleInCham
Definition: vDriftHistos.h:65
TH1F * h4DSegmImpactAngleInCham
Definition: vDriftHistos.h:66
TH1F * h4DSegmYPosInCham
Definition: vDriftHistos.h:63
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:62
TString name
Definition: vDriftHistos.h:68
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:64
h4DSegm::~h4DSegm ( )
inline

Definition at line 35 of file vDriftHistos.h.

References h4DSegmImpactAngleInCham, h4DSegmPhiAngleInCham, h4DSegmThetaAngleInCham, h4DSegmXPosInCham, and h4DSegmYPosInCham.

35  {
36  delete h4DSegmXPosInCham;
37  delete h4DSegmYPosInCham;
38  delete h4DSegmPhiAngleInCham;
41  }
TH1F * h4DSegmThetaAngleInCham
Definition: vDriftHistos.h:65
TH1F * h4DSegmImpactAngleInCham
Definition: vDriftHistos.h:66
TH1F * h4DSegmYPosInCham
Definition: vDriftHistos.h:63
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:62
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:64

Member Function Documentation

void h4DSegm::Fill ( float  x,
float  y,
float  phi,
float  theta,
float  impact 
)
inline

Definition at line 42 of file vDriftHistos.h.

References h4DSegmImpactAngleInCham, h4DSegmPhiAngleInCham, h4DSegmThetaAngleInCham, h4DSegmXPosInCham, and h4DSegmYPosInCham.

Referenced by DTVDriftCalibration::analyze().

42  {
43  h4DSegmXPosInCham->Fill(x);
44  h4DSegmYPosInCham->Fill(y);
45  h4DSegmPhiAngleInCham->Fill(phi);
47  h4DSegmImpactAngleInCham->Fill(impact);
48 }
TH1F * h4DSegmThetaAngleInCham
Definition: vDriftHistos.h:65
Geom::Theta< T > theta() const
TH1F * h4DSegmImpactAngleInCham
Definition: vDriftHistos.h:66
TH1F * h4DSegmYPosInCham
Definition: vDriftHistos.h:63
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:62
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:64
x
Definition: VDTMath.h:216
Definition: DDAxes.h:10
void h4DSegm::Fill ( float  x,
float  phi 
)
inline

Definition at line 49 of file vDriftHistos.h.

References h4DSegmPhiAngleInCham, and h4DSegmXPosInCham.

49  {
50  h4DSegmXPosInCham->Fill(x);
51  h4DSegmPhiAngleInCham->Fill(phi);
52 }
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:62
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:64
x
Definition: VDTMath.h:216
Definition: DDAxes.h:10
void h4DSegm::Write ( )
inline

Definition at line 53 of file vDriftHistos.h.

References h4DSegmImpactAngleInCham, h4DSegmPhiAngleInCham, h4DSegmThetaAngleInCham, h4DSegmXPosInCham, and h4DSegmYPosInCham.

Referenced by DTVDriftCalibration::endJob().

53  {
54  h4DSegmXPosInCham->Write();
55  h4DSegmYPosInCham->Write();
56  h4DSegmPhiAngleInCham->Write();
57  h4DSegmThetaAngleInCham->Write();
58  h4DSegmImpactAngleInCham->Write();
59  }
TH1F * h4DSegmThetaAngleInCham
Definition: vDriftHistos.h:65
TH1F * h4DSegmImpactAngleInCham
Definition: vDriftHistos.h:66
TH1F * h4DSegmYPosInCham
Definition: vDriftHistos.h:63
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:62
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:64

Member Data Documentation

TH1F* h4DSegm::h4DSegmImpactAngleInCham

Definition at line 66 of file vDriftHistos.h.

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

TH1F* h4DSegm::h4DSegmPhiAngleInCham

Definition at line 64 of file vDriftHistos.h.

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

TH1F* h4DSegm::h4DSegmThetaAngleInCham

Definition at line 65 of file vDriftHistos.h.

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

TH1F* h4DSegm::h4DSegmXPosInCham

Definition at line 62 of file vDriftHistos.h.

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

TH1F* h4DSegm::h4DSegmYPosInCham

Definition at line 63 of file vDriftHistos.h.

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

TString h4DSegm::name