CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlcaBeamSpotManager.h
Go to the documentation of this file.
1 #ifndef AlcaBeamSpotManager_H
2 #define AlcaBeamSpotManager_H
3 
15 //#include "DataFormats/Provenance/interface/LuminosityBlockID.h"
16 #include <string>
17 #include <map>
18 #include <utility>
19 
20 
22  public:
23  AlcaBeamSpotManager (void);
25  virtual ~AlcaBeamSpotManager(void);
26 
27  void reset(void);
28  void readLumi(const edm::LuminosityBlock&);
29  void createWeightedPayloads(void);
30  const std::map<edm::LuminosityBlockNumber_t,reco::BeamSpot>& getPayloads(void){return beamSpotMap_;}
31 
32  typedef std::map<edm::LuminosityBlockNumber_t,reco::BeamSpot>::iterator bsMap_iterator;
33  private:
35  const bsMap_iterator& end);
36  void weight (double& mean,double& meanError,const double& val,const double& valError);
37  std::pair<float,float> delta (const float& x, const float& xError, const float& nextX, const float& nextXError);
38  float deltaSig(const float& num, const float& den);
39  std::map<edm::LuminosityBlockNumber_t,reco::BeamSpot> beamSpotMap_;
40 
41  std::string beamSpotOutputBase_;
42  std::string beamSpotModuleName_;
43  std::string beamSpotLabel_;
44 
45 };
46 
47 #endif
std::string beamSpotOutputBase_
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:38
void readLumi(const edm::LuminosityBlock &)
long long int num
Definition: procUtils.cc:71
#define begin
Definition: vmac.h:31
Definition: DDAxes.h:10
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)