cta-observatory / lstmcpipe

Scripts to analyse MC files on LST cluster at La Palma
https://cta-observatory.github.io/lstmcpipe/
MIT License
7 stars 15 forks source link

Some modification required for source-dependent MC production #191

Open chaimain opened 2 years ago

chaimain commented 2 years ago

Following the discussion in #188 we will need to add --source-dep option for generating IRFs, and maybe some more things, as the discussion with @SeiyaNozaki progresses, regarding producing source dependent MC production.

LukasNickel commented 2 years ago

Choosing pointlike gammas for RF right? Anything else? Lets discuss it in the call

SeiyaNozaki commented 2 years ago

I think we need to modify for source-dependent analysis: https://github.com/cta-observatory/lstmcpipe/blob/master/lstmcpipe/stages/mc_train.py#L52-L53 to use point gamma MC as RF training input and https://github.com/cta-observatory/lstmcpipe/blob/master/lstmcpipe/stages/mc_dl2_to_irfs.py#L284 to add --source-dep flag if soure-dep analysis is selected

LukasNickel commented 2 years ago

Pointlike gammas for all random forests. Is that a good idea?

Is it enough to put source dependent in the config and use the normal for dl1/dl2 or is there something missing?

SeiyaNozaki commented 2 years ago

Pointlike gammas for all random forests. Is that a good idea?

yes, this is the way for source-dependent analysis. It would make some bias for proton/electrom MC, but we can obtain better performance for point gamma source.

Is it enough to put source dependent in the config and use the normal for dl1/dl2 or is there something missing?

It should be enough only to activate source-dep flag in the config.

vuillaut commented 2 years ago

I believe this can now be easily supported by the new PathConfig logic. Is there still a need @SeiyaNozaki @chaimain ?

vuillaut commented 1 year ago

Hi @SeiyaNozaki With the AllSky production, what gamma do you use for training for the source-dep analysis? (since the TrainingDataset includes only GammaDiffuse)

SeiyaNozaki commented 1 year ago

For all sky MC, I'm using diffuse gamma as RF training for source-dependent analysis (though I used point gamma before all sky MC).

vuillaut commented 1 year ago

For all sky MC, I'm using diffuse gamma as RF training for source-dependent analysis (though I used point gamma before all sky MC).

ha ok great, so #375 is in line with your processing and it also means there is no changes required in lstmcpipe to process source-dependent !! You can request a prod for your source-dep analysis, the only difference is in the lstchain config.

SeiyaNozaki commented 7 months ago

Hi @vuillaut , I want to ask base production for source-dependent analysis (like #449 ), but in general, I also want to improve the code for source-dependent analysis: