~jan.greis/maus/1811

« back to all changes in this revision

Viewing changes to src/map/MapCppTrackerMCDigitization/MapCppTrackerMCDigitization.cc

Merging start

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
      // Compute tdc count.
133
133
      double time1   = a_hit->GetTime();
134
134
      // int tdcCounts = compute_tdc_counts(time1);
 
135
//      std::cerr << "DIGIT : " << a_hit->GetPosition().x() << ", " << a_hit->GetPosition().y() << ", " << a_hit->GetPosition().z();
135
136
 
136
137
      // Pull tracker/station/plane information from geometry
137
138
      int tracker = a_hit->GetChannelId()->GetTrackerNumber();
144
145
 
145
146
      a_hit->GetChannelId()->SetID(lookup.get_digit_id(a_digit));
146
147
 
 
148
      std::cerr << "DIGIT CREATED : " << tracker << " - " << station << " - " << plane << " : " << a_hit->GetPosition().x() << ", " << a_hit->GetPosition().y() << ", " << a_hit->GetPosition().z() << ", " << a_hit->GetMomentum().x() << ", " << a_hit->GetMomentum().y() << ", " << a_hit->GetMomentum().z() << " - "  << chanNo << "\n";
147
149
      // Loop over all the other hits.
148
150
      for ( unsigned int hit_j = hit_i+1; hit_j < hits->size(); hit_j++ ) {
149
151
        if ( check_param(&(*hits)[hit_i], &(*hits)[hit_j]) ) {
156
158
      } // ends loop over all the array
157
159
 
158
160
      a_digit->set_npe(nPE);
 
161
//      std::cerr << " - " << tracker << ", " << station << ", " << plane << ", " << chanNo << ", " << a_hit->GetChannelId()->GetFibreNumber() << std::endl;
159
162
      digits.push_back(a_digit);
160
163
    }
161
164
  } // ends 'for' loop over hits