CMS 3D CMS Logo

CSCCathodeLCTAnalyzer.h
Go to the documentation of this file.
1 
14 #ifndef L1Trigger_CSCTriggerPrimitives_CSCCathodeLCTAnalyzer_H
15 #define L1Trigger_CSCTriggerPrimitives_CSCCathodeLCTAnalyzer_H
16 
22 
24 
26 public:
29 
31  std::vector<CSCCathodeLayerInfo> getSimInfo(const CSCCLCTDigi& clct,
32  const CSCDetId& clctId,
33  const CSCComparatorDigiCollection* compdc,
34  const edm::PSimHitContainer* allSimHits);
35 
38  int nearestHS(const std::vector<CSCCathodeLayerInfo>& allLayerInfo, double& closestPhi, double& closestEta);
39 
41  void setGeometry(const CSCGeometry* geom);
42 
44  double getStripPhi(const CSCDetId& layerId, const float strip);
45 
47  static void setDebug() { debug = true; }
48 
50  static void setNoDebug() { debug = false; }
51 
52 private:
53  static bool debug;
54 
56  static bool doME1A;
57 
58  /* Cache geometry for current event. */
60 
61  /* Find the list of ComparatorDigis belonging to this CLCT. */
62  std::vector<CSCCathodeLayerInfo> lctDigis(const CSCCLCTDigi& clct,
63  const CSCDetId& clctId,
64  const CSCComparatorDigiCollection* compdc);
65  int preselectDigis(const int clct_bx,
66  const CSCDetId& layerId,
67  const CSCComparatorDigiCollection* compdc,
68  std::vector<CSCComparatorDigi>& digiMap,
69  int hfstripDigis[CSCConstants::NUM_HALF_STRIPS],
71  int comp[CSCConstants::MAX_NUM_STRIPS],
72  int digiNum[CSCConstants::MAX_NUM_STRIPS]);
73 
74  /* Find SimHits closest to each ComparatorDigi on CLCT. */
76 };
77 #endif
static const TGPicture * info(bool iBackgroundIsBlack)
void digiSimHitAssociator(CSCCathodeLayerInfo &info, const edm::PSimHitContainer *allSimHits)
CSCLayerInfo< CSCComparatorDigi > CSCCathodeLayerInfo
void setGeometry(const CSCGeometry *geom)
int preselectDigis(const int clct_bx, const CSCDetId &layerId, const CSCComparatorDigiCollection *compdc, std::vector< CSCComparatorDigi > &digiMap, int hfstripDigis[CSCConstants::NUM_HALF_STRIPS], int time[CSCConstants::MAX_NUM_STRIPS], int comp[CSCConstants::MAX_NUM_STRIPS], int digiNum[CSCConstants::MAX_NUM_STRIPS])
std::vector< CSCCathodeLayerInfo > lctDigis(const CSCCLCTDigi &clct, const CSCDetId &clctId, const CSCComparatorDigiCollection *compdc)
const CSCGeometry * geom_
int nearestHS(const std::vector< CSCCathodeLayerInfo > &allLayerInfo, double &closestPhi, double &closestEta)
double getStripPhi(const CSCDetId &layerId, const float strip)
std::vector< CSCCathodeLayerInfo > getSimInfo(const CSCCLCTDigi &clct, const CSCDetId &clctId, const CSCComparatorDigiCollection *compdc, const edm::PSimHitContainer *allSimHits)
std::vector< PSimHit > PSimHitContainer