865 std::vector<edm::Ref<T> > recoecalcands;
881 std::vector<edm::Ref<T> > isocands;
883 if (isocands.size()>0)
885 for (
unsigned int i=0;
i < isocands.size();
i++)
886 recoecalcands.push_back(isocands[
i]);
891 if (recoecalcands.size() < 1){
904 for (
unsigned int j=0;
j<recoecalcands.size();
j++){
905 if(!( recoecalcands.at(
j).isAvailable())){
907 edm::LogError(
"EmDQMInvalidRefs") <<
"Event content inconsistent: TriggerEventWithRefs contains invalid Refs. Invalid refs for: " <<
dqm->
theHLTCollectionLabels[
n].label() <<
". The collection that this module uses may has been dropped in the event.";
921 float closestDeltaR = 0.5;
922 int closestEcalCandIndex = -1;
923 for (
unsigned int j=0;
j<recoecalcands.size();
j++) {
924 float deltaR =
DeltaR(recoecalcands[
j]->momentum(),currentGenParticleMomentum);
926 if (deltaR < closestDeltaR) {
928 closestEcalCandIndex =
j;
934 if ( closestEcalCandIndex >= 0 ) {
948 for (
unsigned int i=0;
i<recoecalcands.size();
i++) {
966 dqm->
ethists.at(vPos).at(
n) ->Fill(recoecalcands[
i]->et() );
976 unsigned int matchedMcParts = 0;
978 if(
n==0) mindist=0.5;
981 bool matchThis=
false;
984 double closestDr = 1000.;
985 for(
unsigned int trigOb = 0 ; trigOb < recoecalcands.size(); ++trigOb){
986 double dr =
DeltaR(recoecalcands[trigOb]->momentum(),candDir);
987 if (dr < closestDr) {
991 if (closestDr > mindist) {
1011 if (matchedMcParts >=
dqm->
nCandCuts.at(
n) && accepted ==
true)
std::vector< MonitorElement * > totals
std::vector< std::vector< MonitorElement * > > histEtOfHltObjMatchToGens
std::vector< std::vector< MonitorElement * > > phihists
std::set< std::string > hltCollectionLabelsFound
std::vector< std::vector< MonitorElement * > > histPhiOfHltObjMatchToGens
std::vector< std::vector< MonitorElement * > > etahists
static const unsigned OUTPUT_ERRORS
std::vector< std::vector< MonitorElement * > > ethists
std::vector< edm::InputTag > theHLTCollectionLabels
std::vector< std::vector< MonitorElement * > > ethistmatchs
std::vector< unsigned int > nCandCuts
std::set< std::string > hltCollectionLabelsMissed
std::vector< std::vector< MonitorElement * > > etahistmatchs
std::vector< std::vector< MonitorElement * > > phihistmatchs
double deltaR(double eta1, double eta2, double phi1, double phi2)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
std::vector< std::vector< MonitorElement * > > histEtaOfHltObjMatchToGens
std::vector< MonitorElement * > totalmatchs
std::vector< int > theHLTOutputTypes
unsigned int minEtForEtaEffPlot_