35 if (hltConfig_.init(run,c,processName_,changed)) {
40 cout <<
"Initalizing HLTConfigProvider" << endl;
45 cout <<
" HLT config extraction failure with process name " << processName_ << endl;
60 for ( vector<std::string>::iterator iParam = parameterNames.begin();
61 iParam != parameterNames.end(); iParam++ ){
62 if ( (*iParam) ==
"Debug" ) _Debug = myHltParams.getParameter<
bool>( *iParam );
63 if ( (*iParam) ==
"Monte" ) _Monte = myHltParams.getParameter<
bool>( *iParam );
68 const int kMaxEvtPlanes = 1000;
82 fNchargedPtCutMR = -1;
88 HltTree->Branch(
"Npart",&fNpart,
"Npart/F");
89 HltTree->Branch(
"Ncoll",&fNcoll,
"Ncoll/F");
90 HltTree->Branch(
"Nhard",&fNhard,
"Nhard/F");
91 HltTree->Branch(
"phi0",&fPhi0,
"NPhi0/F");
92 HltTree->Branch(
"b",&
fb,
"b/F");
93 HltTree->Branch(
"Ncharged",&fNcharged,
"Ncharged/I");
94 HltTree->Branch(
"NchargedMR",&fNchargedMR,
"NchargedMR/I");
95 HltTree->Branch(
"MeanPt",&fMeanPt,
"MeanPt/F");
96 HltTree->Branch(
"MeanPtMR",&fMeanPtMR,
"MeanPtMR/F");
97 HltTree->Branch(
"EtMR",&fEtMR,
"EtMR/F");
98 HltTree->Branch(
"NchargedPtCut",&fNchargedPtCut,
"NchargedPtCut/I");
99 HltTree->Branch(
"NchargedPtCutMR",&fNchargedPtCutMR,
"NchargedPtCutMR/I");
100 HltTree->Branch(
"hiBin",&hiBin,
"hiBin/I");
101 HltTree->Branch(
"hiHF",&hiHF,
"hiHF/F");
102 HltTree->Branch(
"hiHFplus",&hiHFplus,
"hiHFplus/F");
103 HltTree->Branch(
"hiHFminus",&hiHFminus,
"hiHFminus/F");
104 HltTree->Branch(
"hiZDC",&hiZDC,
"hiZDC/F");
105 HltTree->Branch(
"hiZDCplus",&hiZDCplus,
"hiZDCplus/F");
106 HltTree->Branch(
"hiZDCminus",&hiZDCminus,
"hiZDCminus/F");
108 HltTree->Branch(
"hiHFhit",&hiHFhit,
"hiHFhit/F");
109 HltTree->Branch(
"hiHFhitPlus",&hiHFhitPlus,
"hiHFhitPlus/F");
110 HltTree->Branch(
"hiHFhitMinus",&hiHFhitMinus,
"hiHFhitMinus/F");
112 HltTree->Branch(
"hiET",&hiET,
"hiET/F");
113 HltTree->Branch(
"hiEE",&hiEE,
"hiEE/F");
114 HltTree->Branch(
"hiEB",&hiEB,
"hiEB/F");
115 HltTree->Branch(
"hiEEplus",&hiEEplus,
"hiEEplus/F");
116 HltTree->Branch(
"hiEEminus",&hiEEminus,
"hiEEminus/F");
117 HltTree->Branch(
"hiNpix",&hiNpix,
"hiNpix/I");
118 HltTree->Branch(
"hiNpixelTracks",&hiNpixelTracks,
"hiNpixelTracks/I");
119 HltTree->Branch(
"hiNtracks",&hiNtracks,
"hiNtracks/I");
120 HltTree->Branch(
"hiNevtPlane",&nEvtPlanes,
"hiNevtPlane/I");
121 HltTree->Branch(
"hiEvtPlanes",
hiEvtPlane,
"hiEvtPlanes/F");
122 HltTree->Branch(
"hiNtracksPtCut",&hiNtracksPtCut,
"hiNtracksPtCut/I");
123 HltTree->Branch(
"hiNtracksEtaCut",&hiNtracksEtaCut,
"hiNtracksEtaCut/I");
124 HltTree->Branch(
"hiNtracksEtaPtCut",&hiNtracksEtaPtCut,
"hiNtracksEtaPtCut/I");
137 std::cout <<
" Beginning HLTHeavyIon " << std::endl;
141 fNpart = mc->Npart();
142 fNcoll = mc->Ncoll();
143 fNhard = mc->Nhard();
144 fPhi0 = mc->evtPlane();
145 fNcharged = mc->Ncharged();
146 fNchargedMR = mc->NchargedMR();
147 fMeanPt = mc->MeanPt();
148 fMeanPtMR = mc->MeanPtMR();
150 fNchargedPtCut = mc->NchargedPtCut();
151 fNchargedPtCutMR = mc->NchargedPtCutMR();
158 hiNpix = centrality->multiplicityPixel();
159 hiNpixelTracks = centrality->NpixelTracks();
160 hiNtracks = centrality->Ntracks();
161 hiNtracksPtCut = centrality->NtracksPtCut();
162 hiNtracksEtaCut = centrality->NtracksEtaCut();
163 hiNtracksEtaPtCut = centrality->NtracksEtaPtCut();
165 hiHF = centrality->EtHFtowerSum();
166 hiHFplus = centrality->EtHFtowerSumPlus();
167 hiHFminus = centrality->EtHFtowerSumMinus();
168 hiHFhit = centrality->EtHFhitSum();
169 hiHFhitPlus = centrality->EtHFhitSumPlus();
170 hiHFhitMinus = centrality->EtHFhitSumMinus();
172 hiZDC = centrality->zdcSum();
173 hiZDCplus = centrality->zdcSumPlus();
174 hiZDCminus = centrality->zdcSumMinus();
176 hiEEplus = centrality->EtEESumPlus();
177 hiEEminus = centrality->EtEESumMinus();
178 hiEE = centrality->EtEESum();
179 hiEB = centrality->EtEBSum();
180 hiET = centrality->EtMidRapiditySum();
184 nEvtPlanes = evtPlanes->size();
185 for(
unsigned int i = 0;
i < evtPlanes->size(); ++
i){
T getParameter(std::string const &) const
void analyze(const edm::Handle< edm::TriggerResults > &hltresults, const edm::Handle< reco::Centrality > ¢rality, const edm::Handle< reco::EvtPlaneCollection > &evtPlanes, const edm::Handle< edm::GenHIEvent > &hiMC, edm::EventSetup const &eventSetup, edm::Event const &iEvent, TTree *tree)
void beginRun(const edm::Run &, const edm::EventSetup &)
std::vector< std::string > getParameterNames() const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void setup(const edm::ParameterSet &pSet, TTree *tree)