Changeset 239 in Idarraga
- Timestamp:
- Oct 7, 2011, 5:39:04 PM (13 years ago)
- Location:
- mafalda
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
mafalda/MAFTools/MAFTools.cpp
r238 r239 222 222 } 223 223 224 voidFindDiscontinuity(blob b){224 int FindDiscontinuity(blob b){ 225 225 226 226 // get the content set x,y 227 227 set< pair<Int_t, Int_t> > cs = b.GetContentSet(); 228 228 set< pair<Int_t, Int_t> >::iterator csItr = cs.begin(); 229 230 /* 231 for( ; csItr != cs.end() ; csItr++){ 232 std::cout << (*csItr).first << ", " << (*csItr).second << " : " 233 << 234 } 235 */ 236 229 set< pair<Int_t, Int_t> >::iterator csItr2 = cs.begin(); 230 231 double dist = 0.; 232 int nClose = 0; 233 for( ; csItr != cs.end() ; csItr++) { 234 235 nClose = 0; 236 for(csItr2 = cs.begin() ; csItr2 != cs.end() ; csItr2++) { 237 238 if(csItr != csItr2) { 239 dist = CalcDistance(*csItr, *csItr2); 240 } 241 242 if(dist < 1.5) nClose++; 243 244 } 245 if (nClose == 1) return 1; // discontinuity 246 //std::cout << endl; 247 //std::cout << "nClose = " << nClose << " ---------" << std::endl; 248 249 } 250 251 return 0; 237 252 } 238 253 -
mafalda/MAFTools/MAFTools.h
r238 r239 60 60 void DumpBlobContents(blob); 61 61 62 62 int FindDiscontinuity(blob); 63 63 } 64 64 -
mafalda/ShallowAngleFEIX/ShallowAngleFEIX.cpp
r238 r239 40 40 getMyTree()->Branch("chargeWeights", &m_chargeWeights); 41 41 42 getMyTree()->Branch("segmentedTrack", &m_segmentedTrack, "segmentedTrack/I"); 42 43 getMyTree()->Branch("clusterSize", &m_clusterSize, "clusterSize/I"); 43 44 getMyTree()->Branch("clusterHeight", &m_clusterHeight, "clusterHeight/I"); … … 144 145 m_mipThetaAngle = (*blobsItr).GetBlobProperties().rotAngle; 145 146 147 // check discontinuitis if any 148 if ( MAFTools::FindDiscontinuity(*blobsItr) == 1 ) { 149 m_segmentedTrack = 1; 150 } else { 151 m_segmentedTrack = 0; 152 } 153 146 154 // Find the limit pixels to add-up the charge per column. 147 155 // It turns out that the limit pixels found above are not exactly … … 173 181 174 182 int cntr = 0; 183 184 for(int xi = 0 ; xi <= 30 ; xi++){ 185 m_totPerSegment.push_back(0.); // add segment initialized at 0 186 m_chargeWeights.push_back(0.); // add segment 187 } 188 175 189 for(int x = initx ; x <= endx ; x++){ 176 190 -
mafalda/ShallowAngleFEIX/ShallowAngleFEIX.h
r238 r239 51 51 Int_t m_clusterHeight; 52 52 Double_t m_mipThetaAngle; 53 Int_t m_segmentedTrack; 53 54 54 55 vector<Int_t> m_totPerSegment; // Total TOT per segment/pixel
Note: See TracChangeset
for help on using the changeset viewer.