864 std::vector<edm::Ref<T> > recoecalcands;
880 std::vector<edm::Ref<T> > isocands;
882 if (isocands.size()>0)
884 for (
unsigned int i=0;
i < isocands.size();
i++)
885 recoecalcands.push_back(isocands[
i]);
890 if (recoecalcands.size() < 1){
903 for (
unsigned int j=0;
j<recoecalcands.size();
j++){
904 if(!( recoecalcands.at(
j).isAvailable())){
906 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.";
920 float closestDeltaR = 0.5;
921 int closestEcalCandIndex = -1;
922 for (
unsigned int j=0;
j<recoecalcands.size();
j++) {
923 float deltaR =
DeltaR(recoecalcands[
j]->momentum(),currentGenParticleMomentum);
925 if (deltaR < closestDeltaR) {
927 closestEcalCandIndex =
j;
933 if ( closestEcalCandIndex >= 0 ) {
947 for (
unsigned int i=0;
i<recoecalcands.size();
i++) {
965 dqm->
ethists.at(vPos).at(
n) ->Fill(recoecalcands[
i]->et() );
975 unsigned int matchedMcParts = 0;
977 if(
n==0) mindist=0.5;
980 bool matchThis=
false;
983 double closestDr = 1000.;
984 for(
unsigned int trigOb = 0 ; trigOb < recoecalcands.size(); ++trigOb){
985 double dr =
DeltaR(recoecalcands[trigOb]->momentum(),candDir);
986 if (dr < closestDr) {
990 if (closestDr > mindist) {
1010 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_