In file included from main.cc:2:
calocell.hh: In constructor `CaloCell::CaloCell(double, int)':
calocell.hh:7: error: argument of type `int (CaloCell::)()' does not match `int'
Could anyone pls tell me what is going wrong here?
Thanks
What the hell is going on in that constructor?
You're using your class's get functions to initialize variables that have not yet been initialized so you are doomed to get some kind of undefined behavior. Not to mention that those are functions and not objects/variables so you are missing the call operator.
Your constructor should look like this CaloCell(double energy, int ID) : e(energy), i(ID) {};