85 : beamSpotToken_(
esConsumes()), bstree_(nullptr) {
87 usesResource(
"TFileService");
89 if (!fileName.empty()) {
90 output_ = std::make_unique<std::ofstream>(fileName.c_str());
92 edm::LogError(
"IOproblem") <<
"Could not open output file " << fileName <<
".";
105 float dummy_float = 9999.0;
106 int dummy_int = 9999;
122 std::ostringstream
output;
146 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_
#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
std::unique_ptr< std::ofstream > output_
Log< level::Error, false > LogError
LuminosityBlockNumber_t luminosityBlock() const
double GetBeamWidthY() const
get average transverse beam width
const edm::ESGetToken< BeamSpotObjects, BeamSpotObjectsRcd > beamSpotToken_
bool getData(T &iHolder) const
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
Log< level::Info, false > LogInfo
double GetX() const
get X beam position
bool check(const edm::EventSetup &iSetup)
~BeamSpotRcdReader() override