ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/DTDPGAnalysis/interface/TTreeGenerator.h
Revision: 1.5
Committed: Thu May 27 07:17:30 2010 UTC (14 years, 11 months ago) by pellicci
Content type: text/plain
Branch: MAIN
CVS Tags: V00-00-10, V00-00-09
Changes since 1.4: +5 -0 lines
Log Message:
minor bugfixes

File Contents

# User Rev Content
1 pellicci 1.1 #include<iostream>
2    
3     #include "TFile.h"
4     #include "TTree.h"
5     #include "TVectorF.h"
6     #include "TClonesArray.h"
7    
8 pellicci 1.2 #include "UserCode/DTDPGAnalysis/interface/DefineTreeVariables.h"
9 pellicci 1.1
10 pellicci 1.5 #include "DataFormats/BeamSpot/interface/BeamSpot.h"
11    
12 pellicci 1.1 #include "FWCore/Framework/interface/EDAnalyzer.h"
13     #include "FWCore/Framework/interface/ESHandle.h"
14     #include "FWCore/Framework/interface/Event.h"
15     #include "FWCore/Framework/interface/Frameworkfwd.h"
16    
17     #include "TrackingTools/GeomPropagators/interface/Propagator.h"
18    
19     //
20     // class declaration
21     //
22     class TTreeGenerator : public edm::EDAnalyzer {
23    
24     public:
25     explicit TTreeGenerator(const edm::ParameterSet&);
26     ~TTreeGenerator() {};
27    
28    
29     private:
30    
31     virtual void beginJob() ;
32     virtual void beginRun(const edm::Run&, const edm::EventSetup&) {};
33     virtual void analyze(const edm::Event&, const edm::EventSetup&);
34     virtual void endJob() ;
35    
36     void initialize_Tree_variables();
37     inline void clear_Arrays();
38    
39     void fill_digi_variables(edm::Handle<DTDigiCollection> dtdigis);
40     void fill_dtsegments_variables(edm::Handle<DTRecSegment4DCollection> segments4D);
41     void fill_cscsegments_variables(edm::Handle<CSCSegmentCollection> cscsegments);
42     void fill_dcc_variables(edm::Handle<L1MuDTChambPhContainer> localTriggerDCC);
43     void fill_ddu_variables(edm::Handle<DTLocalTriggerCollection> localTriggerDDU);
44     void fill_muons_variables(edm::Handle<reco::MuonCollection> MuList);
45     void fill_gmt_variables(edm::Handle<L1MuGMTReadoutCollection> gmtrc);
46    
47     void fill_dtphi_info(const DTChamberRecSegment2D* phiSeg);
48     void fill_dtz_info(const DTSLRecSegment2D* zSeg);
49    
50     std::vector<L1MuRegionalCand> getBXCands(const L1MuGMTReadoutRecord* igmtrr, const int DetectorType) const;
51    
52     TrajectoryStateOnSurface cylExtrapTrkSam(reco::TrackRef track, const float rho) const;
53     FreeTrajectoryState freeTrajStateMuon(const reco::TrackRef track) const;
54    
55     edm::InputTag dtDigiLabel_;
56     edm::InputTag dtSegmentLabel_;
57     edm::InputTag cscSegmentLabel_;
58     edm::InputTag dtTrigDCCLabel_;
59     edm::InputTag dtTrigDDULabel_;
60     edm::InputTag staMuLabel_;
61     edm::InputTag gmtLabel_;
62    
63     edm::InputTag PrimaryVertexTag_;
64 pellicci 1.5 edm::InputTag beamSpotTag_;
65 pellicci 1.1
66     edm::InputTag triggerTag_;
67    
68 pellicci 1.3 bool runOnRaw_;
69    
70 pellicci 1.1 edm::ESHandle<MagneticField> theBField;
71     edm::ESHandle<Propagator> propagatorAlong;
72     edm::ESHandle<Propagator> propagatorOpposite;
73    
74     edm::ESHandle<GlobalTrackingGeometry> theTrackingGeometry;
75    
76     int digisSize_;
77     int dtsegmentsSize_;
78     int cscsegmentsSize_;
79     int dtltDCCSize_;
80     int dtltDDUSize_;
81     int gmtSize_;
82     int STAMuSize_;
83    
84     //counters
85     short idigis;
86     short idtsegments;
87     short icscsegments;
88     short idtltDCC;
89     short idtltDDU;
90     short imuons;
91     short igmtdt;
92     short igmtcands;
93    
94 pellicci 1.5 reco::BeamSpot beamspot;
95    
96 pellicci 1.1 TFile *outFile;
97     TTree *tree_;
98    
99     };