CMS 3D CMS Logo

AlcaBeamSpotManager.h
Go to the documentation of this file.
1 #ifndef AlcaBeamSpotManager_H
2 #define AlcaBeamSpotManager_H
3 
14 #include <string>
15 #include <map>
16 #include <utility>
17 
18 
20  public:
21  AlcaBeamSpotManager (void);
23  virtual ~AlcaBeamSpotManager(void);
24 
25  void reset(void);
26  void readLumi(const edm::LuminosityBlock&);
27  void createWeightedPayloads(void);
28  const std::map<edm::LuminosityBlockNumber_t,std::pair<edm::Timestamp,reco::BeamSpot> >& getPayloads(void){return beamSpotMap_;}
29 
30  typedef std::map<edm::LuminosityBlockNumber_t,std::pair<edm::Timestamp,reco::BeamSpot> >::iterator bsMap_iterator;
31  private:
32  reco::BeamSpot weight (const bsMap_iterator& begin,
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);
36  float deltaSig(const float& num, const float& den);
37  std::map<edm::LuminosityBlockNumber_t,std::pair<edm::Timestamp,reco::BeamSpot> > beamSpotMap_;
38 
42  double sigmaZCut_;
45 
46 };
47 
48 #endif
std::string beamSpotOutputBase_
edm::InputTag beamSpotTag_
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
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)
#define end
Definition: vmac.h:39
void readLumi(const edm::LuminosityBlock &)
#define begin
Definition: vmac.h:32
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)