CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
BSvsPVHistogramMaker Class Reference

#include <BSvsPVHistogramMaker.h>

Public Member Functions

void beginRun (const unsigned int nrun)
 
void book (const std::string dirname="")
 
 BSvsPVHistogramMaker (edm::ConsumesCollector &&iC)
 
 BSvsPVHistogramMaker (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
 
void fill (const unsigned int orbit, const int bx, const reco::VertexCollection &vertices, const reco::BeamSpot &bs)
 
void fill (const edm::Event &iEvent, const reco::VertexCollection &vertices, const reco::BeamSpot &bs)
 
double x (const reco::BeamSpot &bs, const double z) const
 
double y (const reco::BeamSpot &bs, const double z) const
 
 ~BSvsPVHistogramMaker ()
 

Private Attributes

TFileDirectory_currdir
 
TH1F * _hdeltax
 
TH1F ** _hdeltaxrun
 
TH2F ** _hdeltaxvsbx2drun
 
TProfile ** _hdeltaxvsbxrun
 
TProfile ** _hdeltaxvsorbrun
 
TProfile * _hdeltaxvsz
 
TProfile ** _hdeltaxvszrun
 
TH1F * _hdeltay
 
TH1F ** _hdeltayrun
 
TH2F ** _hdeltayvsbx2drun
 
TProfile ** _hdeltayvsbxrun
 
TProfile ** _hdeltayvsorbrun
 
TProfile * _hdeltayvsz
 
TProfile ** _hdeltayvszrun
 
TH1F * _hdeltaz
 
TH1F ** _hdeltazrun
 
TH2F ** _hdeltazvsbx2drun
 
TProfile ** _hdeltazvsbxrun
 
TProfile ** _hdeltazvsorbrun
 
const edm::ParameterSet _histoParameters
 
RunHistogramManager _rhm
 
const bool _runHisto
 
const bool _runHistoBX2D
 
const bool _runHistoBXProfile
 
const bool _runHistoProfile
 
const bool _trueOnly
 
const unsigned int m_maxLS
 
const bool useSlope_
 

Detailed Description

Definition at line 25 of file BSvsPVHistogramMaker.h.

Constructor & Destructor Documentation

BSvsPVHistogramMaker::BSvsPVHistogramMaker ( edm::ConsumesCollector &&  iC)

Definition at line 14 of file BSvsPVHistogramMaker.cc.

14  :
15  _currdir(0), m_maxLS(100), useSlope_(true), _trueOnly(true),
16  _runHisto(true), _runHistoProfile(true), _runHistoBXProfile(true), _runHistoBX2D(false), _histoParameters(), _rhm(iC) { }
TFileDirectory * _currdir
const unsigned int m_maxLS
const edm::ParameterSet _histoParameters
RunHistogramManager _rhm
BSvsPVHistogramMaker::BSvsPVHistogramMaker ( const edm::ParameterSet iConfig,
edm::ConsumesCollector &&  iC 
)

Definition at line 18 of file BSvsPVHistogramMaker.cc.

18  :
19  _currdir(0),
20  m_maxLS(iConfig.getParameter<unsigned int>("maxLSBeforeRebin")),
21  useSlope_(iConfig.getParameter<bool>("useSlope")),
22  _trueOnly(iConfig.getUntrackedParameter<bool>("trueOnly",true)),
23  _runHisto(iConfig.getUntrackedParameter<bool>("runHisto",true)),
24  _runHistoProfile(iConfig.getUntrackedParameter<bool>("runHistoProfile",true)),
25  _runHistoBXProfile(iConfig.getUntrackedParameter<bool>("runHistoBXProfile",true)),
26  _runHistoBX2D(iConfig.getUntrackedParameter<bool>("runHistoBX2D",false)),
28  _rhm(iC)
29 { }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
TFileDirectory * _currdir
const unsigned int m_maxLS
const edm::ParameterSet _histoParameters
RunHistogramManager _rhm
BSvsPVHistogramMaker::~BSvsPVHistogramMaker ( )

Definition at line 32 of file BSvsPVHistogramMaker.cc.

References _currdir.

32  {
33 
34  delete _currdir;
35 
36 }
TFileDirectory * _currdir

Member Function Documentation

void BSvsPVHistogramMaker::beginRun ( const unsigned int  nrun)

Definition at line 145 of file BSvsPVHistogramMaker.cc.

References _currdir, _rhm, _runHisto, _runHistoBX2D, _runHistoBXProfile, _runHistoProfile, RunHistogramManager::beginRun(), and TFileService::tFileDirectory().

Referenced by BSvsPVAnalyzer::beginRun().

145  {
146 
147  char runname[100];
148  sprintf(runname,"run_%d",nrun);
149 
150  TFileDirectory* currdir = _currdir;
151  if(currdir==0) {
153  currdir = &(tfserv->tFileDirectory());
154  }
155 
156  _rhm.beginRun(nrun,*currdir);
157 
158  if(_runHisto) {
159  (*_hdeltaxrun)->GetXaxis()->SetTitle("#Delta(X) [cm]"); (*_hdeltaxrun)->GetYaxis()->SetTitle("Vertices");
160  (*_hdeltayrun)->GetXaxis()->SetTitle("#Delta(Y) [cm]"); (*_hdeltayrun)->GetYaxis()->SetTitle("Vertices");
161  (*_hdeltazrun)->GetXaxis()->SetTitle("#Delta(Z) [cm]"); (*_hdeltazrun)->GetYaxis()->SetTitle("Vertices");
162  (*_hdeltaxvszrun)->GetXaxis()->SetTitle("Z [cm]"); (*_hdeltaxvszrun)->GetYaxis()->SetTitle("#Delta(X) [cm]");
163  (*_hdeltayvszrun)->GetXaxis()->SetTitle("Z [cm]"); (*_hdeltayvszrun)->GetYaxis()->SetTitle("#Delta(Y) [cm]");
164 
165  if(_runHistoProfile) {
166  (*_hdeltaxvsorbrun)->GetXaxis()->SetTitle("time [orbit#]"); (*_hdeltaxvsorbrun)->GetYaxis()->SetTitle("#Delta(X) [cm]");
167  (*_hdeltaxvsorbrun)->SetCanExtend(TH1::kAllAxes);
168  (*_hdeltayvsorbrun)->GetXaxis()->SetTitle("time [orbit#]"); (*_hdeltayvsorbrun)->GetYaxis()->SetTitle("#Delta(Y) [cm]");
169  (*_hdeltayvsorbrun)->SetCanExtend(TH1::kAllAxes);
170  (*_hdeltazvsorbrun)->GetXaxis()->SetTitle("time [orbit#]"); (*_hdeltazvsorbrun)->GetYaxis()->SetTitle("#Delta(Z) [cm]");
171  (*_hdeltazvsorbrun)->SetCanExtend(TH1::kAllAxes);
172  }
173  if(_runHistoBXProfile) {
174  (*_hdeltaxvsbxrun)->GetXaxis()->SetTitle("BX"); (*_hdeltaxvsbxrun)->GetYaxis()->SetTitle("#Delta(X) [cm]");
175  (*_hdeltayvsbxrun)->GetXaxis()->SetTitle("BX"); (*_hdeltayvsbxrun)->GetYaxis()->SetTitle("#Delta(Y) [cm]");
176  (*_hdeltazvsbxrun)->GetXaxis()->SetTitle("BX"); (*_hdeltazvsbxrun)->GetYaxis()->SetTitle("#Delta(Z) [cm]");
177  if(_runHistoBX2D) {
178  (*_hdeltaxvsbx2drun)->GetXaxis()->SetTitle("BX"); (*_hdeltaxvsbx2drun)->GetYaxis()->SetTitle("#Delta(X) [cm]");
179  (*_hdeltayvsbx2drun)->GetXaxis()->SetTitle("BX"); (*_hdeltayvsbx2drun)->GetYaxis()->SetTitle("#Delta(Y) [cm]");
180  (*_hdeltazvsbx2drun)->GetXaxis()->SetTitle("BX"); (*_hdeltazvsbx2drun)->GetYaxis()->SetTitle("#Delta(Z) [cm]");
181  }
182  }
183 
184  }
185 }
TFileDirectory * _currdir
RunHistogramManager _rhm
TFileDirectory & tFileDirectory()
Definition: TFileService.h:42
void beginRun(const edm::Run &iRun)
void BSvsPVHistogramMaker::book ( const std::string  dirname = "")

Definition at line 39 of file BSvsPVHistogramMaker.cc.

References _currdir, _hdeltax, _hdeltaxrun, _hdeltaxvsbx2drun, _hdeltaxvsbxrun, _hdeltaxvsorbrun, _hdeltaxvsz, _hdeltaxvszrun, _hdeltay, _hdeltayrun, _hdeltayvsbx2drun, _hdeltayvsbxrun, _hdeltayvsorbrun, _hdeltayvsz, _hdeltayvszrun, _hdeltaz, _hdeltazrun, _hdeltazvsbx2drun, _hdeltazvsbxrun, _hdeltazvsorbrun, _histoParameters, _rhm, _runHisto, _runHistoBX2D, _runHistoBXProfile, _runHistoProfile, HILowLumiHLTOfflineSource_cfi::dirname, edm::ParameterSet::getUntrackedParameter(), m_maxLS, TFileDirectory::make(), RunHistogramManager::makeTH1F(), RunHistogramManager::makeTH2F(), RunHistogramManager::makeTProfile(), TFileService::mkdir(), and TFileService::tFileDirectory().

Referenced by BSvsPVAnalyzer::BSvsPVAnalyzer().

39  {
40 
42  TFileDirectory* currdir = &(tfserv->tFileDirectory());
43 
44  if(dirname!="") {
45  currdir = new TFileDirectory(tfserv->mkdir(dirname));
46  _currdir = currdir;
47  }
48 
49  edm::LogInfo("HistogramBooking") << "Vertex histogram booking in directory " << dirname;
50 
51  _hdeltax = currdir->make<TH1F>("deltax","(PV-BS) X position",
52  _histoParameters.getUntrackedParameter<unsigned int>("nBinX",200),
53  _histoParameters.getUntrackedParameter<double>("xMin",-1.),
54  _histoParameters.getUntrackedParameter<double>("xMax",1.)
55  );
56  _hdeltax->GetXaxis()->SetTitle("#Delta(X) [cm]"); _hdeltax->GetYaxis()->SetTitle("Vertices");
57 
58  _hdeltay = currdir->make<TH1F>("deltay","(PV-BS) Y position",
59  _histoParameters.getUntrackedParameter<unsigned int>("nBinY",200),
60  _histoParameters.getUntrackedParameter<double>("yMin",-1.),
61  _histoParameters.getUntrackedParameter<double>("yMax",1.)
62  );
63  _hdeltay->GetXaxis()->SetTitle("#Delta(Y) [cm]"); _hdeltay->GetYaxis()->SetTitle("Vertices");
64 
65  _hdeltaz = currdir->make<TH1F>("deltaz","(PV-BS) Z position",
66  _histoParameters.getUntrackedParameter<unsigned int>("nBinZ",200),
67  _histoParameters.getUntrackedParameter<double>("zMin",-20.),
68  _histoParameters.getUntrackedParameter<double>("zMax",20.)
69  );
70  _hdeltaz->GetXaxis()->SetTitle("#Delta(Z) [cm]"); _hdeltaz->GetYaxis()->SetTitle("Vertices");
71 
72  _hdeltaxvsz = currdir->make<TProfile>("deltaxvsz","(PV-BS) X position vs Z",
73  _histoParameters.getUntrackedParameter<unsigned int>("nBinZProfile",40),
74  _histoParameters.getUntrackedParameter<double>("zMinProfile",-20.),
75  _histoParameters.getUntrackedParameter<double>("zMaxProfile",20.)
76  );
77  _hdeltaxvsz->GetXaxis()->SetTitle("Z [cm]"); _hdeltaxvsz->GetYaxis()->SetTitle("#Delta(X) [cm]");
78 
79  _hdeltayvsz = currdir->make<TProfile>("deltayvsz","(PV-BS) Y position vs Z",
80  _histoParameters.getUntrackedParameter<unsigned int>("nBinZProfile",40),
81  _histoParameters.getUntrackedParameter<double>("zMinProfile",-20.),
82  _histoParameters.getUntrackedParameter<double>("zMaxProfile",20.)
83  );
84  _hdeltayvsz->GetXaxis()->SetTitle("Z [cm]"); _hdeltayvsz->GetYaxis()->SetTitle("#Delta(Y) [cm]");
85 
86 
87 
88 
89  if(_runHisto) {
90  _hdeltaxrun = _rhm.makeTH1F("deltaxrun","(PV-BS) X position",
91  _histoParameters.getUntrackedParameter<unsigned int>("nBinX",200),
92  _histoParameters.getUntrackedParameter<double>("xMin",-1.),
93  _histoParameters.getUntrackedParameter<double>("xMax",1.));
94 
95  _hdeltayrun = _rhm.makeTH1F("deltayrun","(PV-BS) Y position",
96  _histoParameters.getUntrackedParameter<unsigned int>("nBinY",200),
97  _histoParameters.getUntrackedParameter<double>("yMin",-1.),
98  _histoParameters.getUntrackedParameter<double>("yMax",1.));
99 
100  _hdeltazrun = _rhm.makeTH1F("deltazrun","(PV-BS) Z position",
101  _histoParameters.getUntrackedParameter<unsigned int>("nBinZ",200),
102  _histoParameters.getUntrackedParameter<double>("zMin",-20.),
103  _histoParameters.getUntrackedParameter<double>("zMax",20.));
104 
105  _hdeltaxvszrun = _rhm.makeTProfile("deltaxvszrun","(PV-BS) X position vs Z",
106  _histoParameters.getUntrackedParameter<unsigned int>("nBinZProfile",40),
107  _histoParameters.getUntrackedParameter<double>("zMinProfile",-20.),
108  _histoParameters.getUntrackedParameter<double>("zMaxProfile",20.)
109  );
110 
111  _hdeltayvszrun = _rhm.makeTProfile("deltayvszrun","(PV-BS) Y position vs Z",
112  _histoParameters.getUntrackedParameter<unsigned int>("nBinZProfile",40),
113  _histoParameters.getUntrackedParameter<double>("zMinProfile",-20.),
114  _histoParameters.getUntrackedParameter<double>("zMaxProfile",20.)
115  );
116 
117  if(_runHistoProfile) {
118  _hdeltaxvsorbrun = _rhm.makeTProfile("deltaxvsorbrun","(PV-BS) X position vs orbit number",4*m_maxLS,0.5,m_maxLS*262144+0.5);
119  _hdeltayvsorbrun = _rhm.makeTProfile("deltayvsorbrun","(PV-BS) Y position vs orbit number",4*m_maxLS,0.5,m_maxLS*262144+0.5);
120  _hdeltazvsorbrun = _rhm.makeTProfile("deltazvsorbrun","(PV-BS) Z position vs orbit number",4*m_maxLS,0.5,m_maxLS*262144+0.5);
121  }
122  if(_runHistoBXProfile) {
123  _hdeltaxvsbxrun = _rhm.makeTProfile("deltaxvsbxrun","(PV-BS) X position vs BX number",3564,-0.5,3563.5);
124  _hdeltayvsbxrun = _rhm.makeTProfile("deltayvsbxrun","(PV-BS) Y position vs BX number",3564,-0.5,3563.5);
125  _hdeltazvsbxrun = _rhm.makeTProfile("deltazvsbxrun","(PV-BS) Z position vs BX number",3564,-0.5,3563.5);
126  if(_runHistoBX2D) {
127  _hdeltaxvsbx2drun = _rhm.makeTH2F("deltaxvsbx2drun","(PV-BS) X position vs BX number",3564,-0.5,3563.5,
128  _histoParameters.getUntrackedParameter<unsigned int>("nBinX",200),
129  _histoParameters.getUntrackedParameter<double>("xMin",-1.),
130  _histoParameters.getUntrackedParameter<double>("xMax",1.));
131  _hdeltayvsbx2drun = _rhm.makeTH2F("deltayvsbx2drun","(PV-BS) Y position vs BX number",3564,-0.5,3563.5,
132  _histoParameters.getUntrackedParameter<unsigned int>("nBinY",200),
133  _histoParameters.getUntrackedParameter<double>("yMin",-1.),
134  _histoParameters.getUntrackedParameter<double>("yMax",1.));
135  _hdeltazvsbx2drun = _rhm.makeTH2F("deltazvsbx2drun","(PV-BS) Z position vs BX number",3564,-0.5,3563.5,
136  _histoParameters.getUntrackedParameter<unsigned int>("nBinZ",200),
137  _histoParameters.getUntrackedParameter<double>("zMin",-20.),
138  _histoParameters.getUntrackedParameter<double>("zMax",20.));
139  }
140  }
141 
142  }
143 }
T getUntrackedParameter(std::string const &, T const &) const
TFileDirectory * _currdir
const unsigned int m_maxLS
const edm::ParameterSet _histoParameters
RunHistogramManager _rhm
TFileDirectory & tFileDirectory()
Definition: TFileService.h:42
TH1F ** makeTH1F(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
TProfile ** makeTProfile(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
T * make(const Args &...args) const
make new ROOT object
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
Definition: TFileService.h:69
TH2F ** makeTH2F(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax, const unsigned int nbiny, const double ymin, const double ymax)
void BSvsPVHistogramMaker::fill ( const unsigned int  orbit,
const int  bx,
const reco::VertexCollection vertices,
const reco::BeamSpot bs 
)

Definition at line 187 of file BSvsPVHistogramMaker.cc.

References _hdeltax, _hdeltaxrun, _hdeltaxvsbx2drun, _hdeltaxvsbxrun, _hdeltaxvsorbrun, _hdeltaxvsz, _hdeltaxvszrun, _hdeltay, _hdeltayrun, _hdeltayvsbx2drun, _hdeltayvsbxrun, _hdeltayvsorbrun, _hdeltayvsz, _hdeltayvszrun, _hdeltaz, _hdeltazrun, _hdeltazvsbx2drun, _hdeltazvsbxrun, _hdeltazvsorbrun, _runHisto, _runHistoBX2D, _runHistoBXProfile, _runHistoProfile, _trueOnly, x(), y(), and reco::BeamSpot::z0().

Referenced by BSvsPVAnalyzer::analyze(), and fill().

187  {
188 
189  for(reco::VertexCollection::const_iterator vtx=vertices.begin();vtx!=vertices.end();++vtx) {
190 
191  if(!(_trueOnly && vtx->isFake())) {
192 
193  /*
194  double deltax = vtx->x()-bs.x0();
195  double deltay = vtx->y()-bs.y0();
196  double deltaz = vtx->z()-bs.z0();
197  */
198  double deltax = vtx->x()-x(bs,vtx->z());
199  double deltay = vtx->y()-y(bs,vtx->z());
200  double deltaz = vtx->z()-bs.z0();
201 
202  _hdeltax->Fill(deltax);
203  _hdeltay->Fill(deltay);
204  _hdeltaz->Fill(deltaz);
205  _hdeltaxvsz->Fill(vtx->z(),deltax);
206  _hdeltayvsz->Fill(vtx->z(),deltay);
207 
208  if(_runHisto) {
209  if(_hdeltaxrun && *_hdeltaxrun ) (*_hdeltaxrun)->Fill(deltax);
210  if(_hdeltayrun && *_hdeltayrun ) (*_hdeltayrun)->Fill(deltay);
211  if(_hdeltazrun && *_hdeltazrun ) (*_hdeltazrun)->Fill(deltaz);
212  if(_hdeltaxvszrun && *_hdeltaxvszrun ) (*_hdeltaxvszrun)->Fill(vtx->z(),deltax);
213  if(_hdeltayvszrun && *_hdeltayvszrun ) (*_hdeltayvszrun)->Fill(vtx->z(),deltay);
214  if(_runHistoProfile) {
215  if(_hdeltaxvsorbrun && *_hdeltaxvsorbrun ) (*_hdeltaxvsorbrun)->Fill(orbit,deltax);
216  if(_hdeltayvsorbrun && *_hdeltayvsorbrun ) (*_hdeltayvsorbrun)->Fill(orbit,deltay);
217  if(_hdeltazvsorbrun && *_hdeltazvsorbrun ) (*_hdeltazvsorbrun)->Fill(orbit,deltaz);
218  }
219  if(_runHistoBXProfile) {
220  if(_hdeltaxvsbxrun && *_hdeltaxvsbxrun ) (*_hdeltaxvsbxrun)->Fill(bx%3564,deltax);
221  if(_hdeltayvsbxrun && *_hdeltayvsbxrun ) (*_hdeltayvsbxrun)->Fill(bx%3564,deltay);
222  if(_hdeltazvsbxrun && *_hdeltazvsbxrun ) (*_hdeltazvsbxrun)->Fill(bx%3564,deltaz);
223  if(_runHistoBX2D) {
224  if(_hdeltaxvsbx2drun && *_hdeltaxvsbx2drun ) (*_hdeltaxvsbx2drun)->Fill(bx%3564,deltax);
225  if(_hdeltayvsbx2drun && *_hdeltayvsbx2drun ) (*_hdeltayvsbx2drun)->Fill(bx%3564,deltay);
226  if(_hdeltazvsbx2drun && *_hdeltazvsbx2drun ) (*_hdeltazvsbx2drun)->Fill(bx%3564,deltaz);
227  }
228  }
229  }
230  }
231  }
232 }
double z0() const
z coordinate
Definition: BeamSpot.h:68
unsigned long long bx[ScalersRaw::N_BX_v2]
Definition: ScalersRaw.h:228
double y(const reco::BeamSpot &bs, const double z) const
double x(const reco::BeamSpot &bs, const double z) const
void BSvsPVHistogramMaker::fill ( const edm::Event iEvent,
const reco::VertexCollection vertices,
const reco::BeamSpot bs 
)

Definition at line 234 of file BSvsPVHistogramMaker.cc.

References edm::EventBase::bunchCrossing(), fill(), edm::EventBase::orbitNumber(), and HLT_25ns14e33_v1_cff::vertices.

234  {
235 
236  fill(iEvent.orbitNumber(),iEvent.bunchCrossing(),vertices,bs);
237 
238 }
int bunchCrossing() const
Definition: EventBase.h:66
int orbitNumber() const
Definition: EventBase.h:67
void fill(const unsigned int orbit, const int bx, const reco::VertexCollection &vertices, const reco::BeamSpot &bs)
double BSvsPVHistogramMaker::x ( const reco::BeamSpot bs,
const double  z 
) const

Definition at line 240 of file BSvsPVHistogramMaker.cc.

References reco::BeamSpot::dxdz(), useSlope_, reco::BeamSpot::x0(), and reco::BeamSpot::z0().

Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), fill(), geometryXMLparser.Alignable::pos(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget().

240  {
241 
242  double x = bs.x0();
243 
244  // if(useSlope_) x += bs.dxdz()*z;
245  if(useSlope_) x += bs.dxdz()*(z-bs.z0());
246 
247  // if(useSlope_) x = bs.x(z);
248 
249  return x;
250 
251 }
double z0() const
z coordinate
Definition: BeamSpot.h:68
double dxdz() const
dxdz slope
Definition: BeamSpot.h:82
double x(const reco::BeamSpot &bs, const double z) const
double x0() const
x coordinate
Definition: BeamSpot.h:64
double BSvsPVHistogramMaker::y ( const reco::BeamSpot bs,
const double  z 
) const

Definition at line 253 of file BSvsPVHistogramMaker.cc.

References reco::BeamSpot::dydz(), useSlope_, reco::BeamSpot::y0(), and reco::BeamSpot::z0().

Referenced by svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), fill(), geometryXMLparser.Alignable::pos(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget().

253  {
254 
255  double y = bs.y0();
256 
257  // if(useSlope_) y += bs.dydz()*z;
258  if(useSlope_) y += bs.dydz()*(z-bs.z0());
259 
260  // if(useSlope_) y = bs.y(z);
261 
262  return y;
263 
264 }
double z0() const
z coordinate
Definition: BeamSpot.h:68
double dydz() const
dydz slope
Definition: BeamSpot.h:84
double y(const reco::BeamSpot &bs, const double z) const
double y0() const
y coordinate
Definition: BeamSpot.h:66

Member Data Documentation

TFileDirectory* BSvsPVHistogramMaker::_currdir
private

Definition at line 43 of file BSvsPVHistogramMaker.h.

Referenced by beginRun(), book(), and ~BSvsPVHistogramMaker().

TH1F* BSvsPVHistogramMaker::_hdeltax
private

Definition at line 54 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TH1F** BSvsPVHistogramMaker::_hdeltaxrun
private

Definition at line 59 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TH2F** BSvsPVHistogramMaker::_hdeltaxvsbx2drun
private

Definition at line 72 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TProfile** BSvsPVHistogramMaker::_hdeltaxvsbxrun
private

Definition at line 68 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TProfile** BSvsPVHistogramMaker::_hdeltaxvsorbrun
private

Definition at line 64 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TProfile* BSvsPVHistogramMaker::_hdeltaxvsz
private

Definition at line 57 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TProfile** BSvsPVHistogramMaker::_hdeltaxvszrun
private

Definition at line 62 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TH1F* BSvsPVHistogramMaker::_hdeltay
private

Definition at line 55 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TH1F** BSvsPVHistogramMaker::_hdeltayrun
private

Definition at line 60 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TH2F** BSvsPVHistogramMaker::_hdeltayvsbx2drun
private

Definition at line 73 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TProfile** BSvsPVHistogramMaker::_hdeltayvsbxrun
private

Definition at line 69 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TProfile** BSvsPVHistogramMaker::_hdeltayvsorbrun
private

Definition at line 65 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TProfile* BSvsPVHistogramMaker::_hdeltayvsz
private

Definition at line 58 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TProfile** BSvsPVHistogramMaker::_hdeltayvszrun
private

Definition at line 63 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TH1F* BSvsPVHistogramMaker::_hdeltaz
private

Definition at line 56 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TH1F** BSvsPVHistogramMaker::_hdeltazrun
private

Definition at line 61 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TH2F** BSvsPVHistogramMaker::_hdeltazvsbx2drun
private

Definition at line 74 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TProfile** BSvsPVHistogramMaker::_hdeltazvsbxrun
private

Definition at line 70 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

TProfile** BSvsPVHistogramMaker::_hdeltazvsorbrun
private

Definition at line 66 of file BSvsPVHistogramMaker.h.

Referenced by book(), and fill().

const edm::ParameterSet BSvsPVHistogramMaker::_histoParameters
private

Definition at line 51 of file BSvsPVHistogramMaker.h.

Referenced by book().

RunHistogramManager BSvsPVHistogramMaker::_rhm
private

Definition at line 53 of file BSvsPVHistogramMaker.h.

Referenced by beginRun(), and book().

const bool BSvsPVHistogramMaker::_runHisto
private

Definition at line 47 of file BSvsPVHistogramMaker.h.

Referenced by beginRun(), book(), and fill().

const bool BSvsPVHistogramMaker::_runHistoBX2D
private

Definition at line 50 of file BSvsPVHistogramMaker.h.

Referenced by beginRun(), book(), and fill().

const bool BSvsPVHistogramMaker::_runHistoBXProfile
private

Definition at line 49 of file BSvsPVHistogramMaker.h.

Referenced by beginRun(), book(), and fill().

const bool BSvsPVHistogramMaker::_runHistoProfile
private

Definition at line 48 of file BSvsPVHistogramMaker.h.

Referenced by beginRun(), book(), and fill().

const bool BSvsPVHistogramMaker::_trueOnly
private

Definition at line 46 of file BSvsPVHistogramMaker.h.

Referenced by fill().

const unsigned int BSvsPVHistogramMaker::m_maxLS
private

Definition at line 44 of file BSvsPVHistogramMaker.h.

Referenced by book().

const bool BSvsPVHistogramMaker::useSlope_
private

Definition at line 45 of file BSvsPVHistogramMaker.h.

Referenced by x(), and y().