874 std::vector<edm::Ref<T> > recoecalcands;
890 std::vector<edm::Ref<T> > isocands;
892 if (isocands.size()>0)
894 for (
unsigned int i=0;
i < isocands.size();
i++)
895 recoecalcands.push_back(isocands[
i]);
900 if (recoecalcands.size() < 1){
913 for (
unsigned int j=0;
j<recoecalcands.size();
j++){
914 if(!( recoecalcands.at(
j).isAvailable())){
916 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.";
930 float closestDeltaR = 0.5;
931 int closestEcalCandIndex = -1;
932 for (
unsigned int j=0;
j<recoecalcands.size();
j++) {
933 float deltaR =
DeltaR(recoecalcands[
j]->momentum(),currentGenParticleMomentum);
935 if (deltaR < closestDeltaR) {
937 closestEcalCandIndex =
j;
943 if ( closestEcalCandIndex >= 0 ) {
975 for (
unsigned int i=0;
i<recoecalcands.size();
i++) {
993 dqm->
ethists.at(vPos).at(
n) ->Fill(recoecalcands[
i]->et() );
1024 unsigned int matchedMcParts = 0;
1026 if(
n==0) mindist=0.5;
1029 bool matchThis=
false;
1032 double closestDr = 1000.;
1033 for(
unsigned int trigOb = 0 ; trigOb < recoecalcands.size(); ++trigOb){
1034 double dr =
DeltaR(recoecalcands[trigOb]->momentum(),candDir);
1035 if (dr < closestDr) {
1039 if (closestDr > mindist) {
1081 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_