Work in progress, under construction Photon+MET Analysis Package Work in progress, under construction

SVN

export SVNUNLP="svn+ssh://svn.cern.ch/reps/UNLP/"
svn co $SVNUNLP/SUSY/PhotonMETAnalysis/ PhotonMETAnalysis
cd PhotonMETAnalysis

Compilation of branch trunk

Out-of-the-box installation (SUSYTOOLS+ROOTCORE not set)

0. checkout PhotonMETAnalysis package

export SVNUNLP="svn+ssh://svn.cern.ch/reps/UNLP/"
svn co $SVNUNLP/SUSY/PhotonMETAnalysis/trunk PhotonMETAnalysis

1. set enviroment for further use

cd PhotonMETAnalysis
source scripts/setEnv.sh 

That will set the path where the PhotonMETAnalysis and the SUSYTools packages are placed (PHMET_PATH and SUSYTOOLS_PATH, respectively).

3. Setup some paths, and get all the packages we need. Please follow the prompt questions [just reply 'y' in this case :)]

source scripts/setup.sh

If you agreed upon getting and setting all up (SUSYTools, RootCore and all the missing packages) you would be running

source scripts/checkOutSUSYToolsAndBuildAll.sh

which did all the job for you!

You are ready and set to go! smile Enjoy it

If something goes wrong

1. You might find problems when compiling GoodRunsLists package, more explicitly the TGoodRunsLIstWriter class.

Compiling ../Root/TGoodRunsListWriter.cxx ../Root/TGoodRunsListWriter.cxx:23:29: error: libxml/encoding.h: No such file or directory ../Root/TGoodRunsListWriter.cxx:24:30: error: libxml/xmlwriter.h: No such file or directory ../Root/TGoodRunsListWriter.cxx: In member function ‘Bool_t Root::TGoodRunsListWriter::WriteXMLFile()’: ../Root/TGoodRunsListWriter.cxx:117: error: ‘xmlDocPtr’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:117: error: expected `;' before ‘doc’ ../Root/TGoodRunsListWriter.cxx:120: error: ‘doc’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:120: error: ‘xmlNewTextWriterDoc’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:133: error: ‘xmlTextWriterEndDocument’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:139: error: ‘xmlFreeTextWriter’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:141: error: ‘xmlSaveFormatFile’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:142: error: ‘xmlFreeDoc’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx: In member function ‘const TString& Root::TGoodRunsListWriter::GetXMLString()’: ../Root/TGoodRunsListWriter.cxx:195: error: ‘xmlBufferPtr’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:195: error: expected `;' before ‘buf’ ../Root/TGoodRunsListWriter.cxx:199: error: ‘buf’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:199: error: ‘xmlBufferCreate’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:207: error: ‘xmlNewTextWriterMemory’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:220: error: ‘xmlTextWriterEndDocument’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:226: error: ‘xmlFreeTextWriter’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:228: error: ‘xmlBufferFree’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx: In member function ‘Bool_t Root::TGoodRunsListWriter::WriteLumiRangeCollection(xmlTextWriter*)’: ../Root/TGoodRunsListWriter.cxx:246: error: ‘xmlTextWriterStartDocument’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:254: error: ‘xmlTextWriterWriteDTD’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:261: error: ‘xmlTextWriterWriteComment’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:266: error: ‘xmlFree’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:270: error: ‘BAD_CAST’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:270: error: ‘xmlTextWriterStartElement’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:297: error: ‘xmlTextWriterEndElement’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx: In member function ‘Bool_t Root::TGoodRunsListWriter::WriteNamedLumiRange(xmlTextWriter*)’: ../Root/TGoodRunsListWriter.cxx:320: error: ‘BAD_CAST’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:320: error: ‘xmlTextWriterStartElement’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:346: error: ‘xmlTextWriterEndElement’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx: In member function ‘Bool_t Root::TGoodRunsListWriter::WriteLumiBlockCollection(xmlTextWriter*, const Root::TGoodRun&)’: ../Root/TGoodRunsListWriter.cxx:365: error: ‘BAD_CAST’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:365: error: ‘xmlTextWriterStartElement’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:386: error: ‘xmlTextWriterEndElement’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx: In member function ‘Bool_t Root::TGoodRunsListWriter::WriteElement(xmlTextWriter*, const char*, const char*, const char*, const char*, const char*, const char*)’: ../Root/TGoodRunsListWriter.cxx:406: error: ‘BAD_CAST’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:406: error: ‘xmlTextWriterStartElement’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:413: error: ‘xmlTextWriterWriteAttribute’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:421: error: ‘xmlTextWriterWriteAttribute’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:429: error: ‘xmlTextWriterWriteString’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:436: error: ‘xmlTextWriterEndElement’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx: In member function ‘xmlChar* Root::TGoodRunsListWriter::ConvertInput(const char*, const char*)’: ../Root/TGoodRunsListWriter.cxx:468: error: ‘xmlCharEncodingHandlerPtr’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:468: error: expected `;' before ‘handler’ ../Root/TGoodRunsListWriter.cxx:473: error: ‘handler’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:473: error: ‘xmlFindCharEncodingHandler’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:482: error: ‘xmlMalloc’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:494: error: ‘xmlFree’ was not declared in this scope ../Root/TGoodRunsListWriter.cxx:497: error: ‘xmlRealloc’ was not declared in this scope make: * [../obj/TGoodRunsListWriter.o] Error 1

If so (quick and dirty hack), just get rid of the file GoodRunsLists/Root/TGoodRunsListWriter.cxx, clean out and recompile everything. To do so type:

cd RootCore
./configure
source scripts/setup.sh
cd ../..
$ROOTCOREDIR/scripts/find_packages.sh
$ROOTCOREDIR/scripts/clean.sh
$ROOTCOREDIR/scripts/compile.sh
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2013-05-13 - MartinTripiana
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback