CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTOniaSource.h
Go to the documentation of this file.
1 #ifndef HLTONIASOURCE_H
2 #define HLTONIASOURCE_H
3 
4 // system include files
5 #include <map>
6 
7 // user include files
20 
21 class PtGreaterRef {
22  public:
23  template <typename T> bool operator () (const T& i, const T& j) {
24  return (i->pt() > j->pt());
25  }
26  };
27 
29  public:
30  explicit HLTOniaSource(const edm::ParameterSet&);
32 
33 
34  private:
35  virtual void beginJob() override ;
36  virtual void beginRun(const edm::Run &, const edm::EventSetup &) override;
37  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
38  virtual void endJob() override ;
39 
40 
42 
43 
44 
45  //user defined
46  void bookOniaTriggerInvariantMassMEs( std::map<std::string, MonitorElement *> & , std::string , std::string );
47  void bookOniaTriggerMEs( std::map<std::string, MonitorElement *> & , std::string);
49  void fillOniaTriggerMEs( edm::Handle<reco::RecoChargedCandidateCollection> &, std::string , std::map<std::string, MonitorElement *> & );
50  void fillOniaTriggerMEs( edm::Handle<reco::TrackCollection> &, std::string , std::map<std::string, MonitorElement *> & );
51  void fillOniaTriggerMEs( std::vector<reco::RecoChargedCandidateRef> &, std::string , std::map<std::string, MonitorElement *> & );
52  void fillInvariantMass(std::vector<reco::RecoChargedCandidateRef> & , reco::RecoChargedCandidateCollection & , std::string , std::string );
53  void fillInvariantMass(std::vector<reco::RecoChargedCandidateRef> & , std::vector<reco::RecoChargedCandidateRef> &, std::string , std::string);
54  void fillInvariantMass(std::vector<reco::RecoChargedCandidateRef> & , reco::TrackCollection & , std::string , std::string );
57  //------------------------
58  std::vector< std::string> triggerPath_;
59  std::vector<edm::InputTag> oniaMuonTag_;
60  std::vector<edm::InputTag> pixelTagsAfterFilter_ ;
61  std::vector<edm::InputTag> trackTagsAfterFilter_ ;
67  std::map<std::string, MonitorElement *> pixelAfterFilterME_;
68  std::map<std::string, MonitorElement *> trackAfterFilterME_;
69  std::map<std::string, MonitorElement *> pixelME_;
70  std::map<std::string, MonitorElement *> muonME_;
71  std::map<std::string, MonitorElement *> trackME_;
72  std::map<std::string, MonitorElement *> massME_;
74 
75  //define Token(-s)
80 };
81 
82 #endif
virtual void endJob() override
bool operator()(const T &i, const T &j)
Definition: HLTOniaSource.h:23
int i
Definition: DBlmapReader.cc:9
edm::InputTag triggerSummaryRAWTag_
Definition: HLTOniaSource.h:62
edm::InputTag trackTag_
Definition: HLTOniaSource.h:65
std::map< std::string, MonitorElement * > pixelAfterFilterME_
Definition: HLTOniaSource.h:67
std::map< std::string, MonitorElement * > pixelME_
Definition: HLTOniaSource.h:69
std::vector< edm::InputTag > pixelTagsAfterFilter_
Definition: HLTOniaSource.h:60
void bookOniaTriggerMEs(std::map< std::string, MonitorElement * > &, std::string)
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:10
std::vector< edm::InputTag > oniaMuonTag_
Definition: HLTOniaSource.h:59
std::map< std::string, MonitorElement * > trackME_
Definition: HLTOniaSource.h:71
math::XYZPoint Point
point in the space
Definition: BeamSpot.h:29
std::map< std::string, MonitorElement * > massME_
Definition: HLTOniaSource.h:72
void fillInvariantMass(std::vector< reco::RecoChargedCandidateRef > &, reco::RecoChargedCandidateCollection &, std::string, std::string)
std::vector< edm::InputTag > trackTagsAfterFilter_
Definition: HLTOniaSource.h:61
std::map< std::string, MonitorElement * > trackAfterFilterME_
Definition: HLTOniaSource.h:68
HLTOniaSource(const edm::ParameterSet &)
edm::InputTag beamSpotTag_
Definition: HLTOniaSource.h:64
std::vector< std::string > triggerPath_
Definition: HLTOniaSource.h:58
int j
Definition: DBlmapReader.cc:9
edm::InputTag pixelTag_
Definition: HLTOniaSource.h:63
reco::BeamSpot::Point BSPosition_
Definition: HLTOniaSource.h:41
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
std::vector< RecoChargedCandidate > RecoChargedCandidateCollection
collectin of RecoChargedCandidate objects
edm::EDGetTokenT< reco::TrackCollection > pixelToken_
Definition: HLTOniaSource.h:76
void bookOniaTriggerInvariantMassMEs(std::map< std::string, MonitorElement * > &, std::string, std::string)
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
Definition: HLTOniaSource.h:78
std::string hltProcessName_
Definition: HLTOniaSource.h:56
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > trackToken_
Definition: HLTOniaSource.h:77
virtual void beginJob() override
std::string subsystemFolder_
Definition: HLTOniaSource.h:55
std::map< std::string, MonitorElement * > muonME_
Definition: HLTOniaSource.h:70
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
DQMStore * dbe_
Definition: HLTOniaSource.h:66
void fillOniaTriggerMEs(edm::Handle< reco::RecoChargedCandidateCollection > &, std::string, std::map< std::string, MonitorElement * > &)
long double T
edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerSummaryRAWToken_
Definition: HLTOniaSource.h:79
Definition: Run.h:41
bool checkHLTConfiguration(const edm::Run &, const edm::EventSetup &, std::string)