From 0c85cf6c1d64493c951690b849ded63ed42552b9 Mon Sep 17 00:00:00 2001 From: tahuang1991 Date: Thu, 4 Aug 2022 18:50:40 +0200 Subject: [PATCH] fixed the code-format in CSCRawToDigi from scram build code-format --- .../CSCRawToDigi/interface/CSCALCTHeader.h | 3 ++- .../src/CSCTMBHeader2020_CCLUT.cc | 20 +++++++++++++++---- .../CSCRawToDigi/src/CSCTMBHeader2020_GEM.cc | 20 +++++++++++++++---- .../CSCRawToDigi/src/CSCTMBHeader2020_TMB.cc | 19 +++++++++++++++--- 4 files changed, 50 insertions(+), 12 deletions(-) diff --git a/EventFilter/CSCRawToDigi/interface/CSCALCTHeader.h b/EventFilter/CSCRawToDigi/interface/CSCALCTHeader.h index 938809932a900..d2dc5546e400f 100644 --- a/EventFilter/CSCRawToDigi/interface/CSCALCTHeader.h +++ b/EventFilter/CSCRawToDigi/interface/CSCALCTHeader.h @@ -170,7 +170,8 @@ class CSCALCTHeader { for (unsigned bx = 0; bx < header2007.lctBins; bx++) { //CSCID is set to be 0 //ALCTshower, showerType_= 1, wireNHits and ComparatorNHits are not available in data - results.push_back(CSCShowerDigi(theALCTs[bx * 2].reserved & 0x3, 0, 0, bx, CSCShowerDigi::ShowerType::kALCTShower, 0, 0)); + results.push_back( + CSCShowerDigi(theALCTs[bx * 2].reserved & 0x3, 0, 0, bx, CSCShowerDigi::ShowerType::kALCTShower, 0, 0)); } return results; } else diff --git a/EventFilter/CSCRawToDigi/src/CSCTMBHeader2020_CCLUT.cc b/EventFilter/CSCRawToDigi/src/CSCTMBHeader2020_CCLUT.cc index d320ed1a8aa39..f1789fe56775b 100644 --- a/EventFilter/CSCRawToDigi/src/CSCTMBHeader2020_CCLUT.cc +++ b/EventFilter/CSCRawToDigi/src/CSCTMBHeader2020_CCLUT.cc @@ -167,8 +167,13 @@ CSCShowerDigi CSCTMBHeader2020_CCLUT::showerDigi(uint32_t idlayer) const { // same for anode HMT and cathode HMT uint16_t bx = CSCConstants::LCT_CENTRAL_BX - bits.pop_l1a_match_win; //LCTshower with showerType = 3. comparatorNHits from hmt_nhits() and wireNHit is not available - CSCShowerDigi result( - hmt_bits & 0x3, (hmt_bits >> 2) & 0x3, cscid, bx, CSCShowerDigi::ShowerType::kLCTShower, 0, hmt_nhits()); // 2-bits intime, 2-bits out of time + CSCShowerDigi result(hmt_bits & 0x3, + (hmt_bits >> 2) & 0x3, + cscid, + bx, + CSCShowerDigi::ShowerType::kLCTShower, + 0, + hmt_nhits()); // 2-bits intime, 2-bits out of time return result; } @@ -176,7 +181,8 @@ CSCShowerDigi CSCTMBHeader2020_CCLUT::anodeShowerDigi(uint32_t idlayer) const { uint16_t cscid = bits.cscID; uint16_t bx = CSCConstants::LCT_CENTRAL_BX - bits.pop_l1a_match_win; //ALCT shower with showerType = 1. nhits_ is not available from unpack data - CSCShowerDigi result(bits.anode_hmt & 0x3, 0, cscid, bx, CSCShowerDigi::ShowerType::kALCTShower, 0, 0); // 2-bits intime, no out of time + CSCShowerDigi result( + bits.anode_hmt & 0x3, 0, cscid, bx, CSCShowerDigi::ShowerType::kALCTShower, 0, 0); // 2-bits intime, no out of time return result; } @@ -184,7 +190,13 @@ CSCShowerDigi CSCTMBHeader2020_CCLUT::cathodeShowerDigi(uint32_t idlayer) const uint16_t cscid = bits.cscID; uint16_t bx = CSCConstants::LCT_CENTRAL_BX - bits.pop_l1a_match_win - bits.hmt_match_win + 3; //CLCT shower with showerType = 2. - CSCShowerDigi result(bits.cathode_hmt & 0x3, 0, cscid, bx, CSCShowerDigi::ShowerType::kCLCTShower, 0, hmt_nhits()); // 2-bits intime, no out of time + CSCShowerDigi result(bits.cathode_hmt & 0x3, + 0, + cscid, + bx, + CSCShowerDigi::ShowerType::kCLCTShower, + 0, + hmt_nhits()); // 2-bits intime, no out of time return result; } diff --git a/EventFilter/CSCRawToDigi/src/CSCTMBHeader2020_GEM.cc b/EventFilter/CSCRawToDigi/src/CSCTMBHeader2020_GEM.cc index b7563a1213e84..4e393e88601b7 100644 --- a/EventFilter/CSCRawToDigi/src/CSCTMBHeader2020_GEM.cc +++ b/EventFilter/CSCRawToDigi/src/CSCTMBHeader2020_GEM.cc @@ -171,8 +171,13 @@ CSCShowerDigi CSCTMBHeader2020_GEM::showerDigi(uint32_t idlayer) const { // same for anode HMT and cathode HMT. offline analysis would take care of this uint16_t bx = CSCConstants::LCT_CENTRAL_BX - bits.pop_l1a_match_win; //LCTshower with showerType = 3. comparatorNHits from hmt_nhits() and wireNHits is not available - CSCShowerDigi result( - hmt_bits & 0x3, (hmt_bits >> 2) & 0x3, cscid, bx, CSCShowerDigi::ShowerType::kLCTShower, 0, hmt_nhits()); // 2-bits intime, 2-bits out of time + CSCShowerDigi result(hmt_bits & 0x3, + (hmt_bits >> 2) & 0x3, + cscid, + bx, + CSCShowerDigi::ShowerType::kLCTShower, + 0, + hmt_nhits()); // 2-bits intime, 2-bits out of time return result; } @@ -180,7 +185,8 @@ CSCShowerDigi CSCTMBHeader2020_GEM::anodeShowerDigi(uint32_t idlayer) const { uint16_t cscid = bits.cscID; uint16_t bx = CSCConstants::LCT_CENTRAL_BX - bits.pop_l1a_match_win; //ALCT shower with showerType = 1. wireNHits is not available from unpack data - CSCShowerDigi result(bits.anode_hmt & 0x3, 0, cscid, bx, CSCShowerDigi::ShowerType::kALCTShower, 0, 0); // 2-bits intime, no out of time + CSCShowerDigi result( + bits.anode_hmt & 0x3, 0, cscid, bx, CSCShowerDigi::ShowerType::kALCTShower, 0, 0); // 2-bits intime, no out of time return result; } @@ -188,7 +194,13 @@ CSCShowerDigi CSCTMBHeader2020_GEM::cathodeShowerDigi(uint32_t idlayer) const { uint16_t cscid = bits.cscID; uint16_t bx = CSCConstants::LCT_CENTRAL_BX - bits.pop_l1a_match_win - bits.hmt_match_win + 3; //CLCT shower with showerType = 2. comparatorNHits from hmt_nhits() - CSCShowerDigi result(bits.cathode_hmt & 0x3, 0, cscid, bx, CSCShowerDigi::ShowerType::kCLCTShower, 0, hmt_nhits()); // 2-bits intime, no out of time + CSCShowerDigi result(bits.cathode_hmt & 0x3, + 0, + cscid, + bx, + CSCShowerDigi::ShowerType::kCLCTShower, + 0, + hmt_nhits()); // 2-bits intime, no out of time return result; } diff --git a/EventFilter/CSCRawToDigi/src/CSCTMBHeader2020_TMB.cc b/EventFilter/CSCRawToDigi/src/CSCTMBHeader2020_TMB.cc index 6873732843c2a..2f6edfc8252fc 100644 --- a/EventFilter/CSCRawToDigi/src/CSCTMBHeader2020_TMB.cc +++ b/EventFilter/CSCRawToDigi/src/CSCTMBHeader2020_TMB.cc @@ -138,7 +138,13 @@ CSCShowerDigi CSCTMBHeader2020_TMB::showerDigi(uint32_t idlayer) const { uint16_t bx = CSCConstants::LCT_CENTRAL_BX - bits.pop_l1a_match_win; //LCTshower with showerType = 3. wireNHits is not avaiable //TMB LCT shower is copied from ALCT shower - CSCShowerDigi result(hmt_bits & 0x3, (hmt_bits >> 2) & 0x3, cscid, bx, CSCShowerDigi::ShowerType::kLCTShower, 0, 0); // 2-bits intime, 2-bits out of time + CSCShowerDigi result(hmt_bits & 0x3, + (hmt_bits >> 2) & 0x3, + cscid, + bx, + CSCShowerDigi::ShowerType::kLCTShower, + 0, + 0); // 2-bits intime, 2-bits out of time return result; } @@ -146,7 +152,8 @@ CSCShowerDigi CSCTMBHeader2020_TMB::anodeShowerDigi(uint32_t idlayer) const { uint16_t cscid = bits.cscID; uint16_t bx = CSCConstants::LCT_CENTRAL_BX - bits.pop_l1a_match_win; //ALCTshower with showerType = 1. wireNHits is not avaiable - CSCShowerDigi result(bits.anode_hmt & 0x3, 0, cscid, bx, CSCShowerDigi::ShowerType::kALCTShower, 0, 0); // 2-bits intime, no out of time + CSCShowerDigi result( + bits.anode_hmt & 0x3, 0, cscid, bx, CSCShowerDigi::ShowerType::kALCTShower, 0, 0); // 2-bits intime, no out of time return result; } @@ -154,7 +161,13 @@ CSCShowerDigi CSCTMBHeader2020_TMB::cathodeShowerDigi(uint32_t idlayer) const { uint16_t cscid = bits.cscID; uint16_t bx = CSCConstants::LCT_CENTRAL_BX - bits.pop_l1a_match_win; //CLCTshower with showerType = 2. comparatorNhits is not avaiable for TMB yet - CSCShowerDigi result(bits.cathode_hmt & 0x3, 0, cscid, bx, CSCShowerDigi::ShowerType::kCLCTShower, 0, 0); // 2-bits intime, no out of time + CSCShowerDigi result(bits.cathode_hmt & 0x3, + 0, + cscid, + bx, + CSCShowerDigi::ShowerType::kCLCTShower, + 0, + 0); // 2-bits intime, no out of time return result; }