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
#ifdefCINT #pragma link C++ class map<int, double >+; #endif
what are the types of runTemp and luniTemp? For Cint they should be of type int and double for make_pair to produce the correct type of pair. If they are something else either adjust their types or cast them when creating the pair for filling.
I think “std::make_pair” is a templated function and you don’t have the corresponding CINT dictionary entry (note: it should work in ACLiC pre-compiled code without problems).