24 if (verbose_)
edm::LogInfo(
"L1Ntuple") <<
"HCAL TPs : " << hcalTPs.
size() << std::endl;
26 for (
unsigned i=0;
i<hcalTPs.
size(); ++
i) {
28 short ieta = (short) hcalTPs[
i].
id().ieta();
29 unsigned short absIeta = (
unsigned short)
abs(ieta);
30 short sign = ieta/absIeta;
32 unsigned short cal_iphi = (
unsigned short) hcalTPs[
i].
id().iphi();
33 unsigned short iphi = (72 + 18 - cal_iphi) % 72;
38 unsigned short compEt = hcalTPs[
i].SOI_compressedEt();
40 if (hcalScale_!=0) et = hcalScale_->et( compEt, absIeta, sign );
42 unsigned short fineGrain = (
unsigned short) hcalTPs[
i].SOI_fineGrain();
45 tp_.hcalTPCaliphi.push_back( cal_iphi );
46 tp_.hcalTPiphi.push_back( iphi );
47 tp_.hcalTPet.push_back( et );
48 tp_.hcalTPcompEt.push_back( compEt );
49 tp_.hcalTPfineGrain.push_back( fineGrain );
58 if (verbose_)
edm::LogInfo(
"L1Ntuple") <<
"ECAL TPs : " << ecalTPs.
size() << std::endl;
60 for (
unsigned i=0;
i<ecalTPs.
size(); ++
i) {
62 short ieta = (short) ecalTPs[
i].
id().ieta();
63 unsigned short absIeta = (
unsigned short)
abs(ieta);
64 short sign = ieta/absIeta;
66 unsigned short cal_iphi = (
unsigned short) ecalTPs[
i].
id().iphi();
67 unsigned short iphi = (72 + 18 - cal_iphi) % 72;
69 unsigned short compEt = ecalTPs[
i].compressedEt();
71 if (ecalScale_!=0) et = ecalScale_->et( compEt, absIeta, sign );
73 unsigned short fineGrain = (
unsigned short) ecalTPs[
i].fineGrain();
76 tp_.ecalTPCaliphi.push_back( cal_iphi );
77 tp_.ecalTPiphi.push_back( iphi );
78 tp_.ecalTPet.push_back( et );
79 tp_.ecalTPcompEt.push_back( compEt );
80 tp_.ecalTPfineGrain.push_back( fineGrain );
void SetHCAL(const HcalTrigPrimDigiCollection &hcalTPs)
void push_back(T const &t)
Abs< T >::type abs(const T &t)
volatile std::atomic< bool > shutdown_flag false
void SetECAL(const EcalTrigPrimDigiCollection &ecalTPs)