Revision: | 1.4 |
Committed: | Thu Jun 7 09:18:44 2012 UTC (12 years, 10 months ago) by yjlee |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | HiForest_V02_85, HiForest_V02_84, HiForest_V02_83, HiForest_V02_82, HiForest_V02_81, HiForest_V02_80, HiForest_V02_79, HiForest_V02_78, HiForest_V02_77, HiForest_V02_76, HiForest_V02_75, HiForest_V02_74, HiForest_V02_73, HiForest_V02_72, HiForest_V02_71, HiForest_V02_70, HiForest_V02_69, HiForest_V02_68, HiForest_V02_67, HiForest_V02_66, HiForest_V02_65, HiForest_V02_64, HiForest_V02_63, HiForest_V02_62, HiForest_V02_61, HiForest_V02_60, HiForest_V02_59, HiForest_V02_58, HiForest_V02_57, HiForest_V02_56, HiForest_V02_55, HiForest_V02_54, HiForest_V02_53, HiForest_V02_52, HiForest_V02_51, HiForest_V02_50, HiForest_V02_49, HiForest_V02_48, HiForest_V02_47, HiForest_V02_46, HiForest_V02_45, HiForest_V02_44, HiForest_V02_43, HiForest_V02_42, HiForest_V02_41, HiForest_V02_40, HiForest_V02_39, HiForest_V02_38, HiForest_V02_37, HiForest_V02_36, HiForest_V02_35, HiForest_V02_34, HiForest_V02_33, HiForest_V02_32, HiForest_V02_31, HiForest_V02_30, HiForest_V02_27, HiForest_V02_26, QM_2012, HiForest_V02_25, HiForest_V02_24, HiForest_V02_23, HiForest_V02_22, HEAD |
Branch point for: | branch_44x |
Changes since 1.3: | +1 -1 lines |
Error occurred while calculating annotation data. | |
Log Message: | Lowered the max number of entries |
# | Content |
---|---|
1 | #include "FWCore/Framework/interface/Frameworkfwd.h" |
2 | #include "FWCore/Framework/interface/EDAnalyzer.h" |
3 | #include "FWCore/Utilities/interface/InputTag.h" |
4 | #include "FWCore/ServiceRegistry/interface/Service.h" |
5 | #include "CommonTools/UtilAlgos/interface/TFileService.h" |
6 | |
7 | #include "TTree.h" |
8 | #include "TH1D.h" |
9 | #include "TH2D.h" |
10 | #include "TF1.h" |
11 | #include "DataFormats/HepMCCandidate/interface/GenParticle.h" |
12 | #include "DataFormats/TrackReco/interface/Track.h" |
13 | #include "DataFormats/HeavyIonEvent/interface/CentralityBins.h" |
14 | #include "DataFormats/PatCandidates/interface/Jet.h" |
15 | #include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h" |
16 | #include "DataFormats/Math/interface/LorentzVector.h" |
17 | #include <vector> |
18 | |
19 | const Int_t MAXPARTICLE = 10000; |
20 | // |
21 | // DiJet ana Event Data Tree definition |
22 | // |
23 | class TreePFCandEventData |
24 | { |
25 | public: |
26 | // ===== Class Methods ===== |
27 | void SetDefaults(); |
28 | TreePFCandEventData(); |
29 | void SetTree(TTree * t) { tree_=t; } |
30 | void SetBranches(); |
31 | void Clear(); |
32 | bool doJets; |
33 | bool doMC; |
34 | |
35 | Float_t jdphi_; |
36 | // -- particle info -- |
37 | Int_t nPFpart_, nGENpart_, njets_; |
38 | Int_t pfId_[MAXPARTICLE], genPDGId_[MAXPARTICLE]; |
39 | Float_t pfPt_[MAXPARTICLE], genPt_[MAXPARTICLE], jetPt_[MAXPARTICLE]; |
40 | Float_t pfEta_[MAXPARTICLE], genEta_[MAXPARTICLE], jetEta_[MAXPARTICLE]; |
41 | Float_t pfPhi_[MAXPARTICLE], genPhi_[MAXPARTICLE], jetPhi_[MAXPARTICLE]; |
42 | |
43 | private: |
44 | TTree* tree_; |
45 | }; |
46 | |
47 | class HiPFCandAnalyzer : public edm::EDAnalyzer { |
48 | public: |
49 | explicit HiPFCandAnalyzer(const edm::ParameterSet&); |
50 | ~HiPFCandAnalyzer(); |
51 | |
52 | // class methods |
53 | |
54 | |
55 | private: |
56 | virtual void beginJob() ; |
57 | virtual void analyze(const edm::Event&, const edm::EventSetup&); |
58 | virtual void endJob() ; |
59 | |
60 | // ----------member data --------------------------- |
61 | edm::Service<TFileService> fs; |
62 | |
63 | // === Ana setup === |
64 | |
65 | // Event Info |
66 | edm::InputTag pfCandidateLabel_; |
67 | edm::InputTag genLabel_; |
68 | edm::InputTag jetLabel_; |
69 | |
70 | TTree *pfTree_; |
71 | TreePFCandEventData pfEvt_; |
72 | |
73 | // cuts |
74 | Double_t pfPtMin_; |
75 | Double_t jetPtMin_; |
76 | Double_t genPtMin_; |
77 | |
78 | // debug |
79 | Int_t verbosity_; |
80 | |
81 | bool doJets_; |
82 | bool doMC_; |
83 | bool skipCharged_; |
84 | }; |
85 | |
86 |