CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions
DEutils< T > Struct Template Reference

#include <DEcompare.h>

Inheritance diagram for DEutils< T >:
de_rank< T >

Public Types

typedef de_trait::cand_type cand_type
 
typedef T::const_iterator col_cit
 
typedef T::iterator col_it
 
typedef T::size_type col_sz
 
typedef de_trait::coll_type coll_type
 
typedef DEtrait< Tde_trait
 

Public Member Functions

bool de_equal (const cand_type &, const cand_type &)
 — candidate match definition — More...
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal (const cand_type &lhs, const cand_type &rhs)
 
bool de_equal_loc (const cand_type &, const cand_type &)
 — candidate location-match definition — More...
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
template<>
bool de_equal_loc (const cand_type &lhs, const cand_type &rhs)
 
col_it de_find (col_it, col_it, const cand_type &)
 — find candidate — More...
 
bool de_nequal (const cand_type &, const cand_type &)
 
bool de_nequal_loc (const cand_type &, const cand_type &)
 
int de_type () const
 
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int ctype)
 — form de-digi — More...
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
template<>
L1DataEmulDigi DEDigi (col_cit itd, col_cit itm, int aflag)
 
 DEutils ()
 
std::string GetName (int i=0) const
 — name candidate — More...
 
bool is_empty (col_cit) const
 — candidate emptiness definition — More...
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
template<>
bool is_empty (col_cit it) const
 
std::string print (col_cit) const
 — print candidate — More...
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
template<>
std::string print (col_cit it) const
 
 ~DEutils ()
 

Detailed Description

template<typename T>
struct DEutils< T >

Definition at line 20 of file DEcompare.h.

Member Typedef Documentation

◆ cand_type

template<typename T>
typedef de_trait::cand_type DEutils< T >::cand_type

Definition at line 22 of file DEutils.h.

◆ col_cit

template<typename T>
typedef T::const_iterator DEutils< T >::col_cit

Definition at line 19 of file DEutils.h.

◆ col_it

template<typename T>
typedef T::iterator DEutils< T >::col_it

Definition at line 20 of file DEutils.h.

◆ col_sz

template<typename T>
typedef T::size_type DEutils< T >::col_sz

Definition at line 18 of file DEutils.h.

◆ coll_type

template<typename T>
typedef de_trait::coll_type DEutils< T >::coll_type

Definition at line 23 of file DEutils.h.

◆ de_trait

template<typename T>
typedef DEtrait<T> DEutils< T >::de_trait

Definition at line 21 of file DEutils.h.

Constructor & Destructor Documentation

◆ DEutils()

template<typename T>
DEutils< T >::DEutils ( )
inline

Definition at line 26 of file DEutils.h.

References DEutils< T >::de_type().

26  {
27  if (de_type() > 51)
28  edm::LogError("L1ComparatorDeutilsCollType") //throw cms::Exception("ERROR")
29  << "DEutils::DEutils() :: "
30  << "specialization is still missing for collection of type:" << de_type() << std::endl;
31  }
Log< level::Error, false > LogError
int de_type() const
Definition: DEutils.h:34

◆ ~DEutils()

template<typename T>
DEutils< T >::~DEutils ( )
inline

Definition at line 32 of file DEutils.h.

32 {}

Member Function Documentation

◆ de_equal() [1/22]

template<typename T >
bool DEutils< T >::de_equal ( const cand_type lhs,
const cand_type rhs 
)

— candidate match definition —

Definition at line 613 of file DEutils.h.

613  {
614  //declare candidate matching by default
615  return true;
616 }

◆ de_equal() [2/22]

template<>
bool DEutils< EcalTrigPrimDigiCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 623 of file DEutils.h.

References gpuClustering::pixelStatus::mask, and heppy_batch::val.

623  {
624  bool val = true;
625  unsigned int mask = 0x0fff; //keep only ttf[11:9], fg [8], Et [7:0]
626  mask &= 0x0eff; //fg bit temporary(!) mask
627  val &= ((lhs[lhs.sampleOfInterest()].raw() & mask) == (rhs[rhs.sampleOfInterest()].raw() & mask));
628  val &= (lhs.id().rawId() == rhs.id().rawId());
629  return val;
630 }
constexpr uint32_t mask
Definition: gpuClustering.h:26

◆ de_equal() [3/22]

template<>
bool DEutils< HcalTrigPrimDigiCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 633 of file DEutils.h.

References gpuClustering::pixelStatus::mask, and heppy_batch::val.

633  {
634  bool val = true;
635  unsigned int mask = 0x01ff;
636  val &= ((lhs.t0().raw() & mask) == (rhs.t0().raw() & mask));
637  val &= (lhs.id().rawId() == rhs.id().rawId());
638  return val;
639 }
constexpr uint32_t mask
Definition: gpuClustering.h:26

◆ de_equal() [4/22]

template<>
bool DEutils< L1CaloEmCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 642 of file DEutils.h.

References heppy_batch::val.

642  {
643  bool val = true;
644  val &= (lhs.raw() == rhs.raw());
645  val &= (lhs.rctCrate() == rhs.rctCrate());
646  val &= (lhs.isolated() == rhs.isolated());
647  val &= (lhs.index() == rhs.index());
648  //val &= (lhs.bx() == rhs.bx() );
649  return val;
650 }

◆ de_equal() [5/22]

template<>
bool DEutils< L1CaloRegionCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 653 of file DEutils.h.

References heppy_batch::val.

653  {
654  bool val = true;
655  val &= (lhs.et() == rhs.et());
656  val &= (lhs.rctCrate() == rhs.rctCrate());
657  val &= (lhs.rctRegionIndex() == rhs.rctRegionIndex());
658  val &= (lhs.id().isHf() == rhs.id().isHf());
659  if (!lhs.id().isHf()) {
660  val &= (lhs.overFlow() == rhs.overFlow());
661  val &= (lhs.tauVeto() == rhs.tauVeto());
662  //mask temporarily (!) mip and quiet bits
663  //val &= (lhs.mip() == rhs.mip() );
664  //val &= (lhs.quiet() == rhs.quiet() );
665  val &= (lhs.rctCard() == rhs.rctCard());
666  } else {
667  val &= (lhs.fineGrain() == rhs.fineGrain());
668  }
669  return val;
670 }

◆ de_equal() [6/22]

template<>
bool DEutils< L1GctEmCandCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 673 of file DEutils.h.

673  {
674  return lhs == rhs;
675 }

◆ de_equal() [7/22]

template<>
bool DEutils< L1GctJetCandCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 678 of file DEutils.h.

678  {
679  return lhs == rhs;
680 }

◆ de_equal() [8/22]

template<>
bool DEutils< L1GctEtHadCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 683 of file DEutils.h.

683  {
684  return lhs == rhs;
685 }

◆ de_equal() [9/22]

template<>
bool DEutils< L1GctEtMissCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 687 of file DEutils.h.

687  {
688  return lhs == rhs;
689 }

◆ de_equal() [10/22]

template<>
bool DEutils< L1GctEtTotalCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 691 of file DEutils.h.

691  {
692  return lhs == rhs;
693 }

◆ de_equal() [11/22]

template<>
bool DEutils< L1GctHtMissCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 695 of file DEutils.h.

695  {
696  return lhs == rhs;
697 }

◆ de_equal() [12/22]

template<>
bool DEutils< L1GctHFRingEtSumsCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 699 of file DEutils.h.

699  {
700  return lhs == rhs;
701 }

◆ de_equal() [13/22]

template<>
bool DEutils< L1GctHFBitCountsCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 703 of file DEutils.h.

703  {
704  return lhs == rhs;
705 }

◆ de_equal() [14/22]

template<>
bool DEutils< L1GctJetCountsCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 707 of file DEutils.h.

707  {
708  return lhs == rhs;
709 }

◆ de_equal() [15/22]

template<>
bool DEutils< L1MuDTChambPhDigiCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 712 of file DEutils.h.

References heppy_batch::val.

712  {
713  bool val = true;
714  val &= (lhs.whNum() == rhs.whNum());
715  val &= (lhs.scNum() == rhs.scNum());
716  val &= (lhs.stNum() == rhs.stNum());
717  //val &= (lhs.phi() ==rhs.phi() );
718  //val &= (lhs.phiB() ==rhs.phiB() );
719  val &= (lhs.code() == rhs.code());
720  val &= (lhs.Ts2Tag() == rhs.Ts2Tag());
721  //val &= (lhs.BxCnt() ==rhs.BxCnt() );
722  //val &= (lhs.bxNum() ==rhs.bxNum() );
723  return val;
724 }

◆ de_equal() [16/22]

template<>
bool DEutils< L1MuDTChambThDigiCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 727 of file DEutils.h.

References heppy_batch::val.

727  {
728  bool val = true;
729  val &= (lhs.whNum() == rhs.whNum());
730  val &= (lhs.scNum() == rhs.scNum());
731  val &= (lhs.stNum() == rhs.stNum());
732  //for(int i=0; i<7; i++) {
733  // val &= (lhs.code(i) ==rhs.code(i) );
734  // val &= (lhs.position(i)==rhs.position(i));
735  // val &= (lhs.quality(i) ==rhs.quality(i) );
736  //}
737  //val &= (lhs.bxNum() ==rhs.bxNum() );
738  return val;
739 }

◆ de_equal() [17/22]

template<>
bool DEutils< L1MuRegionalCandCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 742 of file DEutils.h.

References gpuClustering::pixelStatus::mask, and heppy_batch::val.

742  {
743  bool val = true;
744  val &= (lhs.type_idx() == rhs.type_idx());
745  val &= (lhs.bx() == rhs.bx());
746  if (!val)
747  return val;
748  unsigned int dw = lhs.getDataWord();
749  unsigned int ew = rhs.getDataWord();
750  unsigned int mask = 0xffffffff; //32-bit
751  //RPC: mask bits 25-29 (including synch bits)
752  // emulator doesn't set these bits (permanent masking)
753  // 0 DT, 1 bRPC, 2 CSC, 3 fRPC
754  if (rhs.type_idx() == 1 || rhs.type_idx() == 3)
755  mask &= 0xc1ffffff;
756  dw &= mask;
757  ew &= mask;
758  val &= (dw == ew);
759  //val &= (lhs.getDataWord() == rhs.getDataWord() );
760  //check whether collections being compared refer to same system and bx!
761  return val;
762 }
constexpr uint32_t mask
Definition: gpuClustering.h:26

◆ de_equal() [18/22]

template<>
bool DEutils< L1MuGMTCandCollection >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 765 of file DEutils.h.

References gpuClustering::pixelStatus::mask, and heppy_batch::val.

