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 70 of file vDriftHistos.h.

Constructor & Destructor Documentation

◆ h2DSegm() [1/2]

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

Definition at line 72 of file vDriftHistos.h.

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

72  {
73  TString N = name_.c_str();
74  name = name_.c_str();
75  h2DSegmPosInCham = new TH1F(N + "_h2DSegmPosInCham", "2D Segment position (cm) in Chamber RF", 200, -200, 200);
76  h2DSegmAngleInCham = new TH1F(N + "_h2DSegmAngleInCham", "2D Segment angle (rad) in Chamber RF", 200, -2, 2);
77  h2DSegmCosAngleInCham = new TH1F(N + "_h2DSegmCosAngleInCham", "2D Segment cos(angle) in Chamber RF", 200, -2, 2);
78  }
TH1F * h2DSegmPosInCham
Definition: vDriftHistos.h:103
TString name
Definition: vDriftHistos.h:107
TH1F * h2DSegmAngleInCham
Definition: vDriftHistos.h:104
#define N
Definition: blowfish.cc:9
TH1F * h2DSegmCosAngleInCham
Definition: vDriftHistos.h:105

◆ h2DSegm() [2/2]

h2DSegm::h2DSegm ( const TString &  name_,
TFile *  file 
)
inline

Definition at line 79 of file vDriftHistos.h.

References geometryDiff::file, h2DSegmAngleInCham, h2DSegmCosAngleInCham, h2DSegmPosInCham, and name.

79  {
80  name = name_;
81 
82  h2DSegmPosInCham = (TH1F *)file->Get(name + "_h2DSegmPosInCham");
83  h2DSegmAngleInCham = (TH1F *)file->Get(name + "_h2DSegmAngleInCham");
84  h2DSegmCosAngleInCham = (TH1F *)file->Get(name + "_h2DSegmCosAngleInCham");
85  }
TH1F * h2DSegmPosInCham
Definition: vDriftHistos.h:103
TString name
Definition: vDriftHistos.h:107
TH1F * h2DSegmAngleInCham
Definition: vDriftHistos.h:104
TH1F * h2DSegmCosAngleInCham
Definition: vDriftHistos.h:105

◆ ~h2DSegm()

h2DSegm::~h2DSegm ( )
inline

Definition at line 86 of file vDriftHistos.h.

References h2DSegmAngleInCham, h2DSegmCosAngleInCham, and h2DSegmPosInCham.

86  {
87  delete h2DSegmPosInCham;
88  delete h2DSegmAngleInCham;
89  delete h2DSegmCosAngleInCham;
90  }
TH1F * h2DSegmPosInCham
Definition: vDriftHistos.h:103
TH1F * h2DSegmAngleInCham
Definition: vDriftHistos.h:104
TH1F * h2DSegmCosAngleInCham
Definition: vDriftHistos.h:105

Member Function Documentation

◆ Fill()

void h2DSegm::Fill ( float  pos,
float  localAngle 
)
inline

Definition at line 91 of file vDriftHistos.h.

References funct::cos(), h2DSegmAngleInCham, h2DSegmCosAngleInCham, and h2DSegmPosInCham.

Referenced by DTVDriftCalibration::analyze().

91  {
92  h2DSegmPosInCham->Fill(pos);
93  h2DSegmAngleInCham->Fill(atan(localAngle));
94  h2DSegmCosAngleInCham->Fill(cos(atan(localAngle)));
95  }
TH1F * h2DSegmPosInCham
Definition: vDriftHistos.h:103
TH1F * h2DSegmAngleInCham
Definition: vDriftHistos.h:104
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
TH1F * h2DSegmCosAngleInCham
Definition: vDriftHistos.h:105

◆ Write()

void h2DSegm::Write ( )
inline

Definition at line 96 of file vDriftHistos.h.

References h2DSegmAngleInCham, h2DSegmCosAngleInCham, and h2DSegmPosInCham.

Referenced by DTVDriftCalibration::endJob().

96  {
97  h2DSegmPosInCham->Write();
98  h2DSegmAngleInCham->Write();
99  h2DSegmCosAngleInCham->Write();
100  }
TH1F * h2DSegmPosInCham
Definition: vDriftHistos.h:103
TH1F * h2DSegmAngleInCham
Definition: vDriftHistos.h:104
TH1F * h2DSegmCosAngleInCham
Definition: vDriftHistos.h:105

Member Data Documentation

◆ h2DSegmAngleInCham

TH1F* h2DSegm::h2DSegmAngleInCham

Definition at line 104 of file vDriftHistos.h.

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

◆ h2DSegmCosAngleInCham

TH1F* h2DSegm::h2DSegmCosAngleInCham

Definition at line 105 of file vDriftHistos.h.

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

◆ h2DSegmPosInCham

TH1F* h2DSegm::h2DSegmPosInCham

Definition at line 103 of file vDriftHistos.h.

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

◆ name

TString h2DSegm::name

Definition at line 107 of file vDriftHistos.h.

Referenced by ElectronMVAID.ElectronMVAID::__call__(), FWLite.ElectronMVAID::__call__(), dirstructure.Directory::__create_pie_image(), DisplayManager.DisplayManager::__del__(), dqm_interfaces.DirID::__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__(), FWLite.WorkingPoints::_reformat_cut_definitions(), core.autovars.NTupleObjectType::addSubObjects(), core.autovars.NTupleObjectType::addVariables(), core.autovars.NTupleObjectType::allVars(), dataset.CMSDataset::buildListOfFiles(), dataset.LocalDataset::buildListOfFiles(), dataset.CMSDataset::buildListOfFilesDBS(), 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(), h2DSegm(), crabFunctions.CrabTask::handleNoState(), VIDSelectorBase.VIDSelectorBase::initialize(), crabFunctions.CrabTask::isData(), 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(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), crabFunctions.CrabTask::update(), crabFunctions.CrabTask::updateJobStats(), counter.Counter::write(), and average.Average::write().