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

Definition at line 27 of file vDriftHistos.h.

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

27  {
28  name=name_;
29  h4DSegmXPosInCham = (TH1F *) file->Get(name+"_h4DSegmXPosInCham");
30  h4DSegmYPosInCham = (TH1F *) file->Get(name+"_h4DSegmYPosInCham");
31  h4DSegmPhiAngleInCham = (TH1F *) file->Get(name+"_h4DSegmPhiAngleInCham");
32  h4DSegmThetaAngleInCham = (TH1F *) file->Get(name+"_h4DSegmThetaAngleInCham");
33  h4DSegmImpactAngleInCham = (TH1F *) file->Get(name+"_h4DSegmImpactAngleInCham");
34  }
TH1F * h4DSegmThetaAngleInCham
Definition: vDriftHistos.h:65
TH1F * h4DSegmImpactAngleInCham
Definition: vDriftHistos.h:66
TH1F * h4DSegmYPosInCham
Definition: vDriftHistos.h:63
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:62
TString name
Definition: vDriftHistos.h:68
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:64
h4DSegm::~h4DSegm ( )
inline

Definition at line 35 of file vDriftHistos.h.

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

35  {
36  delete h4DSegmXPosInCham;
37  delete h4DSegmYPosInCham;
38  delete h4DSegmPhiAngleInCham;
41  }
TH1F * h4DSegmThetaAngleInCham
Definition: vDriftHistos.h:65
TH1F * h4DSegmImpactAngleInCham
Definition: vDriftHistos.h:66
TH1F * h4DSegmYPosInCham
Definition: vDriftHistos.h:63
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:62
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:64

Member Function Documentation

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

Definition at line 42 of file vDriftHistos.h.

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

Referenced by DTVDriftCalibration::analyze().

42  {
43  h4DSegmXPosInCham->Fill(x);
44  h4DSegmYPosInCham->Fill(y);
45  h4DSegmPhiAngleInCham->Fill(phi);
47  h4DSegmImpactAngleInCham->Fill(impact);
48 }
TH1F * h4DSegmThetaAngleInCham
Definition: vDriftHistos.h:65
Geom::Theta< T > theta() const
TH1F * h4DSegmImpactAngleInCham
Definition: vDriftHistos.h:66
TH1F * h4DSegmYPosInCham
Definition: vDriftHistos.h:63
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:62
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:64
void h4DSegm::Fill ( float  x,
float  phi 
)
inline

Definition at line 49 of file vDriftHistos.h.

References h4DSegmPhiAngleInCham, and h4DSegmXPosInCham.

49  {
50  h4DSegmXPosInCham->Fill(x);
51  h4DSegmPhiAngleInCham->Fill(phi);
52 }
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:62
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:64
void h4DSegm::Write ( )
inline

Definition at line 53 of file vDriftHistos.h.

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

Referenced by DTVDriftCalibration::endJob().

53  {
54  h4DSegmXPosInCham->Write();
55  h4DSegmYPosInCham->Write();
56  h4DSegmPhiAngleInCham->Write();
57  h4DSegmThetaAngleInCham->Write();
58  h4DSegmImpactAngleInCham->Write();
59  }
TH1F * h4DSegmThetaAngleInCham
Definition: vDriftHistos.h:65
TH1F * h4DSegmImpactAngleInCham
Definition: vDriftHistos.h:66
TH1F * h4DSegmYPosInCham
Definition: vDriftHistos.h:63
TH1F * h4DSegmXPosInCham
Definition: vDriftHistos.h:62
TH1F * h4DSegmPhiAngleInCham
Definition: vDriftHistos.h:64

Member Data Documentation

TH1F* h4DSegm::h4DSegmImpactAngleInCham

Definition at line 66 of file vDriftHistos.h.

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

TH1F* h4DSegm::h4DSegmPhiAngleInCham

Definition at line 64 of file vDriftHistos.h.

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

TH1F* h4DSegm::h4DSegmThetaAngleInCham

Definition at line 65 of file vDriftHistos.h.

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

TH1F* h4DSegm::h4DSegmXPosInCham

Definition at line 62 of file vDriftHistos.h.

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

TH1F* h4DSegm::h4DSegmYPosInCham

Definition at line 63 of file vDriftHistos.h.

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

TString h4DSegm::name

Definition at line 68 of file vDriftHistos.h.

Referenced by ElectronMVAID.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__(), core.autovars.NTupleObjectType::addSubObjects(), core.autovars.NTupleObjectType::addVariables(), core.autovars.NTupleObjectType::allVars(), dirstructure.Directory::calcStats(), 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::h2DSegm(), h4DSegm(), hTMaxCell::hTMaxCell(), 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(), production_tasks.MonitorJobs::run(), 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().