28 centralityBin_Token = iC.consumes<
int>( centralityBin_Label);
36 desc.
add<
bool>(
"Debug",
false);
37 desc.
add<
bool>(
"Monte",
false);
38 descriptions.
add(
"hltHeavyIon", desc);
45 if (hltConfig_.init(run,c,processName_,changed)) {
50 cout <<
"Initalizing HLTConfigProvider" << endl;
55 cout <<
" HLT config extraction failure with process name " << processName_ << endl;
70 for ( vector<std::string>::iterator iParam = parameterNames.begin();
71 iParam != parameterNames.end(); iParam++ ){
72 if ( (*iParam) ==
"Debug" ) _Debug = myHltParams.getParameter<
bool>( *iParam );
73 if ( (*iParam) ==
"Monte" ) _Monte = myHltParams.getParameter<
bool>( *iParam );
78 const int kMaxEvtPlanes = 1000;
92 fNchargedPtCutMR = -1;
98 HltTree->Branch(
"Npart",&fNpart,
"Npart/F");
99 HltTree->Branch(
"Ncoll",&fNcoll,
"Ncoll/F");
100 HltTree->Branch(
"Nhard",&fNhard,
"Nhard/F");
101 HltTree->Branch(
"phi0",&fPhi0,
"NPhi0/F");
102 HltTree->Branch(
"b",&
fb,
"b/F");
103 HltTree->Branch(
"Ncharged",&fNcharged,
"Ncharged/I");
104 HltTree->Branch(
"NchargedMR",&fNchargedMR,
"NchargedMR/I");
105 HltTree->Branch(
"MeanPt",&fMeanPt,
"MeanPt/F");
106 HltTree->Branch(
"MeanPtMR",&fMeanPtMR,
"MeanPtMR/F");
107 HltTree->Branch(
"EtMR",&fEtMR,
"EtMR/F");
108 HltTree->Branch(
"NchargedPtCut",&fNchargedPtCut,
"NchargedPtCut/I");
109 HltTree->Branch(
"NchargedPtCutMR",&fNchargedPtCutMR,
"NchargedPtCutMR/I");
110 HltTree->Branch(
"hiBin",&hiBin,
"hiBin/I");
111 HltTree->Branch(
"hiHF",&hiHF,
"hiHF/F");
112 HltTree->Branch(
"hiHFplus",&hiHFplus,
"hiHFplus/F");
113 HltTree->Branch(
"hiHFminus",&hiHFminus,
"hiHFminus/F");
114 HltTree->Branch(
"hiZDC",&hiZDC,
"hiZDC/F");
115 HltTree->Branch(
"hiZDCplus",&hiZDCplus,
"hiZDCplus/F");
116 HltTree->Branch(
"hiZDCminus",&hiZDCminus,
"hiZDCminus/F");
118 HltTree->Branch(
"hiHFhit",&hiHFhit,
"hiHFhit/F");
119 HltTree->Branch(
"hiHFhitPlus",&hiHFhitPlus,
"hiHFhitPlus/F");
120 HltTree->Branch(
"hiHFhitMinus",&hiHFhitMinus,
"hiHFhitMinus/F");
122 HltTree->Branch(
"hiET",&hiET,
"hiET/F");
123 HltTree->Branch(
"hiEE",&hiEE,
"hiEE/F");
124 HltTree->Branch(
"hiEB",&hiEB,
"hiEB/F");
125 HltTree->Branch(
"hiEEplus",&hiEEplus,
"hiEEplus/F");
126 HltTree->Branch(
"hiEEminus",&hiEEminus,
"hiEEminus/F");
127 HltTree->Branch(
"hiNpix",&hiNpix,
"hiNpix/I");
128 HltTree->Branch(
"hiNpixelTracks",&hiNpixelTracks,
"hiNpixelTracks/I");
129 HltTree->Branch(
"hiNtracks",&hiNtracks,
"hiNtracks/I");
130 HltTree->Branch(
"hiNevtPlane",&nEvtPlanes,
"hiNevtPlane/I");
131 HltTree->Branch(
"hiEvtPlanes",
hiEvtPlane,
"hiEvtPlanes/F");
132 HltTree->Branch(
"hiNtracksPtCut",&hiNtracksPtCut,
"hiNtracksPtCut/I");
133 HltTree->Branch(
"hiNtracksEtaCut",&hiNtracksEtaCut,
"hiNtracksEtaCut/I");
134 HltTree->Branch(
"hiNtracksEtaPtCut",&hiNtracksEtaPtCut,
"hiNtracksEtaPtCut/I");
147 std::cout <<
" Beginning HLTHeavyIon " << std::endl;
151 fNpart = mc->Npart();
152 fNcoll = mc->Ncoll();
153 fNhard = mc->Nhard();
154 fPhi0 = mc->evtPlane();
155 fNcharged = mc->Ncharged();
156 fNchargedMR = mc->NchargedMR();
157 fMeanPt = mc->MeanPt();
158 fMeanPtMR = mc->MeanPtMR();
160 fNchargedPtCut = mc->NchargedPtCut();
161 fNchargedPtCutMR = mc->NchargedPtCutMR();
165 iEvent.
getByToken(centralityBin_Token,binHandle);
168 hiNpix = centrality->multiplicityPixel();
169 hiNpixelTracks = centrality->NpixelTracks();
170 hiNtracks = centrality->Ntracks();
171 hiNtracksPtCut = centrality->NtracksPtCut();
172 hiNtracksEtaCut = centrality->NtracksEtaCut();
173 hiNtracksEtaPtCut = centrality->NtracksEtaPtCut();
175 hiHF = centrality->EtHFtowerSum();
176 hiHFplus = centrality->EtHFtowerSumPlus();
177 hiHFminus = centrality->EtHFtowerSumMinus();
178 hiHFhit = centrality->EtHFhitSum();
179 hiHFhitPlus = centrality->EtHFhitSumPlus();
180 hiHFhitMinus = centrality->EtHFhitSumMinus();
182 hiZDC = centrality->zdcSum();
183 hiZDCplus = centrality->zdcSumPlus();
184 hiZDCminus = centrality->zdcSumMinus();
186 hiEEplus = centrality->EtEESumPlus();
187 hiEEminus = centrality->EtEESumMinus();
188 hiEE = centrality->EtEESum();
189 hiEB = centrality->EtEBSum();
190 hiET = centrality->EtMidRapiditySum();
194 nEvtPlanes = evtPlanes->size();
195 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)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void beginRun(const edm::Run &, const edm::EventSetup &)
std::vector< std::string > getParameterNames() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
HLTHeavyIon(edm::ConsumesCollector &&iC)
void setup(const edm::ParameterSet &pSet, TTree *tree)
void add(std::string const &label, ParameterSetDescription const &psetDescription)