Changeset 93da593 in git
- Timestamp:
- Sep 11, 2015, 11:52:41 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 410f3a2
- Parents:
- b631c06
- Location:
- modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/UniqueObjectFinder.cc
rb631c06 r93da593 74 74 TIterator *iterator; 75 75 76 fInputMap.clear(); 77 76 78 size = param.GetSize(); 77 79 for(i = 0; i < size/2; ++i) … … 80 82 iterator = array->MakeIterator(); 81 83 82 fInputMap [iterator] = ExportArray(param[i*2 + 1].GetString());84 fInputMap.push_back(make_pair(iterator, ExportArray(param[i*2 + 1].GetString()))); 83 85 } 84 86 } … … 88 90 void UniqueObjectFinder::Finish() 89 91 { 90 map< TIterator *, TObjArray *>::iterator itInputMap;92 vector< pair< TIterator *, TObjArray * > >::iterator itInputMap; 91 93 TIterator *iterator; 92 94 … … 104 106 { 105 107 Candidate *candidate; 106 map< TIterator *, TObjArray *>::iterator itInputMap;108 vector< pair< TIterator *, TObjArray * > >::iterator itInputMap; 107 109 TIterator *iterator; 108 110 TObjArray *array; … … 128 130 //------------------------------------------------------------------------------ 129 131 130 Bool_t UniqueObjectFinder::Unique(Candidate *candidate, map< TIterator *, TObjArray *>::iterator itInputMap)132 Bool_t UniqueObjectFinder::Unique(Candidate *candidate, vector< pair< TIterator *, TObjArray * > >::iterator itInputMap) 131 133 { 132 134 Candidate *previousCandidate; 133 map< TIterator *, TObjArray *>::iterator previousItInputMap;135 vector< pair< TIterator *, TObjArray * > >::iterator previousItInputMap; 134 136 TObjArray *array; 135 137 -
modules/UniqueObjectFinder.h
rb631c06 r93da593 30 30 #include "classes/DelphesModule.h" 31 31 32 #include <map> 32 #include <vector> 33 #include <utility> 33 34 34 35 class TIterator; … … 49 50 private: 50 51 51 Bool_t Unique(Candidate *candidate, std:: map< TIterator *, TObjArray *>::iterator itInputMap);52 Bool_t Unique(Candidate *candidate, std::vector< std::pair< TIterator *, TObjArray * > >::iterator itInputMap); 52 53 53 std:: map< TIterator *, TObjArray *> fInputMap; //!54 std::vector< std::pair< TIterator *, TObjArray * > > fInputMap; //! 54 55 55 56 ClassDef(UniqueObjectFinder, 1)
Note:
See TracChangeset
for help on using the changeset viewer.