This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| gaudi:ntuple [2009/10/05 16:47] – created 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: | ||
| < | < | ||
| + | #include " | ||
| + | #include " | ||
| + | #include " | ||
| #include " | #include " | ||
| class myClass : public GaudiTupleAlg | class myClass : public GaudiTupleAlg | ||
| Line 15: | Line 18: | ||
| return GaudiTupleAlg:: | return GaudiTupleAlg:: | ||
| </ | </ | ||
| + | |||
| + | 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(" | ||
| + | </ | ||
| + | |||