[d2n-analysis-talk] Trigger Offset for S1, S2m Paddles?
David Flay
flay at jlab.org
Fri Aug 27 14:20:01 EDT 2010
On Fri, Aug 27, 2010 at 10:52 AM, David Flay <flay at jlab.org> wrote:
> Hey Brad,
>
> I was poking around the source code, and I've found an interesting
> quantity in the THaScintillator class: a data member called fTrigOff,
> which eventually finds its way into the ROOTfile as L.s2.troff (for S2m,
> for instance). It's labeled as a 'trigger offset for paddles.' Looking
> at the source code, it shows up in the ReadDatabase method (after it's
> been initialized to 0):
>
> while ( ReadComment( fi, buf, LEN ) ) {}
> // trigger timing offsets
> {
> int cnt=0;
> while ( cnt<fNelem && fgets( buf, LEN, fi ) && ! strchr(buf,'[') ) {
> char *ptr = buf;
> int pos=0;
> while ( cnt < fNelem && sscanf(ptr,"%lf%n",&fTrigOff[cnt],&pos)>0 ) {
> ptr += pos;
> cnt++;
> }
> }
> }
>
to elaborate on this -- from THaScintillator.h:
Double_t* fTrigOff; // [fNelem] Induced offset of trigger time from
// diff between trigger and retiming.
// Visible in coincidence data.
--
-----------------------------------------------------------
David Flay
Physics Department
Temple University
Philadelphia, PA 19122
office: Barton Hall, BA319
phone: (215) 204-1331
e-mail: flay at jlab.org
flay at temple.edu
website: http://www.jlab.org/~flay <http://www.jlab.org/%7Eflay>
http://quarks.temple.edu
-----------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.jlab.org/pipermail/d2n-analysis-talk/attachments/20100827/6c832486/attachment.html
More information about the d2n-analysis-talk
mailing list