cms-sw / cmssw

CMS Offline Software
http://cms-sw.github.io/
Apache License 2.0
1.07k stars 4.28k forks source link

Unable to find plugin 'MuonExercise2' in category 'CMS EDM Framework Module' #41886

Open chuxue26 opened 1 year ago

chuxue26 commented 1 year ago

----- Begin Fatal Exception 07-Jun-2023 08:18:41 CEST----------------------- An exception of category 'PluginNotFound' occurred while [0] Constructing the EventProcessor Exception Message: Unable to find plugin 'MuonExercise2' in category 'CMS EDM Framework Module'. Please check spelling of name. ----- End Fatal Exception -------------------------------------------------

cmsbuild commented 1 year ago

A new Issue was created by @chuxue26 chuxue.

@Dr15Jones, @perrotta, @dpiparo, @rappoccio, @makortel, @smuzaffar can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

perrotta commented 1 year ago

@chuxue26 could you please give some more context? What is that MuonExercise2 (I can't find it in CMSSW)? How did you get that error? How can one reproduce it?

chuxue26 commented 1 year ago

It is from 2020 CMS Data Analysis School @ CERN : Muon Short Exercise (virtual) (https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCMSDataAnalysisSchoolCERN2020MuonShortExercise). Exercise 2: Looking at the Z mass spectrum Step 1: Generated and reconstructed dimuon Z mass

I just: xrdcp /eos/user/c/cmsdas/short-exercises/muon/Exercise2/MuonExercise2.py MuonExercise2.py mkdir plugins cd plugins xrdcp /eos/user/c/cmsdas/short-exercises/muon/Exercise2/plugins/MuonExercise2.cc MuonExercise2.cc xrdcp /eos/user/c/cmsdas/short-exercises/muon/Exercise2/plugins/BuildFile.xml BuildFile.xml And then scram b cmsRun MuonExercise2.py

makortel commented 1 year ago

Did you do the steps

cd MuonExercises
mkdir MuonExercise2
cd MuonExercise2

inside a CMSSW developer area? (i.e. are the MuonExercise2.cc and BuildFile.xml files copied under $CMSSW_BASE/src/MuonExercises/MuonExercise2/plugins?

(Is this exercise by any chance part of the ongoing CMSDAS at CERN? Or are you doing the exercise independently?)

chuxue26 commented 1 year ago

Yes, I did the steps inside a CMSSW developer area. I am doing the exercise independently. But I think this step can probably be done independently. Because the first half of the exercise can be done independently, just using files in /eos/user/c/cmsdas/. Could you please tell me how I make sure that I can do this exercise independently? Thanks.

chuxue26 commented 1 year ago

I successfully did the step in /eos/home-c/chuxue/.../CMSDAS2020/$CMSSW_BASE/src/MuonExercises/MuonExercise2 ! Thank you!!!

I did it in /eos/user/c/chuxue/.../CMSDAS2020/$CMSSW_BASE/src/MuonExercises/MuonExercise2 before. What is the difference for these two? Thanks!

perrotta commented 1 year ago

Why are you setting your local area on eos instead of (e.g.) afs, as also suggested in https://twiki.cern.ch/twiki/bin/viewauth/CMS/SWGuideCMSDataAnalysisSchoolCERN2020MuonShortExercise#Pre_requisite ?

chuxue26 commented 1 year ago

Because I cannot open my X11 forwarding: Error: cannot open display: localhost:26.0

And one of the reasons I found online is there is no enough memory in my home dictionary. So I move all the files to /eos/. But it still not works. May I ask about this question? Thanks!!!