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";
113 posVtx =
bs.position();
114 errVtx(0, 0) =
bs.BeamWidthX();
115 errVtx(1, 1) =
bs.BeamWidthY();
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);
math::Error< dimension >::type Error
covariance error matrix (3x3)
muons
the two sets of parameters below are mutually exclusive, depending if RECO or ALCARECO is used the us...
edm::EDGetTokenT< edm::View< pat::Muon > > theMuonCollectionLabel_
math::XYZPoint Point
point in the space
Log< level::Info, false > LogInfo
std::vector< MonitorElement * > workingPoints
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
static int position[264][3]
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_