917 std::vector<edm::Ref<T>> recoecalcands;
929 triggerObj->getObjects(
934 std::vector<edm::Ref<T>> isocands;
936 if (!isocands.empty()) {
937 for (
unsigned int i = 0;
i < isocands.size();
i++)
938 recoecalcands.push_back(isocands[
i]);
942 if (recoecalcands.empty()) {
955 for (
unsigned int j = 0;
j < recoecalcands.size();
j++) {
956 if (!(recoecalcands.at(
j).isAvailable())) {
958 edm::LogError(
"EmDQMInvalidRefs") <<
"Event content inconsistent: TriggerEventWithRefs contains "
959 "invalid Refs. Invalid refs for: "
961 <<
". The collection that this module uses may has been dropped in "
976 float closestDeltaR = 0.5;
977 int closestEcalCandIndex = -1;
978 for (
unsigned int j = 0;
j < recoecalcands.size();
j++) {
979 float deltaR =
DeltaR(recoecalcands[
j]->momentum(), currentGenParticleMomentum);
981 if (deltaR < closestDeltaR) {
983 closestEcalCandIndex =
j;
989 if (closestEcalCandIndex >= 0) {
995 recoecalcands[closestEcalCandIndex]->
phi());
1005 for (
unsigned int i = 0;
i < recoecalcands.size();
i++) {
1025 dqm->
ethists.at(vPos).at(
n)->Fill(recoecalcands[
i]->et());
1036 unsigned int matchedMcParts = 0;
1037 float mindist = 0.3;
1042 bool matchThis =
false;
1045 double closestDr = 1000.;
1046 for (
unsigned int trigOb = 0; trigOb < recoecalcands.size(); ++trigOb) {
1047 double dr =
DeltaR(recoecalcands[trigOb]->momentum(), candDir);
1048 if (dr < closestDr) {
1052 if (closestDr > mindist) {
1074 if (matchedMcParts >=
dqm->
nCandCuts.at(
n) && accepted ==
true)
std::vector< std::vector< MonitorElement * > > etaphihists
std::vector< MonitorElement * > totalmatchs
std::vector< std::vector< MonitorElement * > > etahistmatchs
std::vector< std::vector< MonitorElement * > > histEtaPhiOfHltObjMatchToGens
std::set< std::string > hltCollectionLabelsFound
std::vector< std::vector< MonitorElement * > > histPhiOfHltObjMatchToGens
Log< level::Error, false > LogError
std::vector< std::vector< MonitorElement * > > phihists
static const unsigned OUTPUT_ERRORS
std::vector< edm::InputTag > theHLTCollectionLabels
std::vector< unsigned int > nCandCuts
std::vector< MonitorElement * > totals
std::set< std::string > hltCollectionLabelsMissed
std::vector< std::vector< MonitorElement * > > ethistmatchs
std::vector< std::vector< MonitorElement * > > etaphihistmatchs
std::vector< std::vector< MonitorElement * > > histEtaOfHltObjMatchToGens
std::vector< std::vector< MonitorElement * > > phihistmatchs
XYZVectorD XYZVector
spatial vector with cartesian internal representation
std::vector< std::vector< MonitorElement * > > histEtOfHltObjMatchToGens
std::vector< int > theHLTOutputTypes
unsigned int minEtForEtaEffPlot_
std::vector< std::vector< MonitorElement * > > etahists
std::vector< std::vector< MonitorElement * > > ethists