765  {
766  //return (lhs.getDataWord() == rhs.getDataWord() );
767  //return lhs==rhs; //(dataword,bx..)
768  bool val = true;
769  unsigned int dw = rhs.getDataWord();
770  unsigned int ew = lhs.getDataWord();
771  unsigned int mask = 0x3ffffff; //26-bit
772  //mask bits 22 (isolation), 23 (mip) [not permanent!]
773  mask &= (~(0x0c00000));
774  dw &= mask;
775  ew &= mask;
776  val &= (dw == ew);
777  return val;
778 }
constexpr uint32_t mask
Definition: gpuClustering.h:26

◆ de_equal() [19/22]

template<>
bool DEutils< CSCCorrelatedLCTDigiCollection_ >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 781 of file DEutils.h.

References heppy_batch::val.

781  {
782  // Exclude track number from comparison since it is only meaningful for
783  // LCTs upstream of the MPC but not downstream (the latter ones are
784  // unpacked by the CSC TF unpacker).
785  bool val = true;
786  val &= (lhs.isValid() == rhs.isValid());
787  val &= (lhs.getQuality() == rhs.getQuality());
788  val &= (lhs.getKeyWG() == rhs.getKeyWG());
789  val &= (lhs.getStrip() == rhs.getStrip());
790  val &= (lhs.getPattern() == rhs.getPattern());
791  val &= (lhs.getBend() == rhs.getBend());
792  val &= (lhs.getBX() == rhs.getBX());
793  val &= (lhs.getMPCLink() == rhs.getMPCLink());
794  val &= (lhs.getCSCID() == rhs.getCSCID());
795  return val;
796  //return lhs==rhs;
797 }

◆ de_equal() [20/22]

template<>
bool DEutils< CSCALCTDigiCollection_ >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 799 of file DEutils.h.

799  {
800  return lhs == rhs;
801 }

◆ de_equal() [21/22]

template<>
bool DEutils< CSCCLCTDigiCollection_ >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 803 of file DEutils.h.

803  {
804  return lhs == rhs;
805 }

◆ de_equal() [22/22]

template<>
bool DEutils< L1CSCSPStatusDigiCollection_ >::de_equal ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 807 of file DEutils.h.

References heppy_batch::val.

807  {
808  bool val = true;
809  val &= (lhs.slot() == rhs.slot());
810  val &= (lhs.BXN() == rhs.BXN());
811  val &= (lhs.FMM() == rhs.FMM());
812  val &= (lhs.SEs() == rhs.SEs());
813  val &= (lhs.SMs() == rhs.SMs());
814  val &= (lhs.BXs() == rhs.BXs());
815  val &= (lhs.AFs() == rhs.AFs());
816  val &= (lhs.VPs() == rhs.VPs());
817  return val;
818 }

◆ de_equal_loc() [1/22]

template<typename T >
bool DEutils< T >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)

— candidate location-match definition —

Definition at line 823 of file DEutils.h.

823  {
824  //declare candidate matching by default
825  return true;
826 }

◆ de_equal_loc() [2/22]

template<>
bool DEutils< EcalTrigPrimDigiCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 833 of file DEutils.h.

References heppy_batch::val.

833  {
834  bool val = true;
835  val &= (lhs.id().zside() == rhs.id().zside());
836  val &= (lhs.id().ietaAbs() == rhs.id().ietaAbs());
837  val &= (lhs.id().iphi() == rhs.id().iphi());
838  return val;
839 }

◆ de_equal_loc() [3/22]

template<>
bool DEutils< HcalTrigPrimDigiCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 842 of file DEutils.h.

References heppy_batch::val.

842  {
843  bool val = true;
844  val &= (lhs.id().zside() == rhs.id().zside());
845  val &= (lhs.id().ietaAbs() == rhs.id().ietaAbs());
846  val &= (lhs.id().iphi() == rhs.id().iphi());
847  return val;
848 }

◆ de_equal_loc() [4/22]

template<>
bool DEutils< L1CaloEmCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 851 of file DEutils.h.

References heppy_batch::val.

851  {
852  bool val = true;
853  val &= (lhs.rctCrate() == rhs.rctCrate());
854  val &= (lhs.rctCard() == rhs.rctCard());
855  val &= (lhs.rctRegion() == rhs.rctRegion());
856  return val;
857 }

◆ de_equal_loc() [5/22]

template<>
bool DEutils< L1CaloRegionCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 860 of file DEutils.h.

References heppy_batch::val.

860  {
861  bool val = true;
862  val &= (lhs.rctCrate() == rhs.rctCrate());
863  val &= (lhs.id().isHf() == rhs.id().isHf());
864  if (!lhs.id().isHf())
865  val &= (lhs.rctCard() == rhs.rctCard());
866  val &= (lhs.rctRegionIndex() == rhs.rctRegionIndex());
867  return val;
868 }

◆ de_equal_loc() [6/22]

template<>
bool DEutils< L1GctEmCandCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 871 of file DEutils.h.

References heppy_batch::val.

871  {
872  bool val = true;
873  val &= (lhs.etaIndex() == rhs.etaIndex());
874  val &= (lhs.phiIndex() == rhs.phiIndex());
875  return val;
876 }

◆ de_equal_loc() [7/22]

template<>
bool DEutils< L1GctJetCandCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 878 of file DEutils.h.

References heppy_batch::val.

878  {
879  bool val = true;
880  val &= (lhs.etaIndex() == rhs.etaIndex());
881  val &= (lhs.phiIndex() == rhs.phiIndex());
882  return val;
883 }

◆ de_equal_loc() [8/22]

template<>
bool DEutils< L1GctEtHadCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 886 of file DEutils.h.

886  {
887  return true; // no associated location defined
888 }

◆ de_equal_loc() [9/22]

template<>
bool DEutils< L1GctEtMissCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 890 of file DEutils.h.

References heppy_batch::val.

890  {
891  bool val = true;
892  val &= (lhs.phi() == rhs.phi());
893  return val;
894 }

◆ de_equal_loc() [10/22]

template<>
bool DEutils< L1GctEtTotalCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 896 of file DEutils.h.

896  {
897  return true; // no associated location defined
898 }

◆ de_equal_loc() [11/22]

template<>
bool DEutils< L1GctHtMissCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 900 of file DEutils.h.

References heppy_batch::val.

900  {
901  bool val = true;
902  val &= (lhs.phi() == rhs.phi());
903  return val;
904 }

◆ de_equal_loc() [12/22]

template<>
bool DEutils< L1GctHFRingEtSumsCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 906 of file DEutils.h.

906  {
907  return true; // no associated location defined
908 }

◆ de_equal_loc() [13/22]

template<>
bool DEutils< L1GctHFBitCountsCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 910 of file DEutils.h.

910  {
911  return true; // no associated location defined
912 }

◆ de_equal_loc() [14/22]

template<>
bool DEutils< L1GctJetCountsCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 914 of file DEutils.h.

914  {
915  return true; // no associated location defined
916 }

◆ de_equal_loc() [15/22]

template<>
bool DEutils< L1MuRegionalCandCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 919 of file DEutils.h.

References heppy_batch::val.

919  {
920  bool val = true;
921  val &= (lhs.phi_packed() == rhs.phi_packed());
922  val &= (lhs.eta_packed() == rhs.eta_packed());
923  //val &= (lhs.type_idx() == rhs.type_idx());
924  //val &= (lhs.bx() == rhs.bx());
925  return val;
926 }

◆ de_equal_loc() [16/22]

template<>
bool DEutils< L1MuGMTCandCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 929 of file DEutils.h.

References heppy_batch::val.

929  {
930  bool val = true;
931  val &= (lhs.phiIndex() == rhs.phiIndex());
932  val &= (lhs.etaIndex() == rhs.etaIndex());
933  return val;
934 }

◆ de_equal_loc() [17/22]

template<>
bool DEutils< L1MuDTChambPhDigiCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 937 of file DEutils.h.

References heppy_batch::val.

937  {
938  bool val = true;
939  val &= (lhs.whNum() == rhs.whNum());
940  val &= (lhs.scNum() == rhs.scNum());
941  val &= (lhs.stNum() == rhs.stNum());
942  //val &= (lhs.phi() ==rhs.phi() );
943  //val &= (lhs.phiB() ==rhs.phiB() );
944  //val &= (lhs.bxNum() ==rhs.bxNum() );
945  return val;
946 }

◆ de_equal_loc() [18/22]

template<>
bool DEutils< L1MuDTChambThDigiCollection >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 949 of file DEutils.h.

References heppy_batch::val.

949  {
950  bool val = true;
951  val &= (lhs.whNum() == rhs.whNum());
952  val &= (lhs.scNum() == rhs.scNum());
953  val &= (lhs.stNum() == rhs.stNum());
954  //val &= (lhs.bxNum() ==rhs.bxNum() );
955  return val;
956 }

◆ de_equal_loc() [19/22]

template<>
bool DEutils< CSCCorrelatedLCTDigiCollection_ >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 959 of file DEutils.h.

References heppy_batch::val.

959  {
960  bool val = true;
961  val &= (lhs.getCSCID() == rhs.getCSCID());
962  val &= (lhs.getStrip() == rhs.getStrip());
963  val &= (lhs.getKeyWG() == rhs.getKeyWG());
964  return val;
965 }

◆ de_equal_loc() [20/22]

template<>
bool DEutils< CSCALCTDigiCollection_ >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 968 of file DEutils.h.

References heppy_batch::val.

968  {
969  bool val = true;
970  val &= (lhs.getTrknmb() == rhs.getTrknmb());
971  val &= (lhs.getKeyWG() == rhs.getKeyWG());
972  return val;
973 }

◆ de_equal_loc() [21/22]

template<>
bool DEutils< CSCCLCTDigiCollection_ >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 975 of file DEutils.h.

References heppy_batch::val.

975  {
976  bool val = true;
977  val &= (lhs.getTrknmb() == rhs.getTrknmb());
978  val &= (lhs.getKeyStrip() == rhs.getKeyStrip());
979  return val;
980 }

◆ de_equal_loc() [22/22]

template<>
bool DEutils< L1CSCSPStatusDigiCollection_ >::de_equal_loc ( const cand_type lhs,
const cand_type rhs 
)
inline

Definition at line 982 of file DEutils.h.

References heppy_batch::val.

982  {
983  bool val = true;
984  val &= (lhs.slot() == rhs.slot());
985  return val;
986 }

◆ de_find()

template<typename T >
DEutils< T >::col_it DEutils< T >::de_find ( col_it  first,
col_it  last,
const cand_type value 
)

— find candidate —

Definition at line 594 of file DEutils.h.

References dqmdumpme::first, and dqmdumpme::last.

594  {
595  for (; first != last; first++)
596  if (de_equal(*first, value))
597  break;
598  return first;
599 }
Definition: value.py:1
bool de_equal(const cand_type &, const cand_type &)
— candidate match definition —
Definition: DEutils.h:613

◆ de_nequal()

template<typename T >
bool DEutils< T >::de_nequal ( const cand_type lhs,
const cand_type rhs 
)

