94 usesResource(
"TFileService");
96 if (!fileName.empty()) {
97 output_.reset(
new std::ofstream(fileName.c_str()));
99 edm::LogError(
"IOproblem") <<
"Could not open output file " << fileName <<
".";
115 float dummy_float = 9999.0;
116 int dummy_int = 9999;
123 Beamsigmaz_ = dummy_float;
124 Beamdxdz_ = dummy_float;
125 BeamWidthX_ = dummy_float;
126 BeamWidthY_ = dummy_float;
132 std::ostringstream
output;
158 output << *mybeamspot << std::endl;
T getUntrackedParameter(std::string const &, T const &) const
double GetY() const
get Y beam position
edm::ESWatcher< BeamSpotObjectsRcd > watcher_
struct BeamSpotRcdReader::theBSfromDB theBSfromDB_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
double GetSigmaZ() const
get sigma Z, RMS bunch length
double GetBeamWidthX() const
get average transverse beam width
T * make(const Args &...args) const
make new ROOT object
std::unique_ptr< std::ofstream > output_
LuminosityBlockNumber_t luminosityBlock() const
double GetBeamWidthY() const
get average transverse beam width
#define DEFINE_FWK_MODULE(type)
void addDefault(ParameterSetDescription const &psetDescription)
void analyze(const edm::Event &, const edm::EventSetup &) override
BeamSpotRcdReader(const edm::ParameterSet &)
double GetZ() const
get Z beam position
edm::Service< TFileService > tFileService
double Getdxdz() const
get dxdz slope, crossing angle in XZ
double GetX() const
get X beam position
bool check(const edm::EventSetup &iSetup)
~BeamSpotRcdReader() override
T const * product() const