Inizialize parameters for histo binning.
92 unsigned int theIndexOfThePrimaryVertex = 999.;
94 LogTrace(
metname) <<
"[EfficiencyAnalyzer] Could not find vertex collection" << std::endl;
95 for (
unsigned int ind = 0; ind < vertex->size(); ++ind) {
96 if ((*vertex)[ind].isValid() && !((*vertex)[ind].isFake())) {
97 theIndexOfThePrimaryVertex = ind;
103 if (theIndexOfThePrimaryVertex < 100) {
104 posVtx = ((*vertex)[theIndexOfThePrimaryVertex]).
position();
105 errVtx = ((*vertex)[theIndexOfThePrimaryVertex]).
error();
107 LogInfo(
"RecoMuonValidator") <<
"reco::PrimaryVertex not found, use BeamSpot position instead\n";
116 errVtx(2, 2) = bs.
sigmaZ();
126 if (
PassesCut_A(muon1, thePrimaryVertex, (*monitor)->getName()))
130 if (
PassesCut_B(muon1, thePrimaryVertex, (*monitor)->getName()))
135 (*monitor)->Fill(Pass_A, Pass_B);
bool getByToken(EDGetToken token, Handle< PROD > &result) const
math::Error< dimension >::type Error
covariance error matrix (3x3)
edm::EDGetTokenT< edm::View< pat::Muon > > theMuonCollectionLabel_
math::XYZPoint Point
point in the space
double BeamWidthX() const
beam width X
Log< level::Info, false > LogInfo
double sigmaZ() const
sigma z
double BeamWidthY() const
beam width Y
std::vector< MonitorElement * > workingPoints
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
static int position[264][3]
const Point & position() const
position
bool PassesCut_A(edm::View< pat::Muon >::const_iterator, reco::Vertex, TString)
edm::EDGetTokenT< reco::BeamSpot > theBeamSpotLabel_
bool PassesCut_B(edm::View< pat::Muon >::const_iterator, reco::Vertex, TString)
edm::EDGetTokenT< reco::VertexCollection > theVertexLabel_