This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>modal demo</h1> | |
<div class="modal fade" id="modal1" role="dialog"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<h4 class="modal-title">Modal Title</h4> | |
</div> | |
<div class="modal-body"> | |
Modal Body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aida:displaytree rootLabel="ClustererTest" showItemCount="true" rootVisible="true" storeName="${rootDataURI}"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="organization-mission"> | |
<%= @organization_graph['mission'] %> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Calculate charge in nano coulomb for a file using the EPICS FCup current measurements. | |
* <p> | |
* The accuracy of this calculation is limited by the time interval of the EPICS data (2s), | |
* and SVT livetime is not included so the value should not be used for analysis. | |
* | |
* @param epicsData the list of EPICS data with the FCup values | |
* @param firstTimestamp the first timestamp in the file | |
* @param lastTimestamp the last timestamp in the file | |
* @return the charge for the file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.hps.crawler; | |
import java.io.File; | |
/** | |
* Reads metadata from EVIO files, including the event count, run min and run max expected by the datacat, as well as | |
* many custom field values applicable to HPS EVIO raw data. | |
* | |
* @author Jeremy McCormick, SLAC | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PrintRequestServlet extends HttpServlet { | |
@Override | |
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { | |
PrintWriter out = resp.getWriter(); | |
out.println("<b>HTTP Headers</b><br/>"); | |
Enumeration<?> headers = req.getHeaderNames(); | |
for (;;) { | |
if (!headers.hasMoreElements()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void print_aux(const G4GDMLAuxListType* auxInfoList, G4String prepend="|") | |
{ | |
for(std::vector<G4GDMLAuxStructType>::const_iterator iaux = auxInfoList->begin(); | |
iaux != auxInfoList->end(); iaux++ ) | |
{ | |
G4String str=iaux->type; | |
G4String val=iaux->value; | |
G4String unit=iaux->unit; | |
G4cout << prepend << str << " : " << val << " " << unit << G4endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
G4TouchableHandle touchable = prePoint->GetTouchableHandle(); | |
const G4NavigationHistory* touchableHistory = touchable->GetHistory(); | |
G4int hdepth = touchable->GetHistoryDepth(); | |
std::cout << "Dumping volume hierarchy ..." << std::endl; | |
for (int i = hdepth; i > 0; i--) { | |
G4VPhysicalVolume* pv = touchableHistory->GetVolume(i); | |
std::cout << " depth: " << i << ", physvol name: " << pv->GetName() << ", copynum: " << pv->GetCopyNo() << std::endl; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
G4PhysicalVolumeStore* pvs = G4PhysicalVolumeStore::GetInstance(); | |
std::cout << "Dumping PV store ..." << std::endl; | |
for (G4PhysicalVolumeStore::iterator it = pvs->begin(); | |
it != pvs->end(); it++) { | |
G4VPhysicalVolume* pv = (*it); | |
std::cout << "volume: " << pv->GetName() << ", pos: " << pv->GetTranslation() << std::endl; | |
} |