Skip to content

Commit

Permalink
Remove Debug statements
Browse files Browse the repository at this point in the history
This should be the final commit to get the muon centred tree working and so we
can close #110
  • Loading branch information
benkrikler committed Aug 19, 2014
1 parent 6823be4 commit 4c3d947
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "FixedWindowMEGenerator.h"
#include "TDetectorPulse.h"
#include "TMuonEvent.h"
#define ALCAP_NO_DEBUG
//#define ALCAP_NO_DEBUG
#include "debug_tools.h"

#include <iostream>
Expand Down Expand Up @@ -76,7 +76,6 @@ int FixedWindowMEGenerator::ProcessPulses(MuonEventList& muonEventsOut,
}
void FixedWindowMEGenerator::AddPulsesInWindow(
TMuonEvent* tme, double window, Detector_t& detector){
DEBUG_VALUE(*detector.source);
// Get the central time for this event;
double central_time=tme->GetTime();
double early_edge=central_time-window;
Expand All @@ -87,18 +86,16 @@ void FixedWindowMEGenerator::AddPulsesInWindow(
DetectorPulseList::const_iterator& start=detector.start_window;
DetectorPulseList::const_iterator& stop=detector.end_window;
const DetectorPulseList::const_iterator& end=detector.pulses->end();
const DetectorPulseList::const_iterator& begin=detector.pulses->begin();
//const DetectorPulseList::const_iterator& begin=detector.pulses->begin();

// skip empty lists
if(start==end) return;

DEBUG_VALUE(start-begin,stop-begin,end-begin);

// Move the iteator for the start of the window
int look_ahead=1;
while((start+look_ahead!=end) && (start!=end) ){
double time = (*(start+look_ahead))->GetTime();
DEBUG_VALUE(time, early_edge, time>early_edge);
if(time==definitions::DefaultValue){
// If time is DefaultValue then we're looking at an unpaired
// detector which we should ignore
Expand All @@ -113,11 +110,9 @@ void FixedWindowMEGenerator::AddPulsesInWindow(
stop=start;
while( stop!=end ){
double time = (*stop)->GetTime();
DEBUG_VALUE(time, late_edge, time>late_edge);
if(time>late_edge) break;
++stop;
}
DEBUG_VALUE(start-begin,stop-begin,end-begin);

// Add all pulses in the current window to the tme
tme->AddPulses(*detector.source,start,stop);
Expand Down

0 comments on commit 4c3d947

Please sign in to comment.