Selector class name and file name

If I define and declare

class MySelector : TSelector

in a file different from MySelector.{C,h} for example my_selector.{C,h} proof doesn’t start saying that it is not a valid class deriving from TSelector.

Is this behaviour correct?

Hi,

Yes, it is. When the selector is passed via its filename, the filename is the clue we currently use to guess what the name of the selector class is.

Cheers,
Philippe.

[quote=“pcanal”]Hi,

Yes, it is. When the selector is passed via its filename, the filename is the clue we currently use to guess what the name of the selector class is.

Cheers,
Philippe.[/quote]

Ok, can you change the error message? Something like “my_selector class not found in file my_selector.C”? I spent a lot of time to understand the meaning of the message, searching for some c++ error in the code.

Hi,

Thanks for the suggestion. This has been added to the trunk in revision 40603.

Cheers,
Philippe.