40 .getUntrackedParameter<int>(
"fitEveryNLumi", -1);
42 .getUntrackedParameter<int>(
"resetEveryNLumi", -1);
58 produces<reco::BeamSpot, edm::Transition::EndLuminosityBlock>(
"alcaBeamSpot");
74 const std::time_t ftmptime = fbegintimestamp >> 32;
92 const std::time_t fendtime = fendtimestamp >> 32;
112 edm::LogInfo(
"AlcaBeamSpotProducer") <<
"\n RESULTS OF DEFAULT FIT " << std::endl
114 <<
" for lumi blocks : " << LSRange.first <<
" - " << LSRange.second
116 <<
" lumi counter # " <<
countLumi_ << std::endl
122 edm::LogInfo(
"AlcaBeamSpotProducer") <<
"\n Empty Beam spot fit" << std::endl
124 <<
" for lumi blocks : " << LSRange.first <<
" - " << LSRange.second
126 <<
" lumi counter # " <<
countLumi_ << std::endl
132 auto result = std::make_unique<reco::BeamSpot>();
138 edm::LogInfo(
"AlcaBeamSpotProducer") <<
"Total number of tracks accumulated = " << theBSvector.size() << std::endl
139 <<
"Reset track collection for beam fit" << std::endl;
T getParameter(std::string const &) const
std::vector< BSTrkParameters > getBSvector()
Timestamp const & beginTime() const
void readEvent(const edm::Event &iEvent)
void setType(BeamType type)
set beam type
LuminosityBlockNumber_t luminosityBlock() const
#define DEFINE_FWK_MODULE(type)
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.
Timestamp const & endTime() const
void setFitLSRange(int ls0, int ls1)
BeamFitter * theBeamFitter
unsigned long long TimeValue_t
~AlcaBeamSpotProducer() override
void endLuminosityBlockProduce(edm::LuminosityBlock &lumiSeg, const edm::EventSetup &iSetup) final
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) final
void setRefTime(time_t t0, time_t t1)
std::pair< int, int > getFitLSRange()
TimeValue_t value() 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