79 : beamSpotToken_(
esConsumes()), bstree_(nullptr) {
81 usesResource(
"TFileService");
97 float dummy_double = 0.0;
116 std::ostringstream
output;
123 output <<
" for runs: " <<
iEvent.id().run() <<
" - " <<
iEvent.id().luminosityBlock() << std::endl;
140 output << *mybeamspot << std::endl;
double sigmaZ() const
get sigmaZ
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
struct BeamProfile2DBReader::TheBSfromDB theBSfromDB_
void analyze(const edm::Event &, const edm::EventSetup &) override
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
BeamProfile2DBReader(const edm::ParameterSet &)
edm::Service< TFileService > tFileService
Log< level::Error, false > LogError
double alpha() const
get Alpha
std::unique_ptr< std::ofstream > output_
T getUntrackedParameter(std::string const &, T const &) const
edm::ESWatcher< SimBeamSpotObjectsRcd > watcher_
const edm::ESGetToken< SimBeamSpotObjects, SimBeamSpotObjectsRcd > beamSpotToken_
#define DEFINE_FWK_MODULE(type)
Log< level::Info, false > LogInfo
double timeOffset() const
get TimeOffset
bool check(const edm::EventSetup &iSetup)
double z() const
get Z position
double emittance() const
get Emittance
double phi() const
get Phi
double betaStar() const
get BetaStar
T * make(const Args &...args) const
make new ROOT object
double x() const
get X position
double y() const
get Y position
~BeamProfile2DBReader() override=default