- Timestamp:
- Feb 12, 2019, 9:48:36 PM (6 years ago)
- Branches:
- ImprovedOutputFile, Timing, llp, master
- Children:
- 899b162
- Parents:
- 6455202
- Location:
- modules
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Calorimeter.h
r6455202 r77e9ae1 50 50 51 51 private: 52 typedef std::map<Long64_t, std::pair<Double_t, Double_t> > TFractionMap; //!53 typedef std::map<Double_t, std::set<Double_t> > TBinMap; //!52 typedef std::map<Long64_t, std::pair<Double_t, Double_t> > TFractionMap; //! 53 typedef std::map<Double_t, std::set<Double_t> > TBinMap; //! 54 54 55 55 Candidate *fTower; -
modules/DenseTrackFilter.h
r6455202 r77e9ae1 49 49 50 50 private: 51 typedef std::map<Double_t, std::set<Double_t> > TBinMap; //!51 typedef std::map<Double_t, std::set<Double_t> > TBinMap; //! 52 52 53 53 Candidate *fBestTrack; -
modules/IdentificationMap.h
r6455202 r77e9ae1 46 46 47 47 private: 48 typedef std::multimap<Int_t, std::pair<Int_t, DelphesFormula *> > TMisIDMap; //!48 typedef std::multimap<Int_t, std::pair<Int_t, DelphesFormula *> > TMisIDMap; //! 49 49 50 50 TMisIDMap fEfficiencyMap; //! -
modules/OldCalorimeter.h
r6455202 r77e9ae1 36 36 37 37 private: 38 typedef std::map<Long64_t, std::pair<Double_t, Double_t> > TFractionMap; //!39 typedef std::map<Double_t, std::set<Double_t> > TBinMap; //!38 typedef std::map<Long64_t, std::pair<Double_t, Double_t> > TFractionMap; //! 39 typedef std::map<Double_t, std::set<Double_t> > TBinMap; //! 40 40 41 41 Candidate *fTower; -
modules/SimpleCalorimeter.h
r6455202 r77e9ae1 52 52 private: 53 53 typedef std::map<Long64_t, Double_t> TFractionMap; //! 54 typedef std::map<Double_t, std::set<Double_t> > TBinMap; //!54 typedef std::map<Double_t, std::set<Double_t> > TBinMap; //! 55 55 56 56 Candidate *fTower; -
modules/TreeWriter.h
r6455202 r77e9ae1 70 70 typedef void (TreeWriter::*TProcessMethod)(ExRootTreeBranch *, TObjArray *); //! 71 71 72 typedef std::map<ExRootTreeBranch *, std::pair<TProcessMethod, TObjArray *> > TBranchMap; //!72 typedef std::map<ExRootTreeBranch *, std::pair<TProcessMethod, TObjArray *> > TBranchMap; //! 73 73 74 74 TBranchMap fBranchMap; //! -
modules/UniqueObjectFinder.cc
r6455202 r77e9ae1 92 92 void UniqueObjectFinder::Finish() 93 93 { 94 vector<pair<TIterator *, TObjArray *> >::iterator itInputMap;94 vector<pair<TIterator *, TObjArray *> >::iterator itInputMap; 95 95 TIterator *iterator; 96 96 … … 108 108 { 109 109 Candidate *candidate; 110 vector<pair<TIterator *, TObjArray *> >::iterator itInputMap;110 vector<pair<TIterator *, TObjArray *> >::iterator itInputMap; 111 111 TIterator *iterator; 112 112 TObjArray *array; … … 132 132 //------------------------------------------------------------------------------ 133 133 134 Bool_t UniqueObjectFinder::Unique(Candidate *candidate, vector<pair<TIterator *, TObjArray *> >::iterator itInputMap)134 Bool_t UniqueObjectFinder::Unique(Candidate *candidate, vector<pair<TIterator *, TObjArray *> >::iterator itInputMap) 135 135 { 136 136 Candidate *previousCandidate; 137 vector<pair<TIterator *, TObjArray *> >::iterator previousItInputMap;137 vector<pair<TIterator *, TObjArray *> >::iterator previousItInputMap; 138 138 TObjArray *array; 139 139 -
modules/UniqueObjectFinder.h
r6455202 r77e9ae1 50 50 Bool_t fUseUniqueID; 51 51 52 Bool_t Unique(Candidate *candidate, std::vector<std::pair<TIterator *, TObjArray *> >::iterator itInputMap);52 Bool_t Unique(Candidate *candidate, std::vector<std::pair<TIterator *, TObjArray *> >::iterator itInputMap); 53 53 54 std::vector<std::pair<TIterator *, TObjArray *> > fInputMap; //!54 std::vector<std::pair<TIterator *, TObjArray *> > fInputMap; //! 55 55 56 56 ClassDef(UniqueObjectFinder, 1) -
modules/VertexFinder.cc
r6455202 r77e9ae1 115 115 // fewer than MinNDF tracks, release the tracks for other clusters to claim. 116 116 sort(clusterSumPT2.begin(), clusterSumPT2.end(), secondDescending); 117 for(vector<pair<UInt_t, Double_t> >::const_iterator cluster = clusterSumPT2.begin(); cluster != clusterSumPT2.end(); cluster++)117 for(vector<pair<UInt_t, Double_t> >::const_iterator cluster = clusterSumPT2.begin(); cluster != clusterSumPT2.end(); cluster++) 118 118 { 119 119 // Skip the cluster if it no longer has any tracks … … 130 130 if((Int_t)clusterIDToInt.at(cluster->first).at("ndf") < fMinNDF) 131 131 { 132 for(map<UInt_t, map<string, Int_t> >::iterator track = trackIDToInt.begin(); track != trackIDToInt.end(); track++)132 for(map<UInt_t, map<string, Int_t> >::iterator track = trackIDToInt.begin(); track != trackIDToInt.end(); track++) 133 133 { 134 134 if(track->second.at("clusterIndex") != (Int_t)cluster->first) … … 155 155 // descending sum(pt**2). 156 156 clusterSumPT2.clear(); 157 for(map<UInt_t, map<string, Int_t> >::const_iterator cluster = clusterIDToInt.begin(); cluster != clusterIDToInt.end(); cluster++)157 for(map<UInt_t, map<string, Int_t> >::const_iterator cluster = clusterIDToInt.begin(); cluster != clusterIDToInt.end(); cluster++) 158 158 { 159 159 … … 164 164 sort(clusterSumPT2.begin(), clusterSumPT2.end(), secondDescending); 165 165 166 for(vector<pair<UInt_t, Double_t> >::const_iterator cluster = clusterSumPT2.begin(); cluster != clusterSumPT2.end(); cluster++)166 for(vector<pair<UInt_t, Double_t> >::const_iterator cluster = clusterSumPT2.begin(); cluster != clusterSumPT2.end(); cluster++) 167 167 { 168 168 DelphesFactory *factory = GetFactory(); … … 213 213 // trackPT vector. 214 214 sort(trackPT.begin(), trackPT.end(), secondDescending); 215 for(vector<pair<UInt_t, Double_t> >::const_iterator track = trackPT.begin(); track != trackPT.end(); track++, maxSeeds++)215 for(vector<pair<UInt_t, Double_t> >::const_iterator track = trackPT.begin(); track != trackPT.end(); track++, maxSeeds++) 216 216 { 217 217 if(track->second < fSeedMinPT) … … 228 228 229 229 // Create the seeds from the SeedMinPT highest pt tracks. 230 for(vector<pair<UInt_t, Double_t> >::const_iterator track = trackPT.begin(); track != trackPT.end(); track++, clusterIndex++)230 for(vector<pair<UInt_t, Double_t> >::const_iterator track = trackPT.begin(); track != trackPT.end(); track++, clusterIndex++) 231 231 { 232 232 addTrackToCluster(track->first, clusterIndex); … … 261 261 { 262 262 263 for(map<UInt_t, map<string, Double_t> >::const_iterator track = trackIDToDouble.begin(); track != trackIDToDouble.end(); track++)263 for(map<UInt_t, map<string, Double_t> >::const_iterator track = trackIDToDouble.begin(); track != trackIDToDouble.end(); track++) 264 264 { 265 265 if(trackIDToBool.at(track->first).at("claimed") || trackIDToInt.at(track->first).at("clusterIndex") == (Int_t)clusterIndex) -
modules/VertexFinder.h
r6455202 r77e9ae1 49 49 TObjArray *fVertexOutputArray; 50 50 51 std::map<UInt_t, std::map<std::string, Double_t> > trackIDToDouble;52 std::map<UInt_t, std::map<std::string, Int_t> > trackIDToInt;53 std::map<UInt_t, std::map<std::string, Bool_t> > trackIDToBool;51 std::map<UInt_t, std::map<std::string, Double_t> > trackIDToDouble; 52 std::map<UInt_t, std::map<std::string, Int_t> > trackIDToInt; 53 std::map<UInt_t, std::map<std::string, Bool_t> > trackIDToBool; 54 54 55 std::map<UInt_t, std::map<std::string, Double_t> > clusterIDToDouble;56 std::map<UInt_t, std::map<std::string, Int_t> > clusterIDToInt;57 std::map<UInt_t, std::map<std::string, Bool_t> > clusterIDToBool;58 std::vector<std::pair<UInt_t, Double_t> > trackPT;59 std::vector<std::pair<UInt_t, Double_t> > clusterSumPT2;55 std::map<UInt_t, std::map<std::string, Double_t> > clusterIDToDouble; 56 std::map<UInt_t, std::map<std::string, Int_t> > clusterIDToInt; 57 std::map<UInt_t, std::map<std::string, Bool_t> > clusterIDToBool; 58 std::vector<std::pair<UInt_t, Double_t> > trackPT; 59 std::vector<std::pair<UInt_t, Double_t> > clusterSumPT2; 60 60 61 61 ClassDef(VertexFinder, 1) -
modules/VertexFinderDA4D.cc
r6455202 r77e9ae1 1077 1077 // avoid left-right biases by splitting highest Tc first 1078 1078 1079 std::vector<std::pair<double, unsigned int> > critical;1079 std::vector<std::pair<double, unsigned int> > critical; 1080 1080 for(unsigned int ik = 0; ik < y.size(); ik++) 1081 1081 { … … 1085 1085 } 1086 1086 } 1087 std::stable_sort(critical.begin(), critical.end(), std::greater<std::pair<double, unsigned int> >());1087 std::stable_sort(critical.begin(), critical.end(), std::greater<std::pair<double, unsigned int> >()); 1088 1088 1089 1089 for(unsigned int ic = 0; ic < critical.size(); ic++) -
modules/VertexSorter.cc
r6455202 r77e9ae1 118 118 map<Int_t, Double_t> clusterIDToSumPT2; 119 119 map<Int_t, Double_t>::const_iterator itClusterIDToSumPT2; 120 vector<pair<Int_t, Double_t> > sortedClusterIDs;121 vector<pair<Int_t, Double_t> >::const_iterator itSortedClusterIDs;120 vector<pair<Int_t, Double_t> > sortedClusterIDs; 121 vector<pair<Int_t, Double_t> >::const_iterator itSortedClusterIDs; 122 122 123 123 for(Int_t iCluster = 0; iCluster < fInputArray->GetEntries(); iCluster++)
Note:
See TracChangeset
for help on using the changeset viewer.