GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Abandonware
Re: Abandonware [message #4965 is a reply to message #4962] Thu, 23 August 2007 17:04 Go to previous messageGo to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *physik.uni-giessen.de
About the first warning, this is not so clear to me.

You define hitMap as:

map<Int_t, map<Int_t, Int_t> > hitMap;

Then:

Double_t wireX = pMhit->GetX(), wireY = pMhit->GetY();
(hitMap[mcTrackIndex])[wireX * wireX + wireY * wireY]++;


The map is <Int_t, Int_t> but then you give one index as [double].
I think you can (one of the two)
a) correct the map putting one double inside (map<Int_t, Double_t>)
b) overcast the wire id (Int_t)(wireX * wireX + wireY * wireY)

Just at a first sight the first should be the correct one, in each case I am wondering how does it work with this int/double ambiguity...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: just for fun...
Next Topic: Separation of elastic and inelastic scatterings
Goto Forum:
  


Current Time: Wed Dec 04 01:22:31 CET 2024

Total time taken to generate the page: 0.00795 seconds