13 _currdir(
nullptr), _histoParameters(), _rhm(iC) { }
83 sprintf(runname,
"run_%d",nrun);
86 if(currdir==
nullptr) {
93 (*_hbsxrun)->GetXaxis()->SetTitle(
"X [cm]"); (*_hbsxrun)->GetYaxis()->SetTitle(
"Events");
94 (*_hbsyrun)->GetXaxis()->SetTitle(
"Y [cm]"); (*_hbsyrun)->GetYaxis()->SetTitle(
"Events");
95 (*_hbszrun)->GetXaxis()->SetTitle(
"Z [cm]"); (*_hbszrun)->GetYaxis()->SetTitle(
"Events");
96 (*_hbssigmaxrun)->GetXaxis()->SetTitle(
"sigmaX [cm]"); (*_hbssigmaxrun)->GetYaxis()->SetTitle(
"Events");
97 (*_hbssigmayrun)->GetXaxis()->SetTitle(
"sigmaY [cm]"); (*_hbssigmayrun)->GetYaxis()->SetTitle(
"Events");
98 (*_hbssigmazrun)->GetXaxis()->SetTitle(
"sigmaZ [cm]"); (*_hbssigmazrun)->GetYaxis()->SetTitle(
"Events");
100 (*_hbsxvsorbrun)->GetXaxis()->SetTitle(
"time [orbit#]"); (*_hbsxvsorbrun)->GetYaxis()->SetTitle(
"X [cm]");
101 (*_hbsxvsorbrun)->SetCanExtend(TH1::kAllAxes);
102 (*_hbsyvsorbrun)->GetXaxis()->SetTitle(
"time [orbit#]"); (*_hbsyvsorbrun)->GetYaxis()->SetTitle(
"Y [cm]");
103 (*_hbsyvsorbrun)->SetCanExtend(TH1::kAllAxes);
104 (*_hbszvsorbrun)->GetXaxis()->SetTitle(
"time [orbit#]"); (*_hbszvsorbrun)->GetYaxis()->SetTitle(
"Z [cm]");
105 (*_hbszvsorbrun)->SetCanExtend(TH1::kAllAxes);
106 (*_hbssigmaxvsorbrun)->GetXaxis()->SetTitle(
"time [orbit#]"); (*_hbssigmaxvsorbrun)->GetYaxis()->SetTitle(
"sigmaX [cm]");
107 (*_hbssigmaxvsorbrun)->SetCanExtend(TH1::kAllAxes);
108 (*_hbssigmayvsorbrun)->GetXaxis()->SetTitle(
"time [orbit#]"); (*_hbssigmayvsorbrun)->GetYaxis()->SetTitle(
"sigmaY [cm]");
109 (*_hbssigmayvsorbrun)->SetCanExtend(TH1::kAllAxes);
110 (*_hbssigmazvsorbrun)->GetXaxis()->SetTitle(
"time [orbit#]"); (*_hbssigmazvsorbrun)->GetYaxis()->SetTitle(
"sigmaZ [cm]");
111 (*_hbssigmazvsorbrun)->SetCanExtend(TH1::kAllAxes);
BeamSpotHistogramMaker(edm::ConsumesCollector &&iC)
TProfile ** _hbssigmaxvsorbrun
double z0() const
z coordinate
T getUntrackedParameter(std::string const &, T const &) const
TProfile ** _hbsxvsorbrun
TFileDirectory * _currdir
void book(const std::string dirname="")
TProfile ** _hbssigmayvsorbrun
void beginRun(const unsigned int nrun)
TFileDirectory & tFileDirectory()
TH1F ** makeTH1F(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
TProfile ** _hbsyvsorbrun
TProfile ** _hbszvsorbrun
void fill(const unsigned int orbit, const reco::BeamSpot &bs)
TProfile ** makeTProfile(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
double BeamWidthX() const
beam width X
~BeamSpotHistogramMaker()
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
void beginRun(const edm::Run &iRun)
double sigmaZ() const
sigma z
double BeamWidthY() const
beam width Y
double y0() const
y coordinate
const edm::ParameterSet _histoParameters
TProfile ** _hbssigmazvsorbrun
double x0() const
x coordinate