#include <PVFitter.h>
Public Member Functions | |
void | compressStore () |
reduce size of primary vertex cache by increasing quality limit More... | |
void | dumpTxtFile () |
void | FitPerBunchCrossing () |
reco::BeamSpot | getBeamSpot () |
std::map< int, reco::BeamSpot > | getBeamSpotMap () |
int * | getFitLSRange () |
int | getNPVs () |
const std::map< int, int > & | getNPVsperBX () |
std::vector< BeamSpotFitPVData > | getpvStore () |
time_t * | getRefTime () |
double | getWidthX () |
double | getWidthXerr () |
double | getWidthY () |
double | getWidthYerr () |
double | getWidthZ () |
double | getWidthZerr () |
void | initialize (const edm::ParameterSet &iConfig, edm::ConsumesCollector &iColl) |
bool | IsFitPerBunchCrossing () |
PVFitter () | |
PVFitter (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iColl) | |
PVFitter (const edm::ParameterSet &iConfig, edm::ConsumesCollector &iColl) | |
double | pvQuality (const reco::Vertex &pv) const |
vertex quality measure More... | |
double | pvQuality (const BeamSpotFitPVData &pv) const |
vertex quality measure More... | |
void | readEvent (const edm::Event &iEvent) |
void | resetAll () |
void | resetLSRange () |
void | resetRefTime () |
void | resizepvStore (unsigned int rmSize) |
bool | runBXFitter () |
bool | runFitter () |
void | setFitLSRange (int ls0, int ls1) |
void | setRefTime (std::time_t t0, std::time_t t1) |
void | setTree (TTree *tree) |
virtual | ~PVFitter () |
Private Attributes | |
std::map< int, std::vector< BeamSpotFitPVData > > | bxMap_ |
bool | debug_ |
bool | do3DFit_ |
double | dynamicQualityCut_ |
double | errorScale_ |
std::ofstream | fasciiFile |
reco::BeamSpot | fbeamspot |
int | fbeginLumiOfFit |
std::map< int, reco::BeamSpot > | fbspotMap |
int | fendLumiOfFit |
bool | fFitPerBunchCrossing |
std::time_t | freftime [2] |
TTree * | ftree_ |
double | fwidthX |
double | fwidthXerr |
double | fwidthY |
double | fwidthYerr |
double | fwidthZ |
double | fwidthZerr |
TH2F * | hPVx |
TH2F * | hPVy |
unsigned int | maxNrVertices_ |
double | maxVtxNormChi2_ |
double | maxVtxR_ |
double | maxVtxZ_ |
unsigned int | minNrVertices_ |
double | minSumPt_ |
double | minVtxNdf_ |
unsigned int | minVtxTracks_ |
double | minVtxWgt_ |
std::map< int, int > | npvsmap_ |
std::string | outputTxt_ |
std::vector< double > | pvQualities_ |
std::vector< BeamSpotFitPVData > | pvStore_ |
double | sigmaCut_ |
BeamSpotTreeData | theBeamSpotTreeData_ |
bool | useOnlyFirstPV_ |
edm::EDGetTokenT< reco::VertexCollection > | vertexToken_ |
Definition at line 43 of file PVFitter.h.
|
inline |
Definition at line 45 of file PVFitter.h.
References iEvent, initialize(), and d0_phi_analyzer_cff::PVFitter.
PVFitter::PVFitter | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector && | iColl | ||
) |
Definition at line 44 of file PVFitter.cc.
References initialize().
PVFitter::PVFitter | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector & | iColl | ||
) |
Definition at line 51 of file PVFitter.cc.
References initialize().
|
virtual |
Definition at line 92 of file PVFitter.cc.
void PVFitter::compressStore | ( | ) |
reduce size of primary vertex cache by increasing quality limit
Definition at line 479 of file PVFitter.cc.
References dynamicQualityCut_, mps_fire::i, pvQualities_, pvQuality(), and pvStore_.
Referenced by readEvent().
void PVFitter::dumpTxtFile | ( | ) |
Definition at line 473 of file PVFitter.cc.
|
inline |
Definition at line 63 of file PVFitter.h.
|
inline |
Definition at line 91 of file PVFitter.h.
Referenced by AlcaBeamMonitor::endLuminosityBlock(), and BeamFitter::runPVandTrkFitter().
|
inline |
|
inline |
|
inline |
Definition at line 120 of file PVFitter.h.
|
inline |
Definition at line 122 of file PVFitter.h.
References genParticles_cff::map, and findQualityFiles::size.
|
inline |
Definition at line 61 of file PVFitter.h.
|
inline |
Definition at line 101 of file PVFitter.h.
|
inline |
Definition at line 54 of file PVFitter.h.
|
inline |
|
inline |
Definition at line 55 of file PVFitter.h.
|
inline |
Definition at line 58 of file PVFitter.h.
|
inline |
Definition at line 56 of file PVFitter.h.
|
inline |
Definition at line 59 of file PVFitter.h.
void PVFitter::initialize | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector & | iColl | ||
) |
Definition at line 58 of file PVFitter.cc.
References edm::ConsumesCollector::consumes(), debug_, do3DFit_, dynamicQualityCut_, errorScale_, fFitPerBunchCrossing, edm::ParameterSet::getParameter(), hPVx, hPVy, maxNrVertices_, maxVtxNormChi2_, maxVtxR_, maxVtxZ_, minNrVertices_, minSumPt_, minVtxNdf_, minVtxTracks_, minVtxWgt_, sigmaCut_, useOnlyFirstPV_, and vertexToken_.
Referenced by PVFitter().
|
inline |
Definition at line 93 of file PVFitter.h.
Referenced by BeamFitter::dumpTxtFile(), and BeamFitter::runPVandTrkFitter().
double PVFitter::pvQuality | ( | const reco::Vertex & | pv | ) | const |
vertex quality measure
Definition at line 511 of file PVFitter.cc.
References reco::Vertex::covariance().
Referenced by compressStore(), and readEvent().
double PVFitter::pvQuality | ( | const BeamSpotFitPVData & | pv | ) | const |
vertex quality measure
Definition at line 522 of file PVFitter.cc.
References BeamSpotFitPVData::posCorr, and BeamSpotFitPVData::posError.
void PVFitter::readEvent | ( | const edm::Event & | iEvent | ) |
Definition at line 97 of file PVFitter.cc.
References BeamSpotFitPVData::bunchCrossing, BeamSpotTreeData::bunchCrossing(), edm::EventBase::bunchCrossing(), bxMap_, compressStore(), dynamicQualityCut_, fFitPerBunchCrossing, ftree_, edm::Event::getByToken(), hPVx, hPVy, edm::EventBase::id(), BeamSpotTreeData::lumi(), edm::EventBase::luminosityBlock(), maxNrVertices_, minSumPt_, minVtxNdf_, minVtxTracks_, minVtxWgt_, BeamSpotFitPVData::posCorr, BeamSpotFitPVData::posError, BeamSpotFitPVData::position, EnergyCorrector::pt, MetAnalyzer::pv(), BeamSpotTreeData::pvData(), pvQuality(), pvStore_, BeamSpotTreeData::run(), edm::EventID::run(), TtFullHadEvtBuilder_cfi::sumPt, theBeamSpotTreeData_, useOnlyFirstPV_, and vertexToken_.
Referenced by AlcaBeamMonitor::analyze(), and BeamFitter::readEvent().
|
inline |
Definition at line 80 of file PVFitter.h.
References align::BeamSpot.
Referenced by BeamFitter::BeamFitter(), and AlcaBeamMonitor::endLuminosityBlock().
|
inline |
Definition at line 66 of file PVFitter.h.
|
inline |
Definition at line 67 of file PVFitter.h.
|
inline |
bool PVFitter::runBXFitter | ( | ) |
Definition at line 190 of file PVFitter.cc.
References align::BeamSpot, bxMap_, errorScale_, fbeamspot, fbspotMap, fcn(), fwidthX, fwidthXerr, fwidthY, fwidthYerr, fwidthZ, fwidthZerr, genParticles_cff::map, makeMuonMisalignmentScenario::matrix, minNrVertices_, funct::pow(), reco::BeamSpot::setBeamWidthX(), reco::BeamSpot::setBeamWidthY(), FcnBeamSpotFitPV::setLimits(), reco::BeamSpot::setType(), sigmaCut_, findQualityFiles::size, and reco::BeamSpot::Tracker.
Referenced by BeamFitter::runPVandTrkFitter().
bool PVFitter::runFitter | ( | ) |
Definition at line 314 of file PVFitter.cc.
References align::BeamSpot, do3DFit_, benchmark_cfg::errors, errorScale_, fftjetvertexadder_cfi::errX, fftjetvertexadder_cfi::errY, fftjetvertexadder_cfi::errZ, fbeamspot, fcn(), fwidthX, fwidthXerr, fwidthY, fwidthYerr, fwidthZ, fwidthZerr, hPVx, hPVy, edm::isNotFinite(), makeMuonMisalignmentScenario::matrix, minNrVertices_, funct::pow(), pvStore_, mps_update::results, reco::BeamSpot::setBeamWidthX(), reco::BeamSpot::setBeamWidthY(), reco::BeamSpot::setType(), sigmaCut_, and reco::BeamSpot::Tracker.
Referenced by AlcaBeamMonitor::endLuminosityBlock(), and BeamFitter::runPVandTrkFitter().
|
inline |
Definition at line 73 of file PVFitter.h.
|
inline |
void PVFitter::setTree | ( | TTree * | tree | ) |
Definition at line 185 of file PVFitter.cc.
References BeamSpotTreeData::branch(), ftree_, theBeamSpotTreeData_, and compare::tree.
Referenced by BeamFitter::BeamFitter().
|
private |
Definition at line 179 of file PVFitter.h.
Referenced by readEvent(), and runBXFitter().
|
private |
Definition at line 145 of file PVFitter.h.
Referenced by initialize().
|
private |
Definition at line 146 of file PVFitter.h.
Referenced by initialize(), and runFitter().
|
private |
Definition at line 180 of file PVFitter.h.
Referenced by compressStore(), initialize(), and readEvent().
|
private |
Definition at line 158 of file PVFitter.h.
Referenced by initialize(), runBXFitter(), and runFitter().
|
private |
Definition at line 143 of file PVFitter.h.
|
private |
Definition at line 138 of file PVFitter.h.
Referenced by runBXFitter(), and runFitter().
|
private |
Definition at line 169 of file PVFitter.h.
|
private |
Definition at line 139 of file PVFitter.h.
Referenced by runBXFitter().
|
private |
Definition at line 170 of file PVFitter.h.
|
private |
Definition at line 140 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 162 of file PVFitter.h.
|
private |
Definition at line 166 of file PVFitter.h.
Referenced by readEvent(), and setTree().
|
private |
Definition at line 171 of file PVFitter.h.
Referenced by runBXFitter(), and runFitter().
|
private |
Definition at line 174 of file PVFitter.h.
Referenced by runBXFitter(), and runFitter().
|
private |
Definition at line 172 of file PVFitter.h.
Referenced by runBXFitter(), and runFitter().
|
private |
Definition at line 175 of file PVFitter.h.
Referenced by runBXFitter(), and runFitter().
|
private |
Definition at line 173 of file PVFitter.h.
Referenced by runBXFitter(), and runFitter().
|
private |
Definition at line 176 of file PVFitter.h.
Referenced by runBXFitter(), and runFitter().
|
private |
Definition at line 164 of file PVFitter.h.
Referenced by initialize(), readEvent(), and runFitter().
|
private |
Definition at line 164 of file PVFitter.h.
Referenced by initialize(), readEvent(), and runFitter().
|
private |
Definition at line 150 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 153 of file PVFitter.h.
Referenced by initialize().
|
private |
Definition at line 156 of file PVFitter.h.
Referenced by initialize().
|
private |
Definition at line 157 of file PVFitter.h.
Referenced by initialize().
|
private |
Definition at line 151 of file PVFitter.h.
Referenced by initialize(), runBXFitter(), and runFitter().
|
private |
Definition at line 160 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 152 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 154 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 155 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 137 of file PVFitter.h.
|
private |
Definition at line 148 of file PVFitter.h.
|
private |
Definition at line 181 of file PVFitter.h.
Referenced by compressStore().
|
private |
Definition at line 178 of file PVFitter.h.
Referenced by compressStore(), readEvent(), and runFitter().
|
private |
Definition at line 159 of file PVFitter.h.
Referenced by initialize(), runBXFitter(), and runFitter().
|
private |
Definition at line 183 of file PVFitter.h.
Referenced by readEvent(), and setTree().
|
private |
Definition at line 141 of file PVFitter.h.
Referenced by initialize(), and readEvent().
|
private |
Definition at line 147 of file PVFitter.h.
Referenced by initialize(), and readEvent().