[FIXED] Problem with PndMCTrack::GetNPoints // PndDetectorList.h [message #18885] |
Fri, 15 January 2016 15:57 |
Dominik Steinschaden
Messages: 28 Registered: April 2015
|
continuous participant |
From: *smi.oeaw.ac.at
|
|
Hi all,
Currently I'm doing some analysis, in which I want to use the function
Int_t GetNPoints(DetectorId detId)
of the class PndMCTrack.
I already have access to the information stored in the MCTrack, the only function I have problems with is this one.
As Input parameter an variable from Datatype "DetectorId" is needed.
As far as I understand in the included header file of PndMCTrack "PndDetecterList.h" this Datatyp is defined as:
enum DetectorId {
/** kRICH must be the 1st id, and kHYP must be the last one. Please put new detectors in between!! **/
kRICH,kDRC,kDSK,kEMC,kGEM,kLUMI,kMDT,kMVD,kRPC,kSTT,kFTOF,kTOF,kFTS,kHYPG,kHYP};
But when I try to use this definition in my analysis macros, I always get errors.
e.g.:
using the line:
MCTrack->GetNPoints(kTOF)
error: Error: Symbol kTOF is not defined in current scope
If I only try to define a variable of type DetectorId:
Error: Symbol DetectorId test is not defined in current scope
Can someone explain how to proper use this function of MCTrack?
regards Dominik
[Updated on: Wed, 03 February 2016 23:31] by Moderator Report message to a moderator
|
|
|
|
|
|