- jwebb's home page
- Posts
- 2019
- 2018
- 2017
- 2016
- 2015
- 2014
- 2013
- November (1)
- October (1)
- September (1)
- July (1)
- June (1)
- April (1)
- March (3)
- February (1)
- January (1)
- 2012
- 2011
- December (2)
- September (3)
- August (5)
- July (6)
- June (6)
- May (1)
- April (5)
- March (5)
- February (2)
- January (2)
- 2010
- December (3)
- October (3)
- September (2)
- August (2)
- June (2)
- May (4)
- April (4)
- March (2)
- February (4)
- January (10)
- 2009
- 2008
- 2007
- 2006
- July (1)
- My blog
- Post new blog entry
- All blogs
Trigger Emulator Test
Updated on Thu, 2007-11-29 19:44. Originally created by jwebb on 2007-11-29 19:42.
In StTriggerSimuMaker, I get the "nominal" trigger from the MuDst, then execute the following
code --
following "table". Here's how to read it...
Read across from 137611 (1st on the y-axis). 644 BEMC L2gamma triggers were "seen" online. Of these, 644 satisfied
the BBC emulator. 644 satisfied the EEMC emulator... (in this particular case a kDontCare was returned). 430
satisfied the BEMC emulator. And all 644 satisfied the L2 trigger.
Likewise for 137641 (3rd on y-axis). All of the components which were supposed to be satisfied -- BBC, EEMC, L2 --
were satisfied. The BEMC emulator wasn't satisfied, though. So if I understand the emulated trigger logic... we get 5 endcap
triggers out of this.
code --
for ( Int_t i=0;i<(Int_t)nominal.triggerIds().size();i++ )
{
Int_t id = (Int_t)nominal.triggerId(i);
if ( id <= 0 ) continue;
StTriggerSimuDecision bbcDecision = bbc->triggerDecision( (Int_t)id );
StTriggerSimuDecision eemcDecision = eemc->triggerDecision( (Int_t)id );
StTriggerSimuDecision bemcDecision = bemc->triggerDecision( (Int_t)id );
StTriggerSimuDecision l2Decision = lTwo ->triggerDecision( (Int_t)id );
LOG_INFO<<
Form("** online id=%2i\tbbc emu=%2i\teemc emu=%2i\tbemc emu=%2i\tl2 emu=%2i **",
id,bbcDecision,eemcDecision,bemcDecision,l2Decision)
<<endm;
TString Id="";Id+=id;
hTriggerEmulation->Fill("seen",Id,1.0);
if ( bbcDecision ) hTriggerEmulation->Fill("bbc" , Id,1.0);
if ( eemcDecision ) hTriggerEmulation->Fill("eemc", Id,1.0);
if ( bemcDecision ) hTriggerEmulation->Fill("bemc", Id,1.0);
if ( l2Decision ) hTriggerEmulation->Fill("l2" , Id,1.0);
}
where hTriggerEmulation is a histogram.
following "table". Here's how to read it...
Read across from 137611 (1st on the y-axis). 644 BEMC L2gamma triggers were "seen" online. Of these, 644 satisfied
the BBC emulator. 644 satisfied the EEMC emulator... (in this particular case a kDontCare was returned). 430
satisfied the BEMC emulator. And all 644 satisfied the L2 trigger.
Likewise for 137641 (3rd on y-axis). All of the components which were supposed to be satisfied -- BBC, EEMC, L2 --
were satisfied. The BEMC emulator wasn't satisfied, though. So if I understand the emulated trigger logic... we get 5 endcap
triggers out of this.
»
- jwebb's blog
- Login or register to post comments