//*-- author : Paul Eugenio 5-April-1999 //////////////////////////////////////////////////////////////////////// // // usr_dumpCalor.cxx // ================================= // // This routine : // - dumps the mcfast (ver 4_2) calorimetry hits // Example usage ( Called from a C routine ): // if(debug) usr_dumpCalor(); // //////////////////////////////////////////////////////////////////////// #include #include #include #include #include #include #include using namespace std; #define TRUE 1 #define FALSE 0 extern "C" void usr_dumpCalor(void) { static int FirstCall=TRUE; static CalorInfo *info = NULL; if(FirstCall){ info = CalorInfo::getCalorInfo(); cerr<<"Number of Calorimeters: " << info->numberOfCalorimeters()< HitList; vector InfoTrack; vector::const_iterator iter, iterEnd = info->listOfCalorimeters().end(); for(iter=info->listOfCalorimeters().begin();iter!=iterEnd;iter++) { if(FirstCall) cerr<<"Calorimeter segmentation type is " <segmentationType(*iter) <listOfHits(*iter); if((nhits = HitList.size())) grid = info->pGridOfCells(*iter); cerr<<"Found "<getE(); cerr<<"Cell index (X1,X2): ( "<getInfoTracks(); int ntracks = 0; ntracks = InfoTrack.size(); cerr<<"\tFound "<