1 #ifndef AlcaBeamSpotManager_H 2 #define AlcaBeamSpotManager_H 28 const std::map<edm::LuminosityBlockNumber_t,std::pair<edm::Timestamp,reco::BeamSpot> >&
getPayloads(
void){
return beamSpotMap_;}
30 typedef std::map<edm::LuminosityBlockNumber_t,std::pair<edm::Timestamp,reco::BeamSpot> >::iterator
bsMap_iterator;
33 const bsMap_iterator&
end);
34 void weight (
double&
mean,
double& meanError,
const double&
val,
const double& valError);
35 std::pair<float,float>
delta (
const float&
x,
const float& xError,
const float& nextX,
const float& nextXError);
37 std::map<edm::LuminosityBlockNumber_t,std::pair<edm::Timestamp,reco::BeamSpot> >
beamSpotMap_;
std::string beamSpotOutputBase_
edm::InputTag beamSpotTag_
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
AlcaBeamSpotManager(void)
std::map< edm::LuminosityBlockNumber_t, std::pair< edm::Timestamp, reco::BeamSpot > > beamSpotMap_
std::map< edm::LuminosityBlockNumber_t, std::pair< edm::Timestamp, reco::BeamSpot > >::iterator bsMap_iterator
std::string beamSpotModuleName_
reco::BeamSpot weight(const bsMap_iterator &begin, const bsMap_iterator &end)
virtual ~AlcaBeamSpotManager(void)
void createWeightedPayloads(void)
void readLumi(const edm::LuminosityBlock &)
std::string beamSpotLabel_
const std::map< edm::LuminosityBlockNumber_t, std::pair< edm::Timestamp, reco::BeamSpot > > & getPayloads(void)
std::pair< float, float > delta(const float &x, const float &xError, const float &nextX, const float &nextXError)
float deltaSig(const float &num, const float &den)