I’m trying to construct a map that takes as its key the run number and value the luminosity. I’m doing this using the following syntax
std::map < int, double> lumiMap;
where runTemp and lumiTemp are the current run number and luminosity under consideration, respectively. However, when running I get the following error
Error: Can't call map<int,double,less<int>,allocator<pair<const int,double> > >::insert(make_pair(runTemp,lumiTemp)) in current scope countMuonsPerRunD3PD.C:205: Possible candidates are... (in map<int,double,less<int>,allocator<pair<const int,double> > >) *** Interpreter error recovered ***
I tried including
#pragma link C++ class map<int, double >+;
but no luck.