[Rivet] compiling an analysis

Sercan Sen Sercan.Sen at cern.ch
Tue Aug 24 13:11:57 BST 2010


Hi Frank,

I create two new analysis test.cc and CAPTEST.cc and compile them. As  
far as I see, we need to name the analysis by using UPPER cases to  
avoid possible problems.

ssen> rivet --list-analyses
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./test.info
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./CAPTEST.info
CAPTEST
test

ssen> rivet --analysis=test P8diffhepmcout.dat
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./test.info
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./CAPTEST.info
'TEST' is not a valid analysis. Available analyses are:
     CAPTEST
     test
ssen> rivet --analysis=TEST P8diffhepmcout.dat
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./test.info
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./CAPTEST.info
'TEST' is not a valid analysis. Available analyses are:
     CAPTEST
     test

------ > Neither "test" nor "TEST" didn't work  .

ssen> rivet --analysis=CAPTEST P8diffhepmcout.dat
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./test.info
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./CAPTEST.info
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./CAPTEST.info
Rivet running on machine pc127.hep.ucl.ac.uk (x86_64)
Rivet.Analysis.Handler: WARN  Removing incompatible analysis 'CAPTEST'
Rivet.Analysis.Handler: ERROR  All analyses were incompatible with the  
first event's beams
Exiting, since this probably isn't intentional!
ssen>

--------> CAPTEST analysis works but says not compatible with the  
input file. When I look at the CAPTEST.cc, I realized that

setBeams(PROTON, ANTIPROTON); (by default)

and I changed it to setBeams(PROTON, PROTON); which is compatible with  
my events.


ssen> rivet --analysis=CAPTEST P8diffhepmcout.dat
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./test.info
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./CAPTEST.info
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./CAPTEST.info
Rivet running on machine pc127.hep.ucl.ac.uk (x86_64)
Rivet.Analysis.Handler: WARN  Analysis 'CAPTEST' is unvalidated: be  
careful!
Reading events from 'P8diffhepmcout.dat'
Rivet.Run: ERROR  Total cross-section needed for at least one of the  
analyses. Please set it (on the command line with '-x' if using the  
'rivet' program)
Event processing failed for evt #1!
Finished event loop
Rivet.Analysis.Handler: INFO  Finalising analyses
Rivet.Analysis.Handler: INFO  Processed 0 events

The MCnet usage guidelines apply to Rivet: see http://www.montecarlonet.org/GUIDELINES
Please acknowledge plots made with Rivet analyses, and cite arXiv: 
1003.0694 (http://arxiv.org/abs/1003.0694)
ssen>


And I change setNeedsCrossSection(true); to setNeedsCrossSection(false);


ssen> rivet --analysis=CAPTEST P8diffhepmcout.dat
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./test.info
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./CAPTEST.info
Rivet.AnalysisInfo: ERROR  Parse error when reading analysis data  
from ./CAPTEST.info
Rivet running on machine pc127.hep.ucl.ac.uk (x86_64)
Rivet.Analysis.Handler: WARN  Analysis 'CAPTEST' is unvalidated: be  
careful!
Reading events from 'P8diffhepmcout.dat'
Event 100 (1 s elapsed)
Event 200 (2 s elapsed)
Event 300 (3 s elapsed)
Event 400 (5 s elapsed)
Event 500 (6 s elapsed)
Event 600 (7 s elapsed)
Event 700 (9 s elapsed)
Event 800 (10 s elapsed)
Event 900 (11 s elapsed)
Event 1000 (13 s elapsed)
Finished event loop
Rivet.Analysis.Handler: INFO  Finalising analyses
Rivet.Analysis.Handler: INFO  Processed 1000 events

The MCnet usage guidelines apply to Rivet: see http://www.montecarlonet.org/GUIDELINES
Please acknowledge plots made with Rivet analyses, and cite arXiv: 
1003.0694 (http://arxiv.org/abs/1003.0694)
ssen>


May I ignore Parse ERROR right now ? Do you think,  will parse error  
disappear when I edit CAPTEST.info ?

Thanks again
Sercan





On Aug 24, 2010, at 12:25 PM, Frank Siegert wrote:

> Hi Sercan,
>
> Seems to be a lower/upper case mismatch. Could you try the same but  
> call
> your analysis TEST instead of test?
>
> The "Parse errors" appear because you have not filled/modified  
> test.info
> yet.
>
> Frank



More information about the Rivet mailing list