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 
14 #include <map>
15 #include <string>
16 #include <utility>
17 
19 public:
20  AlcaBeamSpotManager(void);
22  virtual ~AlcaBeamSpotManager(void);
23 
24  void reset(void);
25  void readLumi(const edm::LuminosityBlock &);
26  void createWeightedPayloads(void);
27  const std::map<edm::LuminosityBlockNumber_t, std::pair<edm::Timestamp, reco::BeamSpot>> &getPayloads(void) {
28  return beamSpotMap_;
29  }
30 
31  typedef std::map<edm::LuminosityBlockNumber_t, std::pair<edm::Timestamp, reco::BeamSpot>>::iterator bsMap_iterator;
32 
33 private:
34  reco::BeamSpot weight(const bsMap_iterator &begin, 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, std::pair<edm::Timestamp, reco::BeamSpot>> beamSpotMap_;
39 
43  double sigmaZCut_;
46 };
47 
48 #endif
std::string beamSpotOutputBase_
std::map< edm::LuminosityBlockNumber_t, std::pair< edm::Timestamp, reco::BeamSpot > > beamSpotMap_
edm::InputTag beamSpotTag_
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
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)
#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)
const std::map< edm::LuminosityBlockNumber_t, std::pair< edm::Timestamp, reco::BeamSpot > > & getPayloads(void)
float deltaSig(const float &num, const float &den)