Definition at line 618 of file DEutils.h.

618  {
619  return !de_equal(lhs, rhs);
620 }
bool de_equal(const cand_type &, const cand_type &)
— candidate match definition —
Definition: DEutils.h:613

◆ de_nequal_loc()

template<typename T >
bool DEutils< T >::de_nequal_loc ( const cand_type lhs,
const cand_type rhs 
)

Definition at line 828 of file DEutils.h.

828  {
829  return !de_equal_loc(lhs, rhs);
830 }
bool de_equal_loc(const cand_type &, const cand_type &)
— candidate location-match definition —
Definition: DEutils.h:823

◆ de_type()

template<typename T>
int DEutils< T >::de_type ( ) const
inline

Definition at line 34 of file DEutils.h.

Referenced by DEutils< T >::DEutils().

34 { return de_trait::de_type(); }

◆ DEDigi() [1/22]

template<typename T >
L1DataEmulDigi DEutils< T >::DEDigi ( col_cit  itd,
col_cit  itm,
int  ctype 
)

— form de-digi —

return empty digi by default

Definition at line 52 of file DEutils.h.

52  {
54  return L1DataEmulDigi();
55 }

◆ DEDigi() [2/22]

template<>
L1DataEmulDigi DEutils< EcalTrigPrimDigiCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 58 of file DEutils.h.

