File indexing completed on 2024-04-06 12:19:55
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #include "DataFormats/L1GlobalCaloTrigger/interface/L1GctJetCand.h"
0011
0012 #include "L1Trigger/GlobalCaloTrigger/interface/L1GctJetEtCalibrationLut.h"
0013 #include "L1Trigger/GlobalCaloTrigger/interface/L1GctJet.h"
0014
0015 #include "L1Trigger/GlobalCaloTrigger/test/produceTrivialCalibrationLut.h"
0016
0017 #include "FWCore/Utilities/interface/Exception.h"
0018
0019 #include <iostream>
0020 #include <exception>
0021 #include <vector>
0022
0023 typedef std::vector<L1GctJet::lutPtr> lutPtrVector;
0024
0025 using namespace std;
0026
0027 int main(int argc, char** argv) {
0028 try {
0029
0030 produceTrivialCalibrationLut* lutProducer = new produceTrivialCalibrationLut();
0031 lutProducer->setOrcaStyleCorrectionType();
0032
0033
0034 lutPtrVector lutVector = lutProducer->produce();
0035
0036 delete lutProducer;
0037
0038
0039 if (argc > 1) {
0040 std::string opt = std::string(argv[1]);
0041 if (opt == "print") {
0042 for (lutPtrVector::const_iterator lut = lutVector.begin(); lut != lutVector.end(); lut++) {
0043 cout << "\n===Lookup table for eta=" << (*lut)->etaBin() << "===" << endl;
0044 cout << (**lut) << endl;
0045 }
0046 }
0047 }
0048 } catch (cms::Exception& e) {
0049 cerr << "CMS exception from " << e.what() << endl;
0050 } catch (std::exception& e) {
0051 cerr << "std exception from " << e.what() << endl;
0052 } catch (...) {
0053 cerr << "yikes! something awful happened.... (unknown exception)" << endl;
0054 }
0055 }