59 virtual void endJob()
override;
98 usesResource(
"TFileService");
100 if (fileName.size()) {
101 output_.reset(
new std::ofstream(fileName.c_str()));
103 edm::LogError(
"IOproblem") <<
"Could not open output file " << fileName <<
".";
127 float dummy_float = 9999.0;
128 int dummy_int = 9999;
135 Beamsigmaz_ = dummy_float;
136 Beamdxdz_ = dummy_float;
137 BeamWidthX_ = dummy_float;
138 BeamWidthY_ = dummy_float;
148 std::ostringstream
output;
174 output << *mybeamspot << std::endl;
virtual void beginJob() override
T getUntrackedParameter(std::string const &, T const &) const
double GetY() const
get Y beam position
edm::ESWatcher< BeamSpotObjectsRcd > watcher_
struct BeamSpotRcdReader::theBSfromDB theBSfromDB_
#define DEFINE_FWK_MODULE(type)
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
LuminosityBlockNumber_t luminosityBlock() const
double GetBeamWidthY() const
get average transverse beam width
std::auto_ptr< std::ofstream > output_
virtual void endJob() override
void addDefault(ParameterSetDescription const &psetDescription)
virtual 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)
T const * product() const