39 .getUntrackedParameter<int>(
"fitEveryNLumi", -1);
41 .getUntrackedParameter<int>(
"resetEveryNLumi", -1);
57 produces<reco::BeamSpot, edm::Transition::EndLuminosityBlock>(
"alcaBeamSpot");
73 const std::time_t ftmptime = fbegintimestamp >> 32;
91 const std::time_t fendtime = fendtimestamp >> 32;
111 edm::LogInfo(
"AlcaBeamSpotProducer") <<
"\n RESULTS OF DEFAULT FIT " << std::endl
113 <<
" for lumi blocks : " << LSRange.first <<
" - " << LSRange.second
115 <<
" lumi counter # " <<
countLumi_ << std::endl
121 edm::LogInfo(
"AlcaBeamSpotProducer") <<
"\n Empty Beam spot fit" << std::endl
123 <<
" for lumi blocks : " << LSRange.first <<
" - " << LSRange.second
125 <<
" lumi counter # " <<
countLumi_ << std::endl
131 auto result = std::make_unique<reco::BeamSpot>();
137 edm::LogInfo(
"AlcaBeamSpotProducer") <<
"Total number of tracks accumulated = " << theBSvector.size() << std::endl
138 <<
"Reset track collection for beam fit" << std::endl;
T getParameter(std::string const &) const
std::vector< BSTrkParameters > getBSvector()
void readEvent(const edm::Event &iEvent)
AlcaBeamSpotProducer(const edm::ParameterSet &)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void put(std::unique_ptr< PROD > product)
Put a new product.
void setFitLSRange(int ls0, int ls1)
#define DEFINE_FWK_MODULE(type)
BeamFitter * theBeamFitter
unsigned long long TimeValue_t
~AlcaBeamSpotProducer() override
Log< level::Info, false > LogInfo
TimeValue_t value() const
Timestamp const & beginTime() const
Timestamp const & endTime() const
void endLuminosityBlockProduce(edm::LuminosityBlock &lumiSeg, const edm::EventSetup &iSetup) final
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) final
std::pair< int, int > getFitLSRange()
void setRefTime(time_t t0, time_t t1)
LuminosityBlockNumber_t luminosityBlock() const
reco::BeamSpot getBeamSpot()
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, const edm::EventSetup &iSetup) final
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, const edm::EventSetup &iSetup) final