Changes in / [b9e210d:723b77d] in git
- Location:
- modules
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Isolation.cc
rb9e210d r723b77d 206 206 { 207 207 sumAllParticles += isolationMomentum.Pt(); 208 if(isolation->Charge != 0) 209 { 210 if(isolation->IsRecoPU) 211 { 212 sumChargedPU += isolationMomentum.Pt(); 213 } 214 else 215 { 216 sumCharged += isolationMomentum.Pt(); 217 } 208 if(isolation->Charge !=0) 209 { 210 sumCharged += isolationMomentum.Pt(); 211 if(isolation->IsRecoPU != 0) sumChargedPU += isolationMomentum.Pt(); 218 212 } 219 213 else … … 240 234 241 235 // correct sum for pile-up contamination 242 sumDBeta = sumCharged + TMath::Max(sumNeutral -0.5*sumChargedPU, 0.0);243 sumRhoCorr = sumCharged + TMath::Max(sumNeutral -TMath::Max(rho, 0.0)*fDeltaRMax*fDeltaRMax*TMath::Pi(), 0.0);236 sumDBeta = sumCharged + TMath::Max(sumNeutral-0.5*sumChargedPU, 0.0); 237 sumRhoCorr = sumCharged + TMath::Max(sumNeutral-TMath::Max(rho, 0.0)*fDeltaRMax*fDeltaRMax*TMath::Pi(), 0.0); 244 238 ratioDBeta = sumDBeta/candidateMomentum.Pt(); 245 239 ratioRhoCorr = sumRhoCorr/candidateMomentum.Pt(); -
modules/TrackPileUpSubtractor.cc
rb9e210d r723b77d 67 67 void TrackPileUpSubtractor::Init() 68 68 { 69 69 // import input array 70 70 71 71 fVertexInputArray = ImportArray(GetString("VertexInputArray", "PileUpMerger/vertices")); 72 72 fItVertexInputArray = fVertexInputArray->MakeIterator(); 73 73 74 74 fZVertexResolution = GetDouble("ZVertexResolution", 0.005)*1.0E3; 75 75 76 76 fPTMin = GetDouble("PTMin", 0.); 77 78 77 // import arrays with output from other modules 79 78 80 79 ExRootConfParam param = GetParam("InputArray"); 81 80 Long_t i, size; … … 120 119 Double_t z, zvtx=0; 121 120 122 121 123 122 // find z position of primary vertex 124 123 125 124 fItVertexInputArray->Reset(); 126 125 while((candidate = static_cast<Candidate*>(fItVertexInputArray->Next()))) … … 128 127 if(!candidate->IsPU) 129 128 { 130 131 129 zvtx = candidate->Position.Z(); 130 // break; 132 131 } 133 132 } … … 145 144 particle = static_cast<Candidate*>(candidate->GetCandidates()->At(0)); 146 145 z = particle->Position.Z(); 147 146 148 147 // apply pile-up subtraction 149 148 // assume perfect pile-up subtraction for tracks outside fZVertexResolution 150 151 if(candidate->IsPU && TMath::Abs(z-zvtx) > fZVertexResolution) 149 150 if(candidate->IsPU && TMath::Abs(z-zvtx) > fZVertexResolution) candidate->IsRecoPU = 1; 151 else 152 152 { 153 candidate->IsRecoPU = 1; 154 } 155 else 156 { 157 candidate->IsRecoPU = 0; 158 if(candidate->Momentum.Pt() > fPTMin) array->Add(candidate); 153 candidate->IsRecoPU = 0; 154 if( candidate->Momentum.Pt() > fPTMin) array->Add(candidate); 159 155 } 160 156 } -
modules/TrackPileUpSubtractor.h
rb9e210d r723b77d 50 50 Double_t fZVertexResolution; 51 51 52 Double_t fPTMin; 52 Double_t fPTMin; 53 53 54 54 std::map< TIterator *, TObjArray * > fInputMap; //!
Note:
See TracChangeset
for help on using the changeset viewer.