A problem of madanalysis5 when running the c++ program
Hi Benjamin,
When I run the c++ program I wrote, error shows up over and over again:
* 5347/36042024 {�W��|
ERROR: the format of the input file is not supported. The file is skipped.
And when I comment most of my program, error shows up:
ERROR: =======
ERROR: Abnormal termination
ERROR: =======
ERROR:
And piece of my program is:
bool me_2017_
{
/* double myEventWeight;
if(Configurat
else if(event.
else
{
WARNING << "Found one event with a zero weight. Skipping..." << endmsg;
return false;
}
Manager(
*/
//the loop start
if (event.rec()==0) {return true;}
EventFormat myEvent;
myEvent = event;
vector<const RecJetFormat*> SignalJets,
vector<const RecLeptonFormat
vector<const RecJetFormat*> CandidateJets;
vector<const RecLeptonFormat
//the jets candidates
for(unsigned int ij=0; ij<event.
const RecJetFormat * CurrentJet = &(event.
if ( CurrentJet->pt() > 20.0 && abs(CurrentJet-
}
//NBtag Jets
unsigned int NBtag = 0;
for(unsigned int ij=0; ij<event.
const RecJetFormat * CurrentJet = &(event.
if( CurrentJet->pt() > 10.0 && abs(CurrentJet-
NBtag++;
}
}
}
//Lepton trigger-
//Baseline lepton-
for(unsigned int ie=0; ie<event.
{
const RecLeptonFormat * CurrentElectron = &(event.
double pt = CurrentElectron
double abseta = fabs(CurrentEle
if(pt > 10. && (abseta < 1.37 || (abseta > 1.52 && abseta < 2.47)) )
}
for(unsigned int im=0; im<event.
{
const RecLeptonFormat * CurrentMuon = &(event.
double pt = CurrentMuon->pt();
double abseta = fabs(CurrentMuo
if(pt > 10. && abseta < 2.4)
}
//Overlap removal with Non-btag jets
//Signal lepton
for(unsigned int ie=0; ie<BaseElectron
{
const RecLeptonFormat * CurrentElectron = BaseElectrons[ie];
double pt = CurrentElectron
if(pt > 30.)
}
for(unsigned int im=0; im<BaseMuons.
{
const RecLeptonFormat * CurrentMuon = BaseMuons[im];
double pt = CurrentMuon->pt();
if(pt > 30.)
}
//Tight electron criterion
//Medium muons criterion
SignalMuons = PHYSICS-
SignalMuons = PHYSICS-
//1 Signal_Lepton Cutflow
//Signal Jets
for(unsigned int ij=0; ij<CandidateJet
const RecJetFormat * CurrentJet = (CandidateJets[
if ( CurrentJet->pt() > 40.0)
}
for(unsigned int ij=0; ij<Signal40_
const RecJetFormat * CurrentJet = (Signal40_
if ( CurrentJet->pt() > 60.0)
}
for(unsigned int ij=0; ij<Signal60_
const RecJetFormat * CurrentJet = (Signal60_
if ( CurrentJet->pt() > 80.0)
}
//Many kinds of cutflow
if(
if(
if(
if(
if(
if(
if(
if(
if(
if(
if(
if(
Could you tell me where is wrong?
Best~
Wenxing
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Last query:
- 2017-08-15
- Last reply:
- 2017-08-31
Benjamin Fuks (fuks) said : | #1 |
Hi,
This may be related to the input file that must contain the path to the event file, and cannot be the event file itself. Does it solve the problem?
Regards,
Benjamin
> On 7 Aug 2017, at 14:13 , zhangwenxing <email address hidden> wrote:
>
> New question #655417 on MadAnalysis 5:
> https:/
>
> Hi Benjamin,
>
> When I run the c++ program I wrote, error shows up over and over again:
>
> * 5347/36042024 {�W��|
> ERROR: the format of the input file is not supported. The file is skipped.
>
> And when I comment most of my program, error shows up:
>
> ERROR: =======
> ERROR: Abnormal termination
> ERROR: =======
> ERROR:
>
>
> And piece of my program is:
> bool me_2017_
> {
> /* double myEventWeight;
> if(Configuratio
> else if(event.
> else
> {
> WARNING << "Found one event with a zero weight. Skipping..." << endmsg;
> return false;
> }
> Manager(
>
> */
>
> //the loop start
> if (event.rec()==0) {return true;}
> EventFormat myEvent;
> myEvent = event;
>
> vector<const RecJetFormat*> SignalJets,
> vector<const RecLeptonFormat
>
> vector<const RecJetFormat*> CandidateJets;
> vector<const RecLeptonFormat
>
> //the jets candidates
> for(unsigned int ij=0; ij<event.
> const RecJetFormat * CurrentJet = &(event.
> if ( CurrentJet->pt() > 20.0 && abs(CurrentJet-
> CandidateJets.
> }
>
> //NBtag Jets
> unsigned int NBtag = 0;
> for(unsigned int ij=0; ij<event.
> const RecJetFormat * CurrentJet = &(event.
> if( CurrentJet->pt() > 10.0 && abs(CurrentJet-
> if(CurrentJet-
> NBtag++;
> }
> }
>
> }
>
>
>
> //Lepton trigger-
>
> if(!Manager(
>
> //Baseline lepton-
>
>
>
> for(unsigned int ie=0; ie<event.
> {
> const RecLeptonFormat * CurrentElectron = &(event.
> double pt = CurrentElectron
> double abseta = fabs(CurrentEle
> if(pt > 10. && (abseta < 1.37 || (abseta > 1.52 && abseta < 2.47)) )
> BaseElectrons.
> }
> //ElectronLoose criterion
> BaseElectrons = PHYSICS-
>
> for(unsigned int im=0; im<event.
> {
> const RecLeptonFormat * CurrentMuon = &(event.
> double pt = CurrentMuon->pt();
> double abseta = fabs(CurrentMuo
>
> if(pt > 10. && abseta < 2.4)
> BaseMuons.
> }
>
> if(!Manager(
>
> //Overlap removal with Non-btag jets
> //Signal lepton
>
> //overlapRemoval
> overlapRemoval_
> overlapRemoval_
> overlapRemoval_
>
> for(unsigned int ie=0; ie<BaseElectron
> {
> const RecLeptonFormat * CurrentElectron = BaseElectrons[ie];
> double pt = CurrentElectron
> if(pt > 30.)
> SignalElectrons
> }
>
> for(unsigned int im=0; im<BaseMuons.
> {
> const RecLeptonFormat * CurrentMuon = BaseMuons[im];
> double pt = CurrentMuon->pt();
>
> if(pt > 30.)
> SignalMuons.
> }
>
> //Tight electron criterion
> SignalElectrons = PHYSICS-
> SignalElectrons = PHYSICS-
> //Medium muons criterion
> SignalMuons = PHYSICS-
> SignalMuons = PHYSICS-
>
> //1 Signal_Lepton Cutflow
> if(!Manager(
>
>
>
> //Signal Jets
> for(unsigned int ij=0; ij<CandidateJet
> const RecJetFormat * CurrentJet = (CandidateJets[
> if ( CurrentJet->pt() > 40.0)
> Signal40_
> }
> for(unsigned int ij=0; ij<Signal40_
> const RecJetFormat * CurrentJet = (Signal40_
> if ( CurrentJet->pt() > 60.0)
> Signal60_
> }
> for(unsigned int ij=0; ij<Signal60_
> const RecJetFormat * CurrentJet = (Signal60_
> if ( CurrentJet->pt() > 80.0)
> Signal80_
> }
>
> //Many kinds of cutflow
> if(!Manager(
> if(!Manager(
> if(!Manager(
> if(!Manager(
> if(!Manager(
> if(!Manager(
>
> if(!Manager(
> if(!Manager(
> if(!Manager(
>
> if(!Manager(
> if(!Manager(
> if(!Manager(
>
>
> Could you tell me where is wrong?
>
> Best~
> Wenxing
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.
zhangwenxing (wenxing) said : | #2 |
Yes, that's the problem!
Thank you very much!
> -----原始邮件-----
> 发件人: "Benjamin Fuks" <email address hidden>
> 发送时间: 2017-08-14 18:33:40 (星期一)
> 收件人: <email address hidden>
> 抄送:
> 主题: Re: [Question #655417]: A problem of madanalysis5 when running the c++ program
>
> Your question #655417 on MadAnalysis 5 changed:
> https:/
>
> Status: Open => Answered
>
> Benjamin Fuks proposed the following answer:
> Hi,
>
> This may be related to the input file that must contain the path to the
> event file, and cannot be the event file itself. Does it solve the
> problem?
>
> Regards,
>
> Benjamin
>
>
> > On 7 Aug 2017, at 14:13 , zhangwenxing <email address hidden> wrote:
> >
> > New question #655417 on MadAnalysis 5:
> > https:/
> >
> > Hi Benjamin,
> >
> > When I run the c++ program I wrote, error shows up over and over again:
> >
> > * 5347/36042024 {�W��|�
> > ERROR: the format of the input file is not supported. The file is skipped.
> >
> > And when I comment most of my program, error shows up:
> >
> > ERROR: =======
> > ERROR: Abnormal termination
> > ERROR: =======
> > ERROR:
> >
> >
> > And piece of my program is:
> > bool me_2017_
> > {
> > /* double myEventWeight;
> > if(Configuratio
> > else if(event.
> > else
> > {
> > WARNING << "Found one event with a zero weight. Skipping..." << endmsg;
> > return false;
> > }
> > Manager(
> >
> > */
> >
> > //the loop start
> > if (event.rec()==0) {return true;}
> > EventFormat myEvent;
> > myEvent = event;
> >
> > vector<const RecJetFormat*> SignalJets,
> > vector<const RecLeptonFormat
> >
> > vector<const RecJetFormat*> CandidateJets;
> > vector<const RecLeptonFormat
> >
> > //the jets candidates
> > for(unsigned int ij=0; ij<event.
> > const RecJetFormat * CurrentJet = &(event.
> > if ( CurrentJet->pt() > 20.0 && abs(CurrentJet-
> > CandidateJets.
> > }
> >
> > //NBtag Jets
> > unsigned int NBtag = 0;
> > for(unsigned int ij=0; ij<event.
> > const RecJetFormat * CurrentJet = &(event.
> > if( CurrentJet->pt() > 10.0 && abs(CurrentJet-
> > if(CurrentJet-
> > NBtag++;
> > }
> > }
> >
> > }
> >
> >
> >
> > //Lepton trigger-
> >
> > if(!Manager(
> >
> > //Baseline lepton-
> >
> >
> >
> > for(unsigned int ie=0; ie<event.
> > {
> > const RecLeptonFormat * CurrentElectron = &(event.
> > double pt = CurrentElectron
> > double abseta = fabs(CurrentEle
> > if(pt > 10. && (abseta < 1.37 || (abseta > 1.52 && abseta < 2.47)) )
> > BaseElectrons.
> > }
> > //ElectronLoose criterion
> > BaseElectrons = PHYSICS-
> >
> > for(unsigned int im=0; im<event.
> > {
> > const RecLeptonFormat * CurrentMuon = &(event.
> > double pt = CurrentMuon->pt();
> > double abseta = fabs(CurrentMuo
> >
> > if(pt > 10. && abseta < 2.4)
> > BaseMuons.
> > }
> >
> > if(!Manager(
> >
> > //Overlap removal with Non-btag jets
> > //Signal lepton
> >
> > //overlapRemoval
> > overlapRemoval_
> > overlapRemoval_
> > overlapRemoval_
> >
> > for(unsigned int ie=0; ie<BaseElectron
> > {
> > const RecLeptonFormat * CurrentElectron = BaseElectrons[ie];
> > double pt = CurrentElectron
> > if(pt > 30.)
> > SignalElectrons
> > }
> >
> > for(unsigned int im=0; im<BaseMuons.
> > {
> > const RecLeptonFormat * CurrentMuon = BaseMuons[im];
> > double pt = CurrentMuon->pt();
> >
> > if(pt > 30.)
> > SignalMuons.
> > }
> >
> > //Tight electron criterion
> > SignalElectrons = PHYSICS-
> > SignalElectrons = PHYSICS-
> > //Medium muons criterion
> > SignalMuons = PHYSICS-
> > SignalMuons = PHYSICS-
> >
> > //1 Signal_Lepton Cutflow
> > if(!Manager(
> >
> >
> >
> > //Signal Jets
> > for(unsigned int ij=0; ij<CandidateJet
> > const RecJetFormat * CurrentJet = (CandidateJets[
> > if ( CurrentJet->pt() > 40.0)
> > Signal40_
> > }
> > for(unsigned int ij=0; ij<Signal40_
> > const RecJetFormat * CurrentJet = (Signal40_
> > if ( CurrentJet->pt() > 60.0)
> > Signal60_
> > }
> > for(unsigned int ij=0; ij<Signal60_
> > const RecJetFormat * CurrentJet = (Signal60_
> > if ( CurrentJet->pt() > 80.0)
> > Signal80_
> > }
> >
> > //Many kinds of cutflow
> > if(!Manager(
> > if(!Manager(
> > if(!Manager(
> > if(!Manager(
> > if(!Manager(
> > if(!Manager(
> >
> > if(!Manager(
> > if(!Manager(
> > if(!Manager(
> >
> > if(!Manager(
> > if(!Manager(
> > if(!Manager(
> >
> >
> > Could you tell me where is wrong?
> >
> > Best~
> > Wenxing
> >
> >
> >
> >
> > --
> > You received this question notification because you are an answer
> > contact for MadAnalysis 5.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https:/
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https:/
>
> You received this question notification because you asked the question.
Launchpad Janitor (janitor) said : | #3 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.
Benjamin Fuks (fuks) said : | #4 |
The problem was solved.