References dedefs::ETP, gpuClustering::pixelStatus::mask, L1DataEmulDigi::setData(), L1DataEmulDigi::setDEpair(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

58  {
59  int cid = de_type();
60  int errt = aflag;
61  //fill data if flagged, otherwise emulator
62  double x1 = (aflag != 4) ? itd->id().iphi() : itm->id().iphi();
63  double x2 = (aflag != 4) ? itd->id().ieta() : itm->id().ieta();
64  L1DataEmulDigi digi(dedefs::ETP, cid, x1, x2, 0, errt);
65  unsigned int dwS = (aflag == 4) ? 0 : itd->sample(itd->sampleOfInterest()).raw();
66  unsigned int ewS = (aflag == 3) ? 0 : itm->sample(itm->sampleOfInterest()).raw();
67  //dw1 &= 0x01ff; ew1 &= 0x01ff; //9-bit: fg(8),energy(7:0)
68  unsigned int mask = 0x0eff; //fg bit temporary(!) mask
69  dwS &= mask;
70  ewS &= mask;
71  unsigned int dwI = (aflag == 4) ? 0 : itd->id().rawId();
72  unsigned int ewI = (aflag == 3) ? 0 : itm->id().rawId();
73  //dw2 &= 0xfe00ffff; ew2 &= 0xfe00ffff; //32-bit, reset unused (24:16)
74  //merge id and sample words
75  unsigned int dw = (dwI & 0xfe00ffff) | ((dwS & 0x000001ff) << 16);
76  unsigned int ew = (ewI & 0xfe00ffff) | ((ewS & 0x000001ff) << 16);
77  digi.setData(dw, ew);
78  int de = (aflag == 4) ? 0 : itd->compressedEt();
79  int ee = (aflag == 3) ? 0 : itm->compressedEt();
80  digi.setRank((float)de, (float)ee);
81  L1MonitorDigi dedata(dedefs::ETP, cid, itd->id().iphi(), itd->id().ieta(), 0, itd->compressedEt(), itd->id().rawId());
82  L1MonitorDigi deemul(dedefs::ETP, cid, itm->id().iphi(), itm->id().ieta(), 0, itm->compressedEt(), itm->id().rawId());
83  digi.setDEpair(dedata, deemul);
84  return digi;
85 }
constexpr uint32_t mask
Definition: gpuClustering.h:26
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [3/22]

template<>
L1DataEmulDigi DEutils< HcalTrigPrimDigiCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 88 of file DEutils.h.

References dedefs::HTP, gpuClustering::pixelStatus::mask, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

88  {
89  int cid = de_type();
90  int errt = aflag;
91  double x1 = (aflag != 4) ? itd->id().iphi() : itm->id().iphi();
92  double x2 = (aflag != 4) ? itd->id().ieta() : itm->id().ieta();
93  L1DataEmulDigi digi(dedefs::HTP, cid, x1, x2, 0, errt);
94  unsigned int dw = (aflag == 4) ? 0 : itd->t0().raw();
95  unsigned int ew = (aflag == 3) ? 0 : itm->t0().raw();
96  //16-bit; bits 10:9 not set(?);
97  // bits 15:11 not accessible in emulator (slb/channel ids)
98  unsigned int mask = 0x01ff;
99  dw &= mask;
100  ew &= mask;
101  digi.setData(dw, ew);
102  int de = (aflag == 4) ? 0 : itd->SOI_compressedEt();
103  int ee = (aflag == 3) ? 0 : itm->SOI_compressedEt();
104  digi.setRank((float)de, (float)ee);
105  return digi;
106 }
constexpr uint32_t mask
Definition: gpuClustering.h:26
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [4/22]

template<>
L1DataEmulDigi DEutils< L1CaloEmCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

bits: index(17:16) iso(15) crate(14:10) + card(9:7) region(6) rank (5:0) (rank & 0x3f) + ((region & 0x1)<<6) + ((card & 0x7)<<7)

  • ((card & 0x1f)<<10) + ((0x1)<<15) + ((0x3)<<16)

Definition at line 109 of file DEutils.h.

References dedefs::RCT, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

109  {
110  int cid = de_type();
111  int errt = aflag;
112  double x1, x2, x3(0.);
113  // global index ieta (0-21), iphi (0-17), card (0-6)
114  x1 = (aflag != 4) ? itd->regionId().iphi() : itm->regionId().iphi();
115  x2 = (aflag != 4) ? itd->regionId().ieta() : itm->regionId().ieta();
116  x3 = (aflag != 4) ? itd->regionId().rctCard() : itm->regionId().rctCard();
117  //alternative coordinates: rctCrate(), rctCard(), index()
118  L1DataEmulDigi digi(dedefs::RCT, cid, x1, x2, x3, errt);
119  unsigned int dw = itd->raw();
120  unsigned int ew = itm->raw();
121  dw &= 0x3ff;
122  dw += (((itd->rctCrate()) & 0x1f) << 10);
123  dw += (((itd->isolated() ? 1 : 0) & 0x1) << 15);
124  dw += (((itd->index()) & 0x3) << 16);
125  ew &= 0x3ff;
126  ew += (((itm->rctCrate()) & 0x1f) << 10);
127  ew += (((itm->isolated() ? 1 : 0) & 0x1) << 15);
128  ew += (((itm->index()) & 0x3) << 16);
129  dw = (aflag == 4) ? 0 : dw;
130  ew = (aflag == 3) ? 0 : ew;
134  digi.setData(dw, ew);
135  int de = (aflag == 4) ? 0 : itd->rank();
136  int ee = (aflag == 3) ? 0 : itm->rank();
137  digi.setRank((float)de, (float)ee);
138  return digi;
139 }
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [5/22]

template<>
L1DataEmulDigi DEutils< L1CaloRegionCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

bits: iphi(23:19), ieta(18:14) + quiet(13), mip(12), fg(11), ovf(10), et (9:0)

Definition at line 142 of file DEutils.h.

References gpuClustering::pixelStatus::mask, dedefs::RCT, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

142  {
143  int cid = de_type();
144  int errt = aflag;
145  double x1, x2, x3(0.);
146  x1 = (aflag != 4) ? itd->id().iphi() : itm->id().iphi();
147  x2 = (aflag != 4) ? itd->id().ieta() : itm->id().ieta();
148  x3 = (aflag != 4) ? itd->id().rctCard() : itm->id().rctCard();
149  L1DataEmulDigi digi(dedefs::RCT, cid, x1, x2, x3, errt);
150  unsigned int dw = itd->raw();
151  unsigned int ew = itm->raw();
152  unsigned int mask = 0x3fff;
153  //mask (temporary) mip(12), quiet (13)
154  mask = 0x0fff;
155  dw &= mask;
156  dw += (((itd->id().ieta()) & 0x1f) << 14);
157  dw += (((itd->id().iphi()) & 0x1f) << 19);
158  ew &= mask;
159  ew += (((itm->id().ieta()) & 0x1f) << 14);
160  ew += (((itm->id().iphi()) & 0x1f) << 19);
161  dw = (aflag == 4) ? 0 : dw;
162  ew = (aflag == 3) ? 0 : ew;
164  digi.setData(dw, ew);
165  int de = (aflag == 4) ? 0 : itd->et();
166  int ee = (aflag == 3) ? 0 : itm->et();
167  digi.setRank((float)de, (float)ee);
168  return digi;
169 }
constexpr uint32_t mask
Definition: gpuClustering.h:26
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [6/22]

template<>
L1DataEmulDigi DEutils< L1GctEmCandCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 172 of file DEutils.h.

References dedefs::GCT, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

172  {
173  int cid = de_type();
174  int errt = aflag;
175  //phi: 0..17; eta: 0..21
176  // bring it to global coordinates
177  double x1 = (aflag != 4) ? itd->regionId().iphi() : itm->regionId().iphi();
178  double x2 = (aflag != 4) ? itd->regionId().ieta() : itm->regionId().ieta();
179  L1DataEmulDigi digi(dedefs::GCT, cid, x1, x2, 0., errt);
180  unsigned int dw = (aflag == 4) ? 0 : itd->raw();
181  unsigned int ew = (aflag == 3) ? 0 : itm->raw();
182  dw &= 0x7fff;
183  ew &= 0x7fff; //15-bit
184  digi.setData(dw, ew);
185  int de = (aflag == 4) ? 0 : itd->rank();
186  int ee = (aflag == 3) ? 0 : itm->rank();
187  digi.setRank((float)de, (float)ee);
188  return digi;
189 }
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [7/22]

template<>
L1DataEmulDigi DEutils< L1GctJetCandCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 192 of file DEutils.h.

References dedefs::GCT, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

192  {
193  int cid = de_type();
194  int errt = aflag;
195  //phi: 0..17; eta: -6..-0,+0..+6; eta sign:1(z-),0(z+)
196  // bring it to global coordinates 0..21 below
197  double x1 = (aflag != 4) ? itd->phiIndex() : itm->phiIndex();
198  unsigned deta(0), eeta(0);
199  if (!itd->isForward())
200  deta = (itd->etaSign() == 1 ? 10 - (itd->etaIndex() & 0x7) : (itd->etaIndex() & 0x7) + 11);
201  else
202  deta = (itd->etaSign() == 1 ? 3 - (itd->etaIndex() & 0x7) : (itd->etaIndex() & 0x7) + 18);
203  if (!itm->isForward())
204  eeta = (itm->etaSign() == 1 ? 10 - (itm->etaIndex() & 0x7) : (itm->etaIndex() & 0x7) + 11);
205  else
206  eeta = (itm->etaSign() == 1 ? 3 - (itm->etaIndex() & 0x7) : (itm->etaIndex() & 0x7) + 18);
207  double x2 = (aflag != 4) ? deta : eeta;
208  L1DataEmulDigi digi(dedefs::GCT, cid, x1, x2, 0., errt);
209  unsigned int dw = (aflag == 4) ? 0 : itd->raw();
210  unsigned int ew = (aflag == 3) ? 0 : itm->raw();
211  dw &= 0x7fff;
212  ew &= 0x7fff; //15-bit
213  digi.setData(dw, ew);
214  int de = (aflag == 4) ? 0 : itd->rank();
215  int ee = (aflag == 3) ? 0 : itm->rank();
216  digi.setRank((float)de, (float)ee);
217  return digi;
218 }
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [8/22]

template<>
L1DataEmulDigi DEutils< L1GctEtHadCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 221 of file DEutils.h.

References dedefs::GCT, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

221  {
222  int cid = de_type();
223  int errt = aflag;
224  double x1 = 0;
225  double x2 = 0; //no 'location' associated with candidates...
226  L1DataEmulDigi digi(dedefs::GCT, cid, x1, x2, 0., errt);
227  unsigned int dw = (aflag == 4) ? 0 : itd->raw();
228  unsigned int ew = (aflag == 3) ? 0 : itm->raw();
229  dw &= 0x1fff;
230  ew &= 0x1fff; //13-bit
231  digi.setData(dw, ew);
232  int de = (aflag == 4) ? 0 : itd->et();
233  int ee = (aflag == 3) ? 0 : itm->et();
234  digi.setRank((float)de, (float)ee);
235  return digi;
236 }
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [9/22]

template<>
L1DataEmulDigi DEutils< L1GctEtMissCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 238 of file DEutils.h.

References dedefs::GCT, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

238  {
239  int cid = de_type();
240  int errt = aflag;
241  double x1 = (aflag != 4) ? itd->phi() : itm->phi();
242  double x2 = 0; //no 'eta' associated with candidates...
243  L1DataEmulDigi digi(dedefs::GCT, cid, x1, x2, 0., errt);
244  unsigned int dw = (aflag == 4) ? 0 : itd->raw();
245  unsigned int ew = (aflag == 3) ? 0 : itm->raw();
246  dw &= 0x8f1fff;
247  ew &= 0x8f1fff; //22-bit (bits 13,14,15 not set)
248  digi.setData(dw, ew);
249  int de = (aflag == 4) ? 0 : itd->et();
250  int ee = (aflag == 3) ? 0 : itm->et();
251  digi.setRank((float)de, (float)ee);
252  return digi;
253 }
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [10/22]

template<>
L1DataEmulDigi DEutils< L1GctEtTotalCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 256 of file DEutils.h.

References dedefs::GCT, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

256  {
257  int cid = de_type();
258  int errt = aflag;
259  double x1 = 0;
260  double x2 = 0; //no 'location' associated with candidates...
261  L1DataEmulDigi digi(dedefs::GCT, cid, x1, x2, 0., errt);
262  unsigned int dw = (aflag == 4) ? 0 : itd->raw();
263  unsigned int ew = (aflag == 3) ? 0 : itm->raw();
264  dw &= 0x1fff;
265  ew &= 0x1fff; //13-bit
266  digi.setData(dw, ew);
267  int de = (aflag == 4) ? 0 : itd->et();
268  int ee = (aflag == 3) ? 0 : itm->et();
269  digi.setRank((float)de, (float)ee);
270  return digi;
271 }
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [11/22]

template<>
L1DataEmulDigi DEutils< L1GctHFBitCountsCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 273 of file DEutils.h.

References dedefs::GCT, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

273  {
274  int cid = de_type();
275  int errt = aflag;
276  double x1 = 0;
277  double x2 = 0; //no 'location' associated with candidates...
278  L1DataEmulDigi digi(dedefs::GCT, cid, x1, x2, 0., errt);
279  unsigned int dw = (aflag == 4) ? 0 : itd->raw();
280  unsigned int ew = (aflag == 3) ? 0 : itm->raw();
281  digi.setData(dw, ew);
282  int de = 0;
283  int ee = 0; //no 'rank' associated with candidates...
284  digi.setRank((float)de, (float)ee);
285  return digi;
286 }
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [12/22]

template<>
L1DataEmulDigi DEutils< L1GctHFRingEtSumsCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 288 of file DEutils.h.

References dedefs::GCT, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

288  {
289  int cid = de_type();
290  int errt = aflag;
291  double x1 = 0;
292  double x2 = 0; //no 'location' associated with candidates...
293  L1DataEmulDigi digi(dedefs::GCT, cid, x1, x2, 0., errt);
294  unsigned int dw = (aflag == 4) ? 0 : itd->raw();
295  unsigned int ew = (aflag == 3) ? 0 : itm->raw();
296  digi.setData(dw, ew);
297  int de = 0;
298  int ee = 0; //no 'rank' associated with candidates...
299  digi.setRank((float)de, (float)ee);
300  return digi;
301 }
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [13/22]

template<>
L1DataEmulDigi DEutils< L1GctHtMissCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 303 of file DEutils.h.

References dedefs::GCT, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

303  {
304  int cid = de_type();
305  int errt = aflag;
306  double x1 = (aflag != 4) ? itd->phi() : itm->phi();
307  double x2 = 0; //no 'eta' associated with candidates...
308  L1DataEmulDigi digi(dedefs::GCT, cid, x1, x2, 0., errt);
309  unsigned int dw = (aflag == 4) ? 0 : itd->raw();
310  unsigned int ew = (aflag == 3) ? 0 : itm->raw();
311  dw &= 0x8f1fff;
312  ew &= 0x8f1fff; //22-bit (bits 13,14,15 not set)
313  digi.setData(dw, ew);
314  int de = (aflag == 4) ? 0 : itd->et();
315  int ee = (aflag == 3) ? 0 : itm->et();
316  digi.setRank((float)de, (float)ee);
317  return digi;
318 }
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [14/22]

template<>
L1DataEmulDigi DEutils< L1GctJetCountsCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 321 of file DEutils.h.

References dedefs::GCT, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

321  {
322  int cid = de_type();
323  int errt = aflag;
324  double x1 = 0;
325  double x2 = 0; //no 'location' associated with candidates...
326  L1DataEmulDigi digi(dedefs::GCT, cid, x1, x2, 0., errt);
327  unsigned int dw = (aflag == 4) ? 0 : itd->raw0(); //raw0, raw1...
328  unsigned int ew = (aflag == 3) ? 0 : itm->raw0(); //raw0, raw1...
329  digi.setData(dw, ew);
330  int de = 0;
331  int ee = 0; //no 'rank' associated with candidates...
332  digi.setRank((float)de, (float)ee);
333  return digi;
334 }
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [15/22]

template<>
L1DataEmulDigi DEutils< L1MuRegionalCandCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 337 of file DEutils.h.

References gather_cfg::cout, dedefs::CTF, dedefs::DTF, gpuClustering::pixelStatus::mask, dedefs::RPC, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

337  {
338  int sid;
339  switch (itd->type_idx()) { // 0 DT, 1 bRPC, 2 CSC, 3 fRPC
340  case 0:
341  sid = dedefs::DTF;
342  break;
343  case 1:
344  sid = dedefs::RPC;
345  break;
346  case 2:
347  sid = dedefs::CTF;
348  break;
349  case 3:
350  sid = dedefs::RPC;
351  break;
352  default:
353  sid = -1;
354  }
355  int cid = de_type();
356  int errt = aflag;
357  //double x1 = (aflag!=4) ? itd->phiValue() : itm->phiValue();
358  //double x2 = (aflag!=4) ? itd->etaValue() : itm->etaValue();
359  double x1 = (aflag != 4) ? itd->phi_packed() : itm->phi_packed();
360  double x2 = (aflag != 4) ? itd->eta_packed() : itm->eta_packed();
361  L1DataEmulDigi digi(sid, cid, x1, x2, 0, errt);
362  unsigned int dw = (aflag == 4) ? 0 : itd->getDataWord();
363  unsigned int ew = (aflag == 3) ? 0 : itm->getDataWord();
364  unsigned int mask = 0xffffffff; //32-bit
365  //RPC: mask bits 25-29 (including synch bits)
366  // emulator doesn't set these bits (permanent masking)
367  if (sid == dedefs::RPC)
368  mask &= 0xc1ffffff;
369  dw &= mask;
370  ew &= mask;
371  digi.setData(dw, ew);
372  int de = (aflag == 4) ? 0 : itd->pt_packed(); //ptValue();
373  int ee = (aflag == 3) ? 0 : itm->pt_packed(); //ptValue();
374  digi.setRank((float)de, (float)ee);
375  //note: phi,eta,pt 'values' not always set for all muon tf systems
376  //(under discussion) need universal mechanism for setting up physical units
377  if (false) //check print
378  std::cout << "L1DataEmulDigi DEutils<L1MuRegionalCandCollection>] dedigi info"
379  //<< " phivalue:" << itd->phiValue() << "," << itm->phiValue()
380  //<< " etavalue:" << itd->etaValue() << "," << itm->etaValue()
381  << " phipackd:" << itd->phi_packed() << "," << itm->phi_packed() << " etapackd:" << itd->eta_packed()
382  << "," << itm->eta_packed() << std::endl;
383  return digi;
384 }
constexpr uint32_t mask
Definition: gpuClustering.h:26
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [16/22]

template<>
L1DataEmulDigi DEutils< L1MuGMTCandCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 387 of file DEutils.h.

References gather_cfg::cout, TauDecayModes::dec, dedefs::GMT, gpuClustering::pixelStatus::mask, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

387  {
388  int cid = de_type();
389  int errt = aflag;
390  //double x1 = (aflag!=4) ? itd->phiValue() : itm->phiValue();
391  //double x2 = (aflag!=4) ? itd->etaValue() : itm->etaValue();
392  double x1 = (aflag != 4) ? itd->phiIndex() : itm->phiIndex();
393  double x2 = (aflag != 4) ? itd->etaIndex() : itm->etaIndex();
394  L1DataEmulDigi digi(dedefs::GMT, cid, x1, x2, 0, errt);
395  unsigned int dw = (aflag == 4) ? 0 : itd->getDataWord();
396  unsigned int ew = (aflag == 3) ? 0 : itm->getDataWord();
397  unsigned int mask = 0x3ffffff; //26-bit
398  //mask bits 22 (isolation), 23 (mip) [not permanent!]
399  mask &= (~(0x0c00000));
400  dw &= mask;
401  ew &= mask;
402  digi.setData(dw, ew);
403  int de = (aflag == 4) ? 0 : itd->ptIndex(); //ptValue();
404  int ee = (aflag == 3) ? 0 : itm->ptIndex(); //ptValue();
405  digi.setRank((float)de, (float)ee);
406  if (false) //check print
407  std::cout << "l1dataemuldigi l1mugmtcandcoll type:"
408  << cid
409  //<< " eta:" << itd->etaValue() << ", " << itm->etaValue()
410  //<< " phi:" << itd->phiValue() << ", " << itm->phiValue()
411  << std::hex << " word d:" << dw << "e:" << ew << std::dec << std::endl;
412  return digi;
413 }
constexpr uint32_t mask
Definition: gpuClustering.h:26
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [17/22]

template<>
L1DataEmulDigi DEutils< L1MuDTChambPhDigiCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 416 of file DEutils.h.

References l1ctLayer1_cff::dr, dedefs::DTP, L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

416  {
417  int cid = de_type();
418  int errt = aflag;
419  double x1 = (aflag != 4) ? itd->scNum() : itm->scNum();
420  double x2 = (aflag != 4) ? itd->whNum() : itm->whNum();
421  double x3 = (aflag != 4) ? itd->stNum() : itm->stNum();
422  L1DataEmulDigi digi(dedefs::DTP, cid, x1, x2, x3, errt);
423  //other coordinate methods phi(), phiB()
424  //note: no data word defined for candidate
425  int dr = (aflag == 4) ? 0 : itd->code();
426  int er = (aflag == 3) ? 0 : itm->code();
427  digi.setRank((float)dr, (float)er);
428  return digi;
429 }
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [18/22]

template<>
L1DataEmulDigi DEutils< L1MuDTChambThDigiCollection >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 432 of file DEutils.h.

References l1ctLayer1_cff::dr, dedefs::DTP, mps_fire::i, L1DataEmulDigi::setRank(), testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

432  {
433  int cid = de_type();
434  int errt = aflag;
435  double x1 = (aflag != 4) ? itd->scNum() : itm->scNum();
436  double x2 = (aflag != 4) ? itd->whNum() : itm->whNum();
437  double x3 = (aflag != 4) ? itd->stNum() : itm->stNum();
438  L1DataEmulDigi digi(dedefs::DTP, cid, x1, x2, x3, errt);
439  //note: no data word defined for candidate
440  int dr(0), er(0);
441  for (int i = 0; i < 7; i++) {
442  if (itd->code(i) >= dr)
443  dr = itd->quality(i);
444  if (itm->code(i) >= er)
445  er = itm->quality(i);
446  }
447  //alternatives: code() = quality() + positions()
448  dr = (aflag == 4) ? 0 : dr;
449  er = (aflag == 3) ? 0 : er;
450  digi.setRank((float)dr, (float)er);
451  return digi;
452 }
int de_type() const
Definition: DEutils.h:34

◆ DEDigi() [19/22]

template<>
L1DataEmulDigi DEutils< CSCCorrelatedLCTDigiCollection_ >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 455 of file DEutils.h.

References L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), edm::shift, testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.

