868 std::vector<edm::Ref<T> > recoecalcands;
884 std::vector<edm::Ref<T> > isocands;
886 if (isocands.size()>0)
888 for (
unsigned int i=0;
i < isocands.size();
i++)
889 recoecalcands.push_back(isocands[
i]);
894 if (recoecalcands.size() < 1){
907 for (
unsigned int j=0;
j<recoecalcands.size();
j++){
908 if(!( recoecalcands.at(
j).isAvailable())){
910 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.";
924 float closestDeltaR = 0.5;
925 int closestEcalCandIndex = -1;
926 for (
unsigned int j=0;
j<recoecalcands.size();
j++) {
927 float deltaR =
DeltaR(recoecalcands[
j]->momentum(),currentGenParticleMomentum);
929 if (deltaR < closestDeltaR) {
931 closestEcalCandIndex =
j;
937 if ( closestEcalCandIndex >= 0 ) {
951 for (
unsigned int i=0;
i<recoecalcands.size();
i++) {
969 dqm->
ethists.at(vPos).at(
n) ->Fill(recoecalcands[
i]->et() );
979 unsigned int matchedMcParts = 0;
981 if(
n==0) mindist=0.5;
984 bool matchThis=
false;
987 double closestDr = 1000.;
988 for(
unsigned int trigOb = 0 ; trigOb < recoecalcands.size(); ++trigOb){
989 double dr =
DeltaR(recoecalcands[trigOb]->momentum(),candDir);
990 if (dr < closestDr) {
994 if (closestDr > mindist) {
1014 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_