CMS 3D CMS Logo

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:
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
AlcaBeamSpotManager::deltaSig
float deltaSig(const float &num, const float &den)
Definition: AlcaBeamSpotManager.cc:412
SiStripPI::mean
Definition: SiStripPayloadInspectorHelper.h:169
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::EDGetTokenT< reco::BeamSpot >
LuminosityBlock.h
AlcaBeamSpotManager::reset
void reset(void)
Definition: AlcaBeamSpotManager.cc:41
DDAxes::x
AlcaBeamSpotManager::AlcaBeamSpotManager
AlcaBeamSpotManager(void)
Definition: AlcaBeamSpotManager.cc:19
AlcaBeamSpotManager::beamSpotOutputBase_
std::string beamSpotOutputBase_
Definition: AlcaBeamSpotManager.h:40
AlcaBeamSpotManager::createWeightedPayloads
void createWeightedPayloads(void)
Definition: AlcaBeamSpotManager.cc:61
AlcaBeamSpotManager::readLumi
void readLumi(const edm::LuminosityBlock &)
Definition: AlcaBeamSpotManager.cc:43
AlcaBeamSpotManager::weight
reco::BeamSpot weight(const bsMap_iterator &begin, const bsMap_iterator &end)
Definition: AlcaBeamSpotManager.cc:349
BeamSpot.h
AlcaBeamSpotManager::beamSpotTag_
edm::InputTag beamSpotTag_
Definition: AlcaBeamSpotManager.h:44
mps_fire.end
end
Definition: mps_fire.py:242
reco::BeamSpot
Definition: BeamSpot.h:21
AlcaBeamSpotManager::beamSpotToken_
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
Definition: AlcaBeamSpotManager.h:45
AlcaBeamSpotManager::getPayloads
const std::map< edm::LuminosityBlockNumber_t, std::pair< edm::Timestamp, reco::BeamSpot > > & getPayloads(void)
Definition: AlcaBeamSpotManager.h:27
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
AlcaBeamSpotManager
Definition: AlcaBeamSpotManager.h:18
AlcaBeamSpotManager::sigmaZCut_
double sigmaZCut_
Definition: AlcaBeamSpotManager.h:43
AlcaBeamSpotManager::~AlcaBeamSpotManager
virtual ~AlcaBeamSpotManager(void)
Definition: AlcaBeamSpotManager.cc:38
AlcaBeamSpotManager::bsMap_iterator
std::map< edm::LuminosityBlockNumber_t, std::pair< edm::Timestamp, reco::BeamSpot > >::iterator bsMap_iterator
Definition: AlcaBeamSpotManager.h:31
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:34
AlcaBeamSpotManager::beamSpotModuleName_
std::string beamSpotModuleName_
Definition: AlcaBeamSpotManager.h:41
AlcaBeamSpotManager::delta
std::pair< float, float > delta(const float &x, const float &xError, const float &nextX, const float &nextXError)
Definition: AlcaBeamSpotManager.cc:404
AlcaBeamSpotManager::beamSpotLabel_
std::string beamSpotLabel_
Definition: AlcaBeamSpotManager.h:42
heppy_batch.val
val
Definition: heppy_batch.py:351
ConsumesCollector.h
ParameterSet.h
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
AlcaBeamSpotManager::beamSpotMap_
std::map< edm::LuminosityBlockNumber_t, std::pair< edm::Timestamp, reco::BeamSpot > > beamSpotMap_
Definition: AlcaBeamSpotManager.h:38