Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:37

0001 #include "L1Trigger/RegionalCaloTrigger/interface/L1RCTCrate.h"
0002 #include "L1Trigger/RegionalCaloTrigger/interface/L1RCTLookupTables.h"
0003 #include "CondFormats/L1TObjects/interface/L1RCTParameters.h"
0004 
0005 #include <vector>
0006 #include <iostream>
0007 using std::vector;
0008 using std::endl;
0009 using std::cout;
0010 
0011 int main(){
0012   // For testing use 1:1 LUT
0013   std::vector<double> eGammaECalScaleFactors(32, 1.0);
0014   std::vector<double> eGammaHCalScaleFactors(32, 1.0);
0015   std::vector<double> jetMETECalScaleFactors(32, 1.0);
0016   std::vector<double> jetMETHCalScaleFactors(32, 1.0);
0017   std::vector<double> c,d,e,f,g,h;
0018   L1RCTParameters* rctParameters = 
0019     new L1RCTParameters(1.0,                       // eGammaLSB
0020             1.0,                       // jetMETLSB
0021             3.0,                       // eMinForFGCut
0022             40.0,                      // eMaxForFGCut
0023             0.5,                       // hOeCut
0024             1.0,                       // eMinForHoECut
0025             50.0,                      // eMaxForHoECut
0026             1.0,                       // hMinForHoECut
0027             2.0,                       // eActivityCut
0028             3.0,                       // hActivityCut
0029             3,                         // eicIsolationThreshold
0030                         3,                         // jscQuietThresholdBarrel
0031                         3,                         // jscQuietThresholdEndcap
0032             false,                     // noiseVetoHB
0033             false,                     // noiseVetoHEplus
0034             false,                     // noiseVetoHEminus
0035             false,                     // use Lindsey
0036             eGammaECalScaleFactors,
0037             eGammaHCalScaleFactors,
0038             jetMETECalScaleFactors,
0039             jetMETHCalScaleFactors,
0040             c,
0041             d,
0042             e,
0043             f,
0044             g,
0045             h
0046             );
0047   L1RCTLookupTables* lut = new L1RCTLookupTables();
0048   lut->setRCTParameters(rctParameters);  // transcoder and etScale are not used
0049   L1RCTCrate crate(0, lut);
0050   std::vector<std::vector<unsigned short> > b(7,std::vector<unsigned short>(64));
0051   std::vector<unsigned short> hf(8);
0052   crate.input(b,hf);
0053   crate.print();
0054 }