Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:39

0001 #ifndef DataFormats_Run3ScoutingCaloJet_h
0002 #define DataFormats_Run3ScoutingCaloJet_h
0003 
0004 #include <vector>
0005 
0006 //class for holding calo jet information, for use in data scouting
0007 //IMPORTANT: the content of this class should be changed only in backwards compatible ways!
0008 class Run3ScoutingCaloJet {
0009 public:
0010   //constructor with values for all data fields
0011   Run3ScoutingCaloJet(float pt,
0012                       float eta,
0013                       float phi,
0014                       float m,
0015                       float jetArea,
0016                       float maxEInEmTowers,
0017                       float maxEInHadTowers,
0018                       float hadEnergyInHB,
0019                       float hadEnergyInHE,
0020                       float hadEnergyInHF,
0021                       float emEnergyInEB,
0022                       float emEnergyInEE,
0023                       float emEnergyInHF,
0024                       float towersArea,
0025                       float mvaDiscriminator,
0026                       float btagDiscriminator)
0027       : pt_(pt),
0028         eta_(eta),
0029         phi_(phi),
0030         m_(m),
0031         jetArea_(jetArea),
0032         maxEInEmTowers_(maxEInEmTowers),
0033         maxEInHadTowers_(maxEInHadTowers),
0034         hadEnergyInHB_(hadEnergyInHB),
0035         hadEnergyInHE_(hadEnergyInHE),
0036         hadEnergyInHF_(hadEnergyInHF),
0037         emEnergyInEB_(emEnergyInEB),
0038         emEnergyInEE_(emEnergyInEE),
0039         emEnergyInHF_(emEnergyInHF),
0040         towersArea_(towersArea),
0041         mvaDiscriminator_(mvaDiscriminator),
0042         btagDiscriminator_(btagDiscriminator) {}
0043   //default constructor
0044   Run3ScoutingCaloJet()
0045       : pt_(0),
0046         eta_(0),
0047         phi_(0),
0048         m_(0),
0049         jetArea_(0),
0050         maxEInEmTowers_(0),
0051         maxEInHadTowers_(0),
0052         hadEnergyInHB_(0),
0053         hadEnergyInHE_(0),
0054         hadEnergyInHF_(0),
0055         emEnergyInEB_(0),
0056         emEnergyInEE_(0),
0057         emEnergyInHF_(0),
0058         towersArea_(0),
0059         mvaDiscriminator_(0),
0060         btagDiscriminator_(0) {}
0061 
0062   //accessor functions
0063   float pt() const { return pt_; }
0064   float eta() const { return eta_; }
0065   float phi() const { return phi_; }
0066   float m() const { return m_; }
0067   float jetArea() const { return jetArea_; }
0068   float maxEInEmTowers() const { return maxEInEmTowers_; }
0069   float maxEInHadTowers() const { return maxEInHadTowers_; }
0070   float hadEnergyInHB() const { return hadEnergyInHB_; }
0071   float hadEnergyInHE() const { return hadEnergyInHE_; }
0072   float hadEnergyInHF() const { return hadEnergyInHF_; }
0073   float emEnergyInEB() const { return emEnergyInEB_; }
0074   float emEnergyInEE() const { return emEnergyInEE_; }
0075   float emEnergyInHF() const { return emEnergyInHF_; }
0076   float towersArea() const { return towersArea_; }
0077   float mvaDiscriminator() const { return mvaDiscriminator_; }
0078   float btagDiscriminator() const { return btagDiscriminator_; }
0079 
0080 private:
0081   float pt_;
0082   float eta_;
0083   float phi_;
0084   float m_;
0085   float jetArea_;
0086   float maxEInEmTowers_;
0087   float maxEInHadTowers_;
0088   float hadEnergyInHB_;
0089   float hadEnergyInHE_;
0090   float hadEnergyInHF_;
0091   float emEnergyInEB_;
0092   float emEnergyInEE_;
0093   float emEnergyInHF_;
0094   float towersArea_;
0095   float mvaDiscriminator_;
0096   float btagDiscriminator_;
0097 };
0098 
0099 typedef std::vector<Run3ScoutingCaloJet> Run3ScoutingCaloJetCollection;
0100 
0101 #endif