This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
gaudi:ntuple [2009/10/05 16:48] – decianm | gaudi:ntuple [2009/11/30 10:01] (current) – decianm | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== How to make your GaudiAlgorithm ready for an nTuple ====== | + | ====== How to make your GaudiAlgorithm |
===== Problem ===== | ===== Problem ===== | ||
- | Unlike a DaVinci-Algorithm (DVAlgorithm), | + | Unlike a DaVinci-Algorithm (DVAlgorithm), |
- | ===== Solution ===== | + | ===== Solution |
Let your GaudiAlgorithm inherit from ' | Let your GaudiAlgorithm inherit from ' | ||
In the .h-File: | In the .h-File: | ||
Line 20: | Line 20: | ||
You should then be able to declare your tuple in the ' | You should then be able to declare your tuple in the ' | ||
+ | < | ||
+ | Tuple tuple = nTuple(" | ||
+ | </ | ||
+ | |||
+ | ===== Solution for GaudiTool ===== | ||
+ | Let your GaudiTool inherit from ' | ||
+ | In the .h-File: | ||
+ | < | ||
+ | #include " | ||
+ | #include " | ||
+ | #include " | ||
+ | #include " | ||
+ | class myClass : public GaudiTupleTool | ||
+ | </ | ||
+ | In the .cpp-File: | ||
+ | < | ||
+ | myClass:: | ||
+ | </ | ||
+ | You should then be able to declare your tuple in a method with | ||
< | < | ||
Tuple tuple = nTuple(" | Tuple tuple = nTuple(" | ||
</ | </ | ||