Skip to Content.
Sympa Menu

sphenix-software-l - Re: [Sphenix-software-l] file extension needed to run a list of files?

sphenix-software-l AT lists.bnl.gov

Subject: sPHENIX discussion of software

List archive

Chronological Thread  
  • From: pinkenburg <pinkenburg AT bnl.gov>
  • To: sphenix-software-l AT lists.bnl.gov
  • Subject: Re: [Sphenix-software-l] file extension needed to run a list of files?
  • Date: Mon, 6 Jun 2022 14:08:12 -0400

Hi Cameron,

I saw the error log in the meantime - it is exactly this, reading a list as as DST. I didn't see the macro which is being used, but it must treat the filename argument as DST, not as file list.

Internally files are added via

InputManager::AddFile(<root file>)

filelists are added via

InputManager::AddListFile(<list file>)

Chris



On 6/6/2022 1:20 PM, Cameron Thomas Dean via sPHENIX-software-l wrote:

Hi Justin,

I think you might want to do something like in this example


void Fun4All_MDC2reco(vector<string> myInputLists = {"condorJob/fileLists/productionFiles-CHARM-dst_tracks-00000.list"}, const int nEvents = 10)


{



  for (unsigned int i = 0; i < myInputLists.size(); ++i)


 

  {


 

    Fun4AllInputManager *infile = new Fun4AllDstInputManager("DSTin_" + to_string(i));


 

    infile->AddListFile(myInputLists[i]);


 

    se->registerInputManager(infile);


  }


}

this takes a vector of strings, each string is a different set in input DST lists (one for calo, one for vtx etc) and adds it to the Fun4All server. You should only need the file name, not the path and any extension should be OK.

Cheers,
Cameron

From: sPHENIX-software-l <sphenix-software-l-bounces AT lists.bnl.gov> on behalf of "Bryan, Justin via sPHENIX-software-l" <sphenix-software-l AT lists.bnl.gov>
Reply-To: "Bryan, Justin" <jb675619 AT ohio.edu>
Date: Monday, June 6, 2022 at 1:05 PM
To: "'sphenix-software-l AT lists.bnl.gov'" <sphenix-software-l AT lists.bnl.gov>
Subject: [Sphenix-software-l] file extension needed to run a list of files?

 

After I created 2 separate lists from MDC2 files (calo g4hit and vertex), I created 2 smaller .list to hold just a few of the first files in each original .list that was created.

 

I want to run over the smaller set of .list, but F4A does not like this. What is the proper file extension needed to run through a list of files? Thanks in advance.

 

Justin W. Bryan

Graduate Research Assistant

Department of Physics & Astronomy

Ohio University

Athens, OH 45701

 


_______________________________________________
sPHENIX-software-l mailing list
sPHENIX-software-l AT lists.bnl.gov
https://lists.bnl.gov/mailman/listinfo/sphenix-software-l

-- 
*************************************************************

Christopher H. Pinkenburg	;    pinkenburg AT bnl.gov
				;    http://www.phenix.bnl.gov/~pinkenbu

Brookhaven National Laboratory	;    phone: (631) 344-5692
Physics Department Bldg 510 C	;    fax:   (631) 344-3253
Upton, NY 11973-5000

*************************************************************



Archive powered by MHonArc 2.6.24.

Top of Page