<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Matt,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The random bkg subtraction is only changing dramatically the fcal inner and outer rings, the exact same ring locations where mcsmear is overlay event when random bkg in included in the simulation. What I do exactly is below:<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>vector<const DBeamPhoton *> locBeamPhotons;<br>
</span>
<div> loop->Get(locBeamPhotons);<br>
</div>
<span></span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>vector<const DEventRFBunch*> locEventRFBunches;<br>
</span>
<div> loop->Get(locEventRFBunches);<br>
</div>
<span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>double locRFTime = locEventRFBunches.empty() ? 0.0 : locEventRFBunches[0]->dTime;<br>
</span><span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
and in the double fcal loop</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>for (unsigned int k = 0; k < (int) locBeamPhotons.size(); k ++) {<br>
</span>
<div><br>
</div>
<div> const DBeamPhoton *ebeam = locBeamPhotons[k];<br>
</div>
<div> double eb = ebeam->lorentzMomentum().E();<br>
</div>
<div> double tb = ebeam->time();<br>
</div>
<div> double zb = ebeam->position().Z();<br>
</div>
<span></span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
double locDeltaTRF = tb - (locRFTime + (zb - m_targetZ)/29.9792458);</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span> double weight = 0;<br>
</span>
<div> if (fabs(locDeltaTRF) <= 2.004) {<br>
</div>
<div> weight = 1;<br>
</div>
<div> } else if ( ( -(2.004 + 3.0 * 4.008) <= locDeltaTRF && locDeltaTRF <= -(2.004 + 4.008) ) ||<br>
</div>
<div> ( (2.004 + 4.008) <= locDeltaTRF && locDeltaTRF <= (2.004 + 3.0 * 4.008) ) ) {<br>
</div>
<div> weight = -0.25;<br>
</div>
<div> } else {<br>
</div>
<div> continue;<br>
</div>
<div> }<br>
</div>
<span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Beam Photon factory is selecting the detector with the best timing or one can request it is only using the photons.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I just scale by "weight" all histo.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
tks ig.<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Shepherd, Matthew <mashephe@indiana.edu><br>
<b>Sent:</b> Thursday, April 16, 2020 7:00 AM<br>
<b>To:</b> Igal Jaegle <ijaegle@jlab.org><br>
<b>Cc:</b> primexd@jlab.org <primexd@jlab.org>; Drew Smith <andrew.p.smith@duke.edu><br>
<b>Subject:</b> [EXTERNAL] Re: Accidental background subtraction</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""><br class="">
</div>
Igal,<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Apr 16, 2020, at 6:46 AM, Igal Jaegle <<a href="mailto:ijaegle@jlab.org" class="">ijaegle@jlab.org</a>> wrote:</div>
<div class="">
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
I am just removing the random coincidence below and in the peak of the prompt coincidence with the usual technique.
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>I think this only removes a background if the beam photon enters into your analysis. If the beam photon does not enter your analysis, then it doesn't matter whether it is accidental or prompt. How do you use the beam photon in your analysis?</div>
<div><br class="">
</div>
<div>I think the trigger bit is indeed very important. If a substantial number of your triggers are FCAL + CCAL then these can almost never, by construction, provide the pi0 you desire for calibration and will only add background. And I believe they will
tend to contaminate inner layers most.</div>
<div><br class="">
</div>
<div>Thanks... I'm just trying to see if there is some lesson from this that can be propagated back to the standard calibration method.</div>
<div><br class="">
</div>
<div>Matt</div>
<div><br class="">
</div>
</div>
</div>
</body>
</html>