Skip to content

added 2 trigger lines + added 1 function in TriggerResultsNavigator class#52

Merged
brownd1978 merged 11 commits into
Mu2e:masterfrom
gianipez:triggerUpdate1
Nov 20, 2019
Merged

added 2 trigger lines + added 1 function in TriggerResultsNavigator class#52
brownd1978 merged 11 commits into
Mu2e:masterfrom
gianipez:triggerUpdate1

Conversation

@gianipez

Copy link
Copy Markdown
Collaborator

Thi pull request contain:

  • configuration of a new track trigger line and a place holder for a calorimeter-photon trigger
  • I added the function "state" in the TriggerNavigator class (suggest by Ray Culberston)
  • tiny changes in the analyzer module ReadTriggerInfo

@brownd1978 brownd1978 requested a review from bechenard November 12, 2019 21:30
@brownd1978 brownd1978 self-assigned this Nov 12, 2019
@brownd1978 brownd1978 requested a review from rlcee November 12, 2019 21:30
@@ -0,0 +1,2 @@
physics.filters.tprCosmicSeedDeMEventPrescale.nPrescale : 1
physics.filters.tprCosmicSeedDeMEventPrescale.triggerFlag : ["PrescaleRandom"] No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here.

@@ -0,0 +1,2 @@
physics.filters.tprCosmicSeedDeMEventPrescale.nPrescale : 1
physics.filters.tprCosmicSeedDeMEventPrescale.triggerFlag : ["PrescaleRandom"] No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make the _sumHist a TH1I (integer) and avoid the cast here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@bechenard

bechenard commented Nov 13, 2019 via email

Copy link
Copy Markdown
Contributor

@gianipez

gianipez commented Nov 13, 2019 via email

Copy link
Copy Markdown
Collaborator Author

@brownd1978

brownd1978 commented Nov 13, 2019 via email

Copy link
Copy Markdown
Collaborator

@bechenard bechenard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good!

@rlcee

rlcee commented Nov 18, 2019

Copy link
Copy Markdown
Collaborator

Thanks for adding the state accessor. Can you also consider adding
the second accessor I mentioned (see below) Thanks
Ray

The other accessor I'm interested in is
unsigned index(unsigned const i)
this is an integer which says at what module in the path
was the path execution stopped. Even better, and in keeping with the
purpose of your class, you could convert this index into a
module name, that would be nice, as it is not obvious how
to do that..

@gianipez

Copy link
Copy Markdown
Collaborator Author

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.

@kutschke

kutschke commented Nov 18, 2019 via email

Copy link
Copy Markdown
Contributor

@gianipez

gianipez commented Nov 18, 2019 via email

Copy link
Copy Markdown
Collaborator Author

@rlcee rlcee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agreed with Gianni to let the last enhancement go since it will still take a while.
Evenrything else looks fine.

@brownd1978 brownd1978 merged commit 2ea513e into Mu2e:master Nov 20, 2019
@gianipez gianipez deleted the triggerUpdate1 branch November 20, 2019 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants