uwcms / FinalStateAnalysis

An analysis framework for the Compact Muon Solenoid
3 stars 43 forks source link

Compilation error in ApplySVfit.cc #250

Closed aglevine closed 11 years ago

aglevine commented 11 years ago

I checked out new code when prompted by environment.sh (which I now know I shouldn't do in general), and the new code would not compile. I was getting this error:

/afs/hep.wisc.edu/cms/aglevine/hlfv/src/FinalStateAnalysis/DataAlgos/src/ApplySVfit.cc:12:76: fatal error: TauAnalysis/CandidateTools/interface/NSVfitStandaloneAlgorithm.h: No such file or directory

I ran the nuke script and compiled again, but I ran into the same error. I couldn't find a TauAnalysis directory anywhere, so I decided to comment out the "#include "TauAnalysis/CandidateTools/interface/NSVfitStandaloneAlgorithm.h" line in ApplySVfit.cc. This did not work because ApplySVfit requires NSVfitStandalone classes. I then removed ApplySVfit. But when I recompiled I ran into more problems because ApplySVfit is referenced elsewhere.

I then returned ApplySVfit to its initial state and ran ./FinalStateAnalysis/recipe/install_python.sh. Everything installed successfully, but when I compile I still have the original error (/afs/hep.wisc.edu/cms/aglevine/hlfv/src/FinalStateAnalysis/DataAlgos/src/ApplySVfit.cc:12:76: fatal error: TauAnalysis/CandidateTools/interface/NSVfitStandaloneAlgorithm.h: No such file or directory).

ekfriis commented 11 years ago

You want to run the install script that comes in UWHiggs[1] which will call the appropriate recipe.sh scripts in FinalStateAnalysis.

Can you see if that fixes it?

[1] https://github.com/uwcms/UWHiggs/blob/master/install.sh

ekfriis commented 11 years ago

(FYI)

You could equivalently run, in FinalStateAnalysis/recipe

LUMI=1 LIMITS=1 PATPROD=0 ./recipe.sh
echo "Deleting unneeded PAT dependencies"
./nuke_pat_tools.sh
aglevine commented 11 years ago

Neither of those worked for me. Maria tells me that my problem is that I'm running CMSSW_5_3_7 which is now obsolete with regards to FinalStateAnalysis. I'm getting CMSSW_5_3_9.

ekfriis commented 11 years ago

OK, please also update the README for UWHiggs to reflect the dependence on 5_3_9 and send a PR.

On Mon, Jul 22, 2013 at 2:29 PM, aglevine notifications@github.com wrote:

Neither of those worked for me. Maria tells me that my problem is that I'm running CMSSW_5_3_7 which is now obsolete with regards to FinalStateAnalysis. I'm getting CMSSW_5_3_9.

— Reply to this email directly or view it on GitHubhttps://github.com/uwcms/FinalStateAnalysis/issues/250#issuecomment-21340588 .

ekfriis commented 11 years ago

Is this fixed now, can I close?

aglevine commented 11 years ago

Yes, it's fixed. Thanks for your help.

On 07/23/2013 03:30 PM, Evan K. Friis wrote:

Is this fixed now, can I close?


Reply to this email directly or view it on GitHub https://github.com/uwcms/FinalStateAnalysis/issues/250#issuecomment-21413603.