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 
21 
23 
25 {
26  public:
29 
31  std::vector<CSCCathodeLayerInfo> getSimInfo(const CSCCLCTDigi& clct,
32  const CSCDetId& clctId, const CSCComparatorDigiCollection* compdc,
33  const edm::PSimHitContainer* allSimHits);
34 
37  int nearestHS(const std::vector<CSCCathodeLayerInfo>& allLayerInfo,
38  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, const CSCComparatorDigiCollection* compdc);
64  int preselectDigis(const int clct_bx, const CSCDetId& layerId,
65  const CSCComparatorDigiCollection* compdc,
66  std::vector<CSCComparatorDigi>& digiMap,
67  int hfstripDigis[CSCConstants::NUM_HALF_STRIPS],
69  int comp[CSCConstants::MAX_NUM_STRIPS],
70  int digiNum[CSCConstants::MAX_NUM_STRIPS]);
71 
72  /* Find SimHits closest to each ComparatorDigi on CLCT. */
74  const edm::PSimHitContainer* allSimHits);
75 };
76 #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