CMS 3D CMS Logo

Public Member Functions | Public Attributes

h2DSegm Class Reference

#include <vDriftHistos.h>

List of all members.

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

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, 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]

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

                                         {

    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();   
  }

Member Data Documentation

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