CMS 3D CMS Logo

AlcaBeamSpotManager.h
Go to the documentation of this file.
1 #ifndef AlcaBeamSpotManager_H
2 #define AlcaBeamSpotManager_H
3 
14 //#include "DataFormats/Provenance/interface/LuminosityBlockID.h"
15 #include <string>
16 #include <map>
17 #include <utility>
18 
19 
21  public:
22  AlcaBeamSpotManager (void);
24  virtual ~AlcaBeamSpotManager(void);
25 
26  void reset(void);
27  void readLumi(const edm::LuminosityBlock&);
28  void createWeightedPayloads(void);
29  const std::map<edm::LuminosityBlockNumber_t,reco::BeamSpot>& getPayloads(void){return beamSpotMap_;}
30 
31  typedef std::map<edm::LuminosityBlockNumber_t,reco::BeamSpot>::iterator bsMap_iterator;
32  private:
33  reco::BeamSpot weight (const bsMap_iterator& begin,
34  const bsMap_iterator& end);
35  void weight (double& mean,double& meanError,const double& val,const double& valError);
36  std::pair<float,float> delta (const float& x, const float& xError, const float& nextX, const float& nextXError);
37  float deltaSig(const float& num, const float& den);
38  std::map<edm::LuminosityBlockNumber_t,reco::BeamSpot> beamSpotMap_;
39 
43  double sigmaZCut_;
46 
47 };
48 
49 #endif
std::string beamSpotOutputBase_
edm::InputTag beamSpotTag_
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
std::map< edm::LuminosityBlockNumber_t, reco::BeamSpot >::iterator bsMap_iterator
std::string beamSpotModuleName_
const std::map< edm::LuminosityBlockNumber_t, reco::BeamSpot > & getPayloads(void)
reco::BeamSpot weight(const bsMap_iterator &begin, const bsMap_iterator &end)
virtual ~AlcaBeamSpotManager(void)
#define end
Definition: vmac.h:39
void readLumi(const edm::LuminosityBlock &)
#define begin
Definition: vmac.h:32
std::pair< float, float > delta(const float &x, const float &xError, const float &nextX, const float &nextXError)
std::map< edm::LuminosityBlockNumber_t, reco::BeamSpot > beamSpotMap_
float deltaSig(const float &num, const float &den)