CMS 3D CMS Logo

BPHHistoSpecificDecay.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHHistoSpecificDecay_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHHistoSpecificDecay_h
3 
6 
11 
14 
15 #include <string>
16 
17 class TH1F;
18 class TVector3;
19 
20 namespace reco {
21  class Candidate;
22  class Vertex;
23 }
24 
26  public BPHAnalyzerWrapper<BPHModuleWrapper::one_analyzer> {
27 
28  public:
29 
30  explicit BPHHistoSpecificDecay( const edm::ParameterSet& ps );
31  ~BPHHistoSpecificDecay() override;
32 
33  static void fillDescriptions( edm::ConfigurationDescriptions& descriptions );
34 
35  void beginJob() override;
36  void analyze( const edm::Event& ev, const edm::EventSetup& es ) override;
37  void endJob() override;
38 
40  public:
41  virtual ~CandidateSelect() {}
42  virtual bool accept( const pat::CompositeCandidate& cand,
43  const reco::Vertex* pv = nullptr ) const = 0 ;
44  };
45 
46  private:
47 
60  bool useOnia;
61  bool useSd;
62  bool useSs;
63  bool useBu;
64  bool useBd;
65  bool useBs;
66 
68  std::map<std::string,TH1F*> histoMap;
69 
76 
80 
85 
90 
91  double buKPtMin;
92 
93  void fillHisto ( const std::string& name,
95  void fillHisto ( const std::string& name, float x );
96  void createHisto ( const std::string& name,
97  int nbin, float hmin, float hmax );
98 
99 };
100 
101 #endif
Analysis-level particle class.
CandidateSelect * bsJPsiBasicSelect
CandidateSelect * upsBasicSelect
def analyze(function, filename, filter=None)
Definition: Profiling.py:11
CandidateSelect * jPsiBasicSelect
CandidateSelect * phiBasicSelect
BPHTokenWrapper< std::vector< pat::CompositeCandidate > > sdCandsToken
bool ev
CandidateSelect * buVertexSelect
CandidateSelect * bdJPsiBasicSelect
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
CandidateSelect * bsVertexSelect
CandidateSelect * bsJPsiDaughterSelect
void beginJob()
Definition: Breakpoints.cc:15
CandidateSelect * buJPsiDaughterSelect
CandidateSelect * bdJPsiDaughterSelect
CandidateSelect * bdKx0BasicSelect
CandidateSelect * psi2BasicSelect
def pv(vc)
Definition: MetAnalyzer.py:6
CandidateSelect * oniaDaughterSelect
BPHTokenWrapper< std::vector< pat::CompositeCandidate > > oniaCandsToken
BPHTokenWrapper< std::vector< pat::CompositeCandidate > > bsCandsToken
CandidateSelect * bdVertexSelect
CandidateSelect * bsPhiBasicSelect
BPHTokenWrapper< std::vector< pat::CompositeCandidate > > buCandsToken
BPHTokenWrapper< std::vector< pat::CompositeCandidate > > ssCandsToken
fixed size matrix
BPHTokenWrapper< std::vector< pat::CompositeCandidate > > bdCandsToken
CandidateSelect * oniaVertexSelect
std::map< std::string, TH1F * > histoMap
CandidateSelect * buJPsiBasicSelect
edm::Service< TFileService > fs