455  {
456  int cid = de_type();
457  int errt = aflag;
458  double x1 = (aflag != 4) ? itd->getStrip() : itm->getStrip();
459  double x2 = (aflag != 4) ? itd->getKeyWG() : itm->getKeyWG();
460  double x3 = (aflag != 4) ? itd->getTrknmb() : itm->getTrknmb();
461  //multiple subsystem ctp,ctf
462  L1DataEmulDigi digi(-1, cid, x1, x2, x3, errt);
463  int dq = (aflag == 4) ? 0 : itd->getQuality();
464  int eq = (aflag == 3) ? 0 : itm->getQuality();
465  digi.setRank((float)dq, (float)eq);
466  // Pack LCT digi members into 32-bit data words.
467  static const int kValidBitWidth = 1; // Reverse the order of the 1st
468  static const int kQualityBitWidth = 4; // frame to keep the valid bit
469  static const int kPatternBitWidth = 4; // first and quality second, as
470  static const int kWireGroupBitWidth = 7; // is done in ALCT and CLCT.
471  static const int kHalfstripBitWidth = 8;
472  static const int kBendBitWidth = 1;
473  static const int kBxBitWidth = 1;
474  // Use sync_err and bx0_local bits to store MPC link.
475  static const int kMPCLinkBitWidth = 2;
476  static const int kCSCIdBitWidth = 4;
477  // While packing, check that the right number of bits is retained.
478  unsigned shift = 0, dw = 0, ew = 0;
479  dw = itd->isValid() & ((1 << kValidBitWidth) - 1);
480  dw += (itd->getQuality() & ((1 << kQualityBitWidth) - 1)) << (shift += kValidBitWidth);
481  dw += (itd->getPattern() & ((1 << kPatternBitWidth) - 1)) << (shift += kQualityBitWidth);
482  dw += (itd->getKeyWG() & ((1 << kWireGroupBitWidth) - 1)) << (shift += kPatternBitWidth);
483  dw += (itd->getStrip() & ((1 << kHalfstripBitWidth) - 1)) << (shift += kWireGroupBitWidth);
484  dw += (itd->getBend() & ((1 << kBendBitWidth) - 1)) << (shift += kHalfstripBitWidth);
485  dw += (itd->getBX() & ((1 << kBxBitWidth) - 1)) << (shift += kBendBitWidth);
486  dw += (itd->getMPCLink() & ((1 << kMPCLinkBitWidth) - 1)) << (shift += kBxBitWidth);
487  dw += (itd->getCSCID() & ((1 << kCSCIdBitWidth) - 1)) << (shift += kMPCLinkBitWidth);
488  shift = 0;
489  ew = itm->isValid() & ((1 << kValidBitWidth) - 1);
490  ew += (itm->getQuality() & ((1 << kQualityBitWidth) - 1)) << (shift += kValidBitWidth);
491  ew += (itm->getPattern() & ((1 << kPatternBitWidth) - 1)) << (shift += kQualityBitWidth);
492  ew += (itm->getKeyWG() & ((1 << kWireGroupBitWidth) - 1)) << (shift += kPatternBitWidth);
493  ew += (itm->getStrip() & ((1 << kHalfstripBitWidth) - 1)) << (shift += kWireGroupBitWidth);
494  ew += (itm->getBend() & ((1 << kBendBitWidth) - 1)) << (shift += kHalfstripBitWidth);
495  ew += (itm->getBX() & ((1 << kBxBitWidth) - 1)) << (shift += kBendBitWidth);
496  ew += (itm->getMPCLink() & ((1 << kMPCLinkBitWidth) - 1)) << (shift += kBxBitWidth);
497  ew += (itm->getCSCID() & ((1 << kCSCIdBitWidth) - 1)) << (shift += kMPCLinkBitWidth);
498  digi.setData(dw, ew);
499  return digi;
500 }
int de_type() const
Definition: DEutils.h:34
static unsigned int const shift

◆ DEDigi() [20/22]

template<>
L1DataEmulDigi DEutils< CSCALCTDigiCollection_ >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 503 of file DEutils.h.

References dedefs::CTP, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), edm::shift, and testProducerWithPsetDescEmpty_cfi::x2.

503  {
504  int cid = de_type();
505  int errt = aflag;
506  double x2 = (aflag != 4) ? itd->getKeyWG() : itm->getKeyWG();
507  double x3 = (aflag != 4) ? itd->getTrknmb() : itm->getTrknmb();
508  L1DataEmulDigi digi(dedefs::CTP, cid, 0, x2, x3, errt);
509  int dq = (aflag == 4) ? 0 : itd->getQuality();
510  int eq = (aflag == 3) ? 0 : itm->getQuality();
511  digi.setRank((float)dq, (float)eq);
512  // Pack anode digi members into 17-bit data words.
513  static const int kValidBitWidth = 1;
514  static const int kQualityBitWidth = 2;
515  static const int kAccelBitWidth = 1;
516  static const int kPatternBBitWidth = 1;
517  static const int kWireGroupBitWidth = 7;
518  static const int kBxBitWidth = 5;
519  // While packing, check that the right number of bits is retained.
520  unsigned shift = 0, dw = 0, ew = 0;
521  dw = itd->isValid() & ((1 << kValidBitWidth) - 1);
522  dw += (itd->getQuality() & ((1 << kQualityBitWidth) - 1)) << (shift += kValidBitWidth);
523  dw += (itd->getAccelerator() & ((1 << kAccelBitWidth) - 1)) << (shift += kQualityBitWidth);
524  dw += (itd->getCollisionB() & ((1 << kPatternBBitWidth) - 1)) << (shift += kAccelBitWidth);
525  dw += (itd->getKeyWG() & ((1 << kWireGroupBitWidth) - 1)) << (shift += kPatternBBitWidth);
526  dw += (itd->getBX() & ((1 << kBxBitWidth) - 1)) << (shift += kWireGroupBitWidth);
527  shift = 0;
528  ew = itm->isValid() & ((1 << kValidBitWidth) - 1);
529  ew += (itm->getQuality() & ((1 << kQualityBitWidth) - 1)) << (shift += kValidBitWidth);
530  ew += (itm->getAccelerator() & ((1 << kAccelBitWidth) - 1)) << (shift += kQualityBitWidth);
531  ew += (itm->getCollisionB() & ((1 << kPatternBBitWidth) - 1)) << (shift += kAccelBitWidth);
532  ew += (itm->getKeyWG() & ((1 << kWireGroupBitWidth) - 1)) << (shift += kPatternBBitWidth);
533  ew += (itm->getBX() & ((1 << kBxBitWidth) - 1)) << (shift += kWireGroupBitWidth);
534  digi.setData(dw, ew);
535  return digi;
536 }
int de_type() const
Definition: DEutils.h:34
static unsigned int const shift

◆ DEDigi() [21/22]

template<>
L1DataEmulDigi DEutils< CSCCLCTDigiCollection_ >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 538 of file DEutils.h.

References dedefs::CTP, L1DataEmulDigi::setData(), L1DataEmulDigi::setRank(), edm::shift, and testProducerWithPsetDescEmpty_cfi::x1.

