Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:06

0001 #include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
0002 #include <cstdlib>
0003 #include <iostream>
0004 
0005 int main(int argc, char* argv[]) {
0006   if (argc < 2) {
0007     std::cout << "Usage: HcalRawIdToReadable [0xhex] | [decimal]\n";
0008   } else {
0009     long j;
0010     for (int i = 1; i < argc; i++) {
0011       j = strtol(argv[i], nullptr, 0);
0012       std::cout << " '" << argv[i] << "' ("
0013                 << "0x" << std::hex << j << std::dec << ", " << j << ") = " << HcalGenericDetId(j) << std::endl;
0014     }
0015   }
0016   return 0;
0017 }