CMS 3D CMS Logo

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 (const 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() [1/2]

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", "4D Segment x position (cm) in Chamber RF", 200, -200, 200);
17  h4DSegmYPosInCham = new TH1F(N + "_h4DSegmYPosInCham", "4D Segment y position (cm) in Chamber RF", 200, -200, 200);
19  new TH1F(N + "_h4DSegmPhiAngleInCham", "4D Segment phi angle (rad) in Chamber RF", 180, -180, 180);
21  new TH1F(N + "_h4DSegmThetaAngleInCham", "4D Segment theta angle (rad) in Chamber RF", 180, -180, 180);
23  new TH1F(N + "_h4DSegmImpactAngleInCham", "4D Segment impact angle (rad) in Chamber RF", 180, -180, 180);
24  }
TH1F * h4DSegmThetaAngleInCham
Definition: vDriftHistos.h:63
TH1F * h4DSegmImpactAngleInCham
Definition: vDriftHistos.h:64
TH1F * h4DSegmYPosInCham
Definition: vDriftHistos.h:61
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:60
#define N
Definition: blowfish.cc:9
TString name
Definition: vDriftHistos.h:66
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:62

◆ h4DSegm() [2/2]

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

Definition at line 25 of file vDriftHistos.h.

References geometryDiff::file, h4DSegmImpactAngleInCham, h4DSegmPhiAngleInCham, h4DSegmThetaAngleInCham, h4DSegmXPosInCham, h4DSegmYPosInCham, and name.

25  {
26  name = name_;
27  h4DSegmXPosInCham = (TH1F *)file->Get(name + "_h4DSegmXPosInCham");
28  h4DSegmYPosInCham = (TH1F *)file->Get(name + "_h4DSegmYPosInCham");
29  h4DSegmPhiAngleInCham = (TH1F *)file->Get(name + "_h4DSegmPhiAngleInCham");
30  h4DSegmThetaAngleInCham = (TH1F *)file->Get(name + "_h4DSegmThetaAngleInCham");
31  h4DSegmImpactAngleInCham = (TH1F *)file->Get(name + "_h4DSegmImpactAngleInCham");
32  }
TH1F * h4DSegmThetaAngleInCham
Definition: vDriftHistos.h:63
TH1F * h4DSegmImpactAngleInCham
Definition: vDriftHistos.h:64
TH1F * h4DSegmYPosInCham
Definition: vDriftHistos.h:61
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:60
TString name
Definition: vDriftHistos.h:66
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:62

◆ ~h4DSegm()

h4DSegm::~h4DSegm ( )
inline

Definition at line 33 of file vDriftHistos.h.

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

33  {
34  delete h4DSegmXPosInCham;
35  delete h4DSegmYPosInCham;
36  delete h4DSegmPhiAngleInCham;
39  }
TH1F * h4DSegmThetaAngleInCham
Definition: vDriftHistos.h:63
TH1F * h4DSegmImpactAngleInCham
Definition: vDriftHistos.h:64
TH1F * h4DSegmYPosInCham
Definition: vDriftHistos.h:61
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:60
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:62

Member Function Documentation

◆ Fill() [1/2]

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

◆ Fill() [2/2]

void h4DSegm::Fill ( float  x,
float  phi 
)
inline

Definition at line 47 of file vDriftHistos.h.

References h4DSegmPhiAngleInCham, h4DSegmXPosInCham, phi, and x.

47  {
48  h4DSegmXPosInCham->Fill(x);
50  }
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:60
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:62

◆ Write()

void h4DSegm::Write ( )
inline

Definition at line 51 of file vDriftHistos.h.

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

Referenced by DTVDriftCalibration::endJob().

51  {
52  h4DSegmXPosInCham->Write();
53  h4DSegmYPosInCham->Write();
54  h4DSegmPhiAngleInCham->Write();
55  h4DSegmThetaAngleInCham->Write();
56  h4DSegmImpactAngleInCham->Write();
57  }
TH1F * h4DSegmThetaAngleInCham
Definition: vDriftHistos.h:63
TH1F * h4DSegmImpactAngleInCham
Definition: vDriftHistos.h:64
TH1F * h4DSegmYPosInCham
Definition: vDriftHistos.h:61
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:60
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:62

Member Data Documentation

◆ h4DSegmImpactAngleInCham

TH1F* h4DSegm::h4DSegmImpactAngleInCham

Definition at line 64 of file vDriftHistos.h.

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

◆ h4DSegmPhiAngleInCham

TH1F* h4DSegm::h4DSegmPhiAngleInCham

Definition at line 62 of file vDriftHistos.h.

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

◆ h4DSegmThetaAngleInCham

TH1F* h4DSegm::h4DSegmThetaAngleInCham

Definition at line 63 of file vDriftHistos.h.

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

◆ h4DSegmXPosInCham

TH1F* h4DSegm::h4DSegmXPosInCham

Definition at line 60 of file vDriftHistos.h.

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

◆ h4DSegmYPosInCham

TH1F* h4DSegm::h4DSegmYPosInCham

Definition at line 61 of file vDriftHistos.h.

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

◆ name

TString h4DSegm::name

Definition at line 66 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(), 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(), h4DSegm(), 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().