Matthew Bellis: We should be recording now perfect all right, let me get my screen up.
again.
And the participants in the chat okay.
Julie Hogan: All right, so this is our This is our second hands on exercise.
Julie Hogan: And what I want to do before we start, I want to show you the roadmap what we're going to do in this session, and I want to show you the output of running poets.
Julie Hogan: So what we have on the lesson page right here in the hands on exercise, there are four exercises.
Julie Hogan: And i'm hoping that, in this actual 40 minutes, right now, you could do, one of the options market exercise one and you could do exercise too.
Julie Hogan: So the others are there, you can always come back to them.
Julie Hogan: The first three options are all related to object identification one for nuance one for towels one for jets so pick your favorite.
Julie Hogan: pick your favorite and we can dig into the identification algorithms for those objects, a little bit more.
Julie Hogan: For each one of these when you start exercise one I encourage you to go back to the lesson page on that object.
Julie Hogan: And we have some tricky links that we looked at on those pages to the cms this to the cms reference pages that have some of the information you need to pull out to do these exercises.
Julie Hogan: And the last exercise will look at the missing energy which we which we talked about super briefly so we'll look at that a little bit more.
Julie Hogan: There are already solutions posted no fair peaking try to avoid hitting that button will go over them together, though, right at the end of the session
Julie Hogan: So.
Julie Hogan: that's their over here in my container.
Julie Hogan: over here my container my poet that I that I cloned at the beginning of last time and then I set running finished.
Julie Hogan: So you might see messages similar to this if you had a failure, please let people know in matter most so we'll try to work that through with you but fingers crossed yours looks similar to mine.
Julie Hogan: And so you see some some messages being print out and then you might see comment might see what look like errors like this.
Julie Hogan: You know can't access my my proxy, which is actually Okay, because this is public data, and so we don't require such a thing as a network authentication.
Julie Hogan: So, but it's still tells us that it can't find it so we have opening this file initiating a request to open the file successfully open the file.
Julie Hogan: print out from the code itself and then close the file that set of messages means it worked and then typically you'll have a summary at the bottom like this.
Julie Hogan: In this case, it's a very boring summary that's telling me there were some open and some close actions, if you see the word fatal exception show up in here, something went wrong.
Julie Hogan: So that's that's the overview and what we have.
Julie Hogan: New in our folder here at 1717 when this stopped running, I have a root file called my output.
Julie Hogan: So I am going to remember that i'm using windows.
Julie Hogan: and start my V and see so that I can show you what this.
Julie Hogan: file contains.
Julie Hogan: And I have to move all of my zoom stuff.
Julie Hogan: Which is in the way okay there we go.
Okay.
Julie Hogan: So here's my here's my B and C, you are.
Very large.
Julie Hogan: Okay.
Julie Hogan: And in here, I can actually open with a route this file and if you're new to route.
Julie Hogan: If you're new to route, the first the first good thing to do is is always open the browser.
Julie Hogan: Some of the exercises in here i've given you some command line instructions which some of you may may or may not.
Julie Hogan: So we can investigate what lives inside our file.
Julie Hogan: Every ED analyzer has made a folder.
Julie Hogan: The electrons live in one folder and they have a tree you learned a little bit in some of the pre exercises about trees and branches, and so we can draw their quantities by clicking.
Julie Hogan: on it, so we could see, for instance, whether these electrons are loose or medium.
or tight.
Julie Hogan: We can look at the other objects jets.
Julie Hogan: Mass momentum etc so that's the basic structure you expect from one of these files, if you are able to run this successful.
Julie Hogan: So take a shot at one of these exercises choose an identification algorithm challenge for yourself and see see how you can do with looking up information on these cookies i'm going to do i'm going to do, while we, while we sit here and work i'm going to do exercise one option A.
Julie Hogan: house, so you can follow, along with me if you prefer.
Julie Hogan: You can always feel free to raise hands as questions in the zoom chat ask questions in the matter most.
Matthew Bellis: Actually, I have a question at the risk of interrupting your your editing.
that's fine.
Matthew Bellis: So I was looking at the the output from the poet file.
Matthew Bellis: Okay, and that my output dot route.
Matthew Bellis: And right there's a bunch of T directory files and each one of those T directory files has like a tree structure with the entries.
Matthew Bellis: yep so let's suppose I want to now analyze this and i'm looping over events, and I want to make some selection on jets and towels and.
Matthew Bellis: electrons.
Matthew Bellis: Right, so I want to rewrite some event process or.
Matthew Bellis: Do I have to basically open up a bunch of.
Matthew Bellis: trees and then kind of like soup over the manually or is there an easier way that i've missed maybe in in the pre exercise that I.
Julie Hogan: So we actually have a couple of tools setup for this, let me show you.
Julie Hogan: So in the physics object extractor tool we have a folder over here called test.
Julie Hogan: uh huh and test is holding a couple of little analysis examples.
Julie Hogan: That would let you do this so i'll just show you the event loop analysis template quickly.
Julie Hogan: And what we can do with these different trees, the the root terminology is that we can they are friends of each other, we can be friends.
Julie Hogan: And when so so we can make make a friendship and we can add friend trees, so this little script when you when you get into those type of questions can.
Julie Hogan: navigate using multiple trees that one's.
Matthew Bellis: got it alright thanks.
Matthew Bellis: Good question.
Julie Hogan: Okay, we did I got Jamie is or him as your question.
Julie Hogan: In matter most this This to me looks like a docker container error.
Julie Hogan: This looks like a problem accessing the databases so i'm going to hand that to get to your advert or more expert on that, though perhaps.
Edgar Fernando Carrera Jarrin: Okay, every time you see this.
Edgar Fernando Carrera Jarrin: Global tag.
Edgar Fernando Carrera Jarrin: message, it has to do something with accessing the.
Edgar Fernando Carrera Jarrin: The database information.
Edgar Fernando Carrera Jarrin: So.
Edgar Fernando Carrera Jarrin: What kind of a so you are using a container or virtual machine.
Edgar Fernando Carrera Jarrin: Okay, a container and.
Edgar Fernando Carrera Jarrin: So the container has its own.
Edgar Fernando Carrera Jarrin: database yeah its own database directory let's say, and if you go to the poet Julie, maybe you can show the poet configuration file there.
Edgar Fernando Carrera Jarrin: There are a couple of our yeah so one thing that you should probably do in order to run is to change.
Edgar Fernando Carrera Jarrin: And we went through this during the trigger lesson, but if you can see, at the global tag section bit below right, so you have those still lines.
Edgar Fernando Carrera Jarrin: With this conditional right and it's loading the global tech, well, it turns out that you, you really have to come and out these two lines and then on comment now the ones below.
Right.
Edgar Fernando Carrera Jarrin: And then you have to comment, the lines with the local conditions I don't know if you can you can see that Julie.
Edgar Fernando Carrera Jarrin: they're not.
Edgar Fernando Carrera Jarrin: Using.
Julie Hogan: This line and comment on these lines.
Edgar Fernando Carrera Jarrin: Now those those first two lines are fine right, but then, when you get to the conditional if if this data thing you know where you get a good level of tax those two lines have have to be commended out.
Edgar Fernando Carrera Jarrin: In the ones below yeah right there, they have to be uncommitted The difference is that.
Edgar Fernando Carrera Jarrin: With the first option, you are trying to access these conditions.
Edgar Fernando Carrera Jarrin: Not locally.
Edgar Fernando Carrera Jarrin: and
Edgar Fernando Carrera Jarrin: It shouldn't have failed actually.
Edgar Fernando Carrera Jarrin: But.
Edgar Fernando Carrera Jarrin: It could actually run quicker if you uncommon is his lines, instead of the previous two words.
Julie Hogan: Okay, so that's the trial case perhaps comments these than uncommon these.
Edgar Fernando Carrera Jarrin: and actually if I look at the air, it may.
Edgar Fernando Carrera Jarrin: It may be saying that too many people are trying to connect to the servers at the same time, and so that's why it is important to use the local the local configuration, in that way we don't hit cms databases servers 12.
Julie Hogan: So then, what I will go ahead and.
Julie Hogan: edit that.
Julie Hogan: One of the reasons why we wouldn't have set that up as the default is that.
Julie Hogan: For this, for this workshop we have this container with these things stored locally, but you know if you are using.
Julie Hogan: Perhaps different container just for your analysis may need to access them over the over the network.
Julie Hogan: Okay we're almost halfway through this time so i'm going to move on to looking at exercise to you're welcome to keep continuing on one exercise one or, if you want to pause that.
Julie Hogan: and move on, you can try exercise so i'm going to I made a few changes to the one analyzer which i'm going to attempt to comply with see how lucky I got my typing first time around.
not completely perfect missing.
parentheses.
Julie Hogan: Edgar it doesn't seem quite happy.
Julie Hogan: Okay, I apologize, I must not have had the very most updated container because this one i've used for a while, for development, so I hope that this is will work for for many of you who have freshly done the pre exercise I don't know if you're not the right access to these.
Julie Hogan: Local files so i'm going to go back to the.
person here.
And i'll try to fix up before the next time.
Julie Hogan: Something i'm realizing is that I have not given you, I think the second route file.
Julie Hogan: I meant to go and put that as a as an option we put config and I think that's missing so i'll post them matter most in case anyone gets to that point and would like to try a different.
Monaco sample file.
Julie Hogan: So here's how I might put this temporary second file in.
I wanted to run a different simulation.
Julie Hogan: file.
Julie Hogan: Okay i'd like to take the last 10 minutes here of our of our time together to go over some of these solutions.
Julie Hogan: So the first three exercises that are all related to identification are prompting you to go to these reference pages so for for new ones i've got it pulled up here.
Julie Hogan: And for towels we have a couple of a reference pages.
Julie Hogan: as well, and for jets.
Julie Hogan: I had pointed you to this folder, which is actually in the github repository of cms system for you.
Julie Hogan: So that we can look at all the methods available for for jets which live which live in here.
Julie Hogan: In the folder called interface, where all the header files live.
Julie Hogan: And then the file called jet.
Julie Hogan: So these are three reference pages will look at immediately.
Julie Hogan: For nuance.
Julie Hogan: The isolation code that we had put in up that we had by default here in the extractor tool and we collect the analyzer does not have that pilot correction on it.
Julie Hogan: And so we can add it in.
Julie Hogan: Here we go, so we just had the basic.
Julie Hogan: charge have drones and neutral have drones and photons, and so it is tricky here.
Julie Hogan: For nuance walk you through the different.
Julie Hogan: The different ids identification algorithms that exist and then here's a link to isolation information.
Julie Hogan: And so from this from this.
Julie Hogan: table right here what I see.
Julie Hogan: Is that the recommendation is to use the code size of 0.4 I can see that I should be using this delta beta correction which is described here in this section below.
Julie Hogan: and
Julie Hogan: So I can look I can look that up here's some information about the.
Julie Hogan: Isolation structure and what options that contains we're already using some of them already using some charge cards on neutral some zero hedge on some photon and here's the configuration that it suggests that to us, and so I can implement that.
Julie Hogan: In my see oh good the sky finished.
Julie Hogan: So what i've done really quickly right here is i've added in this.
Julie Hogan: idea of a maximum to protect my subtraction from going negative and i've added here the minus 0.5 times this some pilot.
Julie Hogan: So you can find some of these pieces of information here on the on the twitters.
Julie Hogan: Similar for implementing the loose ID, which was the second ask it tells me how to do that, and so I I can add it to my to my code here, following the example of the other ideas that were already in place.
Julie Hogan: And the last little bit of this of this exercise was suggesting that you can rebuild, you can try to recreate, these are the working points from the detector information.
Julie Hogan: Because it's all here on this wiki page in the tables for each ID or all of the actual cuts that go into each one of them, so this tight new on ID has has many requirements on detector conditions that go into building this identification criteria.
Julie Hogan: So you could you could build that up and if you walk through this solution, you you i've tried to point out all the pieces, you would need to touch in this file to have access to some branches, which hopefully now if I open one of my route files.
Julie Hogan: I have access to, so I could go and look in the view on folder.
Julie Hogan: In my events tree.
Julie Hogan: And i've got, for instance here my new branch that I just created the loose ID which is either zero or one.
Julie Hogan: And if I compare that to tight I do what I expect is that loose has more ones and tight ID has your ones here my stuff's boxes in the way to get rid of it.
going.
Julie Hogan: So compared.
Julie Hogan: Comparing loose it.
Julie Hogan: And tight ID.
Julie Hogan: We have many well you can't win this this box, we have, we have a harsher criteria here and tidy them you did it.
Okay.
Julie Hogan: For the towel exercise a little bit similar.
Julie Hogan: There are many discriminates, and so I prompted you to try to find an add some values that are based on nba techniques and in this town wiki page they lay out all of their algorithms.
Julie Hogan: With some information on how to use them.
Julie Hogan: So there are several for left on rejection like like saying this was this was actually an electron rather little towel.
Julie Hogan: There are some from you on rejection, this was actually a new on not a towel.
Julie Hogan: There are some kind of basic isolation.
Julie Hogan: related metrics on these house and then here at the bottom of the list are some that are related to mbas.
Julie Hogan: And so I chose to in the solution if you take a peek at it now I choose to use this MBA number two because it says MBA number two in the training and improve performance, so that sounds great.
Julie Hogan: So what we can do is a similar process of adding a couple of variables.
Julie Hogan: And some branches, to the tree.
Julie Hogan: and open TAO collections very similar to how all the other ones are done in the file.
Julie Hogan: And then we can access their information, so this is kind of a template type exercise where you have an example of how five or six of these are done and could look up others and on this wiki page it might help you decide which ones, you want to use analysis.
Julie Hogan: For the for the exercise we can learn in this in this jet header file all of the Member functions that we need to complete this criteria that we saw in the lesson page so here in the lesson page.
Julie Hogan: Here in the in the lesson page is a quotation from a paper that describes what the large hadron fraction should be the neutral hadron fraction the charged electron electromagnetic fraction, so there are these poor conditions that are described in this paper.
Julie Hogan: And so, by looking up by looking up this reference information, even just in cms this w in the code, we can find a set of number functions that allow us to calculate those quantities.
Julie Hogan: And so you could apply that to all of the jets as you analyze them.
Julie Hogan: The second exercise is mostly to make sure everyone can run poet so thanks for everyone who would found us some of arts settings to change here on the on the matter most hopefully you were able to run and if you were not able to run please definitely, let us know.
Julie Hogan: We can we can run on different on different route files and as we process different samples, we expect them to have different physics, so I wanted to show you all, an example of looking at missing energy.
Julie Hogan: In two different samples.
Julie Hogan: One of which top court pairs, one of which could actually have events with neutrinos and them, which would create what we would consider real missing energy.
Julie Hogan: The other sample that we process which I pasted here in the in the matter most is labeled dui jets to ll so drill yan plus perhaps jeff's to to leptons is the main code here.
Julie Hogan: And the fact that this drill yam process disease photons the fact that they're producing to leptons indicates that we don't expect any neutrinos in this process and so any missing energy we find is related only to miss measurements of detector objects.
Julie Hogan: And so, hopefully you're able to come back and kind of go through some of these i've tried to show you how you could draw two histograms on top of each other quickly, which is a handy tool and we'll use that later in tomorrow's exercises.
Julie Hogan: But just to give you an idea how it looks like here in the blue line is a is a an example of missing energy that's not real it's from this measurement or resolution effects and the numerical values in G here can actually be quite large.
Julie Hogan: But you can see that, of course, the Red distribution for top Cork events has a much larger need because here we could actually have some real missing energy.
Julie Hogan: And we also have a significance metric for missing energy which gives you an idea in terms of here in number number of standard deviations rather than.
Julie Hogan: Giving electron volts so this gives you an idea of the significance of that missing energy value and again the top part red bar has it has a higher value and tends to have more significant missing energy, as well as just more in general.
Julie Hogan: So this is giving you a first quick look at some of the identification algorithms we've tried to put the most commonly used ones, already in the physics object extractor tool.
Julie Hogan: But you have access to the cms public reference pages that can help you if, if one of you want something perhaps that is more appropriate for your analysis, you can implement other things that have been developed by cms or learn about the detector criteria that went into them.
Julie Hogan: And you can run poet, hopefully, you all got to.
Julie Hogan: Use One example that successfully and investigate the output in the tree.
Julie Hogan: So that's our first day we're happy to hang out for a little while here on matter most and maybe been on zoom for four more minutes here answering questions and then I think you're headed into the challenge exercise for let's let's take a peek at what the offline.
Julie Hogan: The offline exercises are before tomorrow.
Julie Hogan: There we go the challenge for data sets and access and then there's one lesson page to read ahead for tomorrow's advanced physics object lesson.
Edgar Fernando Carrera Jarrin: So this prep work is just the first the first episode in the next lesson right.
Julie Hogan: that's right oh go ahead and click.
Julie Hogan: you're headed only to the one mark.
prep.
Julie Hogan: Everything else will get tomorrow.
Julie Hogan: Alright, thanks.
Edgar Fernando Carrera Jarrin: Thank you very much Julie.
Edgar Fernando Carrera Jarrin: And thanks everyone see you tomorrow.
Matthew Bellis: bye everybody, thank you for.