CMS 3D CMS Logo

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