CMS 3D CMS Logo

CastorTTRecord.h
Go to the documentation of this file.
1 #ifndef CastorTechTrigProducer_CastorTTRecord_h
2 #define CastorTechTrigProducer_CastorTTRecord_h
3 
8 
10 
12 public:
13  explicit CastorTTRecord(const edm::ParameterSet &ps);
14  ~CastorTTRecord() override;
15 
16  void produce(edm::Event &e, const edm::EventSetup &c) override;
17 
18  // get fC from digis and save it to array double energy[16 sectors][14
19  // modules]
20  void getEnergy_fC(double energy[16][14],
21  edm::Handle<CastorDigiCollection> &CastorDigiColl,
22  edm::Event &e,
23  const edm::EventSetup &c);
24 
25  // get Trigger decisions | vector needs same SIZE and ORDER as in 'ttpBits_'
26  void getTriggerDecisions(std::vector<bool> &decision, double energy[16][14]) const;
27 
28  // get Trigger decisions for every octant | vector has size of 6 -> 6 HTR card
29  // bits
30  void getTriggerDecisionsPerOctant(std::vector<bool> tdps[16], double energy[16][14]) const;
31 
32 private:
34  unsigned int CastorSignalTS_;
35 
36  std::vector<unsigned int> ttpBits_;
37  std::vector<std::string> TrigNames_;
38  std::vector<double> TrigThresholds_;
39 
41 };
42 
43 #endif
std::vector< unsigned int > ttpBits_
CastorTTRecord(const edm::ParameterSet &ps)
unsigned int CastorSignalTS_
std::vector< std::string > TrigNames_
void produce(edm::Event &e, const edm::EventSetup &c) override
std::vector< double > TrigThresholds_
void getTriggerDecisionsPerOctant(std::vector< bool > tdps[16], double energy[16][14]) const
void getTriggerDecisions(std::vector< bool > &decision, double energy[16][14]) const
edm::EDGetTokenT< CastorDigiCollection > CastorDigiColl_
~CastorTTRecord() override
void getEnergy_fC(double energy[16][14], edm::Handle< CastorDigiCollection > &CastorDigiColl, edm::Event &e, const edm::EventSetup &c)
double reweighted_gain