Changes in modules/RunPUPPI.cc [d6ce231:659c7b6] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/RunPUPPI.cc
rd6ce231 r659c7b6 166 166 Candidate *pv = static_cast<Candidate*>(fPVItInputArray->Next()); 167 167 if (pv) PVZ = pv->Position.Z(); 168 168 169 // Fill input particles for puppi 169 170 std::vector<RecoObj> puppiInputVector; … … 178 179 curRecoObj.phi = momentum.Phi(); 179 180 curRecoObj.m = momentum.M(); 180 particle = static_cast<Candidate*>(candidate->GetCandidates()->At(0));//if(fApplyNoLep && TMath::Abs(candidate->PID) == 11) continue; //Dumb cut to minimize the nolepton on electron 181 particle = static_cast<Candidate*>(candidate->GetCandidates()->Last()); 182 //if(fApplyNoLep && TMath::Abs(candidate->PID) == 11) continue; //Dumb cut to minimize the nolepton on electron 181 183 //if(fApplyNoLep && TMath::Abs(candidate->PID) == 13) continue; 182 184 if (candidate->IsRecoPU and candidate->Charge !=0) { // if it comes fromPU vertexes after the resolution smearing and the dZ matching within resolution … … 190 192 curRecoObj.dZ = particle->Position.Z()-PVZ; 191 193 } 192 else if(!candidate->IsRecoPU &&candidate->Charge !=0) {194 else if(!candidate->IsRecoPU and candidate->Charge !=0) { 193 195 curRecoObj.id = 1; // charge from LV 194 196 curRecoObj.vtxId = 1; // from PV … … 217 219 curRecoObj.m = momentum.M(); 218 220 curRecoObj.charge = 0; 219 particle = static_cast<Candidate*>(candidate->GetCandidates()->At(0)); 221 particle = static_cast<Candidate*>(candidate->GetCandidates()->Last()); 222 220 223 if(candidate->Charge == 0){ 221 224 curRecoObj.id = 0; // neutrals have id==0
Note:
See TracChangeset
for help on using the changeset viewer.