@@ -61,12 +61,12 @@ namespace BlipUtils {
6161 pinfo.depEnergy = 0 ;
6262 pinfo.depElectrons = 0 ;
6363 for (auto & sed : sedvec ) {
64- if ( sed-> trackID == part.TrackId () ) {
65- pinfo.depEnergy += sed-> energy ;
66- pinfo.depElectrons += sed-> numElectrons ;
64+ if ( - 1 *sed. trackID == part. TrackId () || sed. trackID == part.TrackId () ) {
65+ pinfo.depEnergy += sed. energy ;
66+ pinfo.depElectrons += sed. numElectrons ;
6767 }
6868 }
69-
69+ std::cout << pinfo. depEnergy << " " << pinfo. trackId << std::endl;
7070 return ;
7171
7272 }
@@ -86,7 +86,7 @@ namespace BlipUtils {
8686 // std::cout<<"Making true blip for "<<part.TrackId()<<" (PDG "<<part.PdgCode()<<", which deposited "<<pinfo[i].depEnergy<<"\n";
8787
8888 // If this is a photon or neutron, don't even bother!
89- if ( part.PdgCode () == 2112 || part.PdgCode () == 22 ) continue ;
89+ // if( part.PdgCode() == 2112 || part.PdgCode() == 22 ) continue;
9090
9191 // If this is an electron that came from another electron, it would
9292 // have already been grouped as part of the contiguous "blip" previously.
@@ -95,7 +95,9 @@ namespace BlipUtils {
9595
9696 // Create the new blip
9797 blip::TrueBlip tb;
98+ std::cout << " making a new blip " << std::endl;
9899 GrowTrueBlip (pinfo[i],tb);
100+ std::cout << tb.Energy << std::endl;
99101 if ( !tb.Energy ) continue ;
100102
101103 // We want to loop through any contiguous electrons (produced
@@ -112,6 +114,7 @@ namespace BlipUtils {
112114
113115 // Final check -- ensure there was non-negligible number
114116 // of deposted ionization electrons
117+ std::cout << tb.DepElectrons << " total electrons " << std::endl;
115118 if ( tb.DepElectrons < 20 ) continue ;
116119
117120 // Calculate TPC-specific quantities
@@ -126,6 +129,7 @@ namespace BlipUtils {
126129 tb.DriftTime = tick_calc*clockData.TPCClock ().TickPeriod () + clockData.TriggerOffsetTPC ();
127130
128131 tb.ID = trueblips.size ();
132+ std::cout << " going to push this into holder " << std::endl;
129133 trueblips.push_back (tb);
130134
131135 }
@@ -139,7 +143,7 @@ namespace BlipUtils {
139143 simb::MCParticle& part = pinfo.particle ;
140144
141145 // Skip neutrons, photons
142- if ( part.PdgCode () == 2112 || part.PdgCode () == 22 ) return ;
146+ // if( part.PdgCode() == 2112 || part.PdgCode() == 22 ) return;
143147
144148 // Check that path length isn't zero
145149 if ( !pinfo.pathLength ) return ;
0 commit comments