538  {
539  int cid = de_type();
540  int errt = aflag;
541  double x1 = (aflag != 4) ? itd->getKeyStrip() : itm->getKeyStrip();
542  double x3 = (aflag != 4) ? itd->getTrknmb() : itm->getTrknmb();
543  L1DataEmulDigi digi(dedefs::CTP, cid, x1, 0, x3, errt);
544  int dq = (aflag == 4) ? 0 : itd->getQuality();
545  int eq = (aflag == 3) ? 0 : itm->getQuality();
546  digi.setRank((float)dq, (float)eq);
547  // Pack cathode digi members into 19-bit data words.
548  static const int kValidBitWidth = 1;
549  static const int kQualityBitWidth = 3;
550  static const int kPatternBitWidth = 4;
551  static const int kBendBitWidth = 1;
552  static const int kHalfstripBitWidth = 5;
553  static const int kCFEBBitWidth = 3;
554  static const int kBxBitWidth = 2;
555  // While packing, check that the right number of bits is retained.
556  unsigned shift = 0, dw = 0, ew = 0;
557  dw = itd->isValid() & ((1 << kValidBitWidth) - 1);
558  dw += (itd->getQuality() & ((1 << kQualityBitWidth) - 1)) << (shift += kValidBitWidth);
559  dw += (itd->getPattern() & ((1 << kPatternBitWidth) - 1)) << (shift += kQualityBitWidth);
560  dw += (itd->getBend() & ((1 << kBendBitWidth) - 1)) << (shift += kPatternBitWidth);
561  dw += (itd->getStrip() & ((1 << kHalfstripBitWidth) - 1)) << (shift += kBendBitWidth);
562  dw += (itd->getCFEB() & ((1 << kCFEBBitWidth) - 1)) << (shift += kHalfstripBitWidth);
563  dw += (itd->getBX() & ((1 << kBxBitWidth) - 1)) << (shift += kCFEBBitWidth);
564  shift = 0;
565  ew = itm->isValid() & ((1 << kValidBitWidth) - 1);
566  ew += (itm->getQuality() & ((1 << kQualityBitWidth) - 1)) << (shift += kValidBitWidth);
567  ew += (itm->getPattern() & ((1 << kPatternBitWidth) - 1)) << (shift += kQualityBitWidth);
568  ew += (itm->getBend() & ((1 << kBendBitWidth) - 1)) << (shift += kPatternBitWidth);
569  ew += (itm->getStrip() & ((1 << kHalfstripBitWidth) - 1)) << (shift += kBendBitWidth);
570  ew += (itm->getCFEB() & ((1 << kCFEBBitWidth) - 1)) << (shift += kHalfstripBitWidth);
571  ew += (itm->getBX() & ((1 << kBxBitWidth) - 1)) << (shift += kCFEBBitWidth);
572  digi.setData(dw, ew);
573  return digi;
574 }
int de_type() const
Definition: DEutils.h:34
static unsigned int const shift

◆ DEDigi() [22/22]

template<>
L1DataEmulDigi DEutils< L1CSCSPStatusDigiCollection_ >::DEDigi ( col_cit  itd,
col_cit  itm,
int  aflag 
)
inline

Definition at line 577 of file DEutils.h.

References dedefs::CTF, and testProducerWithPsetDescEmpty_cfi::x1.

577  {
578  int cid = de_type();
579  int errt = aflag;
580  double x1; //sector/slot
581  x1 = (aflag != 4) ? itd->slot() : itm->slot();
582  //sector-slot map to be in principle to be provided from event setup
583  //int de_cscstatus_slot2sector[22] =
584  // {0,0,0,0,0, 0,1,2,3,4, 5,6,0,0,0, 0,7,8,9,10, 11,12};
585  //x1 = (aflag!=4) ? slot2sector[itd->slot()] : slot2sector[itm->slot()];
586  L1DataEmulDigi digi(dedefs::CTF, cid, x1, 0, 0, errt);
587  //note: no data word and rank defined for candidate
588  return digi;
589 }
int de_type() const
Definition: DEutils.h:34

◆ GetName()

template<typename T >
std::string DEutils< T >::GetName ( int  i = 0) const

— name candidate —

Definition at line 1372 of file DEutils.h.

References dedefs::CSCsta, dedefs::CSCtpa, dedefs::CSCtpc, dedefs::CSCtpl, dedefs::DTtpPh, dedefs::DTtpTh, dedefs::ECALtp, dedefs::GCTcenjets, dedefs::GCTethad, dedefs::GCTetmiss, dedefs::GCTettot, dedefs::GCTforjets, dedefs::GCThfbit, dedefs::GCThfring, dedefs::GCThtmiss, dedefs::GCTisolaem, dedefs::GCTisotaujets, dedefs::GCTnoisoem, dedefs::GCTtaujets, dedefs::GMTcnd, dedefs::GMTrdt, dedefs::GTdword, dedefs::HCALtp, mps_fire::i, dedefs::LTCi, dedefs::MUrtf, dedefs::RCTem, dedefs::RCTrgn, str, and AlCaHLTBitMon_QueryRunRegistry::string.

1372  {
1373  const int nlabel = 17;
1374  if (!(i < nlabel))
1375  return "un-defined";
1376  std::string str[nlabel] = {"un-registered"};
1377 
1378  switch (de_type()) {
1379  case dedefs::ECALtp:
1380  str[0] = "ECAL tp";
1381  str[1] = "EcalTrigPrimDigiCollection";
1382  str[2] = "EcalTriggerPrimitiveDigi";
1383  break;
1384  case dedefs::HCALtp:
1385  str[0] = "HCAL tp";
1386  str[1] = "HcalTrigPrimDigiCollection";
1387  str[2] = "HcalTriggerPrimitiveDigi";
1388  break;
1389  case dedefs::RCTem:
1390  str[0] = "RCT em";
1391  str[1] = "L1CaloEmCollection";
1392  str[2] = "L1CaloEmCand";
1393  break;
1394  case dedefs::RCTrgn:
1395  str[0] = "RCT region";
1396  str[1] = "L1CaloRegionCollection";
1397  str[2] = "L1CaloRegion";
1398  break;
1399  case dedefs::GCTisolaem:
1400  str[0] = "GCT em isolated";
1401  str[1] = "L1GctEmCandCollection";
1402  str[2] = "L1GctEmCand";
1403  break;
1404  case dedefs::GCTnoisoem:
1405  str[0] = "GCT em non-isolated";
1406  str[1] = "L1GctEmCandCollection";
1407  str[2] = "L1GctEmCand";
1408  break;
1409  case dedefs::GCTcenjets:
1410  str[0] = "GCT central jet";
1411  str[1] = "L1GctJetCandCollection";
1412  str[2] = "L1GctJetCand";
1413  break;
1414  case dedefs::GCTforjets:
1415  str[0] = "GCT forward jet";
1416  str[1] = "L1GctJetCandCollection";
1417  str[2] = "L1GctJetCand";
1418  break;
1419  case dedefs::GCTtaujets:
1420  str[0] = "GCT tau jet";
1421  str[1] = "L1GctJetCandCollection";
1422  str[2] = "L1GctJetCand";
1423  break;
1424  case dedefs::GCTisotaujets:
1425  str[0] = "Stage1Layer2 iso-tau jet";
1426  str[1] = "L1GctJetCandCollection";
1427  str[2] = "L1GctJetCand";
1428  break;
1429  case dedefs::GCTethad:
1430  str[0] = "GCT ht";
1431  str[1] = "L1GctEtHadCollection";
1432  str[2] = "L1GctEtHad";
1433  break;
1434  case dedefs::GCTetmiss:
1435  str[0] = "GCT et miss";
1436  str[1] = "L1GctEtMissCollection";
1437  str[2] = "L1GctEtMiss";
1438  break;
1439  case dedefs::GCTettot:
1440  str[0] = "GCT et total";
1441  str[1] = "L1GctEtTotalCollection";
1442  str[2] = "L1GctEtTotal";
1443  break;
1444  case dedefs::GCThtmiss:
1445  str[0] = "GCT ht miss";
1446  str[1] = "L1GctHtMissCollection";
1447  str[2] = "L1GctHtMiss";
1448  break;
1449  case dedefs::GCThfring:
1450  str[0] = "GCT hf ring";
1451  str[1] = "L1GctHFRingEtSumsCollection";
1452  str[2] = "L1GctHFRingEtSums";
1453  break;
1454  case dedefs::GCThfbit:
1455  str[0] = "GCT hf bit counts";
1456  str[1] = "L1GctHFBitCountsCollection";
1457  str[2] = "L1GctHFBitCounts";
1458  break;
1459 
1460  case dedefs::DTtpPh:
1461  str[0] = "DT tp phi";
1462  str[1] = "L1MuDTChambPhDigiCollection";
1463  str[2] = "L1MuDTChambPhDigi";
1464  break;
1465  case dedefs::DTtpTh:
1466  str[0] = "DT tp theta";
1467  str[1] = "L1MuDTChambThDigiCollection";
1468  str[2] = "L1MuDTChambThDigi";
1469  break;
1470  case dedefs::CSCtpa:
1471  str[0] = "CSC tpa";
1472  str[1] = "CSCALCTDigiCollection";
1473  str[2] = "CSCALCTDigi";
1474  break;
1475  case dedefs::CSCtpc:
1476  str[0] = "CSC tpc";
1477  str[1] = "CSCCLCTDigiCollection";
1478  str[2] = "CSCCLCTDigi";
1479  break;
1480  case dedefs::CSCtpl:
1481  str[0] = "CSC tp";
1482  str[1] = "CSCCorrelatedLCTDigiCollection";
1483  str[2] = "CSCCorrelatedLCTDigi";
1484  break;
1485  case dedefs::CSCsta:
1486  str[0] = "CSC tf status";
1487  str[1] = "L1CSCSPStatusDigiCollection_";
1488  str[2] = "L1CSCSPStatusDigi";
1489  break;
1490  case dedefs::MUrtf:
1491  str[0] = "Mu reg tf";
1492  str[1] = "L1MuRegionalCandCollection";
1493  str[2] = "L1MuRegionalCand";
1494  break;
1495  case dedefs::LTCi:
1496  str[0] = "LTC";
1497  str[1] = "LTCDigiCollection";
1498  str[2] = "LTCDigi";
1499  break;
1500  case dedefs::GMTcnd:
1501  str[0] = "GMT cand";
1502  str[1] = "L1MuGMTCandCollection";
1503  str[2] = "L1MuGMTCand";
1504  break;
1505  case dedefs::GMTrdt:
1506  str[0] = "GMT record";
1507  str[1] = "L1MuGMTReadoutRecordCollection";
1508  str[2] = "L1MuGMTReadoutRecord";
1509  break;
1510  case dedefs::GTdword:
1511  str[0] = "";
1512  str[1] = "";
1513  str[2] = "";
1514  break;
1515  //default:
1516  }
1517  return str[i];
1518 }
int de_type() const
Definition: DEutils.h:34
#define str(s)

◆ is_empty() [1/22]

template<typename T >
bool DEutils< T >::is_empty ( col_cit  it) const

— candidate emptiness definition —

Definition at line 991 of file DEutils.h.

Referenced by dirstructure.Directory::__repr__(), and utils_v2.StatisticalTest::do_test().

991  {
992  //declare candidate non-empty by default
993  return false;
994 }

◆ is_empty() [2/22]

template<>
bool DEutils< EcalTrigPrimDigiCollection >::is_empty ( col_cit  it) const
inline

Definition at line 997 of file DEutils.h.

References gpuClustering::pixelStatus::mask, and heppy_batch::val.

