added 2 trigger lines + added 1 function in TriggerResultsNavigator class#52
Conversation
| @@ -0,0 +1,2 @@ | |||
| physics.filters.tprCosmicSeedDeMEventPrescale.nPrescale : 1 | |||
| physics.filters.tprCosmicSeedDeMEventPrescale.triggerFlag : ["PrescaleRandom"] No newline at end of file | |||
There was a problem hiding this comment.
Git flags this line as not having a newline. I don't think that art cares, but you might add one just in case.
| @@ -0,0 +1,2 @@ | |||
| physics.filters.cprCosmicSeedDeMEventPrescale.nPrescale : 1 | |||
| physics.filters.cprCosmicSeedDeMEventPrescale.triggerFlag : ["PrescaleRandom"] No newline at end of file | |||
There was a problem hiding this comment.
Same 'no newline' comment here.
| @@ -0,0 +1,2 @@ | |||
| physics.filters.tprLowPSeedDeMEventPrescale.nPrescale : 1 | |||
| physics.filters.tprLowPSeedDeMEventPrescale.triggerFlag : ["PrescaleRandom"] No newline at end of file | |||
| @@ -0,0 +1,2 @@ | |||
| physics.filters.tprCosmicSeedDeMEventPrescale.nPrescale : 1 | |||
| physics.filters.tprCosmicSeedDeMEventPrescale.triggerFlag : ["PrescaleRandom"] No newline at end of file | |||
There was a problem hiding this comment.
OK, done to all of them
| bool accepted = accept(name); | ||
| printf("// %24s %2li %i //\n", name.c_str(), index, accepted == true ? 1:0); | ||
| bool good = accepted(name); | ||
| printf("// %24s %2li %i //\n", name.c_str(), index, good == true ? 1:0); |
There was a problem hiding this comment.
I would strongly suggest to leave out printf and use cout (or Mu2e message streamer)
| for (unsigned int i=0; i< _trigPaths.size(); ++i){ | ||
| string&path = _trigPaths.at(i); | ||
| if (trigNavig.accept(path)) _sumHist._hTrigInfo[15]->Fill((double)i); | ||
| if (trigNavig.accepted(path)) _sumHist._hTrigInfo[15]->Fill((double)i); |
There was a problem hiding this comment.
Can we make the _sumHist a TH1I (integer) and avoid the cast here?
There was a problem hiding this comment.
In the near future, I wanted to improve this code for using the protonbunch intensity as weight. That's why I left TH1F. If we think it's a problem I can switch to TH1I
|
Ok, then it makes sense. I think leaving a comment in the code in this
case is appropriate. But get rid of printf!
Let me know when this is done, then I'll approve the request.
Bertrand
…On 11/13/2019 10:30 AM, Gianantonio Pezzullo wrote:
***@***.**** commented on this pull request.
------------------------------------------------------------------------
In Trigger/src/ReadTriggerInfo_module.cc
<#52 (comment)>:
> @@ -707,7 +707,7 @@ namespace mu2e {
for (unsigned int i=0; i< _trigPaths.size(); ++i){
string&path = _trigPaths.at(i);
- if (trigNavig.accept(path)) _sumHist._hTrigInfo[15]->Fill((double)i);
+ if (trigNavig.accepted(path)) _sumHist._hTrigInfo[15]->Fill((double)i);
In the near future, I wanted to improve this code for using the
protonbunch intensity as weight. That's why I left TH1F. If we think
it's a problem I can switch to TH1I
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#52?email_source=notifications&email_token=ABJ27JE3D7A5D5J2MOLNULLQTRBUJA5CNFSM4JL5WEHKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCLOM7KY#discussion_r345926334>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJ27JACCO2QMU4J65QJRSLQTRBUJANCNFSM4JL5WEHA>.
|
|
Done.
Thanks,
Gianantonio Pezzullo, Ph.D.
giani.pezzu@gmail.com
**********************************************************************************************************
Address: Department of Physics, Yale University, 56 Hillhouse, New Haven, CT-06511, USA
**********************************************************************************************************
… On Nov 13, 2019, at 1:33 PM, Bertrand Echenard ***@***.***> wrote:
Ok, then it makes sense. I think leaving a comment in the code in this
case is appropriate. But get rid of printf!
Let me know when this is done, then I'll approve the request.
Bertrand
On 11/13/2019 10:30 AM, Gianantonio Pezzullo wrote:
>
> ***@***.**** commented on this pull request.
>
> ------------------------------------------------------------------------
>
> In Trigger/src/ReadTriggerInfo_module.cc
> <#52 (comment)>:
>
> > @@ -707,7 +707,7 @@ namespace mu2e {
>
> for (unsigned int i=0; i< _trigPaths.size(); ++i){
> string&path = _trigPaths.at(i);
> - if (trigNavig.accept(path)) _sumHist._hTrigInfo[15]->Fill((double)i);
> + if (trigNavig.accepted(path)) _sumHist._hTrigInfo[15]->Fill((double)i);
>
> In the near future, I wanted to improve this code for using the
> protonbunch intensity as weight. That's why I left TH1F. If we think
> it's a problem I can switch to TH1I
>
> —
> You are receiving this because your review was requested.
> Reply to this email directly, view it on GitHub
> <#52?email_source=notifications&email_token=ABJ27JE3D7A5D5J2MOLNULLQTRBUJA5CNFSM4JL5WEHKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCLOM7KY#discussion_r345926334>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABJ27JACCO2QMU4J65QJRSLQTRBUJANCNFSM4JL5WEHA>.
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#52?email_source=notifications&email_token=AGCD3EFRCUUYIKQGNFRZADTQTRB53A5CNFSM4JL5WEHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOED7FSYA#issuecomment-553539936>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGCD3ECAV6YDT6VITD7HW5LQTRB53ANCNFSM4JL5WEHA>.
|
|
On Wed, Nov 13, 2019 at 10:44 AM Gianantonio Pezzullo < ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In Trigger/src/ReadTriggerInfo_module.cc
<#52 (comment)>:
> @@ -707,7 +707,7 @@ namespace mu2e {
for (unsigned int i=0; i< _trigPaths.size(); ++i){
string&path = _trigPaths.at(i);
- if (trigNavig.accept(path)) _sumHist._hTrigInfo[15]->Fill((double)i);
+ if (trigNavig.accepted(path)) _sumHist._hTrigInfo[15]->Fill((double)i);
In the near future, I wanted to improve this code for using the
protonbunch intensity as weight. That's why I left TH1F. If we think it's a
problem I can switch to TH1I
PBI is only available in MC data. Do you want to restrict this module to
that kind of data?
… —
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#52?email_source=notifications&email_token=ABAH574KLBSNLZCRNCLVW5DQTRBUHA5CNFSM4JL5WEHKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCLOM7KY#discussion_r345926334>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABAH57Z2244C7TR6SJFCYK3QTRBUHANCNFSM4JL5WEHA>
.
--
David Nathan Brown Dave_Brown@lbl.gov
Office Phone (510) 486-7261 Fax 495-2957
Lawrence Berkeley National Lab
MS 50R5008 (50-6026C) Berkeley, CA 94720
|
|
Thanks for adding the state accessor. Can you also consider adding The other accessor I'm interested in is |
|
Hi Ray, I'm asking Kyle how to do it because right now I actually don't know. In the meanwhile, I pushed the changes that I figured were necessary to adapt the genTriggerFcl script to be compatible with python2 and 3. |
|
Hi Giani,
Please stick with this until you have a solution.
Rob
… On Nov 18, 2019, at 12:32 PM, Gianantonio Pezzullo ***@***.***> wrote:
Hi Ray,
I'm asking Kyle how to do it because right now I actually don't know. In the meanwhile, I pushed the changes that I figured were necessary to adapt the genTriggerFcl script to be compatible with python2 and 3.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
Hi Rob,
For me it’s fine. I can integrate what Ray asked once Kyle replies to me. I’m in the process of having a few pull requests in the coming weeks.
Cheers,
Gianantonio Pezzullo, Ph.D.
giani.pezzu@gmail.com
**********************************************************************************************************
Address: Department of Physics, Yale University, 56 Hillhouse, New Haven, CT-06511, USA
**********************************************************************************************************
… On Nov 18, 2019, at 2:48 PM, Rob Kutschke ***@***.***> wrote:
Hi Giani,
Please stick with this until you have a solution.
Rob
> On Nov 18, 2019, at 12:32 PM, Gianantonio Pezzullo ***@***.***> wrote:
>
> Hi Ray,
>
> I'm asking Kyle how to do it because right now I actually don't know. In the meanwhile, I pushed the changes that I figured were necessary to adapt the genTriggerFcl script to be compatible with python2 and 3.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#52?email_source=notifications&email_token=AGCD3ECS54QVSDYSKSATXDTQULWQLA5CNFSM4JL5WEHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEELV4YI#issuecomment-555179617>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGCD3EBGYF7F7F4SLSRG7VDQULWQLANCNFSM4JL5WEHA>.
|
rlcee
left a comment
There was a problem hiding this comment.
I agreed with Gianni to let the last enhancement go since it will still take a while.
Evenrything else looks fine.
Thi pull request contain: