Commit 19bd7b91 authored by Sarah Seif El Nasr's avatar Sarah Seif El Nasr
Browse files

Debugging stub sweep...still..

parent 0a6d0b83
......@@ -735,9 +735,9 @@ void StubSweep::Chip2Chip_wNoise(uint32_t pNEvents )
int cNStrips = 1 ; //13
int cNStubsExpected = 0 ;
int cNStubsFound = 0;
// for( int cNStripSeedLayer = 126 ; cNStripSeedLayer >= 126-cNStrips ; cNStripSeedLayer --)
// for( int cNStripSeedLayer = 126 ; cNStripSeedLayer > 126-2 ; cNStripSeedLayer --)
// {
// for( int cNStripCorrelationLayer = 0 ; cNStripCorrelationLayer < cNStrips ; cNStripCorrelationLayer ++)
// for( int cNStripCorrelationLayer = 0 ; cNStripCorrelationLayer < 13 ; cNStripCorrelationLayer ++)
// {
// int cEstimatedBend = (127 + cNStripCorrelationLayer) - cNStripSeedLayer;
// if( std::abs(cEstimatedBend) > 7 ) continue;
......@@ -803,10 +803,10 @@ void StubSweep::Chip2Chip_wNoise(uint32_t pNEvents )
// }
// }
/*for( int cNStripSeedLayer = 0 ; cNStripSeedLayer < cNStrips ; cNStripSeedLayer ++)
int cNstrips = 1;
for( int cNStripSeedLayer = 0 ; cNStripSeedLayer < 3 ; cNStripSeedLayer ++)
{
for( int cNStripCorrelationLayer = 126 ; cNStripCorrelationLayer >= 126-cNStrips ; cNStripCorrelationLayer -- )
for( int cNStripCorrelationLayer = 126 ; cNStripCorrelationLayer >= 126-1 ; cNStripCorrelationLayer -- )
{
//int cEstimatedBend = (127 + cNStripCorrelationLayer) - cNStripSeedLayer;
//if( std::abs(cEstimatedBend) > 7 ) continue;
......@@ -872,7 +872,7 @@ void StubSweep::Chip2Chip_wNoise(uint32_t pNEvents )
maskAllChannels ( cCbc );
}
}
}*/
}
//double cStubFindingEfficiency = (double)cNStubsFound/cNStubsExpected;
//LOG (INFO) << BOLDBLUE << "Found " << cNStubsFound << " stubs when I expected " << cNStubsExpected << " : efficiency = " << 100*cStubFindingEfficiency << " percent." << RESET ;
// for (auto cCbc : cFe->fCbcVector)
......@@ -2072,9 +2072,9 @@ void StubSweep::displayEvent(Event* pEvent)
//LOG (INFO) << ">>> Stub found at position " << +cStubPosition << " with bend " << +cStubBend << RESET ;
auto cBend = cLUT.find(cStubBend);
if(cBend != cLUT.end())
LOG (DEBUG) << BOLDBLUE << ">>>\t\t decoding the bend code with the LUT gives a bend value of " << cBend->second << " strips." << RESET ;
LOG (INFO) << BOLDBLUE << ">>>\t\t decoding the bend code with the LUT gives a bend value of " << cBend->second << " strips." << RESET ;
else
LOG (DEBUG) << BOLDBLUE << ">>>\t\t bend code not found ...." << RESET ;
LOG (INFO) << BOLDBLUE << ">>>\t\t bend code not found ...." << RESET ;
}
LOG (INFO) << BOLDBLUE << "#########################################\n\n" << RESET;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment