Changeset 95b4e9f in git for modules/VertexSorter.cc
- Timestamp:
- Aug 31, 2016, 4:25:59 PM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 4154bbd
- Parents:
- b195ba1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/VertexSorter.cc
rb195ba1 r95b4e9f 29 29 #include "TMatrixT.h" 30 30 #include "TVector3.h" 31 32 #include <utility> 33 #include <algorithm> 34 #include <stdexcept> 35 #include <iostream> 36 #include <vector> 37 #include <map> 38 #include <string> 39 40 using namespace std; 31 41 32 42 static const Double_t mm = 1.; … … 76 86 fOutputArray = ExportArray(GetString("OutputArray", "clusters")); 77 87 78 fMethod = GetString 88 fMethod = GetString("Method", "BTV"); 79 89 } 80 90 … … 88 98 89 99 //------------------------------------------------------------------------------ 90 // 91 Bool_t VertexSorter::secondDescending (pair<UInt_t, Double_t> pair0, pair<UInt_t, Double_t> pair1)100 101 static Bool_t secondDescending (pair<UInt_t, Double_t> pair0, pair<UInt_t, Double_t> pair1) 92 102 { 93 103 return (pair0.second > pair1.second); 94 104 } 95 Bool_t VertexSorter::secondAscending (pair<UInt_t, Double_t> pair0, pair<UInt_t, Double_t> pair1) 105 106 static Bool_t secondAscending (pair<UInt_t, Double_t> pair0, pair<UInt_t, Double_t> pair1) 96 107 { 97 108 return (pair0.second < pair1.second); 98 109 } 99 110 111 //------------------------------------------------------------------------------ 112 100 113 void VertexSorter::Process() 101 114 { 102 115 Candidate *candidate, *jetCandidate, *beamSpotCandidate; 103 unordered_map<Int_t, UInt_t> clusterIDToIndex;104 unordered_map<Int_t, Double_t> clusterIDToSumPT2;116 map<Int_t, UInt_t> clusterIDToIndex; 117 map<Int_t, Double_t> clusterIDToSumPT2; 105 118 vector<pair<Int_t, Double_t> > sortedClusterIDs; 106 119 … … 112 125 } 113 126 114 if 127 if(fMethod == "BTV") 115 128 { 116 129 if (!fJetInputArray)
Note:
See TracChangeset
for help on using the changeset viewer.