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

Definition at line 114 of file vDriftHistos.h.

Referenced by ElectronMVAID.ElectronMVAID::__call__(), dirstructure.Directory::__create_pie_image(), dqm_interfaces.DirID::__eq__(), BeautifulSoup.Tag::__eq__(), dirstructure.Directory::__get_full_path(), dirstructure.Comparison::__get_img_name(), dataset.Dataset::__getDataType(), dataset.Dataset::__getFileInfoList(), cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), dirstructure.Comparison::__make_image(), core.autovars.NTupleVariable::__repr__(), core.autovars.NTupleObjectType::__repr__(), core.autovars.NTupleObject::__repr__(), core.autovars.NTupleCollection::__repr__(), dirstructure.Directory::__repr__(), dqm_interfaces.DirID::__repr__(), dirstructure.Comparison::__repr__(), config.CFG::__str__(), counter.Counter::__str__(), average.Average::__str__(), BeautifulSoup.Tag::__str__(), BeautifulSoup.SoupStrainer::__str__(), core.autovars.NTupleObjectType::allVars(), dirstructure.Directory::calcStats(), python.rootplot.utilities.Hist::divide(), python.rootplot.utilities.Hist::divide_wilson(), TreeCrawler.Package::dump(), core.autovars.NTupleVariable::fillBranch(), core.autovars.NTupleObject::fillBranches(), core.autovars.NTupleCollection::fillBranchesScalar(), core.autovars.NTupleCollection::fillBranchesVector(), core.autovars.NTupleCollection::get_cpp_declaration(), core.autovars.NTupleCollection::get_cpp_wrapper_class(), core.autovars.NTupleCollection::get_py_wrapper_class(), utils.StatisticalTest::get_status(), dataset.CMSDataset::getPrimaryDatasetEntries(), dataset.PrivateDataset::getPrimaryDatasetEntries(), h2DSegm(), VIDSelectorBase.VIDSelectorBase::initialize(), personalPlayback.Applet::log(), core.autovars.NTupleVariable::makeBranch(), core.autovars.NTupleObject::makeBranches(), core.autovars.NTupleCollection::makeBranchesScalar(), core.autovars.NTupleCollection::makeBranchesVector(), dirstructure.Directory::print_report(), dataset.BaseDataset::printInfo(), dataset.Dataset::printInfo(), BeautifulSoup.SoupStrainer::searchTag(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), Vispa.Views.PropertyView.Property::valueChanged(), counter.Counter::write(), and average.Average::write().