997  {
998  bool val = false;
999  unsigned int raw = it->sample(it->sampleOfInterest()).raw();
1000  unsigned int mask = 0x0fff;
1001  mask = 0x0eff; //fg bit temporary(!) mask
1002  raw &= mask;
1003  val |= (raw == 0);
1004  if (val)
1005  return val;
1006  unsigned int ttf = it->ttFlag();
1007  val |= ((ttf != 0x1) && (ttf != 0x3)); //compare only if ttf is 1 or 3
1008  return val;
1009  // return ( it->size()==0 || it->sample(it->sampleOfInterest()).raw()==0);
1010 }
constexpr uint32_t mask
Definition: gpuClustering.h:26

◆ is_empty() [3/22]

template<>
bool DEutils< HcalTrigPrimDigiCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1013 of file DEutils.h.

References gpuClustering::pixelStatus::mask.

1013  {
1014  unsigned int mask = 0x01ff;
1015  return (it->size() == 0 || ((it->t0().raw() & mask) == 0) || it->SOI_compressedEt() == 0);
1016 }
constexpr uint32_t mask
Definition: gpuClustering.h:26

◆ is_empty() [4/22]

template<>
bool DEutils< L1CaloEmCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1019 of file DEutils.h.

1019  {
1020  return ((it->rank()) == 0);
1021  //return it->empty();
1022 }

◆ is_empty() [5/22]

template<>
bool DEutils< L1CaloRegionCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1025 of file DEutils.h.

1025  {
1026  return ((it->et()) == 0);
1027  //return it->empty();
1028 }

◆ is_empty() [6/22]

template<>
bool DEutils< L1GctEmCandCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1031 of file DEutils.h.

1031  {
1032  return (it->empty());
1033 }

◆ is_empty() [7/22]

template<>
bool DEutils< L1GctJetCandCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1036 of file DEutils.h.

1036  {
1037  return (it->empty());
1038 }

◆ is_empty() [8/22]

template<>
bool DEutils< L1GctEtHadCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1041 of file DEutils.h.

1041  {
1042  return (it->empty());
1043 }

◆ is_empty() [9/22]

template<>
bool DEutils< L1GctEtMissCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1045 of file DEutils.h.

1045  {
1046  return (it->empty());
1047 }

◆ is_empty() [10/22]

template<>
bool DEutils< L1GctEtTotalCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1049 of file DEutils.h.

1049  {
1050  return (it->empty());
1051 }

◆ is_empty() [11/22]

template<>
bool DEutils< L1GctHtMissCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1053 of file DEutils.h.

1053  {
1054  return (it->empty());
1055 }

◆ is_empty() [12/22]

template<>
bool DEutils< L1GctHFRingEtSumsCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1057 of file DEutils.h.

1057  {
1058  return (it->empty());
1059 }

◆ is_empty() [13/22]

template<>
bool DEutils< L1GctHFBitCountsCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1061 of file DEutils.h.

1061  {
1062  return (it->empty());
1063 }

◆ is_empty() [14/22]

template<>
bool DEutils< L1GctJetCountsCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1065 of file DEutils.h.

1065  {
1066  return (it->empty());
1067 }

◆ is_empty() [15/22]

template<>
bool DEutils< L1MuDTChambPhDigiCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1070 of file DEutils.h.

1070  {
1071  return (it->bxNum() != 0 || it->code() == 7);
1072  //return (it->qualityCode() == 7);
1073  //return false;
1074 }

◆ is_empty() [16/22]

template<>
bool DEutils< L1MuDTChambThDigiCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1076 of file DEutils.h.

1076  {
1077  return (it->whNum() == 0 && it->scNum() == 0 && it->stNum() == 0); //tmp!
1078  //return false;
1079 }

◆ is_empty() [17/22]

template<>
bool DEutils< L1MuRegionalCandCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1082 of file DEutils.h.

1082  {
1083  //note: following call used to give trouble sometimes
1084 
1085  //restrict further processing to bx==0 for RPC
1086  if (it->type_idx() == 1 || it->type_idx() == 3) //rpc
1087  if (it->bx() != 0)
1088  return true;
1089 
1090  return (it->empty());
1091  //virtual bool empty() const { return readDataField( PT_START, PT_LENGTH) == 0; }
1092  //return (it->getDataWord()==0);
1093  //return (it->pt_packed()==0);
1094 }

◆ is_empty() [18/22]

template<>
bool DEutils< L1MuGMTCandCollection >::is_empty ( col_cit  it) const
inline

Definition at line 1097 of file DEutils.h.

1097  {
1098  return (it->empty());
1099  //return (it->ptIndex()==0);
1100  //return (it->getDataWord()==0);
1101 }

◆ is_empty() [19/22]

template<>
bool DEutils< CSCCorrelatedLCTDigiCollection_ >::is_empty ( col_cit  it) const
inline

Definition at line 1104 of file DEutils.h.

1104  {
1105  return !(it->isValid());
1106 }

◆ is_empty() [20/22]

template<>
bool DEutils< CSCALCTDigiCollection_ >::is_empty ( col_cit  it) const
inline

Definition at line 1108 of file DEutils.h.

1108  {
1109  return !(it->isValid());
1110 }

◆ is_empty() [21/22]

template<>
bool DEutils< CSCCLCTDigiCollection_ >::is_empty ( col_cit  it) const
inline

Definition at line 1112 of file DEutils.h.

1112  {
1113  return !(it->isValid());
1114 }

◆ is_empty() [22/22]

template<>
bool DEutils< L1CSCSPStatusDigiCollection_ >::is_empty ( col_cit  it) const
inline

Definition at line 1117 of file DEutils.h.

References data.

1117  {
1118  unsigned data = it->slot() | it->BXN() | it->FMM() | it->SEs() | it->SMs() | it->BXs() | it->AFs() | it->VPs();
1119  return data == 0;
1120 }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ print() [1/22]

template<typename T >
std::string DEutils< T >::print ( col_cit  it) const

— print candidate —

Definition at line 1125 of file DEutils.h.

References contentValuesCheck::ss.

1125  {
1126  std::stringstream ss;
1127  ss << "[DEutils<T>::print()] specialization still missing for collection!";
1128  //ss << *it; // default
1129  ss << std::endl;
1130  return ss.str();
1131 }

◆ print() [2/22]

template<>
std::string DEutils< EcalTrigPrimDigiCollection >::print ( col_cit  it) const
inline

Definition at line 1134 of file DEutils.h.

References TauDecayModes::dec, EcalBarrel, and contentValuesCheck::ss.

1134  {
1135  std::stringstream ss;
1136  ss << "0x" << std::setw(4) << std::setfill('0') << std::hex << it->sample(it->sampleOfInterest()).raw()
1137  << std::setfill(' ') << std::dec << ", et:" << std::setw(3) << it->compressedEt() << ", fg:" << std::setw(1)
1138  << it->fineGrain() << ", ttf:" << std::setw(2) << it->ttFlag()
1139  << ", sdet:" << ((it->id().subDet() == EcalBarrel) ? ("Barrel") : ("Endcap"))
1140  << ", iz:" << ((it->id().zside() > 0) ? ("+") : ("-")) << ", ieta:" << std::setw(2) << it->id().ietaAbs()
1141  << ", iphi:" << std::setw(2)
1142  << it->id().iphi()
1143  //<< "\n\t: " << *it
1144  << std::endl;
1145  return ss.str();
1146 }

◆ print() [3/22]

template<>
std::string DEutils< HcalTrigPrimDigiCollection >::print ( col_cit  it) const
inline

Definition at line 1149 of file DEutils.h.

References TauDecayModes::dec, and contentValuesCheck::ss.

1149  {
1150  std::stringstream ss;
1151  ss << "0x" << std::setw(4) << std::setfill('0') << std::hex << it->t0().raw() << std::setfill(' ') << std::dec
1152  << ", et:" << std::setw(3) << it->SOI_compressedEt() << ", fg:" << std::setw(1) << it->SOI_fineGrain()
1153  << ", sdet:" << it->id().subdet() << ", iz:" << ((it->id().zside() > 0) ? ("+") : ("-"))
1154  << ", ieta:" << std::setw(2) << it->id().ietaAbs() << ", iphi:" << std::setw(2) << it->id().iphi() << std::endl;
1155  //ss << *it << std::endl;
1156  return ss.str();
1157 }

◆ print() [4/22]

template<>
std::string DEutils< L1CaloEmCollection >::print ( col_cit  it) const
inline

Definition at line 1160 of file DEutils.h.

References TauDecayModes::dec, and contentValuesCheck::ss.

1160  {
1161  std::stringstream ss;
1162  ss << "0x" << std::setw(4) << std::setfill('0') << std::hex << it->raw() << ", rank=0x" << std::setw(2) << std::hex
1163  << it->rank() << std::setfill(' ') << std::dec << ", region:" << std::setw(1) << it->rctRegion()
1164  << ", card:" << std::setw(1) << it->rctCard() << ", crate:" << std::setw(2) << it->rctCrate()
1165  << ", ieta:" << std::setw(2) << it->regionId().ieta() //0..21
1166  << ", iphi:" << std::setw(2)
1167  << it->regionId().iphi() //0..17
1168  //<< ", eta:" << std::setw(2) << it->regionId().rctEta() //0..10
1169  //<< ", phi:" << std::setw(2) << it->regionId().rctPhi() //0..1
1170  << ", iso:" << std::setw(1) << it->isolated() << ", index:" << std::setw(1) << it->index() << ", bx:" << it->bx()
1171  << std::endl;
1172  //ss << *it;
1173  return ss.str();
1174 }

◆ print() [5/22]

template<>
std::string DEutils< L1CaloRegionCollection >::print ( col_cit  it) const
inline

Definition at line 1177 of file DEutils.h.

References TauDecayModes::dec, and contentValuesCheck::ss.

1177  {
1178  std::stringstream ss;
1179  ss << "L1CaloRegion:"
1180  << " et=" << it->et() << " o/f=" << it->overFlow() << " f/g=" << it->fineGrain() << " tau=" << it->tauVeto()
1181  << " rct(crate=" << it->rctCrate() << " card=" << it->rctCard() << " rgn=" << it->rctRegionIndex()
1182  << " eta=" << it->rctEta() << " phi=" << it->rctPhi() << ")\n\t\t"
1183  << "gct(eta=" << it->gctEta() << " phi=" << it->gctPhi() << ")" << std::hex << " cap_block=" << it->capBlock()
1184  << std::dec << " index=" << it->capIndex() << " bx=" << it->bx() << std::endl;
1185  //ss << *it; ///replace due to too long unformatted verbose
1186  //note: raw() data accessor missing in dataformats
1187  return ss.str();
1188 }

◆ print() [6/22]

template<>
std::string DEutils< L1GctEmCandCollection >::print ( col_cit  it) const
inline

Definition at line 1191 of file DEutils.h.

References TauDecayModes::dec, and contentValuesCheck::ss.

