ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/ParticleTreeDrawer.h
(Generate patch)

Comparing UserCode/Morgan/interface/ParticleTreeDrawer.h (file contents):
Revision 1.2 by lethuill, Wed Nov 19 19:03:16 2008 UTC vs.
Revision 1.4 by lethuill, Wed Jun 10 11:17:05 2009 UTC

# Line 4 | Line 4
4   // class ParticleTreeDrawer
5   // Adapted from Luca Lista's plugin
6   //
7 //#include "FWCore/Framework/interface/EDAnalyzer.h"
7   #include "FWCore/ParameterSet/interface/ParameterSet.h"
8   #include "FWCore/ParameterSet/interface/InputTag.h"
9   #include "FWCore/Framework/interface/ESHandle.h"
# Line 16 | Line 15
15   #include "DataFormats/Common/interface/View.h"
16   #include "DataFormats/Candidate/interface/Candidate.h"
17   #include "DataFormats/Candidate/interface/CandidateFwd.h"
18 < #include "DataFormats/HepMCCandidate/interface/GenParticleCandidate.h"
18 > //#include "DataFormats/HepMCCandidate/interface/GenParticleCandidate.h"
19  
20   #include <iostream>
21   #include <algorithm>
22  
23 < //class ParticleTreeDrawer : public edm::EDAnalyzer {
24 < class ParticleTreeDrawer {
25 < public:
26 <        ParticleTreeDrawer(const edm::ParameterSet & cfg, const edm::ParameterSet & producers);
27 <        void analyze( const edm::Event &, const edm::EventSetup & );
28 <
29 < private:
30 <        edm::InputTag src_;
31 <        edm::ESHandle<ParticleDataTable> pdt_;
32 <        bool printP4_, printPtEtaPhi_, printVertex_, printStatus_, printIndex_;
33 <        typedef std::vector<int> vint;
34 <        vint status_;
35 <        std::vector<const reco::Candidate *> cands_;
36 <
37 <        void printDecay( const reco::Candidate &, const std::string & pre ) const;
38 <        //void printP4( const reco::Candidate & ) const;
39 <        void printInfo( const reco::Candidate & ) const;
40 <        bool accept( const reco::Candidate & ) const;
41 <        bool hasValidDaughters( const reco::Candidate & ) const;
23 >
24 > class ParticleTreeDrawer
25 > {
26 >
27 >   public:
28 >      ParticleTreeDrawer(const edm::ParameterSet & config, const edm::ParameterSet & producersNames);
29 >      bool analyze( const edm::Event &, const edm::EventSetup & );
30 >
31 >   private:
32 >      bool allowMissingCollection_;
33 >      edm::InputTag src_;
34 >      edm::ESHandle<ParticleDataTable> pdt_;
35 >      bool printP4_, printPtEtaPhi_, printVertex_, printStatus_, printIndex_;
36 >      typedef std::vector<int> vint;
37 >      vint status_;
38 >      std::vector<const reco::Candidate *> cands_;
39 >
40 >      void printDecay( const reco::Candidate &, const std::string & pre ) const;
41 >      //void printP4( const reco::Candidate & ) const;
42 >      void printInfo( const reco::Candidate & ) const;
43 >      bool accept( const reco::Candidate & ) const;
44 >      bool hasValidDaughters( const reco::Candidate & ) const;
45  
46   };
47  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines