CMS 3D CMS Logo

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 N, and h4DSegm::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 h4DSegm::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.

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

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.

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.

TH1F* h2DSegm::h2DSegmCosAngleInCham

Definition at line 112 of file vDriftHistos.h.

TH1F* h2DSegm::h2DSegmPosInCham

Definition at line 110 of file vDriftHistos.h.

TString h2DSegm::name

Definition at line 114 of file vDriftHistos.h.

Referenced by ElectronMVAID.ElectronMVAID::__call__(), FWLite.ElectronMVAID::__call__(), dirstructure.Directory::__create_pie_image(), DisplayManager.DisplayManager::__del__(), dqm_interfaces.DirID::__eq__(), BeautifulSoup.Tag::__eq__(), dirstructure.Directory::__get_full_path(), dirstructure.Comparison::__get_img_name(), dataset.Dataset::__getDataType(), dataset.Dataset::__getFileInfoList(), 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.Service::__setattr__(), config.CFG::__str__(), counter.Counter::__str__(), average.Average::__str__(), BeautifulSoup.Tag::__str__(), BeautifulSoup.SoupStrainer::__str__(), FWLite.WorkingPoints::_reformat_cut_definitions(), core.autovars.NTupleObjectType::addSubObjects(), core.autovars.NTupleObjectType::addVariables(), core.autovars.NTupleObjectType::allVars(), dirstructure.Directory::calcStats(), crabFunctions.CrabTask::crabConfig(), crabFunctions.CrabTask::crabFolder(), validation.Sample::digest(), python.rootplot.utilities.Hist::divide(), python.rootplot.utilities.Hist::divide_wilson(), DisplayManager.DisplayManager::Draw(), 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(), production_tasks.Task::getname(), dataset.CMSDataset::getPrimaryDatasetEntries(), dataset.PrivateDataset::getPrimaryDatasetEntries(), crabFunctions.CrabTask::handleNoState(), 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(), crabFunctions.CrabTask::resubmit_failed(), production_tasks.MonitorJobs::run(), BeautifulSoup.SoupStrainer::searchTag(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), crabFunctions.CrabTask::update(), crabFunctions.CrabTask::updateJobStats(), Vispa.Views.PropertyView.Property::valueChanged(), counter.Counter::write(), and average.Average::write().