1191  {
1192  std::stringstream ss;
1193  //get rct index
1194  //int ieta = (it->etaIndex()&0x7); ieta = it->etaSign() ? 10-ieta:11+ieta;
1195  ss << "0x" << std::setw(4) << std::setfill('0') << std::hex << it->raw() << ", rank=0x" << std::setw(2) << std::hex
1196  << it->rank() << std::setfill(' ') << std::dec << ", etaSign:" << it->etaSign()
1197  << ", eta:" << (it->etaIndex() & 0x7) //0..6
1198  << ", phi:" << std::setw(2) << it->phiIndex() //0..17
1199  << " (ieta:" << std::setw(2) << it->regionId().ieta() //0..21
1200  << ",iphi:" << std::setw(2) << it->regionId().iphi() << ")" //0..17
1201  << ", iso:" << it->isolated() << ", cap block:" << std::setw(3) << it->capBlock() << ", index:" << it->capIndex()
1202  << ", bx:" << it->bx() << std::endl;
1203  //<< " " << *it << std::dec << std::endl;
1204  return ss.str();
1205 }

◆ print() [7/22]

template<>
std::string DEutils< L1GctJetCandCollection >::print ( col_cit  it) const
inline

Definition at line 1215 of file DEutils.h.

References TauDecayModes::dec, and contentValuesCheck::ss.

1215  {
1216  std::stringstream ss;
1217  ss << "0x" << std::setw(4) << std::setfill('0') << std::hex << it->raw() << " " << *it << std::dec << std::endl;
1218  return ss.str();
1219 }

◆ print() [8/22]

template<>
std::string DEutils< L1GctEtHadCollection >::print ( col_cit  it) const
inline

Definition at line 1221 of file DEutils.h.

References contentValuesCheck::ss.

1221  {
1222  std::stringstream ss;
1223  ss << *it;
1224  return ss.str();
1225 }

◆ print() [9/22]

template<>
std::string DEutils< L1GctEtMissCollection >::print ( col_cit  it) const
inline

Definition at line 1227 of file DEutils.h.

References contentValuesCheck::ss.

1227  {
1228  std::stringstream ss;
1229  ss << *it;
1230  return ss.str();
1231 }

◆ print() [10/22]

template<>
std::string DEutils< L1GctEtTotalCollection >::print ( col_cit  it) const
inline

Definition at line 1233 of file DEutils.h.

References contentValuesCheck::ss.

1233  {
1234  std::stringstream ss;
1235  ss << *it;
1236  return ss.str();
1237 }

◆ print() [11/22]

template<>
std::string DEutils< L1GctHtMissCollection >::print ( col_cit  it) const
inline

Definition at line 1239 of file DEutils.h.

References contentValuesCheck::ss.

1239  {
1240  std::stringstream ss;
1241  ss << *it;
1242  return ss.str();
1243 }

◆ print() [12/22]

template<>
std::string DEutils< L1GctHFRingEtSumsCollection >::print ( col_cit  it) const
inline

Definition at line 1245 of file DEutils.h.

References contentValuesCheck::ss.

1245  {
1246  std::stringstream ss;
1247  ss << *it;
1248  return ss.str();
1249 }

◆ print() [13/22]

template<>
std::string DEutils< L1GctHFBitCountsCollection >::print ( col_cit  it) const
inline

Definition at line 1251 of file DEutils.h.

References contentValuesCheck::ss.

1251  {
1252  std::stringstream ss;
1253  ss << *it;
1254  return ss.str();
1255 }

◆ print() [14/22]

template<>
std::string DEutils< L1GctJetCountsCollection >::print ( col_cit  it) const
inline

Definition at line 1257 of file DEutils.h.

References contentValuesCheck::ss.

1257  {
1258  std::stringstream ss;
1259  ss << *it;
1260  return ss.str();
1261 }

◆ print() [15/22]

template<>
std::string DEutils< L1MuDTChambPhDigiCollection >::print ( col_cit  it) const
inline

Definition at line 1264 of file DEutils.h.

References contentValuesCheck::ss.

1264  {
1265  std::stringstream ss;
1266  ss << ""
1267  << " bxNum:" << it->bxNum() << " whNum:" << it->whNum() << " scNum:" << it->scNum() << " stNum:" << it->stNum()
1268  << " phi:" << it->phi() << " phiB:" << it->phiB() << " code:" << it->code() << " Ts2Tag:" << it->Ts2Tag()
1269  << " BxCnt:" << it->BxCnt() << std::endl;
1270  //nb: operator << not implemented in base class L1MuDTChambPhDigi
1271  return ss.str();
1272 }

◆ print() [16/22]

template<>
std::string DEutils< L1MuDTChambThDigiCollection >::print ( col_cit  it) const
inline

Definition at line 1275 of file DEutils.h.

References contentValuesCheck::ss.

1275  {
1276  std::stringstream ss;
1277  ss << ""
1278  << " bxNum:" << it->bxNum() << " whNum:" << it->whNum() << " scNum:" << it->scNum() << " stNum:" << it->stNum()
1279  << std::endl;
1280  //nb: operator << not implemented in base class L1MuDTChambThDigi
1281  return ss.str();
1282 }

◆ print() [17/22]

template<>
std::string DEutils< L1MuRegionalCandCollection >::print ( col_cit  it) const
inline

Definition at line 1285 of file DEutils.h.

References TauDecayModes::dec, alignBH_cfg::fixed, and contentValuesCheck::ss.

1285  {
1286  std::stringstream ss;
1287  //const float noval = -10; //L1MuRegionalCand::m_invalidValue;
1288  ss << std::setiosflags(std::ios::showpoint | std::ios::fixed | std::ios::right | std::ios::adjustfield);
1289  ss << std::hex << std::setfill('0') << " 0x" << std::setw(8) << it->getDataWord();
1290  //if(it->phiValue()==noval || it->etaValue()==noval || it->ptValue()==noval )
1291  ss << std::hex << std::setfill('0') << " pt:0x" << std::setw(2) << it->pt_packed() << " phi:0x" << std::setw(2)
1292  << it->phi_packed() << " eta:0x" << std::setw(2) << it->eta_packed();
1293  //else
1294  // ss << std::dec << std::setfill(' ')
1295  // << " pt:" << std::setw(5) << std::setprecision(1) << it->ptValue() <<"[GeV]"
1296  // << " phi:" << std::setw(5) << std::setprecision(3) << it->phiValue()<<"[rad]"
1297  // << " eta:" << std::setw(6) << std::setprecision(3) << it->etaValue();
1298  ss << std::dec << std::setfill(' ') << " qua:" << std::setw(1) << it->quality() << " cha:" << std::setw(2)
1299  << it->chargeValue() << " chav:" << std::setw(1) << it->chargeValid() << " fh:" << std::setw(1) << it->isFineHalo()
1300  << " bx:" << std::setw(4) << it->bx() << " [id:" << std::setw(1) << it->type_idx()
1301  << "]" // 0 DT, 1 bRPC, 2 CSC, 3 fRPC
1302  << std::endl;
1303  //ss << it->print()
1304  return ss.str();
1305 }

◆ print() [18/22]

template<>
std::string DEutils< L1MuGMTCandCollection >::print ( col_cit  it) const
inline

Definition at line 1308 of file DEutils.h.

References TauDecayModes::dec, alignBH_cfg::fixed, and contentValuesCheck::ss.

1308  {
1309  std::stringstream ss;
1310  ss << std::setiosflags(std::ios::showpoint | std::ios::fixed | std::ios::right | std::ios::adjustfield);
1311  //const float noval = -10; //L1MuGMTCand::m_invalidValue;
1312  ss << std::hex << std::setfill('0') << " 0x" << std::setw(7) << it->getDataWord();
1313  //if(it->phiValue()==noval || it->etaValue()==noval || it->ptValue()==noval)
1314  ss << std::hex << std::setfill('0') << " pt:0x" << std::setw(2) << it->ptIndex() << " eta:0x" << std::setw(2)
1315  << it->etaIndex() << " phi:0x" << std::setw(3) << it->phiIndex();
1316  //else
1317  // ss << std::dec << std::setfill(' ')
1318  // << " pt:" << std::setw(5) << std::setprecision(1) << it->ptValue() <<"[GeV]"
1319  // << " phi:" << std::setw(5) << std::setprecision(3) << it->phiValue()<<"[rad]"
1320  // << " eta:" << std::setw(6) << std::setprecision(2) << it->etaValue();
1321  ss << std::dec << std::setfill(' ') << " cha:" << std::setw(2) << it->charge() << " qua:" << std::setw(3)
1322  << it->quality() << " iso:" << std::setw(1) << it->isol() << " mip:" << std::setw(1) << it->mip()
1323  << " bx:" << it->bx() << std::endl;
1324  //ss << it->print()
1325  return ss.str();
1326 }

◆ print() [19/22]

template<>
std::string DEutils< CSCCorrelatedLCTDigiCollection_ >::print ( col_cit  it) const
inline

Definition at line 1329 of file DEutils.h.

References contentValuesCheck::ss.

1329  {
1330  std::stringstream ss;
1331  ss
1332  //<< " lct#:" << it->getTrknmb()
1333  //<< " val:" << it->isValid()
1334  //<< " qua:" << it->getQuality()
1335  //<< " strip:" << it->getStrip()
1336  //<< " bend:" << ((it->getBend() == 0) ? 'L' : 'R')
1337  //<< " patt:" << it->getPattern()
1338  //<<" key wire:" << it->getKeyWG()
1339  //<< " bx:" << it->getBX()
1340  //<< " mpc-link:" << it->getMPCLink()
1341  //<< " csc id:" << it->getCSCID()
1342  //<< std::endl;
1343  << *it;
1344  return ss.str();
1345 }

◆ print() [20/22]

template<>
std::string DEutils< CSCALCTDigiCollection_ >::print ( col_cit  it) const
inline

Definition at line 1348 of file DEutils.h.

References contentValuesCheck::ss.

1348  {
1349  std::stringstream ss;
1350  ss << *it << std::endl;
1351  return ss.str();
1352 }

◆ print() [21/22]

template<>
std::string DEutils< CSCCLCTDigiCollection_ >::print ( col_cit  it) const
inline

Definition at line 1355 of file DEutils.h.

References contentValuesCheck::ss.

1355  {
1356  std::stringstream ss;
1357  ss << *it << std::endl;
1358  return ss.str();
1359 }

◆ print() [22/22]

template<>
std::string DEutils< L1CSCSPStatusDigiCollection_ >::print ( col_cit  it) const
inline

Definition at line 1362 of file DEutils.h.

References contentValuesCheck::ss.

1362  {
1363  std::stringstream ss;
1364  ss << " slot:" << it->slot() << " bxn:" << it->BXN() << " fmm:" << it->FMM() << " ses:" << it->SEs()
1365  << " sms:" << it->SMs() << " bxs:" << it->BXs() << " afs:" << it->AFs() << " vps:" << it->VPs() << std::endl;
1366  return ss.str();
1367 }