Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Irene Mateos Dominguez
Ph2_ACF
Commits
19bd7b91
Commit
19bd7b91
authored
Oct 27, 2017
by
Sarah Seif El Nasr
Browse files
Debugging stub sweep...still..
parent
0a6d0b83
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/StubSweep.cc
View file @
19bd7b91
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment