1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef CondFormats_CSCTriggerSimpleMapping_h
#define CondFormats_CSCTriggerSimpleMapping_h
/**
* \class CSCReadoutSimpleMapping
* \author Lindsey Gray
* A CSCTriggerMapping that encodes the hardware labels into a CSCDetId,
* appropriate for most situations including slicetest.
*/
#include <CondFormats/CSCObjects/interface/CSCTriggerMapping.h>
class CSCTriggerSimpleMapping : public CSCTriggerMapping {
public:
/// Constructor
CSCTriggerSimpleMapping();
/// Destructor
~CSCTriggerSimpleMapping() override;
private:
/**
* Build a unique integer out of labels present or easily derivable from the
* readout.
*
*/
int hwId(int endcap, int station, int sector, int subsector, int cscid) const override;
};
#endif
|